1 |
commit: aa54defdb63192b456afa73dd309bf3efce19c76 |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 30 00:26:39 2022 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 30 00:28:07 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa54defd |
7 |
|
8 |
sys-apps/lsvpd: fix build with non-bash /bin/sh |
9 |
|
10 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
11 |
|
12 |
sys-apps/lsvpd/files/lsvpd-1.7.14-bashisms.patch | 35 ++++++++++++++++++++++++ |
13 |
sys-apps/lsvpd/lsvpd-1.7.14.ebuild | 2 ++ |
14 |
2 files changed, 37 insertions(+) |
15 |
|
16 |
diff --git a/sys-apps/lsvpd/files/lsvpd-1.7.14-bashisms.patch b/sys-apps/lsvpd/files/lsvpd-1.7.14-bashisms.patch |
17 |
new file mode 100644 |
18 |
index 000000000000..ca938a1b9ab6 |
19 |
--- /dev/null |
20 |
+++ b/sys-apps/lsvpd/files/lsvpd-1.7.14-bashisms.patch |
21 |
@@ -0,0 +1,35 @@ |
22 |
+From df4639ecd8b689eab1072e73fc918bb090e28c26 Mon Sep 17 00:00:00 2001 |
23 |
+From: Georgy Yakovlev <gyakovlev@g.o> |
24 |
+Date: Tue, 29 Nov 2022 16:18:14 -0800 |
25 |
+Subject: [PATCH] configure.ac: don't use bash syntax == |
26 |
+ |
27 |
+otherwise build fails to detect sg3_utils like this |
28 |
+ |
29 |
+./configure: 18016: test: xsgutils2: unexpected operator |
30 |
+./configure: 18024: test: xsgutils2: unexpected operator |
31 |
+ |
32 |
+and fails due to missing -lsgutils2 |
33 |
+/usr/lib/gcc/powerpc64le-unknown-linux-gnu/11.3.0/../../../../powerpc64le-unknown-linux-gnu/bin/ld: |
34 |
+sysfs_SCSI_Fill.cpp:(.text+0x3080): undefined reference to |
35 |
+`sg_ll_inquiry' |
36 |
+ |
37 |
+Signed-off-by: Georgy Yakovlev <gyakovlev@g.o> |
38 |
+--- |
39 |
+ configure.ac | 4 ++-- |
40 |
+ 1 file changed, 2 insertions(+), 2 deletions(-) |
41 |
+ |
42 |
+diff --git a/configure.ac b/configure.ac |
43 |
+index 034f9aa..bc00095 100644 |
44 |
+--- a/configure.ac |
45 |
++++ b/configure.ac |
46 |
+@@ -54,8 +54,8 @@ AC_CHECK_LIB(sgutils2,sg_lib_version, [SGUTILS_LIB="sgutils2"],[]) |
47 |
+ #AM_COND_IF([SGUTIL0], [], [ |
48 |
+ # echo "sgutils library is required for lsvpd" |
49 |
+ # exit 1 ]) |
50 |
+-AM_CONDITIONAL([SGUTIL1], [ test x$SGUTILS_LIB == xsgutils ]) |
51 |
+-AM_CONDITIONAL([SGUTIL2], [ test x$SGUTILS_LIB == xsgutils2 ]) |
52 |
++AM_CONDITIONAL([SGUTIL1], [ test x$SGUTILS_LIB = xsgutils ]) |
53 |
++AM_CONDITIONAL([SGUTIL2], [ test x$SGUTILS_LIB = xsgutils2 ]) |
54 |
+ PKG_CHECK_MODULES([LIBVPD2], [libvpd_cxx-2 >= 2.2.9],[],[ |
55 |
+ echo "VPD library(libvpd) version 2.2.9 is required for lsvpd" |
56 |
+ exit 1]) |
57 |
|
58 |
diff --git a/sys-apps/lsvpd/lsvpd-1.7.14.ebuild b/sys-apps/lsvpd/lsvpd-1.7.14.ebuild |
59 |
index 3e1d9c5a79f2..33804b281961 100644 |
60 |
--- a/sys-apps/lsvpd/lsvpd-1.7.14.ebuild |
61 |
+++ b/sys-apps/lsvpd/lsvpd-1.7.14.ebuild |
62 |
@@ -29,6 +29,8 @@ DEPEND="${RDEPEND} |
63 |
|
64 |
BDEPEND="" |
65 |
|
66 |
+PATCHES=( "${FILESDIR}/lsvpd-1.7.14-bashisms.patch" ) |
67 |
+ |
68 |
src_prepare() { |
69 |
default |
70 |
eautoreconf |