Package: src:build-essential Version: 12.8 This is the patch from src:build-essential-mipsen
To use the same codebase, this patch add a way to not build native package, aka bin:build-essential.
diff --git a/debian/control.in b/debian/control.in index 354e3a7..c4a9ec8 100644 --- a/debian/control.in +++ b/debian/control.in @@ -1,32 +1,7 @@ -Source: build-essential +Source: @src_name@ Section: devel Priority: optional Maintainer: Matthias Klose <[email protected]> Uploaders: Scott James Remnant <[email protected]> Standards-Version: 4.4.0 Build-Depends: debhelper (>= 9), python3:any, g++ (>= 4:9.2) - -Package: build-essential -Architecture: any -Depends: ${build-essential}, ${misc:Depends} -Description: Informational list of build-essential packages - If you do not plan to build Debian packages, you don't need this - package. Starting with dpkg (>= 1.14.18) this package is required - for building Debian packages. - . - This package contains an informational list of packages which are - considered essential for building Debian packages. This package also - depends on the packages on that list, to make it easy to have the - 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 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. - . - This package is NOT the definition of what packages are - build-essential; the real definition is in the Debian Policy Manual. - 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. diff --git a/debian/control.native.in b/debian/control.native.in new file mode 100644 index 0000000..34e3e14 --- /dev/null +++ b/debian/control.native.in @@ -0,0 +1,25 @@ + +Package: build-essential +Architecture: any +Depends: ${build-essential}, ${misc:Depends} +Description: Informational list of build-essential packages + If you do not plan to build Debian packages, you don't need this + package. Starting with dpkg (>= 1.14.18) this package is required + for building Debian packages. + . + This package contains an informational list of packages which are + considered essential for building Debian packages. This package also + depends on the packages on that list, to make it easy to have the + 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 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. + . + This package is NOT the definition of what packages are + build-essential; the real definition is in the Debian Policy Manual. + 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. diff --git a/debian/cross-targets b/debian/cross-targets index 3eddf0c..cb095d8 100644 --- a/debian/cross-targets +++ b/debian/cross-targets @@ -10,9 +10,6 @@ i386 #kfreebsd-amd64 #kfreebsd-i386 #m68k -#mipsel -#mips64 -#mips64el powerpc #powerpcspe #ppc64 diff --git a/debian/cross-targets-mipsen b/debian/cross-targets-mipsen new file mode 100644 index 0000000..b63aebe --- /dev/null +++ b/debian/cross-targets-mipsen @@ -0,0 +1,12 @@ +mips +mipsel +#mipsn32 +#mipsn32el +mips64 +mips64el +mipsr6 +mipsr6el +#mipsn32r6 +#mipsn32r6el +mips64r6 +mips64r6el diff --git a/debian/rules b/debian/rules index 8786a52..6bf7666 100755 --- a/debian/rules +++ b/debian/rules @@ -6,15 +6,25 @@ #export DH_VERBOSE=1 DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) - -cross_archs := $(shell grep -v '^\#' debian/cross-targets) +src_name := $(shell dpkg-parsechangelog -S Source) + +ifeq ($(src_name),build-essential) + cross_archs := $(shell grep -v '^\#' debian/cross-targets) +else ifeq ($(src_name),build-essential-mipsen) + cross_archs := $(shell grep -v '^\#' debian/cross-targets-mipsen) +else + $(error Unknown src_name) +endif build: build-arch build-indep build-arch: build-arch-stamp build-indep: build-indep-stamp debian/control: debian/control.in debian/control.cross debian/cross-targets - cat debian/control.in > $@ + sed -e "s/@src_name@/$(src_name)/" debian/control.in > $@ +ifeq ($(src_name),build-essential) + cat debian/control.native.in >> $@ +endif for a in $(cross_archs); do \ sed -e "s/@DEB_TARGET_ARCH@/$$a/g" debian/control.cross >> $@; \ done @@ -57,6 +67,7 @@ svnclean: clean rm -rf `svn propget svn:ignore` install-arch: build-arch +ifeq ($(src_name),build-essential) dh_testdir dh_testroot dh_prep @@ -71,6 +82,7 @@ install-arch: build-arch ln -sf ../../build-essential/list \ ../../build-essential/essential-packages-list \ debian/build-essential/usr/share/doc/build-essential +endif install-indep: build-indep set -e; \

