commit:     5f4b367799f0fc945ff6399b985755088abe02b4
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 13 18:23:49 2020 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Mon Apr 13 18:23:49 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f4b3677

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 <AT> gentoo.org>

 dev-tcltk/tkimg/files/tkimg-1.4.9-fno-common.patch | 11 +++++++++++
 dev-tcltk/tkimg/tkimg-1.4.9.ebuild                 |  3 ++-
 2 files changed, 13 insertions(+), 1 deletion(-)

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 00000000000..307dfe31437
--- /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 d2c7d256208..e5bccdee84c 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() {

Reply via email to