Drop libxml2-udeb

The package has been broken in ubuntu for a while already, and nobody
seems to care anyway.
Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent 68baafed
Package: libxml2-udeb
XC-Package-Type: udeb
Architecture: any
Section: debian-installer
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: GNOME XML library - minimal runtime
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 is a minimal package for use in debian-installer that yields a
library providing an extensive API to handle such XML data files.
...@@ -25,15 +25,6 @@ DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) ...@@ -25,15 +25,6 @@ DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
TARGETS := main $(PYVERS) $(PYVERS:%=%-dbg) $(PY3VERS) $(PY3VERS:%=%-dbg) TARGETS := main $(PYVERS) $(PYVERS:%=%-dbg) $(PY3VERS) $(PY3VERS:%=%-dbg)
WITH_UDEB := $(shell dpkg-vendor --derives-from Ubuntu && echo yes)
ifdef WITH_UDEB
$(if $(shell grep -q libxml2-udeb debian/control || echo yes),$(shell cat debian/control.udeb >> debian/control))
TARGETS += udeb
else
$(if $(shell grep -q libxml2-udeb debian/control && echo yes),$(shell sed -i /libxml2-udeb/,\$$d debian/control))
endif
CONFIGURE_FLAGS := --disable-silent-rules --with-history --cache-file="$(CURDIR)/builddir/config.cache" CONFIGURE_FLAGS := --disable-silent-rules --with-history --cache-file="$(CURDIR)/builddir/config.cache"
override_dh_auto_configure: $(TARGETS:%=doconfigure-%) override_dh_auto_configure: $(TARGETS:%=doconfigure-%)
...@@ -44,8 +35,6 @@ doconfigure-%: ...@@ -44,8 +35,6 @@ doconfigure-%:
doconfigure-main: CONFIGURE_FLAGS += --without-python --with-icu doconfigure-main: CONFIGURE_FLAGS += --without-python --with-icu
doconfigure-python%: CONFIGURE_FLAGS += --with-python=/usr/bin/$(subst -dbg,,$(*)) --with-python-install-dir=/usr/lib/$(subst -dbg,,$(*))/dist-packages doconfigure-python%: CONFIGURE_FLAGS += --with-python=/usr/bin/$(subst -dbg,,$(*)) --with-python-install-dir=/usr/lib/$(subst -dbg,,$(*))/dist-packages
#doconfigure-udeb: CONFIGURE_FLAGS += --without-history --with-minimum --with-tree --with-output
doconfigure-udeb: CONFIGURE_FLAGS += --without-history --with-tree --with-output --without-python --without-icu
dobuild-%: BUILD_DIR=builddir/$(*) dobuild-%: BUILD_DIR=builddir/$(*)
dobuild-%: doconfigure-% dobuild-%: doconfigure-%
...@@ -65,7 +54,7 @@ override_dh_auto_build-arch: $(TARGETS:%=dobuild-%) ...@@ -65,7 +54,7 @@ override_dh_auto_build-arch: $(TARGETS:%=dobuild-%)
override_dh_auto_build-indep: dobuild-main override_dh_auto_build-indep: dobuild-main
override_dh_auto_clean: override_dh_auto_clean:
rm -rf builddir debian/tmp-dbg debian/tmp-udeb rm -rf builddir debian/tmp-dbg
rm -f doconfigure-* rm -f doconfigure-*
dh_auto_clean dh_auto_clean
...@@ -101,9 +90,6 @@ doinstall-python%-dbg: ...@@ -101,9 +90,6 @@ doinstall-python%-dbg:
doinstall-python%: doinstall-python%:
dh_auto_install --builddirectory=builddir/main/python$(*) dh_auto_install --builddirectory=builddir/main/python$(*)
doinstall-udeb:
dh_auto_install --builddirectory=builddir/udeb --destdir=debian/tmp-udeb
override_dh_installdocs: override_dh_installdocs:
dh_installdocs -A AUTHORS TODO README dh_installdocs -A AUTHORS TODO README
dh_installdocs -ppython-libxml2 python/TODO dh_installdocs -ppython-libxml2 python/TODO
...@@ -116,20 +102,17 @@ override_dh_installchangelogs: ...@@ -116,20 +102,17 @@ override_dh_installchangelogs:
dh_installchangelogs -k NEWS dh_installchangelogs -k NEWS
override_dh_install-arch: override_dh_install-arch:
dh_install -Npython-libxml2-dbg -Npython3-libxml2-dbg $(if $(WITH_UDEB),-Nlibxml2-udeb) dh_install -Npython-libxml2-dbg -Npython3-libxml2-dbg
ifneq (,$(filter python-libxml2-dbg,$(DOPACKAGES))) ifneq (,$(filter python-libxml2-dbg,$(DOPACKAGES)))
dh_install -ppython-libxml2-dbg --sourcedir=debian/tmp-dbg dh_install -ppython-libxml2-dbg --sourcedir=debian/tmp-dbg
endif endif
ifneq (,$(filter python3-libxml2-dbg,$(DOPACKAGES))) ifneq (,$(filter python3-libxml2-dbg,$(DOPACKAGES)))
dh_install -ppython3-libxml2-dbg --sourcedir=debian/tmp-dbg dh_install -ppython3-libxml2-dbg --sourcedir=debian/tmp-dbg
endif
ifneq ($(WITH_UDEB),)
dh_install -plibxml2-udeb --sourcedir=debian/tmp-udeb
endif endif
sed -i -e 's,/lib/$(DEB_HOST_MULTIARCH),/lib,' debian/libxml2-dev/usr/bin/xml2-config sed -i -e 's,/lib/$(DEB_HOST_MULTIARCH),/lib,' debian/libxml2-dev/usr/bin/xml2-config
override_dh_strip: override_dh_strip:
dh_strip -a --dbg-package=libxml2-dbg $(if $(WITH_UDEB),-Nlibxml2-udeb) -Nlibxml2-utils -Npython-libxml2 -Npython-libxml2-dbg -Npython3-libxml2 -Npython3-libxml2-dbg dh_strip -a --dbg-package=libxml2-dbg -Nlibxml2-utils -Npython-libxml2 -Npython-libxml2-dbg -Npython3-libxml2 -Npython3-libxml2-dbg
ifneq (,$(filter python-libxml2 python-libxml2-dbg,$(DOPACKAGES))) ifneq (,$(filter python-libxml2 python-libxml2-dbg,$(DOPACKAGES)))
dh_strip -ppython-libxml2 --dbg-package=python-libxml2-dbg dh_strip -ppython-libxml2 --dbg-package=python-libxml2-dbg
endif endif
...@@ -139,7 +122,7 @@ endif ...@@ -139,7 +122,7 @@ endif
dh_strip --remaining-packages -Npython-libxml2-dbg -Npython3-libxml2-dbg dh_strip --remaining-packages -Npython-libxml2-dbg -Npython3-libxml2-dbg
override_dh_makeshlibs: override_dh_makeshlibs:
dh_makeshlibs -a $(if $(WITH_UDEB),--add-udeb=libxml2-udeb )-V 'libxml2 (>= 2.7.4)' -- -c4 dh_makeshlibs -a -V 'libxml2 (>= 2.7.4)' -- -c4
override_dh_gencontrol: override_dh_gencontrol:
dh_gencontrol -- -Vdep:libicudbg="`dpkg-query -f '$${Depends}' -W libicu-dev | sed 's/.*\(libicu[0-9]*\).*/\1/'`-dbg" dh_gencontrol -- -Vdep:libicudbg="`dpkg-query -f '$${Depends}' -W libicu-dev | sed 's/.*\(libicu[0-9]*\).*/\1/'`-dbg"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment