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

Re: debian/rules override_dh_auto_build-indep



On Thu, Nov 10, 2011 at 10:19:28PM +0100, Mathieu Malaterre wrote:
> On Thu, Nov 10, 2011 at 12:14 PM, Roger Leigh <rleigh@codelibre.net> wrote:
> > On Thu, Nov 10, 2011 at 10:25:27AM +0100, Niels Thykier wrote:
> >> On 2011-11-10 08:20, Mathieu Malaterre wrote:
> >> >   I have been trying to split indep operations from the rest on the
> >> > activiz.net package, see:
> >> >
> >> > http://anonscm.debian.org/viewvc/debian-med/trunk/packages/activiz.net/trunk/debian/rules?view=markup
> >> >
> >> >   However the -indep rules are still being called on the buildd machine:
> >> >
> >> > Eg:
> >> >
> >> > http://buildd.debian-ports.org/status/fetch.php?pkg=activiz.net&arch=s390x&ver=5.6.1-2&stamp=1320869304
> >> >
> >> > [...]
> >> >
> >> > Am I missing something here ?
> >>
> >> This is one of the real issue behind the optional build-arch/build-indep
> >> targets; since they are optional dpkg-buildpackage/buildds do not use
> >> them.  Therefore, you cannot rely on them as a maintainer (yet).
> > [...]
> >
> > Agreed with all Niels comments.  Your source package is fine; the issue
> > is that dpkg-buildpackage (run by sbuild on the buildds) calls:
> >
> > debian/rules build
> > debian/rules binary-arch
> >
> > when it should be running
> > debian/rules build-arch
> > debian/rules binary-arch
> >
> > I wrote a patch to fix this some time back, and it was discussed by the
> > TC months ago.  I guess it needs chasing up to get it applied.  Once
> > that's done, it will Just Work.
> 
> buildd can make the decision to run build-indep, I am ok with it.
> What I am not ok with, is when buildd are setup to run build-indep
> rules, but do not respect B-D-I !
> That does not make any sense for me.

It doesn't make any sense because it /is/ broken, but we are trying
to rectify this.  Hopefully for the next Debian stable release, we'll
have a sane situation.  I've also got a separate dpkg patch to
introduce Build-Depends-Arch, so you will then be able to use
Build-Depends for generic depends e.g. debhelper, and move the
arch- and indep-specific deps into their own place.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.


Reply to: