FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 04-27-2011, 07:14 AM
Andreas Beckmann
 
Default Bug#624297: build-linux-kbuild.sh: add support for -rcX kernels (needs version mangling)

Package: linux-kbuild-2.6
Severity: normal
Tags: patch

Hi,

attached is a patch for the build-linux-kbuild.sh referenced from
http://wiki.debian.org/HowToRebuildAnOfficialDebianKernelPackage

It adds support for -rcX kernels by doing version mangling from -rcX to
~rcX as needed by Debian.

Also it would be nice if the build-linux-kbuild.sh would be kept in the
SVN repository and a comment like the following be added to the script:

# The latest version of this script can be retrived via
# svn export <URL>/build-linux-kbuild.sh

Andreas


-- System Information:
Debian Release: 6.0.1
APT prefers stable
APT policy: (800, 'stable'), (700, 'testing'), (600, 'unstable'), (500, 'stable-updates'), (130, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- build-linux-kbuild.orig.sh 2010-11-12 17:55:22.000000000 +0100
+++ build-linux-kbuild.sh 2011-04-27 08:50:17.770352638 +0200
@@ -9,11 +9,12 @@
# changelog)

set -ex
-VERSION=2.6.36
+UPSTREAM_VERSION=2.6.39-rc4
+VERSION=$(echo "${UPSTREAM_VERSION}" | sed -e 's/-rc/~rc/')
DEBIAN_VERSION=${VERSION}-1~experimental.1
CHANGELOG_MESSAGE=${VERSION}

-[ -e linux-${VERSION}.tar.bz2 ]
+[ -e linux-${UPSTREAM_VERSION}.tar.bz2 ]

cleanme="orig linux-kbuild-2.6 linux-kbuild-2.6-${VERSION}"

@@ -31,7 +32,7 @@

cd linux-kbuild-2.6
dch -v ${DEBIAN_VERSION} ${CHANGELOG_MESSAGE}
-./debian/bin/genorig.py ../linux-${VERSION}.tar.bz2
+./debian/bin/genorig.py ../linux-${UPSTREAM_VERSION}.tar.bz2
cd ..
tar -xzf orig/linux-kbuild-2.6_${VERSION}.orig.tar.gz
cd linux-kbuild-2.6-${VERSION}
 

Thread Tools




All times are GMT. The time now is 06:12 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org