[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#922996: Bug#923176: stretch-pu: package ca-certificates-java/20170929~deb9u1



On Wed, Apr 10, 2019 at 09:49:02AM +0200, Andreas Beckmann wrote:
> Hi Tony,
> 
> do we have another error in the script?
> 
> Setting up ca-certificates-java (20170929~deb9u2) ...
> /var/lib/dpkg/info/ca-certificates-java.postinst: line 55: printf: -d: invalid option
> printf: usage: printf [-v var] format [arguments]
> Adding debian:TrustCor_RootCert_CA-2.pem
> Adding debian:TrustCor_RootCert_CA-1.pem
> ...
> 
> (noticed while looking for something different ..)

Hello Andreas,

Yes, and the error is due to this hunk in my patch:

> --- ca-certificates-java-20170929~deb9u1/debian/postinst.in	2019-02-11 04:14:23.000000000 -0800
> +++ ca-certificates-java-20170929~deb9u2/debian/postinst.in	2019-02-24 09:55:04.000000000 -0800
> @@ -52,7 +52,7 @@
>  
>      # Forcibly remove diginotar cert (LP: #920758)
>      if [ -n "$FIXOLD" ]; then
> -        echo -e "-diginotar_root_ca\n-diginotar_root_ca_pem" | \
> +        printf "-diginotar_root_ca\n-diginotar_root_ca_pem\n" | \
>          java -Xmx64m -jar $JAR -storepass "$storepass"
>      fi

I didn't realize that the behavior of printf varied between the shells.

- printf "-dfoo" fails in dash and ash, but not in bash or zsh, etc.
- printf '-dfoo' fails in dash and ash as well.
- printf -- "-dfoo" works as expected.

Sorry for the hassle and thank you for noticing this.

I will prepare another upload.

Cheers,
tony

Attachment: signature.asc
Description: PGP signature


Reply to: