Bug#148546: dpkg-dev: dpkg-buildbackage shouldn't use if [-e]
Package: dpkg-dev
Version: 1.9.20
Severity: wishlist
Tags: patch
I'm trying to get dpkg-dev running on a Solaris 5.8 box and unfortunately its
/bin/sh is not POSIX 1002.3 compliant with respect to test. It does not
understand if -e.
So I suggest changing the line:
if [ -e $GNUPGHOME/secring.gpg -o -e $HOME/.gnupg/secring.gpg ] && \
command -v gpg > /dev/null 2>&1; then
to:
if /usr/bin/test -e $GNUPGHOME/secring.gpg -o -e $HOME/.gnupg/secring.gpg && \
command -v gpg > /dev/null 2>&1; then
The rest of dpkg-buildpackage seems to be working so far as I see now.
I know that it sucks that Solaris 5.8's /bin/sh is not POSIX compliant,
and allthough the change above doesn't make the code prettier it at
least makes it run on Solaris too.
It'd be nice to have it included for the "poor" Sun users ;-)
*t
-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux tpo2 2.4.16 #2 Fri Jan 4 18:17:17 CET 2002 i686
Locale: LANG=C, LC_CTYPE=C
Versions of packages dpkg-dev depends on:
ii binutils 2.12.90.0.1-4 The GNU assembler, linker and bina
ii cpio 2.4.2-39 GNU cpio -- a program to manage ar
ii make 3.79.1-14 The GNU version of the "make" util
ii patch 2.5.4-11 Apply a diff file to an original
ii perl [perl5] 5.6.1-7 Larry Wall's Practical Extraction
ii perl-modules 5.6.1-7 Core Perl modules.
--
To UNSUBSCRIBE, email to debian-dpkg-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: