Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Kbuild: Fix deb-pkg target to work with kernel versions ending with -<text-without-digit>

If CONIFIG_LOCALVERSION is set for example to -loop, the following error
message was generated.

dpkg-deb - error: Debian revision (`loop') doesn't contain any digits
dpkg-deb: 1 errors in control file

The patch solves this by adding a numeric revision to package version.

Signed-off-by: Michal Sojka <sojkam1@fel.cvut.cz>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>

authored by

Michal Sojka and committed by
Sam Ravnborg
ed2c9fa5 ec7748b5

+2 -1
+2 -1
scripts/package/builddeb
··· 13 13 14 14 # Some variables and settings used throughout the script 15 15 version=$KERNELRELEASE 16 + revision=`cat .version` 16 17 tmpdir="$objtree/debian/tmp" 17 18 packagename=linux-$version 18 19 ··· 66 65 name="Kernel Compiler <$(id -nu)@$(hostname -f)>" 67 66 # Generate a simple changelog template 68 67 cat <<EOF > debian/changelog 69 - linux ($version) unstable; urgency=low 68 + linux ($version-$revision) unstable; urgency=low 70 69 71 70 * A standard release 72 71