On Tue, 21 Jul 2015 14:25:08 -0700, Martin Michlmayr wrote:

> * gregor herrmann <gre...@debian.org> [2015-07-19 19:36]:
> > Looks like this needs more changes. Adding "-std=gnu89" to Makefile* leads 
> > to:
> Works fine for me when I add -std=gnu89 to Makefile manually to test,
> but it seems that CFLAGS from debian/rules is not used during the
> build process.

And now it builds for me as well with the attached patch; no idea
what I did on Sunday; sorry for the noise.


Cheers,
gregor

-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer -  https://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Simply Red: The Right Thing
diff -u hardinfo-0.5.1/Makefile hardinfo-0.5.1/Makefile
--- hardinfo-0.5.1/Makefile
+++ hardinfo-0.5.1/Makefile
@@ -7,7 +7,7 @@
 LIBDIR = /usr/lib
 
 CCFLAGS = -fPIC -pipe -Wall -g 
-CFLAGS = $(GTK_CFLAGS) $(SOUP_CFLAGS) -I.
+CFLAGS = $(GTK_CFLAGS) $(SOUP_CFLAGS) -I. -std=gnu89
 CC = gcc $(ARCHOPTS) -g
 CCSLOW = gcc -O0 -g
 
diff -u hardinfo-0.5.1/debian/changelog hardinfo-0.5.1/debian/changelog
--- hardinfo-0.5.1/debian/changelog
+++ hardinfo-0.5.1/debian/changelog
@@ -1,3 +1,11 @@
+hardinfo (0.5.1-1.5) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix "FTBFS with clang instead of gcc"
+    (Closes: #757525)
+
+ -- gregor herrmann <gre...@debian.org>  Tue, 21 Jul 2015 23:38:45 +0200
+
 hardinfo (0.5.1-1.4) unstable; urgency=medium
 
   * Non-maintainer upload.
only in patch2:
unchanged:
--- hardinfo-0.5.1.orig/Makefile.in
+++ hardinfo-0.5.1/Makefile.in
@@ -1,6 +1,6 @@
 
 CCFLAGS = -fPIC -pipe -Wall -g 
-CFLAGS = $(GTK_CFLAGS) $(SOUP_CFLAGS) -I.
+CFLAGS = $(GTK_CFLAGS) $(SOUP_CFLAGS) -I. -std=gnu89
 CC = gcc $(ARCHOPTS) -g
 CCSLOW = gcc -O0 -g
 

Attachment: signature.asc
Description: Digital Signature

Reply via email to