summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2020-05-16 19:34:42 +0200
committerAlfredo Tupone <tupone@gentoo.org>2020-05-16 19:34:42 +0200
commit24688d64544b43f2c14be54531ad8764419dde09 (patch)
tree45af070a40fa1d9a880bf0525012f57d32f63bc0 /net-print/cnijfilter2
parentapp-admin/glance: 20.0.0 ussuri bump (diff)
downloadgentoo-24688d64544b43f2c14be54531ad8764419dde09.tar.gz
gentoo-24688d64544b43f2c14be54531ad8764419dde09.tar.bz2
gentoo-24688d64544b43f2c14be54531ad8764419dde09.zip
net-print/cnijfilter2: fix compiling with fno-common
Closes: https://bugs.gentoo.org/723186 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'net-print/cnijfilter2')
-rw-r--r--net-print/cnijfilter2/cnijfilter2-5.80.ebuild1
-rw-r--r--net-print/cnijfilter2/files/cnijfilter2-5.80-fno-common.patch11
2 files changed, 12 insertions, 0 deletions
diff --git a/net-print/cnijfilter2/cnijfilter2-5.80.ebuild b/net-print/cnijfilter2/cnijfilter2-5.80.ebuild
index 4efba8cd2e1c..ec45c101ab1f 100644
--- a/net-print/cnijfilter2/cnijfilter2-5.80.ebuild
+++ b/net-print/cnijfilter2/cnijfilter2-5.80.ebuild
@@ -34,6 +34,7 @@ S="${WORKDIR}"/${MY_P}
PATCHES=(
"${FILESDIR}"/${PN}-5.70-gentoo.patch
"${FILESDIR}"/${P}-cflags.patch
+ "${FILESDIR}"/${P}-fno-common.patch
)
src_prepare() {
diff --git a/net-print/cnijfilter2/files/cnijfilter2-5.80-fno-common.patch b/net-print/cnijfilter2/files/cnijfilter2-5.80-fno-common.patch
new file mode 100644
index 000000000000..7374aa92fba9
--- /dev/null
+++ b/net-print/cnijfilter2/files/cnijfilter2-5.80-fno-common.patch
@@ -0,0 +1,11 @@
+--- a/lgmon3/src/cnijlgmon3.c 2020-05-16 19:28:03.585781655 +0200
++++ b/lgmon3/src/cnijlgmon3.c 2020-05-16 19:28:13.488625335 +0200
+@@ -55,7 +55,7 @@
+ int (*GET_STATUS)(char *, int, int *, int * , char *);
+ int (*GET_STATUS2)(char *, int, char *, int *, int * , char *, char *);
+ int (*GET_STATUS2_MAINTENANCE)(char *, int, char *, int *, int * , char *, char *);
+-int (*GET_PROTOCOL)(char *, size_t);
++static int (*GET_PROTOCOL)(char *, size_t);
+
+
+ int main(int argc, char *argv[])