On Fri, Feb 21, 2020 at 02:34:04PM +0100, Mattia Rizzolo wrote:
> found 936941 2.9.10+dfsg-2
> thanks
With the removal of gnome-doc-utils the only remaining rdep of python-libxml2
is gone (apart from src:chirp, but it's already uninstallable for various other
packages which have dropped Py2 support, so can be safely ignored).
Patch attached.
Cheers,
Moritz
diff -Naur libxml2-2.9.10+dfsg.orig/debian/control libxml2-2.9.10+dfsg/debian/control
--- libxml2-2.9.10+dfsg.orig/debian/control 2020-04-10 14:06:33.0 +0200
+++ libxml2-2.9.10+dfsg/debian/control 2020-06-16 23:38:24.897946252 +0200
@@ -17,13 +17,9 @@
dh-python ,
libicu-dev,
liblzma-dev,
- libpython-all-dbg ,
- libpython-all-dev ,
libpython3-all-dbg ,
libpython3-all-dev ,
pkg-config,
- python-all-dbg:any ,
- python-all-dev:any (>= 2.7.5-5~) ,
python3-all-dbg:any ,
python3-all-dev:any (>= 3.5) ,
rename,
@@ -112,45 +108,6 @@
This package contains general information about the GNOME XML library
and more specific API references.
-Package: python-libxml2
-Architecture: any
-Build-Profiles:
-Section: python
-Depends:
- ${misc:Depends},
- ${python:Depends},
- ${shlibs:Depends},
-Description: Python bindings for the GNOME XML library
- XML is a metalanguage to let you design your own markup language.
- A regular markup language defines a way to describe information in
- a certain class of documents (eg HTML). XML lets you define your
- own customized markup languages for many classes of document. It
- can do this because it's written in SGML, the international standard
- metalanguage for markup languages.
- .
- This package contains the files needed to use the GNOME XML library
- in Python programs.
-
-Package: python-libxml2-dbg
-Architecture: any
-Build-Profiles:
-Section: debug
-Depends:
- python-libxml2 (= ${binary:Version}),
- ${misc:Depends},
- ${python:Depends},
- ${shlibs:Depends},
-Description: Python bindings for the GNOME XML library (debug extension)
- XML is a metalanguage to let you design your own markup language.
- A regular markup language defines a way to describe information in
- a certain class of documents (eg HTML). XML lets you define your
- own customized markup languages for many classes of document. It
- can do this because it's written in SGML, the international standard
- metalanguage for markup languages.
- .
- This package contains the files needed to use the GNOME XML library
- in Python programs for use with the Python debug interpreter.
-
Package: python3-libxml2
Architecture: any
Build-Profiles:
diff -Naur libxml2-2.9.10+dfsg.orig/debian/python-libxml2-dbg.install libxml2-2.9.10+dfsg/debian/python-libxml2-dbg.install
--- libxml2-2.9.10+dfsg.orig/debian/python-libxml2-dbg.install 2020-02-27 19:21:38.0 +0100
+++ libxml2-2.9.10+dfsg/debian/python-libxml2-dbg.install 1970-01-01 01:00:00.0 +0100
@@ -1 +0,0 @@
-usr/lib/python2*/*-packages/*.so
diff -Naur libxml2-2.9.10+dfsg.orig/debian/python-libxml2-dbg.lintian-overrides libxml2-2.9.10+dfsg/debian/python-libxml2-dbg.lintian-overrides
--- libxml2-2.9.10+dfsg.orig/debian/python-libxml2-dbg.lintian-overrides 2020-02-27 19:21:38.0 +0100
+++ libxml2-2.9.10+dfsg/debian/python-libxml2-dbg.lintian-overrides 1970-01-01 01:00:00.0 +0100
@@ -1 +0,0 @@
-python-libxml2-dbg: hardening-no-fortify-functions
diff -Naur libxml2-2.9.10+dfsg.orig/debian/python-libxml2.examples libxml2-2.9.10+dfsg/debian/python-libxml2.examples
--- libxml2-2.9.10+dfsg.orig/debian/python-libxml2.examples 2020-02-27 19:21:38.0 +0100
+++ libxml2-2.9.10+dfsg/debian/python-libxml2.examples 1970-01-01 01:00:00.0 +0100
@@ -1,2 +0,0 @@
-python/tests/*.py
-python/tests/*.xml
diff -Naur libxml2-2.9.10+dfsg.orig/debian/python-libxml2.install libxml2-2.9.10+dfsg/debian/python-libxml2.install
--- libxml2-2.9.10+dfsg.orig/debian/python-libxml2.install 2020-02-27 19:21:38.0 +0100
+++ libxml2-2.9.10+dfsg/debian/python-libxml2.install 1970-01-01 01:00:00.0 +0100
@@ -1,2 +0,0 @@
-usr/lib/python2*/*-packages/*.py*
-usr/lib/python2*/*-packages/*.so
diff -Naur libxml2-2.9.10+dfsg.orig/debian/rules libxml2-2.9.10+dfsg/debian/rules
--- libxml2-2.9.10+dfsg.orig/debian/rules 2020-04-10 14:39:54.0 +0200
+++ libxml2-2.9.10+dfsg/debian/rules 2020-06-16 23:37:32.552359795 +0200
@@ -3,12 +3,6 @@
DOPACKAGES = $(shell dh_listpackages)
-ifneq (,$(filter python-libxml2 python-libxml2-dbg,$(DOPACKAGES)))
-# The versions of python currently supported
-PYVERS=$(shell pyversions -s)
-else
-PYVERS=
-endif
ifneq (,$(filter python3-libxml2 python3-libxml2-dbg,$(DOPACKAGES)))
# The versions of python3 currently supported
PY3VERS=$(shell py3versions -s)
@@ -23,7 +17,7 @@
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
-TARGETS := main $(PYVERS) $(PYVERS:%=%-dbg) $(PY3VERS) $(PY3VERS:%=%-dbg)
+TARGETS := main $(PY3VERS)