gcc-2.95 build issue -- forwarded message from Roderich Schupp
- To: gcc@packages.debian.org
- Cc: Roderich Schupp <rsch@experteam.de>
- Subject: gcc-2.95 build issue -- forwarded message from Roderich Schupp
- From: Matthias Klose <doko@cs.tu-berlin.de>
- Date: Sun, 6 May 2001 14:37:38 +0200 (MEST)
- Message-id: <15093.17316.515937.754265@bolero>
- In-reply-to: <15093.14422.809533.50816@bolero>
- References: <15093.14422.809533.50816@bolero>
Matthias Klose writes:
> in the changelog you wrote
> > * Apparently we do have a problem with dpkg-dev-1.9, which does
> > create control files with missing 'Architecture:' lines. Fixes
> > are welcome.
>
> The following patch fixes the problem for a native build,
> but will probably break on cross compiles:
>
> --- ORIG/debian/rules.defs Sat May 5 19:05:46 2001
> +++ ./debian/rules.defs Sat May 5 18:43:46 2001
> @@ -33,9 +33,6 @@
> # architecture dependent variables
> #DEB_HOST_ARCH :=3D $(shell dpkg-architecture -qDEB_HOST_ARCH)=
>
> DEB_HOST_ARCH :=3D $(shell dpkg-architecture -qDEB_HOST_ARCH)=
>
> -ifneq ($(TARGET),native)
> -DEB_HOST_ARCH =3D $(TARGET)
> -endif
> DEB_HOST_GNU_CPU :=3D $(shell dpkg-architecture -qDEB_HOST_GNU_C=
> PU)
> DEB_HOST_GNU_SYSTEM :=3D $(shell dpkg-architecture -qDEB_HOST_GNU_S=
> YSTEM)
> DEB_HOST_GNU_TYPE :=3D $(shell dpkg-architecture -qDEB_HOST_GNU_T=
> YPE)
thanks for your analysis. Building now with
--- debian/rules.defs~ Fri May 4 19:48:47 2001
+++ debian/rules.defs Sun May 6 14:28:13 2001
@@ -31,10 +31,11 @@
endif
# architecture dependent variables
-#DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
ifneq ($(TARGET),native)
-DEB_HOST_ARCH = $(TARGET)
+ ifneq ($(TARGET),)
+ DEB_HOST_ARCH := $(TARGET)
+ endif
endif
DEB_HOST_GNU_CPU := $(shell dpkg-architecture -qDEB_HOST_GNU_CPU)
DEB_HOST_GNU_SYSTEM := $(shell dpkg-architecture -qDEB_HOST_GNU_SYSTEM)
and looking in dpkg's changelog reveils why it doesn't work with
dpkg-1.9 anymore:
* scripts/dpkg-buildpackage.sh:
+ don't bother to specify architecture settings on commandlines since
we put them in the environment already
Reply to: