:: Re: [DNG] Odd issue with busybox dc…
Etusivu
Poista viesti
Vastaa
Lähettäjä: tito
Päiväys:  
Vastaanottaja: dng
Aihe: Re: [DNG] Odd issue with busybox dc in beowulf
On Thu, 29 Apr 2021 09:59:02 +0800
Brad Campbell via Dng <dng@???> wrote:

> G'day All,
>
> I've upgraded a staging server from Jessie to Beowulf and find a
> script in my initramfs is now broken, tracking it down it is a huge
> change in behaviour in the busybox version of dc and I can't find any
> reference to what I'm missing. Has anyone bumped up against this?
> I've tried this on both the arm and x64 versions and the behaviour is
> identical, so it's not an arm thing specifically.
>
> On jessie :
> brad@srv:~$ busybox dc
> 2
> 2
> add
> p
> 4
>
> On beowulf :
> root@rpi31:~# busybox dc
> 2
> 2
> add
> p
> ?
>
> What you can't see at the bottom of the last example is the rendering
> of the 0x02 character in the shell.
>
> The input processor also appears to have changed.
>
> brad@srv:~$ busybox dc
> 0x127
> p
> 295
>
> root@rpi31:~# busybox dc
> 0x127
> p
> 127
>
> Installed packages.
>
> root@rpi31:~# apt-cache showpkg busybox
> Package: busybox
> Versions:
> 1:1.30.1-4
> (/var/lib/apt/lists/deb.devuan.org_merged_dists_beowulf_main_binary-armhf_Packages)
> (/var/lib/dpkg/status) Description Language:
> File: /var/lib/apt/lists/deb.devuan.org_merged_dists_beowulf_main_binary-armhf_Packages
> MD5: b7707908219c331294f3f9e8d926a9dc Description Language: en
>                   File: /var/lib/apt/lists/deb.devuan.org_merged_dists_beowulf_main_i18n_Translation-en
>                    MD5: b7707908219c331294f3f9e8d926a9dc

>
>
> Reverse Depends:
>    initramfs-tools-core,busybox 1:1.22.0-17~
>    zfs-initramfs,busybox
>    udhcpd,busybox 1:1.30.1
>    udhcpc,busybox 1:1.30.1
>    open-iscsi,busybox
>    open-infrastructure-system-boot,busybox
>    live-boot-initramfs-tools,busybox
>    initramfs-tools-core,busybox 1:1.22.0-17~
>    busybox-syslogd,busybox 1:1.30.1
>    dropbear-initramfs,busybox
>    cryptsetup-initramfs,busybox
>    bootcd,busybox
>    busybox-static,busybox
>    busybox-static,busybox
> Dependencies:
> 1:1.30.1-4 - libc6 (2 2.28) busybox-static (0 (null)) initramfs-tools
> (3 0.99) busybox-static (0 (null)) Provides:
> 1:1.30.1-4 -
> Reverse Provides:
> busybox-static 1:1.30.1-4 (= )

>
>
> brad@srv:~$ apt-cache showpkg busybox
> Package: busybox
> Versions:
> 1:1.22.0-9+deb8u4 (/var/lib/dpkg/status)
>   Description Language:
>                   File: /var/lib/apt/lists/archive.devuan.org_merged_dists_jessie_main_binary-amd64_Packages
>                    MD5: b7707908219c331294f3f9e8d926a9dc
>   Description Language: en
>                   File: /var/lib/apt/lists/archive.devuan.org_merged_dists_jessie_main_i18n_Translation-en
>                    MD5: b7707908219c331294f3f9e8d926a9dc

>
> 1:1.22.0-9+deb8u1
> (/var/lib/apt/lists/archive.devuan.org_merged_dists_jessie_main_binary-amd64_Packages)
> Description Language:
> File: /var/lib/apt/lists/archive.devuan.org_merged_dists_jessie_main_binary-amd64_Packages
> MD5: b7707908219c331294f3f9e8d926a9dc Description Language: en
>                   File: /var/lib/apt/lists/archive.devuan.org_merged_dists_jessie_main_i18n_Translation-en
>                    MD5: b7707908219c331294f3f9e8d926a9dc

>
>
> Reverse Depends:
>    udhcpd,busybox 1:1.22.0
>    udhcpc,busybox 1:1.22.0
>    live-boot-initramfs-tools,busybox
>    initramfs-tools,busybox 1:1.01-3
>    initramfs-tools,busybox 1:1.01-3
>    cryptsetup,busybox
>    busybox-syslogd,busybox 1:1.22.0
>    busybox-static,busybox
>    busybox-static,busybox
>    bootcd,busybox
> Dependencies:
> 1:1.22.0-9+deb8u4 - libc6 (2 2.16) busybox-static (0 (null))
> initramfs-tools (3 0.99) busybox-static (0 (null)) 1:1.22.0-9+deb8u1
> - libc6 (2 2.16) busybox-static (0 (null)) initramfs-tools (3 0.99)
> busybox-static (0 (null)) Provides: 1:1.22.0-9+deb8u4 -
> 1:1.22.0-9+deb8u1 -
> Reverse Provides:
> busybox-static 1:1.22.0-9+deb8u1

>
> Am I doing something dumb?
>
> Regards,
> Brad
> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Hi,
the only changes in the last years in busybox's dc are:

    Commit message (Expand)    Author    Age    Files    Lines
*     timeout,top,watch,ping: parse NN.N fractional duration in locales with other ...    Gravatar Denys Vlasenko    2021-03-23    1    -0/+1
*     randomconfig fixes    Gravatar Denys Vlasenko    2020-12-29    1    -1/+1
*     decrease paddign: gcc-9.3.1 slaps 32-byte alignment on arrays willy-nilly    Gravatar Denys Vlasenko    2020-11-30    1    -1/+1
*     libbb: reduce the overhead of single parameter bb_error_msg() calls    Gravatar James Byrne    2019-07-02    1    -2/+2
*     dc: make 4 % 0 emit error messgaes and set result to 0    Gravatar Denys Vlasenko    2019-05-16    1    -7/+12
*     dc: code shrink    Gravatar Denys Vlasenko    2019-05-09    1    -6/+16


Could you take a look at them?

Ciao,
Tito