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

Re: Trouble recompiling with patch



On Thu, 2017-09-07 at 20:37 +0200, Nikolaus Rath wrote:
> Hello,
> 
> I would like to rebuild a Debian kernel with an extra patch. I have
> followed the instructions at
> https://kernel-handbook.alioth.debian.org/ch-common-tasks.html#s-common-official:
> 
> $ apt-get source -t stretch linux
> $ cd linux-4.9.30
> $ perl -ipe 's/^debug-info: true/debug-info: false/g;' debian/config/amd64/defines 

This won't do anything because debug-info is now enabled in the top
level configuration (debian/config/defines).  Although it is possible
to override it in the per-architecture configuration file, it is
simpler to edit the value in top level file.

> $ bash debian/bin/test-patches -f amd64 ~/in-progress/linux-4.10.0+alps/alps.diff
> 
> This seemed to work fine so far, but for some reason I did get debug
> symbols as well:
> 
> $ dir ..
> total 678M
> drwxr-xr-x 25 nikratio nikratio 4.0K Sep  7 14:36 linux-4.9.30
> -rw-r--r--  1 nikratio nikratio 439K Sep  7 15:30 linux-headers-4.9.0-3-amd64_4.9.30-2+deb9u3a~test_amd64.deb
> -rw-r--r--  1 nikratio nikratio 546M Sep  7 15:47 linux-image-4.9.0-3-amd64-dbg_4.9.30-2+deb9u3a~test_amd64.deb
> -rw-r--r--  1 nikratio nikratio  37M Sep  7 15:38 linux-image-4.9.0-3-amd64_4.9.30-2+deb9u3a~test_amd64.deb
> -rw-r--r--  1 nikratio nikratio  91M Jun 18 14:55 linux_4.9.30.orig.tar.xz
> -rw-r--r--  1 nikratio nikratio 3.0M Aug  6 13:24 linux_4.9.30-2+deb9u3.debian.tar.xz
> -rw-r--r--  1 nikratio nikratio 121K Aug  6 13:24 linux_4.9.30-2+deb9u3.dsc
> 
> Do I need to do something else to omit building the -dbg package?
>
> More important, however, I wasn't able to build the common headers
> package. Following the instructions I get:
> 
> $ fakeroot make -f debian/rules.gen binary-arch_amd64_none_real
> make: Nothing to be done for 'binary-arch_amd64_none_real'.
> 
> 
> What do I have to do to get the -common header .deb?

It's now an arch-independent package, so this should do it:

    make -f debian/rules.gen binary-indep_none

Please can you open a bug report against debian-kernel-handbook, so I
remember to update it?

Ben.

-- 
Ben Hutchings
Time is nature's way of making sure that everything doesn't happen at
once.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: