From f8a9560f2c35af8c6cb49a0db8c132c5cb2ed97c Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Sat, 23 May 2020 13:56:49 +0200 Subject: [PATCH] net-print/epson-inkjet-printer-escpr: Fix build with -fno-common Closes: https://bugs.gentoo.org/707248 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Andreas Sturmlechner --- .../epson-inkjet-printer-escpr-1.7.7.ebuild | 5 ++++- .../epson-inkjet-printer-escpr-1.7.7-fnocommon.patch | 11 +++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 net-print/epson-inkjet-printer-escpr/files/epson-inkjet-printer-escpr-1.7.7-fnocommon.patch diff --git a/net-print/epson-inkjet-printer-escpr/epson-inkjet-printer-escpr-1.7.7.ebuild b/net-print/epson-inkjet-printer-escpr/epson-inkjet-printer-escpr-1.7.7.ebuild index 1e0db2c8f85a..5407e22e9813 100644 --- a/net-print/epson-inkjet-printer-escpr/epson-inkjet-printer-escpr-1.7.7.ebuild +++ b/net-print/epson-inkjet-printer-escpr/epson-inkjet-printer-escpr-1.7.7.ebuild @@ -14,7 +14,10 @@ KEYWORDS="amd64 ~ppc64" DEPEND="net-print/cups" RDEPEND="${DEPEND}" -PATCHES=( "${FILESDIR}/1.6.5-warnings.patch" ) +PATCHES=( + "${FILESDIR}/1.6.5-warnings.patch" + "${FILESDIR}/${P}-fnocommon.patch" +) src_configure() { econf --disable-shared diff --git a/net-print/epson-inkjet-printer-escpr/files/epson-inkjet-printer-escpr-1.7.7-fnocommon.patch b/net-print/epson-inkjet-printer-escpr/files/epson-inkjet-printer-escpr-1.7.7-fnocommon.patch new file mode 100644 index 000000000000..e2e35719ca8f --- /dev/null +++ b/net-print/epson-inkjet-printer-escpr/files/epson-inkjet-printer-escpr-1.7.7-fnocommon.patch @@ -0,0 +1,11 @@ +--- a/src/filter.c 2020-05-23 13:50:19.064756474 +0200 ++++ b/src/filter.c 2020-05-23 13:53:01.936647646 +0200 +@@ -68,7 +68,7 @@ + extern EPS_UINT8* tmpLineBuf; + + extern EPS_CMN_FUNC epsCmnFnc; +-EPS_JOB_FUNCS jobFnc; ++extern EPS_JOB_FUNCS jobFnc; + + extern EPS_INT32 tonerSave; + extern EPS_INT32 back_type; -- 2.26.2