Control: severity -1 grave
Control: tags -1 +patch

The amd64 version of glabels (3.0.1-4+b1) is affected by this problem --
it is built without barcode support on amd64 while other architectures
still have that support. This is a regression from the version of
glabels that was shipped with wheezy.

A closer look at the build log[1] shows that the autoconf check

    AC_CHECK_LIB(barcode, Barcode_Create, ...)

fails -- but only on amd64.

Using a version of barcode rebuilt with -fPIC fixes this problem.

I have prepared an NMU for which I am attaching the patch below.

I'm going to upload the fixed package to DELAYED/2. (The bug report has
not been reacted on for almost 18 months and the package has not been
updated in more than four years.) Matti, feel free to reschedule or do
your own upload.

Cheers,
-Hilko

[1] 
https://buildd.debian.org/status/fetch.php?pkg=glabels&arch=amd64&ver=3.0.1-4%2Bb1&stamp=1398540850
>From 32c2477d1b6cab6c78be86e71088e5c239c247cd Mon Sep 17 00:00:00 2001
From: Hilko Bengen <ben...@debian.org>
Date: Mon, 20 Oct 2014 11:06:46 +0200
Subject: [PATCH] 0.98+debian-9.1

---
 debian/changelog | 7 +++++++
 debian/rules     | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index b1f2001..0a5ed1a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+barcode (0.98+debian-9.1) unstable; urgency=medium
+
+  * Non-maintainer upload
+  * build with -fPIC (Closes: #708561)
+
+ -- Hilko Bengen <ben...@debian.org>  Mon, 20 Oct 2014 11:04:37 +0200
+
 barcode (0.98+debian-9) unstable; urgency=low
 
   * New maintainer. (Closes: #540584: O: barcode -- Utility and library
diff --git a/debian/rules b/debian/rules
index 677e192..edac9b1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,7 +5,7 @@ include /usr/share/quilt/quilt.make
 DEB_HOST_GNU_TYPE	?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_BUILD_GNU_TYPE	?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
-CFLAGS += -DHAVE_STRCASECMP
+CFLAGS += -DHAVE_STRCASECMP -fPIC
 
 ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
 	CROSS=CC=$(DEB_HOST_GNU_TYPE)-gcc
-- 
2.1.1

Reply via email to