Package: libcrypt-dev
Version: 1:4.4.18-4
Severity: important
Tags: patch

libcrypt.so has a different soname on alpha,
see #947606 and #953958 for background.

The change in 1:4.4.18-4 creates the symlink in debian/rules
in a way that the target does not exist on alpha breaking
linking with libcrypt.

Fix:

--- libxcrypt-4.4.18/debian/rules.old   2021-07-28 19:50:35.414070680 +0300
+++ libxcrypt-4.4.18/debian/rules       2021-07-28 19:50:38.422073011 +0300
@@ -100,7 +100,11 @@
        # libc6 package used to install it (see #953562 for details).
        mkdir -p $D/lib/$(DEB_HOST_MULTIARCH)
        mv $D/usr/lib/$(DEB_HOST_MULTIARCH)/libcrypt.so.1* 
$D/lib/$(DEB_HOST_MULTIARCH)/
+ifeq ($(DEB_HOST_ARCH), alpha)
+       ln -sf /lib/$(DEB_HOST_MULTIARCH)/libcrypt.so.1.1 
$D/usr/lib/$(DEB_HOST_MULTIARCH)/libcrypt.so
+else
        ln -sf /lib/$(DEB_HOST_MULTIARCH)/libcrypt.so.1 
$D/usr/lib/$(DEB_HOST_MULTIARCH)/libcrypt.so
+endif
 ifeq ($(BUILD_DEV_VER), 1)
        dh_movefiles -plibcrypt-dev --sourcedir=debian/libcrypt1/
 else

Reply via email to