From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 20 Oct 2021 11:41:54 +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 1md86c-00074M-0I for lore@lore.pengutronix.de; Wed, 20 Oct 2021 11:41:54 +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 1md86b-0001sc-Fk; Wed, 20 Oct 2021 11:41:53 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1md84T-0007SG-2N; Wed, 20 Oct 2021 11:39:41 +0200 Received: from [2a0a:edc0:0:1101:1d::39] (helo=dude03.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1md84S-0005VE-HD; Wed, 20 Oct 2021 11:39:40 +0200 Received: from mol by dude03.red.stw.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1md84S-00GTZ3-EO; Wed, 20 Oct 2021 11:39:40 +0200 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Wed, 20 Oct 2021 11:39:40 +0200 Message-Id: <20211020093940.3926711-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211001081057.626382-1-l.stach@pengutronix.de> References: <20211001081057.626382-1-l.stach@pengutronix.de> MIME-Version: 1.0 Subject: Re: [ptxdist] [APPLIED] 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 Cc: Lucas Stach 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 Thanks, applied as 0f8aded7174ae8459e417c7c0b21d22c526bcb18. Michael [sent from post-receive hook] On Wed, 20 Oct 2021 11:39:40 +0200, Lucas Stach wrote: > Signed-off-by: Lucas Stach > Message-Id: <20211001081057.626382-1-l.stach@pengutronix.de> > Signed-off-by: Michael Olbrich > > 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 < + ## lock-obj-pub.$host.h - NO LOCK SUPPORT > +@@ -107,17 +99,17 @@ EOF > + # USE_LONG_DOUBLE_FOR_ALIGNMENT > + # > + > +-echo ${ECHO_N} "#define GPGRT_LOCK_INITIALIZER {$LOCK_ABI_VERSION,{{${ECHO_C}" > ++printf "%s" "#define GPGRT_LOCK_INITIALIZER {$LOCK_ABI_VERSION,{{" > + > + i=0 > + while test "$i" -lt $ac_mtx_size; do > + if test "$i" -ne 0 -a "$(( $i % 8 ))" -eq 0; then > + echo ' \' > +- echo ${ECHO_N} " ${ECHO_C}" > ++ printf "%s" " " > + fi > +- echo ${ECHO_N} "0${ECHO_C}" > ++ printf "%s" "0" > + if test "$i" -lt $(($ac_mtx_size - 1)); then > +- echo ${ECHO_N} ",${ECHO_C}" > ++ printf "%s" "," > + fi > + i=$(( i + 1 )) > + done > diff --git a/patches/libgpg-error-1.42/series b/patches/libgpg-error-1.42/series > new file mode 100644 > index 000000000000..fc21a0922fdc > --- /dev/null > +++ b/patches/libgpg-error-1.42/series > @@ -0,0 +1,4 @@ > +# generated by git-ptx-patches > +#tag:base --start-number 1 > +0001-fix-the-last-cross-compilation-fix.patch > +# a840af6993790b90121e652373747e0a - git-ptx-patches magic _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de