[Build-common-hackers] cdbs configure-indep/arch

Matthias Klose doko at cs.tu-berlin.de
Wed Aug 16 17:17:49 UTC 2006


Peter Eisentraut writes:
> Matthias Klose wrote:
> > A configure file offers an option --without-docs, not building the
> > documentation of a package (which crashes on some architectures).
> > I can add two build pathes, and in the case when building binary-arch
> > and binary-indep, I have to build the package twice. Is there a way
> > to determine if I have to pass the --without-docs option to configure
> > in the first place?
> 
> I don't quite understand what you're after.  The way you've described 
> it, the question whether --without-docs should be passed depends on the 
> architecture.  Certainly you can do something like
> 
> ifneq (,$(findstring $(DEB_HOST_ARCH),m68k arm)
> DEB_CONFIGURE_EXTRA_FLAGS += --without-docs
> endif
> 
> This is a fairly typical procedure.

right, but I would have to know these architectures in advance.

> I'm not convinced, however, that that's what you're asking.

dpkg-buildpackage calls different targets, depending on the -B option;
(binary-arch or binary), but doesn't do anything like this for build
(even when building with -B, build is called, not build-arch).  So
maybe it's not possible what I do want to do.

  Matthias



More information about the Build-common-hackers mailing list