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>
This commit is contained in:
Andreas Sturmlechner
2020-05-23 13:56:49 +02:00
parent 00551e1e3f
commit f8a9560f2c
2 changed files with 15 additions and 1 deletions

View File

@@ -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

View File

@@ -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;