summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-12-03 05:03:44 +0000
committerSam James <sam@gentoo.org>2022-12-03 06:06:07 +0000
commit3cad08617b6f983c8969713a3a0929d28aada094 (patch)
tree63af891050cf0c0dcad39d6df1b252303930b5b0 /net-print
parentapp-i18n/uim: add partial upstream link for clang 16 patch (diff)
downloadgentoo-3cad08617b6f983c8969713a3a0929d28aada094.tar.gz
gentoo-3cad08617b6f983c8969713a3a0929d28aada094.tar.bz2
gentoo-3cad08617b6f983c8969713a3a0929d28aada094.zip
net-print/cups-bjnp: fix configure w/ clang 16
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-print')
-rw-r--r--net-print/cups-bjnp/cups-bjnp-2.0.3-r1.ebuild32
-rw-r--r--net-print/cups-bjnp/files/cups-bjnp-2.0.3-configure-clang16.patch34
2 files changed, 66 insertions, 0 deletions
diff --git a/net-print/cups-bjnp/cups-bjnp-2.0.3-r1.ebuild b/net-print/cups-bjnp/cups-bjnp-2.0.3-r1.ebuild
new file mode 100644
index 000000000000..55fb1e8a2677
--- /dev/null
+++ b/net-print/cups-bjnp/cups-bjnp-2.0.3-r1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="CUPS backend for canon printers using proprietary USB over IP BJNP protocol"
+HOMEPAGE="https://sourceforge.net/projects/cups-bjnp/"
+SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+
+DEPEND="net-print/cups"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.0.3-configure-clang16.patch
+)
+
+src_prepare() {
+ default
+
+ # Clang 16
+ eautoreconf
+}
+
+src_configure() {
+ econf --disable-Werror
+}
diff --git a/net-print/cups-bjnp/files/cups-bjnp-2.0.3-configure-clang16.patch b/net-print/cups-bjnp/files/cups-bjnp-2.0.3-configure-clang16.patch
new file mode 100644
index 000000000000..e1d37445f89d
--- /dev/null
+++ b/net-print/cups-bjnp/files/cups-bjnp-2.0.3-configure-clang16.patch
@@ -0,0 +1,34 @@
+https://sourceforge.net/p/cups-bjnp/patches/5/
+--- a/acinclude.m4
++++ b/acinclude.m4
+@@ -25,9 +25,9 @@
+ #include <sys/socket.h> ], [
+ /* AF_INET6 available check */
+ if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
+- exit(1);
++ return 1;
+ else
+- exit(0);
++ return 0;
+ ],[
+ AC_MSG_RESULT(yes)
+ AC_DEFINE([ENABLE_IPV6], 1, [Define to 1 if the system supports IPv6])
+@@ -47,7 +47,7 @@
+ /* test if the ss_family member exists in struct sockaddr_storage */
+ struct sockaddr_storage ss;
+ ss.ss_family = AF_INET;
+- exit (0);
++ return 0;
+ ], [
+ AC_MSG_RESULT(yes)
+ AC_DEFINE([HAS_SS_FAMILY], 1, [Define to 1 if struct sockaddr_storage has an ss_family member])
+@@ -59,7 +59,7 @@
+ /* test if the __ss_family member exists in struct sockaddr_storage */
+ struct sockaddr_storage ss;
+ ss.__ss_family = AF_INET;
+- exit (0);
++ return 0;
+ ], [
+ AC_MSG_RESULT([no, but __ss_family exists])
+ AC_DEFINE([HAS___SS_FAMILY], 1, [Define to 1 if struct sockaddr_storage has __ss_family instead of ss_family])
+