Package: pbuilder
Version: 0.124
Severity: minor
Tags: patch

Hello.

I'm enjoy to use pbuilder for testing package. Playing with
/usr/share/doc/pbuilder/example/B91dpkg-i i think it couldn't work,
because, the $PKGNAMES var, isn't set correctly.

the portion:

PKGNAMES=$(ls -1 /tmp/buildd/*.deb | sed 's/_.*$//' )

result in "/tmp/buildd/name", that is unusable later in the script (dpkg
--purge /tmp/buildd/whatever give an error).

I fixed with:

PKGNAMES=$(ls -1 /tmp/buildd/*.deb | sed 's/.\+\/\([^_]\+\)_.*$/\1/')

(kudos to Enrico Zini, that's skilled then me, on cryptical sed regexp)

that seems to work properly.

ie:
[EMAIL PROTECTED]:~$ ls -1 /tmp/buildd/*.deb | sed 's/_.*$//'
/tmp/buildd/polygen
[EMAIL PROTECTED]:~$ ls -1 /tmp/buildd/*.deb | sed 's/.\+\/\([^_]\+\)_.*$/\1/'
polygen

Plus, i suggest that could be useful inform user that is useful add 
BINDMOUNTS="/tmp"

in .pbuilderrc (i don't like hack around /etc/* if it isn't necessary).

With this var, i do:

pbuilder update (that create /tmp/buildd, if it isn't)
(cd into package source)
pdebuild (that create all the stuff in /tmp/buildd)
pbuilder execute B91dpkg-i (that test all the *.deb in /tmp/buildd)

Useful for me.
HTH.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages pbuilder depends on:
ii  coreutils                     5.2.1-2    The GNU core utilities
ii  debianutils                   2.13.2     Miscellaneous utilities specific t
ii  debootstrap                   0.2.45-0.2 Bootstrap a basic Debian system
ii  gcc                           4:3.3.5-3  The GNU C compiler
ii  wget                          1.9.1-10   retrieves files from the web

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to