提交 ed2c9fa5 编写于 作者: M Michal Sojka 提交者: Sam Ravnborg

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: NMichal Sojka <sojkam1@fel.cvut.cz>
Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
上级 ec7748b5
...@@ -13,6 +13,7 @@ set -e ...@@ -13,6 +13,7 @@ set -e
# Some variables and settings used throughout the script # Some variables and settings used throughout the script
version=$KERNELRELEASE version=$KERNELRELEASE
revision=`cat .version`
tmpdir="$objtree/debian/tmp" tmpdir="$objtree/debian/tmp"
packagename=linux-$version packagename=linux-$version
...@@ -65,7 +66,7 @@ done ...@@ -65,7 +66,7 @@ done
name="Kernel Compiler <$(id -nu)@$(hostname -f)>" name="Kernel Compiler <$(id -nu)@$(hostname -f)>"
# Generate a simple changelog template # Generate a simple changelog template
cat <<EOF > debian/changelog cat <<EOF > debian/changelog
linux ($version) unstable; urgency=low linux ($version-$revision) unstable; urgency=low
* A standard release * A standard release
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册