[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

make-kpkg revision rules not following documentaton, confusing error messages



I was attempting to compile my own kernel as a debian package, following these directions:

https://www.debian.org/releases/jessie/i386/ch08s06.html.en


When I got to the point where it has you run make-kpkg itself, where it suggests the following command:

# fakeroot make-kpkg --initrd --revision=custom.1.0 kernel_image

And states that you can put whatever you want in place of "custom" and that the "1.0" bit marks revisions, etc, I attempted to follow its example and was met with this:

dmorrison@shodan:~/Downloads/linux-4.0.1$ fakeroot make-kpkg --initrd --revision=shodan.1.0 kernel_image
 Error: The revision string may only contain
 alphanumerics and  the  characters ~ +  .
 If epochs are used, the colon : is also allowed
 The current value is: shodan.1.0
 Aborting.

Which is rather confusing, since it basically says "your string can only contain such and such characters, it contains... exactly those characters we said it could contain. Aborting"

I tried various versions of the revision string, from shodan.1, shodan1, shodan1.0, etc, until I finally hit upon a winning combination: 1.0shodan

It seems it will only accept a revision that starts with a number. This contradicts the documentation and is not mentioned anywhere in the error message.

If I'm doing something else wrong sobeit but this seems a tad broken to me.


Potentially relevant information:

uname -a:
Linux shodan 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt9-3~deb8u1 (2015-04-24) x86_64 GNU/Linux

Debian version:
jessie

Install date:
5/1/2015 from stable netinst image.

kernel-package version:
13.014+nmu1

kernel attempting to compile:
4.0.1

If there's any other information you consider relevant please let me know. Thanks.


Reply to: