Source: build-essential
Version: 11.7
Severity: normal
Tags: patch

Now that there are crosstoolchains in the archive we can finally turn
on the building of crossbuild-essential-<arch> packages in build-essential

Attached is a patch that does that for the arches which have
cross-toolchains in unstable.

It fixes the fact that native list file ended up in the cross packages too. 

triplet-pkg-config has been removed as these packages do not exist in the 
archive and are expected to be rendered unnecessary by #759556

For this to be working in jessie this needs to be uploaded almost
immediately and FTPmaster pestered to let the extra binaries
through. I will do an NMU for this tomorrow if you haven't got round
to it, and hopefully it will scrape in .


-- System Information:
Debian Release: 7.7
  APT prefers stable
  APT policy: (990, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.2.60-kvm-i386-20140609 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

-- no debconf information
diff -Nru build-essential-11.7/debian/changelog build-essential-11.7+nmu1/debian/changelog
--- build-essential-11.7/debian/changelog	2014-08-12 00:36:51.000000000 +0100
+++ build-essential-11.7+nmu1/debian/changelog	2014-10-23 18:36:23.000000000 +0100
@@ -1,3 +1,11 @@
+build-essential (11.7+nmu1) unstable; urgency=high
+
+  * Non-maintainer upload.
+  * Enable crossbuild-essential for arches with cross-toolchains in
+     the archive
+
+ -- wookey <woo...@wookware.org>  Thu, 23 Oct 2014 18:35:39 +0100
+
 build-essential (11.7) unstable; urgency=medium
 
   * Update Standards-Version to 3.9.5.
diff -Nru build-essential-11.7/debian/control build-essential-11.7+nmu1/debian/control
--- build-essential-11.7/debian/control	2014-08-12 00:34:14.000000000 +0100
+++ build-essential-11.7+nmu1/debian/control	2014-10-23 19:19:26.000000000 +0100
@@ -30,3 +30,117 @@
  This package contains merely an informational list, which is all
  most people need.   However, if this package and the manual disagree,
  the manual is correct.
+
+Package: crossbuild-essential-arm64
+Architecture: all
+Depends: ${cross-essential}, ${misc:Depends}
+Description: Informational list of cross-build-essential packages
+ If you do not plan to cross build Debian packages, you don't need
+ this package.  Starting with sbuild (>= 0.63.0) this package is
+ required for cross building Debian packages in a chroot.
+ .
+ This package contains an informational list of packages which are
+ considered essential for cross building Debian packages.  This
+ package also depends on the packages on that list, to make it easy to
+ have the cross-build-essential packages installed.
+ .
+ If you have this package installed, you only need to install whatever
+ a package specifies as its build-time dependencies to cross build the
+ package.  Conversely, if you are determining what your package needs
+ to build-depend on, you can always leave out the packages this
+ package depends on.
+
+Package: crossbuild-essential-armel
+Architecture: all
+Depends: ${cross-essential}, ${misc:Depends}
+Description: Informational list of cross-build-essential packages
+ If you do not plan to cross build Debian packages, you don't need
+ this package.  Starting with sbuild (>= 0.63.0) this package is
+ required for cross building Debian packages in a chroot.
+ .
+ This package contains an informational list of packages which are
+ considered essential for cross building Debian packages.  This
+ package also depends on the packages on that list, to make it easy to
+ have the cross-build-essential packages installed.
+ .
+ If you have this package installed, you only need to install whatever
+ a package specifies as its build-time dependencies to cross build the
+ package.  Conversely, if you are determining what your package needs
+ to build-depend on, you can always leave out the packages this
+ package depends on.
+
+Package: crossbuild-essential-armhf
+Architecture: all
+Depends: ${cross-essential}, ${misc:Depends}
+Description: Informational list of cross-build-essential packages
+ If you do not plan to cross build Debian packages, you don't need
+ this package.  Starting with sbuild (>= 0.63.0) this package is
+ required for cross building Debian packages in a chroot.
+ .
+ This package contains an informational list of packages which are
+ considered essential for cross building Debian packages.  This
+ package also depends on the packages on that list, to make it easy to
+ have the cross-build-essential packages installed.
+ .
+ If you have this package installed, you only need to install whatever
+ a package specifies as its build-time dependencies to cross build the
+ package.  Conversely, if you are determining what your package needs
+ to build-depend on, you can always leave out the packages this
+ package depends on.
+
+Package: crossbuild-essential-mipsel
+Architecture: all
+Depends: ${cross-essential}, ${misc:Depends}
+Description: Informational list of cross-build-essential packages
+ If you do not plan to cross build Debian packages, you don't need
+ this package.  Starting with sbuild (>= 0.63.0) this package is
+ required for cross building Debian packages in a chroot.
+ .
+ This package contains an informational list of packages which are
+ considered essential for cross building Debian packages.  This
+ package also depends on the packages on that list, to make it easy to
+ have the cross-build-essential packages installed.
+ .
+ If you have this package installed, you only need to install whatever
+ a package specifies as its build-time dependencies to cross build the
+ package.  Conversely, if you are determining what your package needs
+ to build-depend on, you can always leave out the packages this
+ package depends on.
+
+Package: crossbuild-essential-powerpc
+Architecture: all
+Depends: ${cross-essential}, ${misc:Depends}
+Description: Informational list of cross-build-essential packages
+ If you do not plan to cross build Debian packages, you don't need
+ this package.  Starting with sbuild (>= 0.63.0) this package is
+ required for cross building Debian packages in a chroot.
+ .
+ This package contains an informational list of packages which are
+ considered essential for cross building Debian packages.  This
+ package also depends on the packages on that list, to make it easy to
+ have the cross-build-essential packages installed.
+ .
+ If you have this package installed, you only need to install whatever
+ a package specifies as its build-time dependencies to cross build the
+ package.  Conversely, if you are determining what your package needs
+ to build-depend on, you can always leave out the packages this
+ package depends on.
+
+Package: crossbuild-essential-ppc64el
+Architecture: all
+Depends: ${cross-essential}, ${misc:Depends}
+Description: Informational list of cross-build-essential packages
+ If you do not plan to cross build Debian packages, you don't need
+ this package.  Starting with sbuild (>= 0.63.0) this package is
+ required for cross building Debian packages in a chroot.
+ .
+ This package contains an informational list of packages which are
+ considered essential for cross building Debian packages.  This
+ package also depends on the packages on that list, to make it easy to
+ have the cross-build-essential packages installed.
+ .
+ If you have this package installed, you only need to install whatever
+ a package specifies as its build-time dependencies to cross build the
+ package.  Conversely, if you are determining what your package needs
+ to build-depend on, you can always leave out the packages this
+ package depends on.
diff -Nru build-essential-11.7/debian/cross-targets build-essential-11.7+nmu1/debian/cross-targets
--- build-essential-11.7/debian/cross-targets	2014-08-11 23:57:19.000000000 +0100
+++ build-essential-11.7+nmu1/debian/cross-targets	2014-10-23 18:35:29.000000000 +0100
@@ -1,15 +1,15 @@
 #amd64
-#arm64
-#armel
-#armhf
+arm64
+armel
+armhf
 #hurd-i386
 #i386
 #ia64
 #kfreebsd-amd64
 #kfreebsd-i386
 #mips
-#mipsel
-#powerpc
-#ppc64el
+mipsel
+powerpc
+ppc64el
 #s390x
 #sparc
diff -Nru build-essential-11.7/debian/rules build-essential-11.7+nmu1/debian/rules
--- build-essential-11.7/debian/rules	2013-01-08 15:02:37.000000000 +0000
+++ build-essential-11.7+nmu1/debian/rules	2014-10-23 22:37:45.000000000 +0100
@@ -13,7 +13,7 @@
 build-arch: build-arch-stamp
 build-indep: build-indep-stamp
 
-debian/control: debian/control.in debian/control.cross
+debian/control: debian/control.in debian/control.cross debian/cross-targets
 	cat debian/control.in > $@
 	for a in $(cross_archs); do \
 	  sed -e "s/@DEB_TARGET_ARCH@/$$a/g" debian/control.cross >> $@; \
@@ -83,6 +83,7 @@
 		debian/$$p/usr/share/$$p; \
 	  printf > debian/$$p.substvars "cross-essential=%s\n" \
 		"`./list2depends $$a < list.$$a`"; \
+	  cp list.$$a debian/$$p/usr/share/$$p/list; \
 	  mkdir -p debian/$$p/usr/share/doc/$$p; \
 	  ln -sf ../../$$p/list debian/$$p/usr/share/doc/$$p; \
 	done
diff -Nru build-essential-11.7/list.cross build-essential-11.7+nmu1/list.cross
--- build-essential-11.7/list.cross	2014-08-11 23:55:54.000000000 +0100
+++ build-essential-11.7+nmu1/list.cross	2014-10-23 18:36:59.000000000 +0100
@@ -24,8 +24,6 @@
   NOTE:
   The libstdc++ -dev library is not needed, as g++ depends on it
 
-pkg-config-@DEB_TARGET_GNU_TYPE@
-
 dpkg-cross
   To provide autoconf cache variables and cmake toolchain file
 

Reply via email to