summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2020-04-13 20:23:49 +0200
committerAlfredo Tupone <tupone@gentoo.org>2020-04-13 20:23:49 +0200
commit5f4b367799f0fc945ff6399b985755088abe02b4 (patch)
tree46573daa34b83d97e7576964217e349ce7da774d /dev-tcltk
parentsci-mathematics/gfan: remove old "unused" version and patches. (diff)
downloadgentoo-5f4b367799f0fc945ff6399b985755088abe02b4.tar.gz
gentoo-5f4b367799f0fc945ff6399b985755088abe02b4.tar.bz2
gentoo-5f4b367799f0fc945ff6399b985755088abe02b4.zip
dev-tcltk/tkimg: build with fno-common
Closes: https://bugs.gentoo.org/706838 Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-tcltk')
-rw-r--r--dev-tcltk/tkimg/files/tkimg-1.4.9-fno-common.patch11
-rw-r--r--dev-tcltk/tkimg/tkimg-1.4.9.ebuild3
2 files changed, 13 insertions, 1 deletions
diff --git a/dev-tcltk/tkimg/files/tkimg-1.4.9-fno-common.patch b/dev-tcltk/tkimg/files/tkimg-1.4.9-fno-common.patch
new file mode 100644
index 000000000000..307dfe314375
--- /dev/null
+++ b/dev-tcltk/tkimg/files/tkimg-1.4.9-fno-common.patch
@@ -0,0 +1,11 @@
+--- a/libpng/pngtclDecls.h 2020-04-13 20:16:18.542559383 +0200
++++ b/libpng/pngtclDecls.h 2020-04-13 20:16:33.921314336 +0200
+@@ -1369,6 +1369,8 @@
+
+ #ifdef __cplusplus
+ extern "C" {
++#else
++extern
+ #endif
+ PNG_IMPEXP const PngtclStubs *pngtclStubsPtr;
+ #ifdef __cplusplus
diff --git a/dev-tcltk/tkimg/tkimg-1.4.9.ebuild b/dev-tcltk/tkimg/tkimg-1.4.9.ebuild
index d2c7d256208b..e5bccdee84c1 100644
--- a/dev-tcltk/tkimg/tkimg-1.4.9.ebuild
+++ b/dev-tcltk/tkimg/tkimg-1.4.9.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -42,6 +42,7 @@ PATCHES=(
"${WORKDIR}"/${PN}-1.4.7-png.patch
"${WORKDIR}"/${PN}-1.4.7-tiff.patch
"${FILESDIR}"/${PN}-1.4-jpeg-9.patch
+ "${FILESDIR}"/${P}-fno-common.patch
)
src_prepare() {