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

Re: Long-term mass bug filing for crossbuild support



On Wed, Nov 07, 2007 at 09:43:34AM -0800, Russ Allbery wrote:
> Neil Williams <codehelp@debian.org> writes:
> > Russ Allbery <rra@debian.org> wrote:
> 
> >> This is a bad suggestion and was apparently made without referring to
> >> the existing Debian instructions for how to handle packages that use
> >> Autoconf and friends.
> 
> > Your assumption is wrong, I'm afraid. For one reason or another, I spend
> > a lot of time in the autofoo documentation. Must be crazy, yes, yes....
> 
> Well, then I'm even more mystified as to why you contradicted those
> instructions and told people not to pass --build to configure for
> non-cross-compile builds.
> 
> >> Please see the autotools-dev instructions, which are more
> >> detailed and which correctly recommend:
> >> 
> >> DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
> >> DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
> >> ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
> >>     SYSTEM = --build $(DEB_HOST_GNU_TYPE)
> >> else
> >>     SYSTEM = --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
> >> endif
> 
> > Actually, /usr/share/doc/autotools-dev/README.Debian.gz differs from
> > that by specifying $(confflags) instead of SYSTEM and using 'export'.
> 
> Sorry, you're entirely correct, and I shouldn't paste from one of my
> packages instead of from the actual documentation.  (And I should go add
> export, as that was there for a reason.  Mea culpa.)

How about making the snippet available in a .mk file that could just be
included, so that whenever there is an enhancement, everyone can take
advantage of it (but then, the snippet would need extra care to stay
compatible) ?

Mike



Reply to: