Marc Haber wrote:
> dh_auto_install does not work too well for packages that build both
> architecture-dependent and architecture-independent packages from the
> same source. Since one cannot distinguish between the -i and the -a
> case in override_dh_auto_install, a workaround is needed, for example
> the one explained in
> http://lists.debian.org/debian-mentors/2011/04/msg00197.html
> 
> Please document this case in the dh or dh_auto_install man page, to
> make it official that this method is indeed valid and intended to be
> used, or implement/document another method to handle this case with
> debhelper 7+.

From the current man page:

       Sometimes, you may need to make an override target only run commands
       when a particular package is being built. This can be accomplished
       using dh_listpackages(1) to test what is being built. For example:

               #!/usr/bin/make -f
               %:
                       dh $@

               override_dh_fixperms:
                       dh_fixperms
               ifneq (,$(filter foo, $(shell dh_listpackages)))
                       chmod 4755 debian/foo/usr/bin/foo
               endif


-- 
see shy jo

Attachment: signature.asc
Description: Digital signature

Reply via email to