Package: kernel-package
Version: 10.055
Severity: wishlist
Tags: patch

Hi,

Very simple patch to add a --verbose option so that it will call the make
with the V=1 option to see the full commands.
I found it much more useful than --noexec because I cound not just simulate a
full compilation, some steps rely on the results of previous steps and it 
ends prematurely on errors.
This is just the patch for make-kpkg, feel free to change the textual
description of the option. man mages will have to be updated too if this
patch is accepted.

--- /usr/bin/make-kpkg  2006-08-20 19:15:31.000000000 +0200
+++ make-kpkg   2006-09-13 19:51:02.000000000 +0200
@@ -42,6 +42,7 @@
 my $key_id='';
 my $help_opt=0;
 my $noexec;
+my $verbose;
 my $initrd=0;
 my $revision=0;
 my $root_cmd;
@@ -58,6 +59,7 @@
   (
    "help"                => \$help_opt,
    "noexec"              => \$noexec,
+   "verbose"             => \$verbose,
    "initrd"              => \$initrd,
    "revision=s"          => \$revision,
    "added_modules=s"     => \$added_modules,
@@ -282,6 +284,15 @@
 
 =back
 
+=item B<--verbose>
+
+=over 2
+
+Pass  a  B<V=1> option to the I<make> so that commands are verbosely
+printed  to  the  screen  while executed.  This is very useful for debugging.
+
+=back
+
 =item B<--initrd>
 
 =over 2
@@ -401,6 +412,7 @@
                        oldconfig.
  --targets             Lists the known targets.
  --noexec              Pass a -n option to the make process
+ --verbose             Pass a V=1 option to the make process
  --zimage              Create a kernel using zImage rather than bzImage
  --bzimage             Create a kernel using bzImage (in case the site
                        wide default is zimage, as set in
@@ -1011,6 +1023,11 @@
     $alt_cmd .= " -n "
       unless -f "debian/ruleset/kernel_version.mk";
   }
+  if ($verbose){
+    $command .= " V=1 ";
+    $alt_cmd .= " V=1 "
+      unless -f "debian/ruleset/kernel_version.mk";
+  }
   if ($initrd) {
     $command .= " INITRD=YES ";
     $alt_cmd .= " INITRD=YES "


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-686-pte2
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages kernel-package depends on:
ii  dpkg                         1.13.21     package maintenance system for Deb
ii  dpkg-dev                     1.13.21     package building tools for Debian
ii  file                         4.17-3      Determines file type using "magic"
ii  gcc [c-compiler]             4:4.1.1-5   The GNU C compiler
ii  gcc-2.95 [c-compiler]        1:2.95.4-27 The GNU C compiler
ii  gcc-3.2 [c-compiler]         1:3.2.3-9   The GNU C compiler
ii  gcc-3.3 [c-compiler]         1:3.3.6-13  The GNU C compiler
ii  gcc-4.0 [c-compiler]         4.0.3-3     The GNU C compiler
ii  gcc-4.1 [c-compiler]         4.1.1-13    The GNU C compiler
ii  gettext                      0.14.6-1    GNU Internationalization utilities
ii  make                         3.81-2      The GNU version of the "make" util
ii  perl                         5.8.8-6.1   Larry Wall's Practical Extraction 
ii  po-debconf                   1.0.5       manage translated Debconf template

Versions of packages kernel-package recommends:
ii  bzip2                        1.0.3-6     high-quality block-sorting file co
ii  libc6-dev [libc-dev]         2.3.6.ds1-4 GNU C Library: Development Librari

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to