1 |
commit: 44c7a0fe5dc521f4d7e9fb1525d51639f1f563c2 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 31 05:07:50 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 31 05:07:50 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44c7a0fe |
7 |
|
8 |
net-print/libinklevel: fix autoconf 2.70+ compatibility |
9 |
|
10 |
Closes: https://bugs.gentoo.org/750173 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
.../files/libinklevel-0.9.2-autoconf-2.70.patch | 51 ++++++++++++++++++++++ |
14 |
net-print/libinklevel/libinklevel-0.9.2.ebuild | 4 ++ |
15 |
2 files changed, 55 insertions(+) |
16 |
|
17 |
diff --git a/net-print/libinklevel/files/libinklevel-0.9.2-autoconf-2.70.patch b/net-print/libinklevel/files/libinklevel-0.9.2-autoconf-2.70.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..462f23eb73b |
20 |
--- /dev/null |
21 |
+++ b/net-print/libinklevel/files/libinklevel-0.9.2-autoconf-2.70.patch |
22 |
@@ -0,0 +1,51 @@ |
23 |
+https://sources.debian.org/patches/libinklevel/0.9.3-3/0001-configure.ac-fix-ftbfs-with-autoconf2.70.patch/ |
24 |
+https://bugs.gentoo.org/750173 |
25 |
+ |
26 |
+From: Boyuan Yang <byang@××××××.org> |
27 |
+Date: Sat, 16 Jan 2021 11:03:56 -0500 |
28 |
+Subject: configure.ac: fix ftbfs with autoconf2.70 |
29 |
+ |
30 |
+Applied-Upstream: email, yes |
31 |
+--- a/configure.ac |
32 |
++++ b/configure.ac |
33 |
+@@ -12,7 +12,7 @@ ABI_VERSION=5:0:0 |
34 |
+ |
35 |
+ dnl no more configuration after this line |
36 |
+ |
37 |
+-AC_CONFIG_SRCDIR(libinklevel.c) |
38 |
++AC_CONFIG_SRCDIR([libinklevel.c]) |
39 |
+ |
40 |
+ ## Determine hostname & OS |
41 |
+ ## AC_CANONICAL_HOST |
42 |
+@@ -77,9 +77,9 @@ AC_CHECK_HEADERS([ifaddrs.h]) |
43 |
+ |
44 |
+ ## Check for mandatory header files |
45 |
+ |
46 |
+-AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h \ |
47 |
++AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h \ |
48 |
+ sys/ioctl.h sys/socket.h sys/time.h sys/timeb.h wchar.h ] |
49 |
+- ,,AC_MSG_ERROR( required header file missing )) |
50 |
++ ,,AC_MSG_ERROR([required header file missing])) |
51 |
+ |
52 |
+ ## determine libraries that need to get linked |
53 |
+ |
54 |
+@@ -96,7 +96,7 @@ AC_CHECK_FUNCS([getifaddrs]) |
55 |
+ AC_CHECK_FUNCS([alarm ftime gethostbyaddr gethostbyname gettimeofday inet_ntoa \ |
56 |
+ memset select socket strchr strdup strerror strncasecmp strstr \ |
57 |
+ gethostname] |
58 |
+- ,,AC_MSG_ERROR( required library function missing )) |
59 |
++ ,,AC_MSG_ERROR([required library function missing])) |
60 |
+ AC_FUNC_MALLOC |
61 |
+ AC_FUNC_REALLOC |
62 |
+ AC_HEADER_RESOLV |
63 |
+@@ -117,8 +117,8 @@ case $host in |
64 |
+ PKG_CHECK_MODULES([LIBUSB1], [libusb-1.0]);; |
65 |
+ |
66 |
+ *-freebsd*) AC_DEFINE_UNQUOTED(HOST_OS,FREEBSD,[Host OS]) |
67 |
+- AC_CHECK_LIB([usb], libusb_init,, AC_MSG_ERROR(Library not found),);; |
68 |
+- *-*-*) AC_MSG_ERROR( Host OS not (yet) supported) ;; |
69 |
++ AC_CHECK_LIB([usb], libusb_init,, AC_MSG_ERROR([Library not found]),);; |
70 |
++ *-*-*) AC_MSG_ERROR([Host OS not (yet) supported]) ;; |
71 |
+ esac |
72 |
+ |
73 |
+ ## Variables to be exported |
74 |
|
75 |
diff --git a/net-print/libinklevel/libinklevel-0.9.2.ebuild b/net-print/libinklevel/libinklevel-0.9.2.ebuild |
76 |
index b6fb5ca58d7..59afe1969cd 100644 |
77 |
--- a/net-print/libinklevel/libinklevel-0.9.2.ebuild |
78 |
+++ b/net-print/libinklevel/libinklevel-0.9.2.ebuild |
79 |
@@ -21,6 +21,10 @@ RDEPEND="${DEPEND}" |
80 |
|
81 |
S="${WORKDIR}/${MY_P}" |
82 |
|
83 |
+PATCHES=( |
84 |
+ "${FILESDIR}"/${PN}-0.9.2-autoconf-2.70.patch |
85 |
+) |
86 |
+ |
87 |
src_prepare() { |
88 |
sed -i -e "/^dist_doc_DATA/d" Makefile.am \ |
89 |
|| die "Failed to disable installation of docs" |