Description: passwd/pwupdd: link against libcrypt
 CRYPT_r and crypt_checksalt are used by libcommon and referenced by the
 passwd and pwupdd executables, but libxcrypt was missing from their
 meson dependencies, causing "undefined reference to crypt_r" FTBFS on
 amd64. Add libcrypt to both targets' dependencies.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Forwarded: not-needed
Last-Update: 2026-08-27

--- account-utils-1.0.1.orig/meson.build
+++ account-utils-1.0.1/meson.build
@@ -162,7 +162,7 @@ executable('pwupdd',
            pwupdd_c,
            include_directories : inc,
 	   link_with : [libcommon, libpwaccess],
-	   dependencies : [libpam, libsystemd, libeconf, libselinux],
+	   dependencies : [libpam, libsystemd, libeconf, libselinux, libcrypt],
            install_dir : libexecdir,
            install : true)
 
@@ -205,7 +205,7 @@ executable('chsh', 'src/chsh.c',
 executable('passwd', 'src/passwd.c',
            include_directories : inc,
            link_with : [libclient, libcommon, libpwaccess],
-           dependencies : [libsystemd, libpam, libpam_misc, libeconf],
+           dependencies : [libsystemd, libpam, libpam_misc, libeconf, libcrypt],
            install : true)
 executable('expiry', 'src/expiry.c',
            include_directories : inc,

