Bug#1115240: liblangtag: FTBFS with glibc 2.42 due to removal of /etc/locale.alias
Source: liblangtag
Version: 0.6.7-1
Severity: important
Tags: ftbfs forky sid patch
Justification: fails to build from source
User: debian-glibc@lists.debian.org
Usertags: glibc-2.42
Dear maintainer,
During a rebuild of all packages in unstable with glibc 2.42 from
experimental, your package failed to build. Below you will find how the
build ends. If required, the full build log is available here:
https://people.debian.org/~aurel32/glibc-2.42/
The build failure is due to the removal of /etc/locales.alias in this
version. Indeed this file doesn't make sense anymore as national
encodings are being phased-out and people should use UTF-8 instead (see
bug#1095101). liblangtag supports using a prebuilt table instead of this
file, but this doesn't work as it get removed in the clean target.
Therefore the following patch fixes the issue:
--- liblangtag-0.6.7/debian/rules
+++ liblangtag-0.6.7/debian/rules
@@ -21,7 +21,6 @@
endif
override_dh_auto_clean:
- rm -f liblangtag/lt-localealias.h
rm -f config.log
dh_auto_clean
That said you should also investigate if it still make sense to support
these aliases in liblangtag.
About the archive rebuild: The build was made on virtual machines from
AWS, using sbuild, a reduced chroot with only build-essential packages
and glibc 2.42 from experimental.
Regards
Aurelien
--------------------------------------------------------------------------------
[...]
========== Build Information ==========
CFLAGS: -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fno-strict-aliasing -Wnested-externs -Wmissing-prototypes -Wstrict-prototypes -Wimplicit-function-declaration -Wold-style-definition -Wjump-misses-init -Wall -Wextra -Wundef -Wwrite-strings -Wpointer-arith -Wmissing-declarations -Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers -Wformat=2 -Wcast-align -Wformat-nonliteral -Wformat-security -Wsign-compare -Wstrict-aliasing -Wshadow -Winline -Wpacked -Wmissing-format-attribute -Wmissing-noreturn -Winit-self -Wmissing-include-dirs -Wunused-but-set-variable -Warray-bounds -Wreturn-type -Wswitch-enum -Wswitch-default -Wduplicated-cond -Wduplicated-branches -Wlogical-op -Wrestrict -Wnull-dereference -Wdouble-promotion -Wno-error=unused-parameter -Wno-error=missing-field-initializers
LDFLAGS: -Wl,-z,relro
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules override_dh_auto_build-arch
make[1]: Entering directory '/<<PKGBUILDDIR>>'
/usr/bin/make V=1
make[2]: Entering directory '/<<PKGBUILDDIR>>'
/usr/bin/make all-recursive
make[3]: Entering directory '/<<PKGBUILDDIR>>'
Making all in liblangtag
make[4]: Entering directory '/<<PKGBUILDDIR>>/liblangtag'
./buildaliastbl.sh > lt-localealias.h.tmp && mv lt-localealias.h.tmp lt-localealias.h || rm -f lt-localealias.h.tmp
Failed to generate lt-localealias.h.
make[4]: *** [Makefile:1402: lt-localealias.h] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/liblangtag'
make[3]: *** [Makefile:578: all-recursive] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>'
make[2]: *** [Makefile:481: all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [debian/rules:35: override_dh_auto_build-arch] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:29: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Reply to: