summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Michael <fedora.dm0@gmail.com>2021-03-26 09:10:15 -0400
committerLars Wendler <polynomial-c@gentoo.org>2021-03-26 14:15:31 +0100
commit0427b4fad29a1a5f8d5d60b02e5a8ef018061e91 (patch)
treef372420886631b6b5be71af547403d217b5ab240 /dev-libs/libgpg-error
parentmedia-fonts/umeplus-fonts: Drop 20160402 (diff)
downloadgentoo-0427b4fad29a1a5f8d5d60b02e5a8ef018061e91.tar.gz
gentoo-0427b4fad29a1a5f8d5d60b02e5a8ef018061e91.tar.bz2
gentoo-0427b4fad29a1a5f8d5d60b02e5a8ef018061e91.zip
dev-libs/libgpg-error: fix cross-compiling 1.42
Closes: https://bugs.gentoo.org/778410 Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'dev-libs/libgpg-error')
-rw-r--r--dev-libs/libgpg-error/files/libgpg-error-1.42-cross_compile.patch32
-rw-r--r--dev-libs/libgpg-error/libgpg-error-1.42.ebuild1
2 files changed, 33 insertions, 0 deletions
diff --git a/dev-libs/libgpg-error/files/libgpg-error-1.42-cross_compile.patch b/dev-libs/libgpg-error/files/libgpg-error-1.42-cross_compile.patch
new file mode 100644
index 000000000000..78d98dd7b3d1
--- /dev/null
+++ b/dev-libs/libgpg-error/files/libgpg-error-1.42-cross_compile.patch
@@ -0,0 +1,32 @@
+From 33593864cd54143db594c4237bba41e14179061c Mon Sep 17 00:00:00 2001
+From: David Michael <fedora.dm0@gmail.com>
+Date: Fri, 26 Mar 2021 16:06:50 +0900
+Subject: [PATCH] build: Fix generation of lock-obj-pub.native.h for cross
+ build.
+
+* src/gen-lock-obj.sh: Capture echo output with quotes.
+
+--
+
+Fixes-commit: 99ae862a96a569724f49a604ebb7d3f6d2c2d374
+Signed-off-by: David Michael <fedora.dm0@gmail.com>
+---
+ src/gen-lock-obj.sh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/gen-lock-obj.sh b/src/gen-lock-obj.sh
+index a710f0c..258eec6 100755
+--- a/src/gen-lock-obj.sh
++++ b/src/gen-lock-obj.sh
+@@ -38,7 +38,7 @@
+ # AWK=gawk ./gen-lock-obj.sh
+ #
+
+-if test -n `echo -n`; then
++if test -n "`echo -n`"; then
+ ECHO_C='\c'
+ ECHO_N=''
+ else
+--
+2.11.0
+
diff --git a/dev-libs/libgpg-error/libgpg-error-1.42.ebuild b/dev-libs/libgpg-error/libgpg-error-1.42.ebuild
index c6202ddd30fc..2d6c54abbf78 100644
--- a/dev-libs/libgpg-error/libgpg-error-1.42.ebuild
+++ b/dev-libs/libgpg-error/libgpg-error-1.42.ebuild
@@ -28,6 +28,7 @@ MULTILIB_WRAPPED_HEADERS=(
PATCHES=(
"${FILESDIR}/${PN}-1.37-remove_broken_check.patch"
+ "${FILESDIR}/${P}-cross_compile.patch"
)
src_prepare() {