tags 632378 + patch
thanks
Patch attached. (The changelog entry is only for easing understanding
what the patch does. I don't intend to upload the fix.)
--
Jakub Wilk
diffstat for python-pyglew_0.1.2-4 python-pyglew_0.1.2-4.1
changelog | 8 ++++++++
patches/01_fix_makefile.dpatch | 2 +-
rules | 5 +----
3 files changed, 10 insertions(+), 5 deletions(-)
diff -u python-pyglew-0.1.2/debian/rules python-pyglew-0.1.2/debian/rules
--- python-pyglew-0.1.2/debian/rules
+++ python-pyglew-0.1.2/debian/rules
@@ -19,7 +19,7 @@
dh_testroot
[ ! -d build ] || rm -rf build
[ ! -d dist ] || rm -rf dist
- dh_clean *.o *.so build-ext-* build-stamp debian/shlibs.local
+ dh_clean *.o *.so build-ext-* build-stamp
build-ext-%:
dh_testdir
@@ -29,9 +29,6 @@
$(MAKE) PYTHON=python$*
dh_install build/pyglew.so /usr/lib/python$*/$(call py_sitename, $*)
- # workaround to let think libpython<VER> is local, so that dh_shlibdebs does not generate
- # dependencies on them, but only ${python:Depends} will
- echo libpython$* 1.0 >> debian/shlibs.local
touch $@
build: build-stamp
diff -u python-pyglew-0.1.2/debian/changelog python-pyglew-0.1.2/debian/changelog
--- python-pyglew-0.1.2/debian/changelog
+++ python-pyglew-0.1.2/debian/changelog
@@ -1,3 +1,11 @@
+python-pyglew (0.1.2-4.1) UNRELEASED; urgency=low
+
+ * Non-maintainer upload.
+ * Don't override dh_shlibdeps via shlibs.local (closes: #632378).
+ * Don't link Python extensions to libpython.
+
+ -- Jakub Wilk <jw...@debian.org> Sun, 19 Feb 2012 13:17:56 +0100
+
python-pyglew (0.1.2-4) unstable; urgency=low
[ Julien Lavergne ]
diff -u python-pyglew-0.1.2/debian/patches/01_fix_makefile.dpatch python-pyglew-0.1.2/debian/patches/01_fix_makefile.dpatch
--- python-pyglew-0.1.2/debian/patches/01_fix_makefile.dpatch
+++ python-pyglew-0.1.2/debian/patches/01_fix_makefile.dpatch
@@ -39,7 +39,7 @@
-pyglew.$(SOEXT): pyglew.o $(GLOBJECTS)
- $(LINK) -o $@ $^ $(LIBS)
+$(builddir)/pyglew.$(SOEXT): $(builddir)/pyglew.o $(GLOBJECTS)
-+ $(CXX) -shared $(CXXFLAGS) -o $@ $^ -lGLEW -lGL -l$(PYTHON)
++ $(CXX) -shared $(CXXFLAGS) -o $@ $^ -lGLEW -lGL
$(builddir)/pyglew-gen.hh: $(addprefix $(builddir)/, $(addsuffix -gen.hh, $(GLBASE)))
cat $^ > $@