Hello.

Actually, this works, not replacing build-deps, but adding
libiberty-dev in addition to binutils-dev.

With that and adding -I/usr/include/libiberty as suggested by
YunQiang Su, the package built in a clean chroot (using sbuild).

I produced a debdiff which does the aforementioned, attached here.

Thanks and regards.

Fernando
diff -u mutrace-0.2.0/Makefile.am mutrace-0.2.0/Makefile.am
--- mutrace-0.2.0/Makefile.am
+++ mutrace-0.2.0/Makefile.am
@@ -86,7 +86,8 @@
 	-ldl \
 	"-static -lbfd"
 libmutrace_backtrace_symbols_la_CFLAGS = \
-	$(PTHREAD_CFLAGS)
+	$(PTHREAD_CFLAGS) \
+	-I/usr/include/libiberty
 
 mutrace: mutrace.in Makefile
 	sed -e 's,@PACKAGE_STRING\@,$(PACKAGE_STRING),g' \
diff -u mutrace-0.2.0/debian/changelog mutrace-0.2.0/debian/changelog
--- mutrace-0.2.0/debian/changelog
+++ mutrace-0.2.0/debian/changelog
@@ -1,3 +1,12 @@
+mutrace (0.2.0-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * debian/control: include libiberty-dev to build-depends
+  * debian/patches/libiberty.patch: includes -I/usr/include/libiberty to
+    Makefile.am 
+
+ -- Fernando Seiti Furusato <[email protected]>  Thu, 12 May 2016 09:40:17 -0400
+
 mutrace (0.2.0-2) unstable; urgency=low
 
   * Link statically against bfd, LP: #875928
diff -u mutrace-0.2.0/debian/control mutrace-0.2.0/debian/control
--- mutrace-0.2.0/debian/control
+++ mutrace-0.2.0/debian/control
@@ -4,7 +4,7 @@
 Maintainer: Riku Voipio <[email protected]>
 Standards-Version: 3.9.1
 Homepage: http://0pointer.de/blog/projects/mutrace.html
-Build-Depends: debhelper (>=8), automake, autoconf, libtool, binutils-dev
+Build-Depends: debhelper (>=8), automake, autoconf, libtool, binutils-dev, libiberty-dev
 
 Package: mutrace
 Architecture: any
--- mutrace-0.2.0.orig/patches/libiberty.patch
+++ mutrace-0.2.0/patches/libiberty.patch
@@ -0,0 +1,14 @@
+Index: mutrace-0.2.0/Makefile.am
+===================================================================
+--- mutrace-0.2.0.orig/Makefile.am
++++ mutrace-0.2.0/Makefile.am
+@@ -86,7 +86,8 @@ libmutrace_backtrace_symbols_la_LIBADD =
+ 	-ldl \
+ 	"-static -lbfd"
+ libmutrace_backtrace_symbols_la_CFLAGS = \
+-	$(PTHREAD_CFLAGS)
++	$(PTHREAD_CFLAGS) \
++	-I/usr/include/libiberty
+ 
+ mutrace: mutrace.in Makefile
+ 	sed -e 's,@PACKAGE_STRING\@,$(PACKAGE_STRING),g' \
only in patch2:
unchanged:
--- mutrace-0.2.0.orig/patches/series
+++ mutrace-0.2.0/patches/series
@@ -0,0 +1 @@
+libiberty.patch

Reply via email to