Hi,

My workplace still needs support for Etch, too, although we are
planning a transition to Lenny soon.  The patch that will let
pbuilder work for Etch chroots is really quite simple; what do
people think about it? :)

If the patch gets mangled by the mailing list or the BTS, it may
also be found at
http://devel.ringlet.net/devel/pbuilder/no-autoremove-on-etch.patch

Index: pbuilder-updatebuildenv
===================================================================
--- pbuilder-updatebuildenv     (revision 3790)
+++ pbuilder-updatebuildenv     (revision 3791)
@@ -45,7 +45,13 @@
 
 $TRAP saveaptcache_umountproc_cleanbuildplace_trap exit sighup
 $CHROOTEXEC /usr/bin/apt-get -y --force-yes "${force_confn...@]}" dist-upgrade
-$CHROOTEXEC /usr/bin/apt-get -y --force-yes autoremove
+aptver=`$CHROOTEXEC /usr/bin/dpkg-query -W -f '${Version}' apt`
+log "I: Obtained apt version $aptver"
+if [ -n "$aptver" ] && dpkg --compare-versions "$aptver" ge '0.7.6'; then
+    $CHROOTEXEC /usr/bin/apt-get -y --force-yes autoremove
+else
+    log "I: Skipping apt-get autoremove"
+fi
 $CHROOTEXEC /usr/bin/apt-get -y --force-yes install build-essential dpkg-dev 
apt aptitude $EXTRAPACKAGES
 save_aptcache

G'luck,
Peter

-- 
Peter Pentchev  r...@ringlet.net    r...@space.bg    r...@freebsd.org
PGP key:        http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
"yields falsehood, when appended to its quotation." yields falsehood, when 
appended to its quotation.

Attachment: pgp8PJ0y3fwYi.pgp
Description: PGP signature

Reply via email to