[Kernel-handbook-general] [PATCH] Correct order of preparation for rebuilding official Debian kernel packages

Ben Hutchings ben at decadent.org.uk
Sun Mar 31 01:16:28 UTC 2013


'apt-get source' requires dpkg-dev, which we cannot assume is
installed until *after* 'apt-get install build-essential'.  So
move the installation commands to the beginning of the list.
Also improve the explanation of the installation commands.

Reported-by: Mike <debian at good-with-numbers.com>
---
I've just committed this fix.

Ben.

 chapter-common-tasks.sgml |   12 ++++++------
 debian/changelog          |    4 ++++
 2 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/chapter-common-tasks.sgml b/chapter-common-tasks.sgml
index c12d2b2..18ab1ac 100644
--- a/chapter-common-tasks.sgml
+++ b/chapter-common-tasks.sgml
@@ -30,6 +30,12 @@ $ tar jxf /usr/src/linux-source-3.2.tar.bz2
 	  <p>
 	    Run the following commands:
 	    <taglist>
+	      <tag><tt># apt-get install build-essential fakeroot</tt></tag>
+	      <tag><tt># apt-get build-dep linux</tt></tag>
+	      <item>
+		This will install the packages required by the kernel
+		build process.
+	      </item>
               <tag><tt>$ apt-get source linux</tt></tag>
 	      <item>
 		This will download and unpack the
@@ -41,12 +47,6 @@ $ tar jxf /usr/src/linux-source-3.2.tar.bz2
 		determine its patchlevel with respect to the original
 		upstream kernel source.
 	      </item>
-	      <tag><tt># apt-get install build-essential fakeroot</tt></tag>
-	      <tag><tt># apt-get build-dep linux</tt></tag>
-	      <item>
-		The last two commands will install the build dependencies required by the kernel
-		build process.
-	      </item>
 	      <tag><tt>$ cd linux-<em>version</em></tt></tag>
 	      <item>
 		Enter the source directory.
diff --git a/debian/changelog b/debian/changelog
index 58a4077..0fb4480 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,12 @@
 kernel-handbook (1.0.16) UNRELEASED; urgency=low
 
+  [ Uwe Kleine-König ]
   * Adapt integrity checking to kernel.org only providing signatures for
     uncompressed archives
 
+  [ Ben Hutchings ]
+  * Correct order of preparation for rebuilding official Debian kernel packages
+
  -- Uwe Kleine-König <uwe at kleine-koenig.org>  Thu, 08 Nov 2012 09:16:12 +0100
 
 kernel-handbook (1.0.15) unstable; urgency=low

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/kernel-handbook-general/attachments/20130331/043472af/attachment.pgp>


More information about the Kernel-handbook-general mailing list