Package: musl Version: 1.2.3-1 X-Debbugs-CC: Helmut Grohne <hel...@subdivi.de>
The crypt symbols are part of the musl libc ABI which enables binaries to be portable between systems where musl is installed, but debian removed these symbols (not just the headers). nm -D /lib/ld-musl-x86_64.so.1 |grep crypt should print crypt, crypt_r and decrypt symbols, but on debian the result is empty. attached a patch that should fix the issue.
diff --minimal -Nru musl-1.2.3/debian/changelog musl-1.2.3/debian/changelog --- musl-1.2.3/debian/changelog 2022-04-07 22:48:37.000000000 +0200 +++ musl-1.2.3/debian/changelog 2022-10-17 17:49:14.000000000 +0200 @@ -1,3 +1,10 @@ +musl (1.2.3-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Restore crypt functionality in libc.{a,so} for ABI compatibility. + + -- Helmut Grohne <hel...@subdivi.de> Mon, 17 Oct 2022 17:49:14 +0200 + musl (1.2.3-1) unstable; urgency=medium * New upstream release. diff --minimal -Nru musl-1.2.3/debian/clean musl-1.2.3/debian/clean --- musl-1.2.3/debian/clean 2021-08-21 12:05:49.000000000 +0200 +++ musl-1.2.3/debian/clean 2022-10-17 17:49:14.000000000 +0200 @@ -1,7 +1,5 @@ debian/musl-dev.postinst debian/musl-dev.postrm debian/scripts/*.path -include/crypt.h -src/crypt/ include/fts.h src/fts/ diff --minimal -Nru musl-1.2.3/debian/rules musl-1.2.3/debian/rules --- musl-1.2.3/debian/rules 2021-08-21 12:05:23.000000000 +0200 +++ musl-1.2.3/debian/rules 2022-10-17 17:49:14.000000000 +0200 @@ -73,7 +73,7 @@ dh_auto_configure -- --libdir=/usr/lib/$(MUSL_TRIPLE) --includedir=/usr/include/$(MUSL_TRIPLE) --host=$(DEB_HOST_GNU_TYPE) --enable-gcc-wrapper=$(GCC_WRAPPER) --enable-debug execute_after_dh_auto_install: - rm debian/tmp/usr/lib/$(MUSL_TRIPLE)/libcrypt.a + rm debian/tmp/usr/include/$(MUSL_TRIPLE)/crypt.h debian/tmp/usr/lib/$(MUSL_TRIPLE)/libcrypt.a execute_after_dh_install: ifeq ($(GCC_WRAPPER),yes)