Package: hardinfo
Severity: minor
Tags: patch
User: pkg-llvm-t...@lists.alioth.debian.org
Usertags: clang-ftbfs

Hello,

Using the rebuild infrastructure, your package fails to build with clang
(instead of gcc).

Detected this kind of error:
http://clang.debian.net/status.php?version=3.5.0rc1&key=UNDEF_REF

Full build log is available here:
http://clang.debian.net/logs/2014-06-16/hardinfo_0.5.1-1.4_unstable_clang.log

Thanks,
Arthur

-- System Information:
Debian Release: jessie/sid (unstable)
Architecture: amd64 (x86_64)
Kernel: Linux 3.14-2-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE="en_US.UTF-8"
Shell: /bin/sh linked to /bin/dash
Compiler: Debian clang version 3.5.0-+rc1-2 (tags/RELEASE_35/rc1) (based on 
LLVM 3.5.0)
diff -Naur hardinfo.orig/hardinfo-0.5.1/debian/changelog hardinfo/hardinfo-0.5.1/debian/changelog 
--- hardinfo.orig/hardinfo-0.5.1/debian/changelog	2014-08-08 16:47:17.386109520 -0500
+++ hardinfo/hardinfo-0.5.1/debian/changelog	2014-08-08 17:00:53.146123726 -0500
@@ -1,3 +1,10 @@
+hardinfo (0.5.1-1.5) unstable; urgency=low
+
+  * Fix FTBFS with clang instead of gcc
+    - Fixed undefined reference error
+
+ -- Arthur Marble <art...@info9.net>  Fri, 08 Aug 2014 17:00:53 -0500
+
 hardinfo (0.5.1-1.4) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Naur hardinfo.orig/hardinfo-0.5.1/patches/clang-ftbfs.diff hardinfo/hardinfo-0.5.1/patches/clang-ftbfs.diff 
--- hardinfo.orig/hardinfo-0.5.1/patches/clang-ftbfs.diff	1969-12-31 18:00:00.000000000 -0600
+++ hardinfo/hardinfo-0.5.1/patches/clang-ftbfs.diff	2014-08-08 16:59:43.514122514 -0500
@@ -0,0 +1,11 @@
+--- a/configure
++++ b/configure
+@@ -211,6 +211,8 @@ fi
+ echo "#define ENABLE_BINRELOC 1" >> config.h
+ echo "#define RELEASE $RELEASE" >> config.h
+ 
++echo -e "\n#ifdef __clang__\n#define inline\n#endif" >> config.h
++
+ echo -e "\n#endif	/* __CONFIG_H__ */" >> config.h
+ 
+ echo "Writing Makefile..."
diff -Naur hardinfo.orig/hardinfo-0.5.1/patches/series hardinfo/hardinfo-0.5.1/patches/series 
--- hardinfo.orig/hardinfo-0.5.1/patches/series	1969-12-31 18:00:00.000000000 -0600
+++ hardinfo/hardinfo-0.5.1/patches/series	2014-08-08 16:50:22.062112736 -0500
@@ -0,0 +1 @@
+clang-ftbfs.diff

Reply via email to