commit:     cd06c9384096477b8dcfe3c12ec27f3c2c293d9d
Author:     Sebastian Pipping <sping <AT> gentoo <DOT> org>
AuthorDate: Fri Sep  2 13:05:57 2022 +0000
Commit:     Sebastian Pipping <sping <AT> gentoo <DOT> org>
CommitDate: Fri Sep  2 13:05:57 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd06c938

app-text/xmlstarlet: Fix compile for libdir "lib"

Closes: https://bugs.gentoo.org/830062
Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org>
Package-Manager: Portage-3.0.30, Repoman-3.0.3

 app-text/xmlstarlet/xmlstarlet-1.6.1.ebuild | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/app-text/xmlstarlet/xmlstarlet-1.6.1.ebuild 
b/app-text/xmlstarlet/xmlstarlet-1.6.1.ebuild
index 37ed9694ee5f..a234631ef8b8 100644
--- a/app-text/xmlstarlet/xmlstarlet-1.6.1.ebuild
+++ b/app-text/xmlstarlet/xmlstarlet-1.6.1.ebuild
@@ -28,9 +28,11 @@ src_prepare() {
        # linker lld with profile 17.1 on amd64 (see 
https://bugs.gentoo.org/729600).
        # The grep sandwich acts as a regression test so that a future
        # version bump cannot break patching without noticing.
-       grep -wq _PREFIX/lib m4/xstar-check-libs.m4 || die
-       sed "s,_PREFIX/lib,_PREFIX/$(get_libdir)," -i m4/xstar-check-libs.m4 || 
die
-       grep -w _PREFIX/lib m4/xstar-check-libs.m4 && die
+       if [[ $(get_libdir) != lib ]]; then
+           grep -wq _PREFIX/lib m4/xstar-check-libs.m4 || die
+           sed "s,_PREFIX/lib,_PREFIX/$(get_libdir)," -i 
m4/xstar-check-libs.m4 || die
+           grep -w _PREFIX/lib m4/xstar-check-libs.m4 && die
+       fi
 
        eautoreconf
 }

Reply via email to