Bug#703941: -p (path) option clashes with generic debhelper -p (package) option

Simon McVittie smcv at debian.org
Mon Oct 30 09:43:55 UTC 2017


On Tue, 26 Mar 2013 at 00:27:07 +0100, Michael Biebl wrote:
> Using -p as option to specify the path is a poor choice since it clashes
> with the generic -p option which is used to specify the package.
> 
> Looking at e.g. gnome-shell's debian/rules, I'm actually not sure what
> the result of this call will be:
> dh_girepository -p$(cdbs_curpkg) -l src -p /usr/lib/mutter

The answer seems to be that -p is always interpreted as dh_girepository's
local -p option, and the second -p overwrites the first, so it's
equivalent to dh_girepository -l src -p /usr/lib/mutter. To get the
effect that was intended, write:
    dh_girepository --package=$(cdbs_curpkg) -l src -p /usr/lib/mutter

Regards,
    smcv



More information about the pkg-gnome-maintainers mailing list