[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#764210: onak: FTBFS on hurd-i386



Source: onak
Version: 0.4.5-2
Severity: important
Tags: patch
User: debian-hurd@lists.debian.org
Usertags: hurd

Currently onak fails to build from source due to missing linkage of
libpthread in the db4 backend test. The previously successfully built
version is 0.4.2-1. The attached patch rules.patch fixes this problem.

Attached is one additional patch, rules2.patch, which is preferred. The
patch reflects the fact that systemd libraries are not installed for
non-linux architectures, #763924, and don't use systemd in the build
process for these architectures.

Thanks!
--- a/debian/rules	2014-09-29 22:33:40.000000000 +0200
+++ b/debian/rules	2014-10-06 11:36:27.000000000 +0200
@@ -1,5 +1,10 @@
 #!/usr/bin/make -f
 
+DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS 2>/dev/null)
+ifeq ($(DEB_HOST_ARCH_OS),hurd)
+  LDFLAGS  += -lpthread
+endif
+
 DEB_CONFIGURE_EXTRA_FLAGS += --enable-backend=dynamic
 
 CFLAGS += -std=gnu99
@@ -7,6 +12,9 @@
 %:
 	dh "$@" --with autoreconf,systemd
 
+override_dh_auto_configure:
+	dh_auto_configure -- LDFLAGS="$(LDFLAGS)"
+
 override_dh_installinit:
 	dh_installinit --no-start
 
--- a/debian/rules	2014-09-29 22:33:40.000000000 +0200
+++ b/debian/rules	2014-10-06 12:30:44.000000000 +0200
@@ -1,11 +1,23 @@
 #!/usr/bin/make -f
 
+DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS 2>/dev/null)
+ifeq ($(DEB_HOST_ARCH_OS),hurd)
+  LDFLAGS  += -lpthread
+endif
+
 DEB_CONFIGURE_EXTRA_FLAGS += --enable-backend=dynamic
 
 CFLAGS += -std=gnu99
 
 %:
+ifeq ($(DEB_HOST_ARCH_OS),linux)
 	dh "$@" --with autoreconf,systemd
+else
+	dh "$@" --with autoreconf
+endif
+
+override_dh_auto_configure:
+	dh_auto_configure -- LDFLAGS="$(LDFLAGS)"
 
 override_dh_installinit:
 	dh_installinit --no-start

Reply to: