Package: linux-source-3.8
Version: 3.8.3-1~experimental.1
Severity: normal

Dear Maintainer,
the builddeb script does not support m68k nor cross-compiling. The following
patch fixes this, the second part comes from this report:

https://patchwork.kernel.org/patch/752622/

Please apply, if this is the correct way to add support.

thanks,
Christian

--- scripts/package/builddeb.orig       2013-03-14 19:27:14.000000000 +0100
+++ scripts/package/builddeb    2013-03-29 19:34:05.311940456 +0100
@@ -28,7 +28,7 @@
        # Attempt to find the correct Debian architecture
        local forcearch="" debarch=""
        case "$UTS_MACHINE" in
-       i386|ia64|alpha)
+       i386|ia64|alpha|m68k)
                debarch="$UTS_MACHINE" ;;
        x86_64)
                debarch=amd64 ;;
@@ -254,6 +254,12 @@
 rm -f "$objtree/debian/hdrsrcfiles" "$objtree/debian/hdrobjfiles"
 arch=$(dpkg --print-architecture)
 
+if [ -n "$KBUILD_DEBARCH" ] ; then
+       arch="$KBUILD_DEBARCH"
+else
+       arch=$(dpkg --print-architecture)
+fi
+
 cat <<EOF >> debian/control
 
 Package: $kernel_headers_packagename


-- System Information:
Debian Release: 7.0
  APT prefers testing
  APT policy: (500, 'testing'), (200, 'experimental'), (100, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages linux-source-3.8 depends on:
ii  binutils  2.22-8
ii  bzip2     1.0.6-4

Versions of packages linux-source-3.8 recommends:
ii  gcc                   4:4.7.2-1
ii  libc6-dev [libc-dev]  2.13-38
ii  make                  3.82-1

Versions of packages linux-source-3.8 suggests:
ii  libncurses5-dev [ncurses-dev]  5.9-10
ii  libqt4-dev                     4:4.8.2+dfsg-11
ii  pkg-config                     0.26-1

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/20130329190642.7941.26442.report...@guido.earth.sol

Reply via email to