1. It use multiple sanitizers 2. makefile try to execute rm -f /lib/security/pam_u2f.la Reproducible: Always Steps to Reproduce: 1. CC=clang 2. emerge sys-auth/pam_u2f 3. Actual Results: 1. /bin/sh ../libtool --tag=CC --mode=link clang -march=skylake -mtune=skylake -O3 -pipe -falign-functions=32 -fomit-frame-pointer -ffunction-sections -fdata-sections -flto=thin -Wl,--wrap=strdup -Wl,--wrap=calloc -fsanitize=fuzzer,address,signed-integer-overflow -fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind -flto=thin -Wl,-O3 -Wl,--gc-sections -march=skylake -mtune=skylake -O3 -pipe -falign-functions=32 -fomit-frame-pointer -ffunction-sections -fdata-sections -stdlib=libc++ -o fuzz_format_parsers fuzz_format_parsers.o -lpam -lfido2 -lcrypto -lcrypto -lpam 2. make install-exec-hook make[3]: Entering directory '/tmp/portage/sys-auth/pam_u2f-1.1.1/work/pam_u2f-1.1.1' rm -f /lib/security/pam_u2f.la * ACCESS DENIED: unlinkat: /lib/security/pam_u2f.la rm: cannot remove '/lib/security/pam_u2f.la': Permission denied make[3]: *** [Makefile:1210: install-exec-hook] Error 1 make[3]: Leaving directory '/tmp/portage/sys-auth/pam_u2f-1.1.1/work/pam_u2f-1.1.1' make[2]: *** [Makefile:1129: install-exec-am] Error 2 make[2]: Leaving directory '/tmp/portage/sys-auth/pam_u2f-1.1.1/work/pam_u2f-1.1.1' make[1]: *** [Makefile:1068: install-am] Error 2 make[1]: Leaving directory '/tmp/portage/sys-auth/pam_u2f-1.1.1/work/pam_u2f-1.1.1' make: *** [Makefile:758: install-recursive] Error 1
Created attachment 713220 [details] build.log
Created attachment 713223 [details] emerge --info
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a91d497a2780e4d8ea0cbb145ddea0e3ed8a570 commit 5a91d497a2780e4d8ea0cbb145ddea0e3ed8a570 Author: David Seifert <soap@gentoo.org> AuthorDate: 2021-06-02 10:33:33 +0000 Commit: David Seifert <soap@gentoo.org> CommitDate: 2021-06-02 10:33:33 +0000 sys-auth/pam_u2f: Fix install-exec-hook to respect DESTDIR Closes: https://bugs.gentoo.org/793797 Package-Manager: Portage-3.0.19, Repoman-3.0.3 Signed-off-by: David Seifert <soap@gentoo.org> sys-auth/pam_u2f/files/pam_u2f-1.1.1-fix-Makefile.patch | 13 +++++++++++++ sys-auth/pam_u2f/pam_u2f-1.1.1.ebuild | 9 ++------- 2 files changed, 15 insertions(+), 7 deletions(-)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3450c682f3907dc37bff7b08e2cc771747b8508f commit 3450c682f3907dc37bff7b08e2cc771747b8508f Author: David Seifert <soap@gentoo.org> AuthorDate: 2021-06-07 08:00:27 +0000 Commit: David Seifert <soap@gentoo.org> CommitDate: 2021-06-07 08:00:27 +0000 sys-auth/pam_u2f: upstream patch for DESTDIR fixes Closes: https://bugs.gentoo.org/793797 Package-Manager: Portage-3.0.19, Repoman-3.0.3 Signed-off-by: David Seifert <soap@gentoo.org> .../pam_u2f/files/pam_u2f-1.1.1-fix-Makefile.patch | 31 +++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-)