diff options
author | Joe Kappus <joe@wt.gd> | 2023-04-14 15:34:03 -0400 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-04-16 07:49:06 +0100 |
commit | 2861b43fa9fdf0f2dfff1508647e5eae87f84d8d (patch) | |
tree | 4b541c71ef63325fe2a3e820e066c942e3263d35 /app-arch/p7zip | |
parent | www-servers/sniproxy: Add missing remote-id in metadata (diff) | |
download | gentoo-2861b43fa9fdf0f2dfff1508647e5eae87f84d8d.tar.gz gentoo-2861b43fa9fdf0f2dfff1508647e5eae87f84d8d.tar.bz2 gentoo-2861b43fa9fdf0f2dfff1508647e5eae87f84d8d.zip |
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>
Diffstat (limited to 'app-arch/p7zip')
-rw-r--r-- | app-arch/p7zip/files/p7zip-17.05-natspec.patch | 13 | ||||
-rw-r--r-- | app-arch/p7zip/p7zip-17.05-r1.ebuild | 5 |
2 files changed, 4 insertions, 14 deletions
diff --git a/app-arch/p7zip/files/p7zip-17.05-natspec.patch b/app-arch/p7zip/files/p7zip-17.05-natspec.patch index 45f24559a4c8..7487924af306 100644 --- a/app-arch/p7zip/files/p7zip-17.05-natspec.patch +++ b/app-arch/p7zip/files/p7zip-17.05-natspec.patch @@ -115,16 +115,3 @@ index 353e895..44071f3 100644 if (isUtf8) if (ConvertUTF8ToUnicode(s, res) || ignore_Utf8_Errors) return; -diff --git a/makefile.machine b/makefile.machine -index a89b568..3e12592 100644 ---- a/makefile.machine -+++ b/makefile.machine -@@ -16,7 +16,7 @@ CC=gcc - CC_SHARED=-fPIC - LINK_SHARED=-fPIC -shared - --LOCAL_LIBS=-lpthread -+LOCAL_LIBS=-lpthread -lnatspec - LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl - - OBJ_CRC32=$(OBJ_CRC32_C) diff --git a/app-arch/p7zip/p7zip-17.05-r1.ebuild b/app-arch/p7zip/p7zip-17.05-r1.ebuild index dbb6ca8a3567..f07d678263c8 100644 --- a/app-arch/p7zip/p7zip-17.05-r1.ebuild +++ b/app-arch/p7zip/p7zip-17.05-r1.ebuild @@ -25,7 +25,10 @@ BDEPEND=" src_prepare() { default - use natspec && eapply "${FILESDIR}"/${P}-natspec.patch + if use natspec; then + eapply "${FILESDIR}"/${P}-natspec.patch + sed -i '/^LOCAL_LIBS/s/$/ -lnatspec/' makefile.* || die + fi if ! use pch; then sed "s:PRE_COMPILED_HEADER=StdAfx.h.gch:PRE_COMPILED_HEADER=:g" -i makefile.* || die |