Results 1 to 1 of 1

Thread: Kernel make deb-pkg puts higher versions on the deb names than the sources are

  1. #1
    User4519 Guest

    Kernel make deb-pkg puts higher versions on the deb names than the sources are

    Hi

    I'm patching the 3.11.0 kernel sources with SCST and creating deb packages using make deb-pkg. It's working fine, except one thing is really puzzling me.

    Here's a dpkg list of kernel related packages:
    Code:
    ii  linux-firmware-image                3.11.0-15-scst                             amd64        Linux kernel firmware, version 3.11.10ii  linux-headers-3.11.0-15             3.11.0-15.23                               all          Header files related to Linux kernel version 3.11.0
    ii  linux-headers-3.11.0-15-generic     3.11.0-15.23                               amd64        Linux kernel headers for version 3.11.0 on 64 bit x86 SMP
    ii  linux-headers-3.11.10               3.11.0-15-scst                             amd64        Linux kernel headers for 3.11.10 on amd64
    ii  linux-headers-generic               3.11.0.15.16                               amd64        Generic Linux kernel headers
    ii  linux-image-3.11.0-15-generic       3.11.0-15.23                               amd64        Linux kernel image for version 3.11.0 on 64 bit x86 SMP
    ii  linux-image-3.11.10                 3.11.0-15-scst                             amd64        Linux kernel, version 3.11.10
    ii  linux-image-extra-3.11.0-15-generic 3.11.0-15.23                               amd64        Linux kernel extra modules for version 3.11.0 on 64 bit x86 SMP
    ii  linux-image-generic                 3.11.0.15.16                               amd64        Generic Linux kernel image
    ii  linux-libc-dev                      3.11.0-15-scst                             amd64        Linux support headers for userspace development
    ii  linux-source-3.11.0                 3.11.0-15.23                               all          Linux kernel source for version 3.11.0 with Ubuntu patches
    Which corresponds with the fact that make -j8 KDEB_PKGVERSION="3.11.0-25-scst" deb-pkg results in:
    Code:
    dpkg-deb: building package `linux-firmware-image' in `../linux-firmware-image_3.11.0-25-scst_amd64.deb'.dpkg-deb: building package `linux-headers-3.11.10' in `../linux-headers-3.11.10_3.11.0-25-scst_amd64.deb'.
    dpkg-deb: building package `linux-libc-dev' in `../linux-libc-dev_3.11.0-25-scst_amd64.deb'.
    dpkg-deb: building package `linux-image-3.11.10' in `../linux-image-3.11.10_3.11.0-25-scst_amd64.deb'.
    What's puzzling me is that I'm building the 3.11.0 sources, using the .configure file from the running 3.11.0-25-generic kernel. Yet, make deb-pkg names the -image and -headers packages as version 3.11.10... What gives? What am I doing wrong?

    TIA

    Daniel

    EDIT: Dove into the builddeb script and figured out what environment variable I should set to specify my own version. It's KERNELRELEASE, so in my specific case, I can do something like:
    Code:
    KERNELREV=3.11.0-15; make -j8 KERNELRELEASE="$KERNELREV-scst" KDEB_PKGVERSION="$KERNELREV-scst" deb-pkg
    or, if scripted to use the currently (running) kernel's revision (minus "-generic" or similar suffix):
    Code:
    KERNELREV=$(uname -r|sed 's:[^0-9]*$::'); make -j8 KERNELRELEASE="$KERNELREV-scst" KDEB_PKGVERSION="$KERNELREV-scst" deb-pkg
    Last edited by User4519; January 23rd, 2014 at 01:26 PM. Reason: Figured it out ;)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •