sys-fs/cryptsetup-2.0.4 will fail to build, when it's compiled for static and has enabled pwquality. I've submited an patch upstream: https://gitlab.com/cryptsetup/cryptsetup/issues/405
CCLD veritysetup.static /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib64/libcrypto.a(dso_dlfcn.o): In function `dlfcn_globallookup': (.text+0x12): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib64/libudev.a(util.o): In function `get_group_creds': (.text+0x21d3): warning: Using 'getgrgid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking (.text+0x221c): warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib64/libudev.a(util.o): In function `get_user_creds': (.text+0x20e3): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking (.text+0x2039): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib64/libpwquality.a(check.o): In function `pwquality_check': (.text+0x14cb): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking (.text+0x866): undefined reference to `FascistCheck' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:1511: veritysetup.static] Fehler 1 make[2]: Verzeichnis „/usr/portage/distfiles/cryptsetup-2.0.4“ wird verlassen make[1]: *** [Makefile:2218: all-recursive] Fehler 1 make[1]: Verzeichnis „/usr/portage/distfiles/cryptsetup-2.0.4“ wird verlassen make: *** [Makefile:1040: all] Fehler 2
Created attachment 543210 [details, diff] cryptsetup-2.0.4-fix-static-pwquality-build.patch
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9a0919b1961fa26f838d2fb69fb21247f5201f3 commit c9a0919b1961fa26f838d2fb69fb21247f5201f3 Author: Conrad Kostecki <conrad@kostecki.com> AuthorDate: 2018-08-12 15:33:56 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2018-08-13 06:42:33 +0000 sys-fs/cryptsetup: fix static pwquality build Closes: https://bugs.gentoo.org/663450 Package-Manager: Portage-2.3.45, Repoman-2.3.10 Closes: https://github.com/gentoo/gentoo/pull/9547 sys-fs/cryptsetup/cryptsetup-2.0.4-r1.ebuild | 130 +++++++++++++++++++++ ...yptsetup-2.0.4-fix-static-pwquality-build.patch | 18 +++ 2 files changed, 148 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62749b5a354d9db4f35cde93eea67cd912739e7d commit 62749b5a354d9db4f35cde93eea67cd912739e7d Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2021-09-17 16:31:17 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2021-09-17 16:33:15 +0000 sys-fs/cryptsetup: stop applying cryptsetup-2.0.4-fix-static-pwquality-build.patch According to upstream, this should not be needed in recent versions. https://gitlab.com/cryptsetup/cryptsetup/-/issues/405#note_105306216 Bug: https://bugs.gentoo.org/663450 Signed-off-by: Mike Gilbert <floppym@gentoo.org> sys-fs/cryptsetup/cryptsetup-2.4.1-r1.ebuild | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)