Debian Bug report logs -
#468686
libpt-1.11.2-dev: bashism in /bin/sh script
Reported by: Raphael Geissert <atomo64@gmail.com>
Date: Fri, 29 Feb 2008 22:51:06 UTC
Severity: important
Found in version pwlib-titan/1.11.2-1.1
Done: Victor Seva Lopez <linuxmaniac@torreviejawireless.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded to Debian VoIP Team <pkg-voip-maintainers@lists.alioth.debian.org>:
Bug#468686; Package libpt-1.11.2-dev.
(full text, mbox, link).
Message #3 received at maintonly@bugs.debian.org (full text, mbox, reply):
Package: libpt-1.11.2-dev
Severity: important
Version: 1.11.2-1.1
User: debian-release@lists.debian.org
Usertags: goal-dash
Hello maintainer,
While performing an archive wide checkbashisms (from the 'devscripts' package)
check I've found your package containing a /bin/sh script making
use of a bashism.
checkbashisms' output:
> possible bashism in ./usr/bin/ptlib-config line 50 ($(OS|MACH)TYPE):
> echo $MACHTYPE
> possible bashism in ./usr/bin/ptlib-config line 53 ($(OS|MACH)TYPE):
> echo $OSTYPE
> possible bashism in ./usr/bin/ptlib-config line 73 ($(OS|MACH)TYPE):
> echo MACHTYPE = $MACHTYPE
> possible bashism in ./usr/bin/ptlib-config line 74 ($(OS|MACH)TYPE):
> echo OSTYPE = $OSTYPE
Not using bash as /bin/sh would lead to errors or unexpected behaviours.
Please be aware that although
bash is currently the default /bin/sh there's a release goal for Lenny to
make dash the default /bin/sh[1].
If you want more information about dash as /bin/sh, you can read:
http://lists.debian.org/debian-release/2008/01/msg00189.html
https://wiki.ubuntu.com/DashAsBinSh
[1]http://release.debian.org/lenny/goals.txt
Thank you,
--
Atomo64 - Raphael
Please avoid sending me Word, PowerPoint or Excel attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
Reply sent to Victor Seva Lopez <linuxmaniac@torreviejawireless.org>:
You have taken responsibility.
(full text, mbox, link).
Notification sent to Raphael Geissert <atomo64@gmail.com>:
Bug acknowledged by developer.
(full text, mbox, link).
Message #8 received at 468686-done@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
This is a false positive.
OSTYPE and MACHTYPE variables are defined inside the script. And they
are initialized on a portable way AFAIK (make/unix.mak):
ifndef OSTYPE
OSTYPE := $(shell uname -s)
endif
ifndef MACHTYPE
MACHTYPE := $(shell uname -m)
endif
--
-----------------------------------------------------------------
| ,''`. Victor Seva Lopez |
| : :' : mail/jabber: linuxmaniac@torreviejawireless.org |
| `. `' PGP key ID: 0xDD12F253 |
| `- http://linuxmaniac.torreviejawireless.org |
| Debian user, admin and contributor |
-----------------------------------------------------------------
[signature.asc (application/pgp-signature, attachment)]
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Fri, 02 May 2008 07:48:43 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Wed Jan 31 17:54:14 2024;
Machine Name:
bembo
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
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.