diff options
Diffstat (limited to 'net-print')
-rw-r--r-- | net-print/pnm2ppa/files/pnm2ppa-1.13-fno-common.patch | 26 | ||||
-rw-r--r-- | net-print/pnm2ppa/pnm2ppa-1.13-r1.ebuild | 2 |
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 |