[debhelper-devel] Bug#876246: gcc-7 fails to build fortran cross compiler since debhelper became strict about -p

Helmut Grohne helmut at subdivi.de
Wed Sep 20 06:34:16 UTC 2017

Source: gcc-7
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap
Control: block 795432 by -1

Hi Matthias,

debhelper 10.9 fixed #795432 and that makes building a fortran cross
compiler fail.

debian/rules.d/binary-fortran.mk says:

	dh_installdirs -p$(1) ...

The argument is the plain package name without $(cross_lib_arch), but it
needs to pass the transformed package name $(p_l) here. The following
command fixes that:

sed -i -e 's/ -p\$(1) / -p$(p_l) /' debian/rules.d/binary-fortran.mk

It seems to be isolated to just this one occurence. I didn't find any
others and after this fix, I can build fortran cross compilers again.


More information about the debhelper-devel mailing list