[debhelper-devel] Bug#698054: debhelper: dh_install seems to call all executable debian/*.install files even with -p<package>

Joey Hess joeyh at debian.org
Sat Jan 25 19:43:43 UTC 2014

Axel Beckert wrote:
> the zsh source package builds its binary packages in (at least) two
> runs, one run for the normal packages and one run for the static
> package.
> I plan to make the zsh-static package using an executable
> debian/zsh-static.install and dh-exec to rename zsh to zsh5-static on
> the dh_install run:
> $ cat debian/zsh-static.install
> #!/usr/bin/dh-exec
> obj-static/Src/zsh => bin/zsh5-static
> $ ls -l debian/zsh-static.install
> -rwxr-xr-x 1 abe abe 57 Jan 13 15:47 debian/zsh-static.install*
> $ 
> Nevertheless dh_install seems to execute debian/zsh-static.install
> already when I'm only building the binary packages zsh, zsh-common and
> zsh-dbg:
> [...]
> dh_install -pzsh -pzsh-common -pzsh-dbg
> Copy failed: No such file or directory at /usr/share/dh-exec/dh-exec-install-rename line 29, <> line 1.
> dh_install: problem reading debian/zsh-static.install: 
> make: *** [binary-arch-dynamic] Error 2
> dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
> While this is possibly ok for non-executable install files, it's not ok
> for executable ones as debhelper doesn't know about the script's
> dependencies.
> So if any -p argument is present, please just call the executable
> install files for those packages which are listed with -p and not for
> any other to-be-built package.

That seems unlikely, given that the code is:

foreach $package (getpackages()) {
	@install=filedoublearray($file); # executation happens here

Where getpackages returns only the packages you told it to act on.

see shy jo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 811 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/debhelper-devel/attachments/20140125/4a655383/attachment-0004.sig>

More information about the debhelper-devel mailing list