Source: libbsd Version: 0.11.7-2 Tags: patch User: helm...@debian.org Usertags: rebootstrap
libbsd fails to build on/for musl-linux-any, because the libbsd-ctor.a library isn't build (for lack of libc features). I think we vaguely agreed that the best solution would be to not install it in that case. I'm attaching a patch for your convenience. And yeah, this obviously isn't meant for bookworm. Helmut
diff --minimal -Nru libbsd-0.11.7/debian/changelog libbsd-0.11.7/debian/changelog --- libbsd-0.11.7/debian/changelog 2023-01-29 19:26:48.000000000 +0100 +++ libbsd-0.11.7/debian/changelog 2023-02-28 08:20:33.000000000 +0100 @@ -1,3 +1,10 @@ +libbsd (0.11.7-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Skip installing libbsd-ctor.a on musl. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Tue, 28 Feb 2023 08:20:33 +0100 + libbsd (0.11.7-2) unstable; urgency=medium * Change License name to match newly introduced SPDX name. diff --minimal -Nru libbsd-0.11.7/debian/libbsd-dev.install libbsd-0.11.7/debian/libbsd-dev.install --- libbsd-0.11.7/debian/libbsd-dev.install 2023-01-29 19:26:48.000000000 +0100 +++ libbsd-0.11.7/debian/libbsd-dev.install 2023-02-28 08:20:28.000000000 +0100 @@ -1,4 +1,3 @@ -usr/lib/*/libbsd-ctor.a usr/lib/*/libbsd.a usr/lib/*/libbsd.so usr/lib/*/pkgconfig/*.pc diff --minimal -Nru libbsd-0.11.7/debian/rules libbsd-0.11.7/debian/rules --- libbsd-0.11.7/debian/rules 2023-01-29 19:26:48.000000000 +0100 +++ libbsd-0.11.7/debian/rules 2023-02-28 08:20:31.000000000 +0100 @@ -6,8 +6,15 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_CFLAGS_MAINT_PREPEND = -Wall +include /usr/share/dpkg/architecture.mk + %: dh $@ override_dh_installchangelogs: dh_installchangelogs --no-trim + +ifneq ($(DEB_HOST_ARCH_LIBC),musl) +execute_after_dh_install: + dh_install -plibbsd-dev usr/lib/*/libbsd-ctor.a +endif