/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: ZipItem.o: in function `NArchive::NZip::CItem::GetUnicodeString(UString&, AString const&, bool, bool, unsigned int) const': ZipItem.cpp:(.text+0x5a9): undefined reference to `natspec_get_charset_by_locale' /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: ZipItem.cpp:(.text+0x5bf): undefined reference to `natspec_convert' collect2: error: ld returned 1 exit status Reproducible: Always Steps to Reproduce: 1. try to emerge p7zip-17.05-r1 with USE="natspec" 2. fail As a shot in the dark I added -lnatspec to LIBS in p7zip-17.05/CPP/7zip/Bundles/Alone/makefile and the build completed.
Thanks for the report! I see what's going on, the patch works to add it to makefile.machine, but then we overwrite the makefile later on depending on arch. I will update it to have ebuild add -lnatspec to the other arch makefiles.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2861b43fa9fdf0f2dfff1508647e5eae87f84d8d commit 2861b43fa9fdf0f2dfff1508647e5eae87f84d8d Author: Joe Kappus <joe@wt.gd> AuthorDate: 2023-04-14 19:34:03 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-04-16 06:49:06 +0000 app-arch/p7zip: fix natspec patch due to how we handle makefiles need to drop that part from patch and update the makefiles directly in ebuild. fixes build with natspec. Closes: https://bugs.gentoo.org/904332 Signed-off-by: Joe Kappus <joe@wt.gd> Closes: https://github.com/gentoo/gentoo/pull/30597 Signed-off-by: Sam James <sam@gentoo.org> app-arch/p7zip/files/p7zip-17.05-natspec.patch | 13 ------------- app-arch/p7zip/p7zip-17.05-r1.ebuild | 5 ++++- 2 files changed, 4 insertions(+), 14 deletions(-)