On Thu, Sep 08, 2011 at 02:20:37PM -0400, Joey Hess wrote:
> Yann Dirson wrote:
> > > Why not just run "dh build-arch" in the build-arch target?
> > 
> > Ah, I think I'm starting to understand the big picture - that seems to
> > be OK for build-arch.
> > 
> > Now I'm still unclear about build-indep.  The original package
> > (3.6.0dfsg-1) does not separate them, and uses:
> > 
> > |override_dh_auto_build:
> > |build-arch:
> > |   dh_auto_build
> > |   dh_auto_build -- doc
> > |   docbook-to-man debian/tulip.sgml > debian/tulip.1
> > 
> > Intuitively, I'd like to use something like the following, which does
> > not appear to be possible AFAIU:
> > 
> > |override_dh_auto_build_indep:
> > |   dh_auto_build -- doc
> 
> This idea has been considered before and did not seem worth doing at the
> time. See #604563

Well, that was a long read :)

> All you seem to need is:
> 
> build-indep:
>       dh_auto_configure
>       make doc
>       docbook-to-man debian/tulip.sgml > debian/tulip.1

Hm, having configure step as part of the build actions, as opposed to
being actions of a configure-specific target like has been done since
a number of years, would probably be useful to mention in the dh
manpage.

In fact the list of supported sequences that one can get by calling
"dh foo" would be good to have in the manpage.  Similarly, the precise
relation between build/install/binary and their -arch/-indep
counterparts could be more precisely described: the discussion in
#604563 about whether the latter would be run in a row or not probably
shows that things are not easy.

And I do like Roger Leigh's "override_dh_auto_configure:
debian/build/config.status" idiom.  But appart that it could be good
to add to examples, too, I can't get it to work with cmake, since the
build dir is named obj-$some_undocumented_arch_var (variable which I
suspect to only be accessible from perl, correct ?)

> > And something similar is going to happen with install, with the
> > following I'd like to split in a similar way:
> > 
> > |override_dh_auto_install:
> > |   dh_auto_install
> > |   dh_auto_install -- -C docs
> > 
> > What do you think ?
> 
> install-indep:
>       dh_auto_install -- -C docs
>       dh install-indep

Ah... relying on the .debhelper.log files.  Takes time to assimilate
this idea as well - again sorely missing as a example :)

Best regards,
-- 
Yann



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to