Package: src:util-linux
Version: 2.25.1-3
Severity: important
Tags: patch
User: [email protected]
Usertags: rebootstrap

Hi Andreas,

util-linux currently FTCBFS. It fails to compile sys-utils/ipcutils.c,
because that file used C99 features and the cross build does not pass
-std=gnu99 to gcc, because CC is explicitly set from debian/rules. The
configure run did select "$(DEB_HOST_GNU_TYPE)-gcc -std=gnu99", but this
is overridden by passing CC. So when setting CC, we should include the
-std flag. This is what my patch does. Possibly not passing CC works as
well.

Helmut
diff -Nru util-linux-2.25.1/debian/changelog util-linux-2.25.1/debian/changelog
--- util-linux-2.25.1/debian/changelog  2014-10-05 19:06:55.000000000 +0200
+++ util-linux-2.25.1/debian/changelog  2014-10-07 20:19:07.000000000 +0200
@@ -1,3 +1,10 @@
+util-linux (2.25.1-3.1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Pass -std=gnu99 to CC when crossing. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Tue, 07 Oct 2014 20:19:05 +0200
+
 util-linux (2.25.1-3) unstable; urgency=medium
 
   [ Ben Hutchings ]
diff -Nru util-linux-2.25.1/debian/rules util-linux-2.25.1/debian/rules
--- util-linux-2.25.1/debian/rules      2014-10-05 19:06:55.000000000 +0200
+++ util-linux-2.25.1/debian/rules      2014-10-07 20:19:21.000000000 +0200
@@ -41,7 +41,7 @@
 ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
        CROSS :=
 else
-       CROSS := CC=$(DEB_HOST_GNU_TYPE)-gcc
+       CROSS := CC="$(DEB_HOST_GNU_TYPE)-gcc -std=gnu99"
 endif
 
 %:

Reply via email to