[debhelper-devel] Bug#843910: cups-pdf FTCBFS: uses build architecture compiler

Helmut Grohne helmut at subdivi.de
Wed Nov 16 14:40:39 UTC 2016


On Wed, Nov 16, 2016 at 01:59:50PM +0200, Martin-Éric Racine wrote:
> I cannot help but wonder if setting CC for cross-build would be best
> handled by the build tools themselves, rather than compensated for by
> individual packages' debian/rules.

I'm inclined to agree, but you don't have a build system and that is
precisely why you need to handle this here. If cups-pdf was using a
Makefile, autotools or cmake, then dh_auto_* would just work (in most
cases). But since you are invoking the compiler from debian/rules
directly that's the place to set up CC.

Guillem Jover has a draft[1] for a file /usr/share/dpkg/buildtools.mk or
similar that would set up variables such as CC. Thus when that
materializes, you can replace my patch with including such a makefile.

Helmut

[1] https://lists.debian.org/20150510013227.GA24314@gaara.hadrons.org



More information about the debhelper-devel mailing list