The cross-compiler version of gcc now fails to build because the rules in
the packaging phase are looking for files with "<arch>-linux-gnu" in
their names, but they are created with just "<arch>-linux".

The following patch, when applied after doing "tpkg-make", overrides the
DEB_TARGET_GNU_TYPE and makes it work. It could be incorporated into the
template-gcc.tgz skeleton, too.  I'm not sure whether this approach is
really the right way, but for now it gives me working cross-compilers.

It looks like there is logic further down in rules.defs that's trying
to take care of this (setting TP, TS, etc.), but the problem seems to
be that the *_files variables in rules.d/*-cross.mk reference
$(DEB_TARGET_GNU_TYPE) directly, so the dh_movefiles commands fail.

--- gcc-powerpc-linux-3.4.3/debian/rules.defs~  2005-08-16 19:40:36.000000000 
-0400
+++ gcc-powerpc-linux-3.4.3/debian/rules.defs   2005-08-16 19:39:54.000000000 
-0400
@@ -33,8 +33,7 @@
                        -a$(DEB_TARGET_ARCH) -qDEB_HOST_GNU_CPU 2>/dev/null)
 DEB_TARGET_GNU_SYSTEM  := $(shell dpkg-architecture -f \
                        -a$(DEB_TARGET_ARCH) -qDEB_HOST_GNU_SYSTEM 2>/dev/null)
-DEB_TARGET_GNU_TYPE    := $(shell dpkg-architecture -f \
-                       -a$(DEB_TARGET_ARCH) -qDEB_HOST_GNU_TYPE 2>/dev/null)
+DEB_TARGET_GNU_TYPE    := $(DEB_TARGET_ALIAS)
 
 # ---------------------------------------------------------------------------
 # which binary packages are built?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to