Control: tags -1 moreinfo

Hi!

On Sat, 2018-05-05 at 11:58:31 -0700, Sean Whitton wrote:
> Package: dpkg
> File: /usr/share/perl5/Dpkg/Source/Package/V3/Quilt.pm
> Version: 1.19.0.5
> Severity: minor

> Dpkg::Source::Package::V3::Quilt unconditionally tries to chmod patches
> without checking whether the permissions it would set are already set on
> the patch:
> 
>         chmod(0666 & ~ umask(), $patch)
>             or syserr(g_("unable to change permission of '%s'"), $patch);
> 
> In my setup I sometimes want to build source packages from trees that
> are not owned by the user calling dpkg-source, so the chmod call fails.
> It would be nice if dpkg would check whether the chmod would do
> anything, and not try to call it if it would not.

The above call is part of the registering patch logic when there's an
untracked delta, so I'm having a bit of a hard time understanding how
the scenario presents itself? Also about building a source package on
a tree you have no write permissions on?

I'd appreciate some more detail on how you'd want to use this or how
you are using it now, and exactly how it fails, etc?

Thanks,
Guillem

Reply via email to