Source: bsdmainutils Version: 12.1.7+nmu3 Tags: patch User: helm...@debian.org Usertags: rebootstrap
bsdmainutils fails to build from source on musl-linux-arm64. There, bits/stat.h happens to be included after bsdmainutils's freebsd.h and it contains this line: unsigned __unused[2]; This is bad as freebsd.h #defines __unused as the unused attribute. gcc is not very amused. Fortunately, __unused is unused in bsdmainutils, so we can quite simply delete it at no loss. Please consider applying the attached patch. Helmut
diff --minimal -Nru bsdmainutils-12.1.7+nmu3/debian/changelog bsdmainutils-12.1.7+nmu4/debian/changelog --- bsdmainutils-12.1.7+nmu3/debian/changelog 2021-03-23 08:57:20.000000000 +0100 +++ bsdmainutils-12.1.7+nmu4/debian/changelog 2021-06-10 13:50:06.000000000 +0200 @@ -1,3 +1,11 @@ +bsdmainutils (12.1.7+nmu4) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Remove unused __unused macro from freebsd.h that is causing FTBFS on musl. + (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Thu, 10 Jun 2021 13:50:06 +0200 + bsdmainutils (12.1.7+nmu3) unstable; urgency=medium * Non-maintainer upload. diff --minimal -Nru bsdmainutils-12.1.7+nmu3/freebsd.h bsdmainutils-12.1.7+nmu4/freebsd.h --- bsdmainutils-12.1.7+nmu3/freebsd.h 2018-01-30 11:07:30.000000000 +0100 +++ bsdmainutils-12.1.7+nmu4/freebsd.h 2021-06-10 13:49:50.000000000 +0200 @@ -3,6 +3,4 @@ #define __FBSDID(X) -#define __unused __attribute__((unused)) - #endif /* _FREEBSD_H_ */