I have just done an NMU of bmconf to fix two long standing issues.
Please find the diff attached.

-- 
  .''`.  Aurelien Jarno             | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   [EMAIL PROTECTED]         | [EMAIL PROTECTED]
   `-    people.debian.org/~aurel32 | www.aurel32.net
diff -Nru /tmp/1Q4mJKpw9F/bmconf-0.8.4/debian/changelog /tmp/MFk9nJdYll/bmconf-0.8.4/debian/changelog
--- /tmp/1Q4mJKpw9F/bmconf-0.8.4/debian/changelog	2005-03-15 21:09:43.000000000 +0100
+++ /tmp/MFk9nJdYll/bmconf-0.8.4/debian/changelog	2007-07-31 14:48:04.000000000 +0200
@@ -1,3 +1,12 @@
+bmconf (0.8.4-0.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix FTBFS with gcc-4.2, patch by brian m. carlson (closes: #416116).
+  * Added kfreebsd-i386 and kfreebsd-amd64 to the list of supported
+    architectures (closes: #361561).
+
+ -- Aurelien Jarno <[EMAIL PROTECTED]>  Tue, 31 Jul 2007 14:47:19 +0200
+
 bmconf (0.8.4) unstable; urgency=low
 
   * fixed gcc-4.0 compile error (pointer signedness differs)
diff -Nru /tmp/1Q4mJKpw9F/bmconf-0.8.4/debian/control /tmp/MFk9nJdYll/bmconf-0.8.4/debian/control
--- /tmp/1Q4mJKpw9F/bmconf-0.8.4/debian/control	2005-03-05 21:07:18.000000000 +0100
+++ /tmp/MFk9nJdYll/bmconf-0.8.4/debian/control	2007-07-31 14:34:08.000000000 +0200
@@ -6,7 +6,7 @@
 Standards-Version: 3.6.1.1
 
 Package: bmconf
-Architecture: amd64 i386
+Architecture: amd64 i386 kfreebsd-amd64 kfreebsd-i386
 Depends: ${shlibs:Depends}
 Description: The installer and configurator of the Smart Boot Manager
  The Smart Boot Manager is a program which runs at boot time, and give
diff -Nru /tmp/1Q4mJKpw9F/bmconf-0.8.4/src/parttypes.c /tmp/MFk9nJdYll/bmconf-0.8.4/src/parttypes.c
--- /tmp/1Q4mJKpw9F/bmconf-0.8.4/src/parttypes.c	2000-09-16 09:50:11.000000000 +0200
+++ /tmp/MFk9nJdYll/bmconf-0.8.4/src/parttypes.c	2007-07-31 14:36:53.000000000 +0200
@@ -52,20 +52,18 @@
 char * typetostring(unsigned char type)
 {
     static char retval[30];
-    char * str;
+    const char * str;
 
     void masol(char *dest, char *source)
     {
 	memcpy(dest,source,strlen(source)+1);
     }
-    
-    masol(retval,partition_type[type]);
-    if (!retval)
-    {
-	asprintf(&str,"%x",type);
-        masol(retval,str);
-	free(str);
-    }
+   
+    str=partition_type[type];
+    if (str)
+       masol(retval,partition_type[type]);
+    else
+       snprintf(retval,sizeof(retval),"%x",type);
     return retval;
 }
 

Reply via email to