Debian Bug report logs - #1105011
libdebuginfod-common: Please drop bashism from debian/libdebuginfod-common.postinst

version graph

Package: libdebuginfod-common; Maintainer for libdebuginfod-common is Debian Elfutils Maintainers <[email protected]>; Source for libdebuginfod-common is src:elfutils (PTS, buildd, popcon).

Reported by: Nobuhiro Iwamatsu <[email protected]>

Date: Fri, 9 May 2025 22:15:01 UTC

Severity: minor

Tags: patch

Found in version elfutils/0.192-4

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Debian Elfutils Maintainers <[email protected]>:
Bug#1105011; Package libdebuginfod-common. (Fri, 09 May 2025 22:15:02 GMT) (full text, mbox, link).


Acknowledgement sent to Nobuhiro Iwamatsu <[email protected]>:
New Bug report received and forwarded. Copy sent to Debian Elfutils Maintainers <[email protected]>. (Fri, 09 May 2025 22:15:02 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Nobuhiro Iwamatsu <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: libdebuginfod-common: Please drop bashism from debian/libdebuginfod-common.postinst
Date: Sat, 10 May 2025 07:12:49 +0900
[Message part 1 (text/plain, inline)]
Package: libdebuginfod-common
Version: 0.192-4
Severity: minor
Tags: patch

Dear Maintainer,

debian/libdebuginfod-common.postinst depends on bash, but using
‘local foo; readonly foo’ instead of ‘local -r foo’ removes the bash dependency
and also works in dash.

```
$ checkbashisms debian/libdebuginfod-common.postinst
possible bashism in debian/libdebuginfod-common.postinst line 32 (local -opt):
    local -r OLDVER="$1"
[...]
```

Please drop bashism from debian/libdebuginfod-common.postinst.

Best regards,
  Nobuhiro

-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: armhf, arm64, i386, riscv64

Kernel: Linux 6.12.22-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libdebuginfod-common depends on:
ii  debconf [debconf-2.0]  1.5.91
ii  ucf                    3.0051

libdebuginfod-common recommends no packages.

libdebuginfod-common suggests no packages.

-- debconf information excluded
[0001-Drop-bashism-from-debian-libdebuginfod-common.postin.patch (application/mbox, attachment)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 16:32:46 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.