summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2020-05-23 13:56:49 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2020-05-23 14:12:09 +0200
commitf8a9560f2c35af8c6cb49a0db8c132c5cb2ed97c (patch)
treec17b7dde9e0e72f4bd875e094dd935d23516aaca /net-print
parentdev-perl/Class-Autouse: -r bump for EAPI7 (diff)
downloadgentoo-f8a9560f2c35af8c6cb49a0db8c132c5cb2ed97c.tar.gz
gentoo-f8a9560f2c35af8c6cb49a0db8c132c5cb2ed97c.tar.bz2
gentoo-f8a9560f2c35af8c6cb49a0db8c132c5cb2ed97c.zip
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 <asturm@gentoo.org>
Diffstat (limited to 'net-print')
-rw-r--r--net-print/epson-inkjet-printer-escpr/epson-inkjet-printer-escpr-1.7.7.ebuild5
-rw-r--r--net-print/epson-inkjet-printer-escpr/files/epson-inkjet-printer-escpr-1.7.7-fnocommon.patch11
2 files changed, 15 insertions, 1 deletions
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;