tag 442308 patch pending thanks Frank Lichtenheld <[EMAIL PROTECTED]> (14/09/2007): > your package failed to build from source. > | cc1: warnings being treated as errors > | ../../libparted/cs/natmath.c:79: warning: C99 inline functions are not > supported; using GNU89 > | ../../libparted/cs/natmath.c:79: warning: to disable this warning use > -fgnu89-inline or the gnu_inline function attribute > | ../../libparted/cs/natmath.c:85: warning: C99 inline functions are not > supported; using GNU89 > | make[3]: *** [natmath.lo] Error 1
Hi, please find attached the patch for my NMU, uploaded to DELAYED/7 (some hours ago, so DELAYED/6 now), and reviewed/sponsored by Lunar^. Cheers, -- Cyril Brulebois
diff -u parted-1.8.7.git.2007.07.30/debian/changelog parted-1.8.7.git.2007.07.30/debian/changelog
--- parted-1.8.7.git.2007.07.30/debian/changelog
+++ parted-1.8.7.git.2007.07.30/debian/changelog
@@ -1,3 +1,12 @@
+parted (1.8.7.git.2007.07.30-1.1) experimental; urgency=low
+
+ * Non-maintainer upload.
+ * Add -fgnu89-inline to CFLAGS to fix FTBFS (Closes: #442308).
+ * Make the packages binNMU-safe by using binary:Version and source:Version
+ instead of Source-Version.
+
+ -- Cyril Brulebois <[EMAIL PROTECTED]> Sat, 29 Sep 2007 15:49:49 +0200
+
parted (1.8.7.git.2007.07.30-1) experimental; urgency=low
* New upstream release.
diff -u parted-1.8.7.git.2007.07.30/debian/control.in parted-1.8.7.git.2007.07.30/debian/control.in
--- parted-1.8.7.git.2007.07.30/debian/control.in
+++ parted-1.8.7.git.2007.07.30/debian/control.in
@@ -66,7 +66,7 @@
Architecture: any
Section: libs
Depends: ${shlibs:Depends}
-Suggests: parted | nparted, [EMAIL PROTECTED]@-dev, [EMAIL PROTECTED]@-i18n (= ${Source-Version})
+Suggests: parted | nparted, [EMAIL PROTECTED]@-dev, [EMAIL PROTECTED]@-i18n (= ${source:Version})
Conflicts: parted (<< 1.4.13+14pre1), libparted0, libparted1, libparted2
Replaces: libparted0, libparted1, libparted2, libparted1.4 (<< 1.4.24-2)
Provides: libparted
@@ -174,8 +174,8 @@
Package: [EMAIL PROTECTED]@-dev
Architecture: any
Section: libdevel
-Depends: libc6-dev, [EMAIL PROTECTED]@ (= ${Source-Version})
-Suggests: [EMAIL PROTECTED]@ (= ${Source-Version}), parted-doc
+Depends: libc6-dev, [EMAIL PROTECTED]@ (= ${binary:Version})
+Suggests: [EMAIL PROTECTED]@ (= ${binary:Version}), parted-doc
Conflicts: libparted-dev, parted (<< 1.2.11)
Replaces: libparted-dev, libparted0-dev, libparted2-dev
Provides: libparted-dev
@@ -213,7 +213,7 @@
Architecture: any
Section: libdevel
Priority: extra
-Depends: [EMAIL PROTECTED]@ (= ${Source-Version}), [EMAIL PROTECTED]@-dev (= ${Source-Version})
+Depends: [EMAIL PROTECTED]@ (= ${binary:Version}), [EMAIL PROTECTED]@-dev (= ${binary:Version})
Conflicts: libparted-dbg
Replaces: libparted-dbg
Provides: libparted-dbg
diff -u parted-1.8.7.git.2007.07.30/debian/rules parted-1.8.7.git.2007.07.30/debian/rules
--- parted-1.8.7.git.2007.07.30/debian/rules
+++ parted-1.8.7.git.2007.07.30/debian/rules
@@ -114,6 +114,10 @@
CONFFLAGS += --disable-Werror
endif
+# Workaround/fix bug #442308
+CFLAGS += -fgnu89-inline
+UDEB_CFLAGS += -fgnu89-inline
+
# This builds a substitution list for sed based on the SUBSTS variable
# and the variables whose names SUBSTS contains ...
SUBSTLIST = $(foreach subst, $(SUBSTS), s/@$(subst)@/$($(subst))/g;)
diff -u parted-1.8.7.git.2007.07.30/debian/control parted-1.8.7.git.2007.07.30/debian/control
--- parted-1.8.7.git.2007.07.30/debian/control
+++ parted-1.8.7.git.2007.07.30/debian/control
@@ -66,7 +66,7 @@
Architecture: any
Section: libs
Depends: ${shlibs:Depends}
-Suggests: parted | nparted, libparted-1.8-dev, libparted-1.8-i18n (= ${Source-Version})
+Suggests: parted | nparted, libparted-1.8-dev, libparted-1.8-i18n (= ${source:Version})
Conflicts: parted (<< 1.4.13+14pre1), libparted0, libparted1, libparted2
Replaces: libparted0, libparted1, libparted2, libparted1.4 (<< 1.4.24-2)
Provides: libparted
@@ -174,8 +174,8 @@
Package: libparted-1.8-dev
Architecture: any
Section: libdevel
-Depends: libc6-dev, libparted-1.8-7 (= ${Source-Version})
-Suggests: parted (= ${Source-Version}), parted-doc
+Depends: libc6-dev, libparted-1.8-7 (= ${binary:Version})
+Suggests: parted (= ${binary:Version}), parted-doc
Conflicts: libparted-dev, parted (<< 1.2.11)
Replaces: libparted-dev, libparted0-dev, libparted2-dev
Provides: libparted-dev
@@ -213,7 +213,7 @@
Architecture: any
Section: libdevel
Priority: extra
-Depends: libparted-1.8-7 (= ${Source-Version}), libparted-1.8-dev (= ${Source-Version})
+Depends: libparted-1.8-7 (= ${binary:Version}), libparted-1.8-dev (= ${binary:Version})
Conflicts: libparted-dbg
Replaces: libparted-dbg
Provides: libparted-dbg
pgp7p1iyrl6KX.pgp
Description: PGP signature

