Bug#305432: [Pbuilder-maint] Bug#305432: pbuilder: Easier fix for the debsign failure

Junichi Uekawa dancer at netfort.gr.jp
Tue May 9 22:36:36 UTC 2006


Hi,

> > > I guess most reasonable fix is to make /var/cache/pbuilder/result/ as
> > > root:src 775 and document the requirement to include user who use
> > > pbuilder to be the part of src group.  Alternative fix is to chown
> > > /var/cache/pbuilder/result/ itself everytime pdebuild is run with the
> > > user account just like I did.
> > 
> > Thanks for the research.
> > 
> > I'm uncomfortable with making that change, and adding that
> > requirement.  I'd rather have debsign happen in ${PWD}/.., which
> > should be the default for pdebuild, and functional.
> 
> This may be a good good thought.
> 
> > Am I right in thinking that you only suffer the problem when you
> > invoke pbuilder directly?
> 
> Ah... I am invoking "pdebuild" which invokes debsign on a file located
> in root:root.
> 
> What pdebuild should do is that 
> * it should copy the file to be signed to $PWD or $HOME where directory
>   is writable by the user (may be somewhere under /tmp which is 
>   unreadable by the others) and 
> * it should sign it there and 
> * it should copy the signed file to to /var/cache/pbuilder/result/ and 
> * it should do"$SUDO chown $UID:$GID" on that file.

	pdebuild --buildresult ${PWD}/.. 
should work fine

I've checked, and confirmed that the problem exists.  I thought
otherwise but pdebuild currently defaults to system-wide buildresult.
pdebuild-internal defaults to ${PWD}/.. for buildresult, but I had
some other reasons about not making that default for pdebuild (people
get confused about changes file being corrupt, and other things like
that).

I'd like to document this and leave the user configure at own risk.

regards,
	junichi
-- 
dancer@{debian.org,netfort.gr.jp}   Debian Project




More information about the Pbuilder-maint mailing list