From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 01 Oct 2021 10:11:30 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mWDdi-0005t0-5g for lore@lore.pengutronix.de; Fri, 01 Oct 2021 10:11:30 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mWDdh-0007UX-OC; Fri, 01 Oct 2021 10:11:29 +0200 Received: from dude02.hi.pengutronix.de ([2001:67c:670:100:1d::28] helo=dude02.pengutronix.de.) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mWDdB-0007UH-II for ptxdist@pengutronix.de; Fri, 01 Oct 2021 10:10:57 +0200 From: Lucas Stach To: ptxdist@pengutronix.de Date: Fri, 1 Oct 2021 10:10:57 +0200 Message-Id: <20211001081057.626382-1-l.stach@pengutronix.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Subject: [ptxdist] [PATCH] libgpg-error: fix echo behavior related build issue X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Signed-off-by: Lucas Stach --- ...1-fix-the-last-cross-compilation-fix.patch | 55 +++++++++++++++++++ patches/libgpg-error-1.42/series | 4 ++ 2 files changed, 59 insertions(+) create mode 100644 patches/libgpg-error-1.42/0001-fix-the-last-cross-compilation-fix.patch create mode 100644 patches/libgpg-error-1.42/series diff --git a/patches/libgpg-error-1.42/0001-fix-the-last-cross-compilation-fix.patch b/patches/libgpg-error-1.42/0001-fix-the-last-cross-compilation-fix.patch new file mode 100644 index 000000000000..6776ff10fc7b --- /dev/null +++ b/patches/libgpg-error-1.42/0001-fix-the-last-cross-compilation-fix.patch @@ -0,0 +1,55 @@ +From: Lucas Stach +Date: Sat, 11 Sep 2021 01:52:35 +0200 +Subject: [PATCH] fix the last cross-compilation fix + +Instead of trying to figure out which way to call echo in order to supress +the newline and apparently getting it wrong on some platforms (on a Fedora +build host compilation fails due to stray \c characters in the generated +files) use the POSIX recommended portable way of calling printf. + +Signed-off-by: Lucas Stach +--- + src/gen-lock-obj.sh | 16 ++++------------ + 1 file changed, 4 insertions(+), 12 deletions(-) + +diff --git a/src/gen-lock-obj.sh b/src/gen-lock-obj.sh +index a710f0ccee5a..aea9edb6095a 100755 +--- a/src/gen-lock-obj.sh ++++ b/src/gen-lock-obj.sh +@@ -38,14 +38,6 @@ + # AWK=gawk ./gen-lock-obj.sh + # + +-if test -n `echo -n`; then +- ECHO_C='\c' +- ECHO_N='' +-else +- ECHO_C='' +- ECHO_N='-n' +-fi +- + if test "$1" = --disable-threads; then + cat <