[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: debhelper 7 and architecture dependent/independent packages



Hi,

Marc Haber <mh+debian-mentors@zugschlus.de> writes:
> I have a package which builds one architecture dependent and one
> architecture independent binary package and uses dephelper 7. Due to
> the weird and kind of incomplete upstream build code, I had to
> override the dh_autoinstall target with an override_dh_auto_install
> target in my debian/rules.

I had similar problems myself and stopped using override_* targets for
commands that should only run when building the arch-indep packages.
Instead I now use

--8<---------------cut here---------------start------------->8---
%:
        dh $@

binary-indep:
        dh --before dh_install $@
        dh_install -i
        find debian/btanks-data/ -type f -print0 | xargs -0 chmod 0644 
        dh --remaining $@

binary: binary-arch binary-indep
--8<---------------cut here---------------end--------------->8---

(taken from btanks with the additional override_* targets stripped)

Regards,
Ansgar


Reply to: