> > I'm not sure if there should be a generic environmental variable
> > option or one specific to PATH.
> > 
> > I'm inclined to move the default-PATH-setting to a configuration
> > file rather than adding a yet-another-option.
> > 
> > Thoughts?
> 
> That would be fine with me.  In fact, it would be a better solution for
> me, since right now I have to use an ugly wrapper script to be able to
> run pbuilder from my normal user account that does:
> 
> sudo sh -c "export PATH=/usr/lib/ccache:$PATH; /usr/bin/pdebuild ..."
> 
> Otherwise, sudo or chroot (I forget which) will clobber the PATH anyway,
> even with my patch applied...


The following change should work fine, no?


--- pbuilder-buildpackage       21 Apr 2005 23:10:23 -0000      1.111
+++ pbuilder-buildpackage       20 Jun 2005 10:38:50 -0000
@@ -87,7 +87,6 @@
 fi
 
 echo " -> Building the package"
-export PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin"
 
 executehooks "A"
 
Index: pbuilderrc
===================================================================
RCS file: /home/dancer/CVSREPOSITORY/pbuilder/pbuilderrc,v
retrieving revision 1.33
diff -u -r1.33 pbuilderrc
--- pbuilderrc  13 Feb 2005 07:20:44 -0000      1.33
+++ pbuilderrc  20 Jun 2005 10:38:50 -0000
@@ -53,3 +53,6 @@
 # Set the debootstrap variant to 'buildd' type.
 DEBOOTSTRAPOPTS[0]='--variant=buildd'
 # unset DEBOOTSTRAPOPTS
+
+# Set the PATH I am going to use inside pbuilder: default is 
"/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin"
+export PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin"


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

Reply via email to