EXTRAVERSION ignores "-" when making kernel from src.rpm
Paul W. Frields
stickster at gmail.com
Tue Aug 8 19:07:55 UTC 2006
On Tue, 2006-08-08 at 08:55 -0500, Jay Cliburn wrote:
> Paul Howarth wrote:
> > Jay Cliburn wrote:
> >> Is there a way to get the "-" included as part of the EXTRAVERSION
> >> field when making a Fedora kernel? If I change EXTRAVERSION = -foo in
> >> the master Makefile, I end up with an rpm named kernel-2.6.15foo.
> >> I've tried escaping the dash, double-quoting the entire EXTRAVERSION
> >> field, and manually setting KERNELVERSION = 2.6.15-foo, but nothing
> >> seems to work.
> >
> > You would end up with a dash is the version number, which is not an
> > allowed character. The last two dashes in a (default) RPM name separate
> > the version and release from the package name.
>
> But if I follow the directions in the release notes, I get an
> incorrectly named rpm, to wit:
>
> kernel-2.6.151.2054_FC5-2.x86_64.rpm
>
> It should be 2.6.15-1.whatever, not 2.6.151.whatever
>
> Here's the relevant section from the release notes.
>
> Every kernel gets a name based on its version number. This is the value
> the uname -r command displays. The kernel name is defined by the first
> four lines of the kernel Makefile. The Makefile has been changed to
> generate a kernel with a different name from that of the running kernel.
> To be accepted by the running kernel, a module must be compiled for a
> kernel with the correct name. To do this, you must edit the kernel Makefile.
>
> For example, if the uname -r returns the string 2.6.15-1.1948_FC5 ,
> change the EXTRAVERSION definition from this:
>
> EXTRAVERSION = -prep
>
> to this:
>
> EXTRAVERSION = -1.1948_FC5
>
> That is, substitute everything from the final dash onward.
Speaking as a release notes writer/editor/wrangler, I can only say
WORKSFORME throughout FC5 thus far.
--
Paul W. Frields, RHCE http://paul.frields.org/
gpg fingerprint: 3DA6 A0AC 6D58 FEC4 0233 5906 ACDB C937 BD11 3717
Fedora Project Board: http://fedoraproject.org/wiki/Board
Fedora Docs Project: http://fedoraproject.org/wiki/DocsProject
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20060808/9a2cbe35/attachment.sig>
More information about the fedora-devel-list
mailing list