#1052441 zsh: FTBFS with glibc 2.38 on i386 due to missing fmod in libm.a

Package:
zsh
Source:
zsh
Description:
shell with lots of features
Submitter:
Steve Langasek
Date:
2023-09-22 05:15:04 UTC
Severity:
normal
Tags:
#1052441#5
Date:
2023-09-22 05:11:03 UTC
From:
To:
Package: zsh
Version: 5.9-5
Severity: wishlist
Tags: patch
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu mantic ubuntu-patch

Dear maintainers,

In Ubuntu, zsh was failing to build from source on i386 because Ubuntu has
glibc 2.38, and libm.a on i386 is failing to provide the fmod symbol,
causing an inability to link zsh-static.

This is ultimately a bug in glibc, filed in Ubuntu at
<https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/2036283>.  However,
since i386 is a partial arch in Ubuntu and we don't actually need zsh-static
for anything (but "unfortunately" do need zsh/i386 as a build-dependency of
vlc), rather than spending time getting zsh-static to build again on i386,
and then possibly having to do so again later because i386 and math is a
fragile combination, I found it preferable to just disable the build of
zsh-static on Ubuntu i386.

I've uploaded the attached patch to Ubuntu.  It has been constructed in such
a way that it can be included in Debian without adversely affecting any
Debian builds, and would allow us to keep the zsh package in Ubuntu in sync
with that in Debian.

Please consider applying this patch.  If you don't want to carry this added
complexity in debian/rules that only benefits a downstream distribution,
however, please feel free to close the bug report.

Thanks,