At Thu, 05 Jan 2006 19:44:54 +0200,
Lars Wirzenius wrote:
> 
> to, 2006-01-05 kello 08:37 +0900, Junichi Uekawa kirjoitti:
> > > Building a package with "sudo pbuilder build --buildtarget foo" puts
> > > files in foo that are owned by user 1234, group 1234 (neither of which
> > > exists on the system). (Without --buildtarget they are put
> > > in /var/cache/pbuilder/result, but the same uid/gid). This seems
> > > strange.
> > 
> > This is due to pbuilder now running inside fakeroot by default.  The
> > default value '1234' (randomly picked) can be anything that isn't used
> > by other user, so pbuilder session will have a hard time interacting
> > with outside of chroot.
> 
> I'm not sure I understand why the uid of the person who invoked pbuilder
> can't be used, or why pbuilder (which is run as root) can't chown the
> resulting files to the person who invoked it. (See $SUDO_UID and
> $SUDO_GID.)

Fixed up a bit more, and it's working:

with sudo:
[21:28:55]dancer64:pbuilder> ls -l /var/cache/pbuilder/result/pbuilder_0.144* 
-rw-r--r-- 1 dancer dancer    436 2006-01-06 21:28 
/var/cache/pbuilder/result/pbuilder_0.144.dsc
-rw-r--r-- 1 dancer dancer 262251 2006-01-06 21:28 
/var/cache/pbuilder/result/pbuilder_0.144.tar.gz
-rw-r--r-- 1 dancer dancer  74676 2006-01-06 21:28 
/var/cache/pbuilder/result/pbuilder_0.144_all.deb
-rw-r--r-- 1 dancer dancer    911 2006-01-06 21:28 
/var/cache/pbuilder/result/pbuilder_0.144_amd64.changes

with su:
[21:29:40]dancer64:pbuilder> ls -l /var/cache/pbuilder/result/pbuilder_0.144* 
-rw-r--r-- 1 root root    436 2006-01-06 21:30 
/var/cache/pbuilder/result/pbuilder_0.144.dsc
-rw-r--r-- 1 root root 262251 2006-01-06 21:30 
/var/cache/pbuilder/result/pbuilder_0.144.tar.gz
-rw-r--r-- 1 root root  74682 2006-01-06 21:30 
/var/cache/pbuilder/result/pbuilder_0.144_all.deb
-rw-r--r-- 1 root root    911 2006-01-06 21:30 
/var/cache/pbuilder/result/pbuilder_0.144_amd64.changes

regards,
        junichi
-- 
[EMAIL PROTECTED],netfort.gr.jp}   Debian Project


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

Reply via email to