Bug#875123: oce: set LD_LIBRARY_PATH for dh_auto_test

Steve Langasek steve.langasek at canonical.com
Sat Sep 9 20:38:17 UTC 2017


Package: oce
Version: 0.17.2-2
Severity: normal
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu artful ubuntu-patch

Dear maintainers,

The oce package has been failing to build in Ubuntu on several arches
because libTKBin.so.10 can't be found by the test suite.

This package didn't fail to build on Debian, so it's not clear to me what
relevant difference there is between Debian and Ubuntu.  It may be related
to differences in compiler defaults (e.g.  -Wl,--as-needed), but if so I
don't understand why the previous version of oce built successfully.

In any case, the attached patch fixes the build in Ubuntu, and should also
be harmless in Debian.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org
-------------- next part --------------
diff -Nru oce-0.17.2/debian/rules oce-0.17.2/debian/rules
--- oce-0.17.2/debian/rules	2016-06-16 14:02:43.000000000 -0700
+++ oce-0.17.2/debian/rules	2017-09-09 12:53:53.000000000 -0700
@@ -5,6 +5,9 @@
 LDFLAGS  := $(shell dpkg-buildflags --get LDFLAGS)
 
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+DEB_HOST_ARCH_BITS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_BITS)
+UNAME := $(shell uname -m)
+DEBUG_PATH := obj-$(DEB_HOST_MULTIARCH)/Unix/$(UNAME)-RelWithDebInfo-$(DEB_HOST_ARCH_BITS)
 
 ifeq ($(findstring parallel=,$(DEB_BUILD_OPTIONS)),)
 	export DEB_BUILD_OPTIONS+=parallel=$(shell getconf _NPROCESSORS_ONLN)
@@ -59,3 +62,6 @@
 
 override_dh_makeshlibs:
 	dh_makeshlibs -Noce-draw
+
+override_dh_auto_test:
+	LD_LIBRARY_PATH=$(CURDIR)/$(DEBUG_PATH) dh_auto_test


More information about the debian-science-maintainers mailing list