summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2016-04-12 13:25:17 +0000
committerhallgren <hallgren@chalmers.se>2016-04-12 13:25:17 +0000
commit94b8ebf40215e477cf625d55e83b1c718e406e08 (patch)
tree80cb25870edae39978745b26bd178a3f47fcaec6
parent31df4a6c46956d65d56def67854f09dd1cb823e2 (diff)
debian/rules: workaround for a problem on Ubuntu 15.10 and 16.04
dh_shlibdeps has a problem finding which package some of the Haskell libraries come from, even though dpkg-query -S has no problem finding them. But the gf executable is statically linked against the Haskell libraries, so it will work even if these shared libraries aren't installed. But there will be a problem if other shared libraries are missing (.e.g. libtinfo, libgmp), so we need a better solution than simply ignoring all dependency problems... See also http://stackoverflow.com/questions/11238134/dpkg-shlibdeps-error-no-dependency-information-found-for
-rw-r--r--debian/rules10
1 files changed, 10 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index 8405cf2bd..0079f32ca 100644
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,16 @@
%:
+dh $@
+#dh_shlibdeps has a problem finding which package some of the Haskell
+#libraries come from, even though dpkg-query -S has no problem finding them.
+#But the gf executable is statically linked against the Haskell libraries, so
+#it will work even if these shared libraries aren't installed. But there will
+#be a problem if other shared libraries are missing (.e.g. libtinfo, libgmp),
+#so we need a better solution than simply ignoring all dependency problems...
+#See also http://stackoverflow.com/questions/11238134/dpkg-shlibdeps-error-no-dependency-information-found-for
+override_dh_shlibdeps:
+ dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
+
override_dh_auto_build:
cd src/runtime/python && EXTRA_INCLUDE_DIRS=$(CURDIR)/src/runtime/c EXTRA_LIB_DIRS=$(CURDIR)/src/runtime/c/.libs python setup.py build
echo LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(CURDIR)/src/runtime/c/.libs