Followup-For: Bug #402620
Package: procinfo
Version: 18-2

Hello,

It seems I was wrong when I reported this bug, a recompile is not
enough to solve this problem. The attached patch corrects this for me.

Greetings,


Fred

-- System Information:
Debian Release: 4.0
  APT prefers testing-proposed-updates
  APT policy: (900, 'testing-proposed-updates'), (500, 'testing'), (99, 
'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.20
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)

Versions of packages procinfo depends on:
ii  libc6                       2.3.6.ds1-10 GNU C Library: Shared libraries
ii  libncurses5                 5.5-5        Shared libraries for terminal hand
ii  perl                        5.8.8-7      Larry Wall's Practical Extraction 

procinfo recommends no packages.

-- no debconf information
diff -u procinfo-18/debian/patches/00list procinfo-18/debian/patches/00list
--- procinfo-18/debian/patches/00list
+++ procinfo-18/debian/patches/00list
@@ -7,0 +8 @@
+09_procinfo_support_Debian_gcc_version.dpatch
diff -u procinfo-18/debian/changelog procinfo-18/debian/changelog
--- procinfo-18/debian/changelog
+++ procinfo-18/debian/changelog
@@ -1,3 +1,11 @@
+procinfo (18-2.1) unstable; urgency=low
+
+  * NMU
+  * Add 09_procinfo_support_Debian_gcc_version to support
+  Debian GCC versions
+
+ -- Frédéric Bothamy <[EMAIL PROTECTED]>  Fri,  9 Feb 2007 11:42:47 +0100
+
 procinfo (18-2) unstable; urgency=low
 
   * New maintainer (closes: #384633).
only in patch2:
unchanged:
--- 
procinfo-18.orig/debian/patches/09_procinfo_support_Debian_gcc_version.dpatch
+++ procinfo-18/debian/patches/09_procinfo_support_Debian_gcc_version.dpatch
@@ -0,0 +1,20 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 09_procinfo_support_Debian_gcc_version.dpatch by Frédéric Bothamy <[EMAIL 
PROTECTED]>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
[EMAIL PROTECTED]@
+diff -urNad procinfo-18~/routines.c procinfo-18/routines.c
+--- procinfo-18~/routines.c    2007-02-09 11:49:12.000000000 +0100
++++ procinfo-18/routines.c     2007-02-09 11:50:15.000000000 +0100
+@@ -272,6 +272,9 @@
+     if (ret != 5)     /* Damn egcs uses nested ()'s... */
+       ret = sscanf (line, "Linux version %s (%[^)]) (gcc %[^(] (%*[^)])) #%s 
%[^\n]",
+                     ver, host, gcc, compno, date);
++    if (ret != 5)
++        ret = sscanf (line, "Linux version %s (%[^)]) (gcc %[^(] (%*[^)]) 
(%*[^)])) #%s %[^\n]",
++                      ver, host, gcc, compno, date);
+ 
+     if (ret != 5) {   /* At least we've got ver & host right... */
+       strcpy (gcc, "[can't parse]");

Reply via email to