summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakov Smolic <jakov.smolic@sartura.hr>2020-12-28 12:50:14 +0100
committerDavid Seifert <soap@gentoo.org>2020-12-28 12:50:14 +0100
commit42a083cf5594e682bd1bb31d0abb08a13cac478b (patch)
tree3e2a672f553cd78faf3789b28f47743678abe42d /net-print
parentapp-text/barcode: Port to EAPI 7 (diff)
downloadgentoo-42a083cf5594e682bd1bb31d0abb08a13cac478b.tar.gz
gentoo-42a083cf5594e682bd1bb31d0abb08a13cac478b.tar.bz2
gentoo-42a083cf5594e682bd1bb31d0abb08a13cac478b.zip
net-print/pnm2ppa: fix build with gcc-10
* Thanks to Sam James for providing the patch link Closes: https://bugs.gentoo.org/707032 Package-Manager: Portage-3.0.9, Repoman-3.0.1 Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr> Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'net-print')
-rw-r--r--net-print/pnm2ppa/files/pnm2ppa-1.13-fno-common.patch26
-rw-r--r--net-print/pnm2ppa/pnm2ppa-1.13-r1.ebuild2
2 files changed, 28 insertions, 0 deletions
diff --git a/net-print/pnm2ppa/files/pnm2ppa-1.13-fno-common.patch b/net-print/pnm2ppa/files/pnm2ppa-1.13-fno-common.patch
new file mode 100644
index 000000000000..e12ba7ba246d
--- /dev/null
+++ b/net-print/pnm2ppa/files/pnm2ppa-1.13-fno-common.patch
@@ -0,0 +1,26 @@
+Taken from: https://sources.debian.org/patches/pnm2ppa/1.13-10/0005-Declare-syslog_message-correctly-for-GCC-10-FTBFS.patch
+Author: Zdenek Dohnal <zdohnal@redhat.com>
+--- a/ppa_syslog.h
++++ b/ppa_syslog.h
+@@ -39,7 +39,7 @@
+ #include <syslog.h>
+ #endif
+
+-char syslog_message[128];
++extern char syslog_message[128];
+ extern size_t message_size ;
+
+ void wrap_syslog( int, char *, char *);
+diff --git a/syslog.c b/syslog.c
+index 9b11c55..dccab91 100644
+--- a/syslog.c
++++ b/syslog.c
+@@ -31,6 +31,8 @@
+ #include "ppa_syslog.h"
+ #include "global.h"
+
++char syslog_message[128];
++
+ BOOLEAN verbose = false ;
+
+ /*
diff --git a/net-print/pnm2ppa/pnm2ppa-1.13-r1.ebuild b/net-print/pnm2ppa/pnm2ppa-1.13-r1.ebuild
index bab71f44628c..4cfb04d59fba 100644
--- a/net-print/pnm2ppa/pnm2ppa-1.13-r1.ebuild
+++ b/net-print/pnm2ppa/pnm2ppa-1.13-r1.ebuild
@@ -26,6 +26,8 @@ RDEPEND="
syslog? ( virtual/logger )"
DEPEND="${RDEPEND}"
+PATCHES=( "${FILESDIR}"/${P}-fno-common.patch )
+
src_configure() {
local lng i withval