mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Lucas Stach <l.stach@pengutronix.de>
Subject: Re: [ptxdist] [APPLIED] libgpg-error: fix echo behavior related build issue
Date: Wed, 20 Oct 2021 11:39:40 +0200	[thread overview]
Message-ID: <20211020093940.3926711-1-m.olbrich@pengutronix.de> (raw)
In-Reply-To: <20211001081057.626382-1-l.stach@pengutronix.de>

Thanks, applied as 0f8aded7174ae8459e417c7c0b21d22c526bcb18.

Michael

[sent from post-receive hook]

On Wed, 20 Oct 2021 11:39:40 +0200, Lucas Stach <l.stach@pengutronix.de> wrote:
> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
> Message-Id: <20211001081057.626382-1-l.stach@pengutronix.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> 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 <l.stach@pengutronix.de>
> +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 <l.stach@pengutronix.de>
> +---
> + 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 <<EOF
> + ## 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


      reply	other threads:[~2021-10-20  9:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-01  8:10 [ptxdist] [PATCH] " Lucas Stach
2021-10-20  9:39 ` Michael Olbrich [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211020093940.3926711-1-m.olbrich@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=l.stach@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox