Created attachment 741804 [details] build.log /usr/share/apr/build/libtool --mode=link x86_64-pc-linux-gnu-gcc -pthread -march=core2 -freorder-blocks-and-partition -O2 -pipe -Wl,-O1 -Wl,--as-needed -o htpasswd htpasswd.lo passwd_common.lo -laprutil-1 -lexpat -lapr-1 -luuid -lrt -lpthread -ldl -lcrypt libtool: link: x86_64-pc-linux-gnu-gcc -pthread -march=core2 -freorder-blocks-and-partition -O2 -pipe -Wl,-O1 -o htdigest htdigest.o -Wl,--as-needed -laprutil-1 -lexpat -lapr-1 -luuid -lrt -lpthread -ldl -pthread /usr/share/apr/build/libtool --mode=link x86_64-pc-linux-gnu-gcc -pthread -march=core2 -freorder-blocks-and-partition -O2 -pipe -Wl,-O1 -Wl,--as-needed -o logresolve logresolve.lo -laprutil-1 -lexpat -lapr-1 -luuid -lrt -lpthread -ldl libtool: link: x86_64-pc-linux-gnu-gcc -pthread -march=core2 -freorder-blocks-and-partition -O2 -pipe -Wl,-O1 -o httxt2dbm httxt2dbm.o -Wl,--as-needed -laprutil-1 -lexpat -lapr-1 -luuid -lrt -lpthread -ldl -pthread libtool: link: x86_64-pc-linux-gnu-gcc -pthread -march=core2 -freorder-blocks-and-partition -O2 -pipe -Wl,-O1 -o htdbm htdbm.o passwd_common.o -Wl,--as-needed -laprutil-1 -lexpat -lapr-1 -luuid -lrt -lpthread -ldl -lcrypt -pthread /usr/share/apr/build/libtool --mode=link x86_64-pc-linux-gnu-gcc -pthread -march=core2 -freorder-blocks-and-partition -O2 -pipe -Wl,-O1 -Wl,--as-needed -o rotatelogs rotatelogs.lo -laprutil-1 -lexpat -lapr-1 -luuid -lrt -lpthread -ldl /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/libaprutil-1.so: undefined reference to `crypt_r' collect2: error: ld returned 1 exit status make[1]: *** [Makefile:82: httxt2dbm] Error 1 make[1]: *** Waiting for unfinished jobs.... /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/libaprutil-1.so: undefined reference to `crypt_r' libtool: link: x86_64-pc-linux-gnu-gcc -pthread -march=core2 -freorder-blocks-and-partition -O2 -pipe -Wl,-O1 -o htpasswd htpasswd.o passwd_common.o -Wl,--as-needed -laprutil-1 -lexpat -lapr-1 -luuid -lrt -lpthread -ldl -lcrypt -pthread collect2: error: ld returned 1 exit status make[1]: *** [Makefile:44: htdigest] Error 1 libtool: link: x86_64-pc-linux-gnu-gcc -pthread -march=core2 -freorder-blocks-and-partition -O2 -pipe -Wl,-O1 -o logresolve logresolve.o -Wl,--as-needed -laprutil-1 -lexpat -lapr-1 -luuid -lrt -lpthread -ldl -pthread libtool: link: x86_64-pc-linux-gnu-gcc -pthread -march=core2 -freorder-blocks-and-partition -O2 -pipe -Wl,-O1 -o rotatelogs rotatelogs.o -Wl,--as-needed -laprutil-1 -lexpat -lapr-1 -luuid -lrt -lpthread -ldl -pthread make[1]: Leaving directory '/var/tmp/portage/app-admin/apache-tools-2.4.48-r1/work/httpd-2.4.48/support' make: *** [/var/tmp/portage/app-admin/apache-tools-2.4.48-r1/work/httpd-2.4.48/build/rules.mk:75: all-recursive] Error 1 make: Leaving directory '/var/tmp/portage/app-admin/apache-tools-2.4.48-r1/work/httpd-2.4.48/support' * ERROR: app-admin/apache-tools-2.4.48-r1::gentoo failed (compile phase): * emake failed
I've noticed this a few times now on IRC (as well as infra), but first time I'd hit it myself. Before libxcrypt migration: $ pkg-config --libs libapr-1 -lapr-1 -luuid -lrt -lcrypt -lpthread -ldl During (at the broken state): $ pkg-config --libs libapr-1 -lapr-1 -luuid -lrt -lpthread -ldl After re-emerging libapr: $ pkg-config --libs libapr-1 -lapr-1 -luuid -lrt -lcrypt -lpthread -ldl dev-libs/apr seems to embed information about the environment at build time which other packages like dev-libs/apr-util then pick up, even if the information has then become stale.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1879cb6bf7e627f3667ab3b7d564cc11c5380e10 commit 1879cb6bf7e627f3667ab3b7d564cc11c5380e10 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-09-28 19:14:04 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-09-28 19:14:33 +0000 dev-libs/apr: add libcrypt subslot dependency to force rebuilds Needed to ensure our pkgconfig files we install aren't stale. Closes: https://bugs.gentoo.org/815265 Signed-off-by: Sam James <sam@gentoo.org> dev-libs/apr/{apr-1.6.3-r5.ebuild => apr-1.6.3-r6.ebuild} | 4 +++- dev-libs/apr/{apr-1.6.5-r2.ebuild => apr-1.6.5-r3.ebuild} | 4 +++- dev-libs/apr/{apr-1.7.0-r2.ebuild => apr-1.7.0-r3.ebuild} | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b72382bd0fa91cdfa39178ae2d662935bde1ebb1 commit b72382bd0fa91cdfa39178ae2d662935bde1ebb1 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-12-29 01:48:59 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-12-29 01:48:59 +0000 dev-libs/apr: libatomic workaround needed for mips too Bug: https://bugs.gentoo.org/815265 Reported-by: John Hansen <john@mrhansen.id.au> Signed-off-by: Sam James <sam@gentoo.org> dev-libs/apr/{apr-1.6.3-r6.ebuild => apr-1.6.3-r7.ebuild} | 2 +- dev-libs/apr/{apr-1.6.5-r3.ebuild => apr-1.6.5-r4.ebuild} | 2 +- dev-libs/apr/{apr-1.7.0-r3.ebuild => apr-1.7.0-r4.ebuild} | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)