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

Osamu Aoki osamu at debian.org
Sun May 7 23:24:09 UTC 2006


On Mon, May 08, 2006 at 11:37:50PM +0900, Junichi Uekawa wrote:
> Hi,
> 
> > Package: pbuilder
> > Version: 0.152
> > Followup-For: Bug #305432
> > 
> > I faced the similar issue as the bug #305432.
> > 
> > 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.

Osamu





More information about the Pbuilder-maint mailing list