* [gentoo-commits] repo/gentoo:master commit in: sys-apps/lsvpd/files/, sys-apps/lsvpd/
@ 2022-11-30 0:28 Georgy Yakovlev
0 siblings, 0 replies; only message in thread
From: Georgy Yakovlev @ 2022-11-30 0:28 UTC (permalink / raw
To: gentoo-commits
commit: aa54defdb63192b456afa73dd309bf3efce19c76
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 30 00:26:39 2022 +0000
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Wed Nov 30 00:28:07 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa54defd
sys-apps/lsvpd: fix build with non-bash /bin/sh
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
sys-apps/lsvpd/files/lsvpd-1.7.14-bashisms.patch | 35 ++++++++++++++++++++++++
sys-apps/lsvpd/lsvpd-1.7.14.ebuild | 2 ++
2 files changed, 37 insertions(+)
diff --git a/sys-apps/lsvpd/files/lsvpd-1.7.14-bashisms.patch b/sys-apps/lsvpd/files/lsvpd-1.7.14-bashisms.patch
new file mode 100644
index 000000000000..ca938a1b9ab6
--- /dev/null
+++ b/sys-apps/lsvpd/files/lsvpd-1.7.14-bashisms.patch
@@ -0,0 +1,35 @@
+From df4639ecd8b689eab1072e73fc918bb090e28c26 Mon Sep 17 00:00:00 2001
+From: Georgy Yakovlev <gyakovlev@gentoo.org>
+Date: Tue, 29 Nov 2022 16:18:14 -0800
+Subject: [PATCH] configure.ac: don't use bash syntax ==
+
+otherwise build fails to detect sg3_utils like this
+
+./configure: 18016: test: xsgutils2: unexpected operator
+./configure: 18024: test: xsgutils2: unexpected operator
+
+and fails due to missing -lsgutils2
+/usr/lib/gcc/powerpc64le-unknown-linux-gnu/11.3.0/../../../../powerpc64le-unknown-linux-gnu/bin/ld:
+sysfs_SCSI_Fill.cpp:(.text+0x3080): undefined reference to
+`sg_ll_inquiry'
+
+Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
+---
+ configure.ac | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 034f9aa..bc00095 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -54,8 +54,8 @@ AC_CHECK_LIB(sgutils2,sg_lib_version, [SGUTILS_LIB="sgutils2"],[])
+ #AM_COND_IF([SGUTIL0], [], [
+ # echo "sgutils library is required for lsvpd"
+ # exit 1 ])
+-AM_CONDITIONAL([SGUTIL1], [ test x$SGUTILS_LIB == xsgutils ])
+-AM_CONDITIONAL([SGUTIL2], [ test x$SGUTILS_LIB == xsgutils2 ])
++AM_CONDITIONAL([SGUTIL1], [ test x$SGUTILS_LIB = xsgutils ])
++AM_CONDITIONAL([SGUTIL2], [ test x$SGUTILS_LIB = xsgutils2 ])
+ PKG_CHECK_MODULES([LIBVPD2], [libvpd_cxx-2 >= 2.2.9],[],[
+ echo "VPD library(libvpd) version 2.2.9 is required for lsvpd"
+ exit 1])
diff --git a/sys-apps/lsvpd/lsvpd-1.7.14.ebuild b/sys-apps/lsvpd/lsvpd-1.7.14.ebuild
index 3e1d9c5a79f2..33804b281961 100644
--- a/sys-apps/lsvpd/lsvpd-1.7.14.ebuild
+++ b/sys-apps/lsvpd/lsvpd-1.7.14.ebuild
@@ -29,6 +29,8 @@ DEPEND="${RDEPEND}
BDEPEND=""
+PATCHES=( "${FILESDIR}/lsvpd-1.7.14-bashisms.patch" )
+
src_prepare() {
default
eautoreconf
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-11-30 0:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-30 0:28 [gentoo-commits] repo/gentoo:master commit in: sys-apps/lsvpd/files/, sys-apps/lsvpd/ Georgy Yakovlev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox