Re: how to install packages from experimental
On Wed, Oct 11, 2006, Xavier Bestel wrote:
> I'd like to test gtk and gnome from experimental, but i seem to have a
> problem with libwmf0.2-7 (conflicts with libgtk2.0-0, but is needed by
> e.g. gimp which is needed by gnome).
Gtk 2.10 changed ABI. Hence, modules have to be rebuilt with the new
Gtk. We rebuilt GNOME modules in experimental already (such as
libgnomeui, librsvg etc.), but we did not rebuild modules not
maintained by the team. First, we didn't seek permission (yet) to do
so; second, since Gtk 2.10 is not targetted at Etch anyway, it would be
additional work to rebuild these modules again and again (and update
the Gtk conflicts) if more unstable uploads of these modules happen.
I'm attaching a NMU diff for my own libwmf rebuild, HTH. Warning: the
diff removes some files, you should make sure these get truly removed,
and do not get in the package with an empty content.
--
Loïc Minier <lool@dooz.org>
--- libwmf-0.2.8.4/debian/changelog
+++ libwmf-0.2.8.4/debian/changelog
@@ -1,3 +1,16 @@
+libwmf (0.2.8.4-2.1) experimental; urgency=low
+
+ * Non-maintainer upload.
+ * Convert the package to the new Gtk modules handling.
+ - Bump up the libgtk2.0-dev build-dep to >= 2.10.1-1.
+ - Call dh_gtkmodules with an appropriate LD_LIBRARY_PATH.
+ - Add ${misc:Depends}.
+ - Drop debian/postinst and debian/postrm.
+ * For additional safety, use $(libwmf_pkg) instead of hardcoding the
+ package name with SONAME.
+
+ -- Loic Minier <lool@dooz.org> Tue, 26 Sep 2006 21:46:55 +0200
+
libwmf (0.2.8.4-2) unstable; urgency=high
* src/player.c: Fix integer overflow vulnerability. [CVE-2006-3376]
--- libwmf-0.2.8.4/debian/control
+++ libwmf-0.2.8.4/debian/control
@@ -3,11 +3,11 @@
Priority: optional
Maintainer: Matej Vela <vela@debian.org>
Standards-Version: 3.7.2
-Build-Depends: debhelper, defoma (>= 0.11), autotools-dev, libfreetype6-dev, zlib1g-dev, libsm-dev, libice-dev, libx11-dev, libxt-dev, libexpat1-dev, libjpeg62-dev, libpng12-dev, libgtk2.0-dev
+Build-Depends: debhelper, defoma (>= 0.11), autotools-dev, libfreetype6-dev, zlib1g-dev, libsm-dev, libice-dev, libx11-dev, libxt-dev, libexpat1-dev, libjpeg62-dev, libpng12-dev, libgtk2.0-dev (>= 2.10.1-1)
Package: libwmf0.2-7
Architecture: any
-Depends: ${shlibs:Depends}, defoma (>= 0.11), gsfonts
+Depends: ${misc:Depends}, ${shlibs:Depends}, defoma (>= 0.11), gsfonts
Description: Windows metafile conversion library
Windows metafile (WMF) is a picture format used by many Windows
programs, e.g. Microsoft Word. libwmf is a library for interpreting
--- libwmf-0.2.8.4/debian/rules
+++ libwmf-0.2.8.4/debian/rules
@@ -5,12 +5,14 @@
export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+libwmf_pkg := libwmf0.2-7
+
confflags := --prefix=/usr \
- --with-docdir=/usr/share/doc/libwmf0.2-7 \
- --with-fontdir=/var/lib/defoma/libwmf0.2-7.d \
- --with-gsfontdir=/var/lib/defoma/libwmf0.2-7.d \
- --with-sysfontmap=/var/lib/defoma/libwmf0.2-7.d/fontmap \
- --with-gsfontmap=/var/lib/defoma/libwmf0.2-7.d/fontmap.gs \
+ --with-docdir=/usr/share/doc/$(libwmf_pkg) \
+ --with-fontdir=/var/lib/defoma/$(libwmf_pkg).d \
+ --with-gsfontdir=/var/lib/defoma/$(libwmf_pkg).d \
+ --with-sysfontmap=/var/lib/defoma/$(libwmf_pkg).d/fontmap \
+ --with-gsfontmap=/var/lib/defoma/$(libwmf_pkg).d/fontmap.gs \
--with-xtrafontmap=/etc/libwmf.fontmap
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
confflags += --build=$(DEB_HOST_GNU_TYPE)
@@ -52,12 +54,14 @@
dh_installdocs
dh_installdefoma
dh_install
+ LD_LIBRARY_PATH=debian/$(libwmf_pkg)/usr/lib:$(LD_LIBRARY_PATH) \
+ dh_gtkmodules
dh_strip
dh_compress
dh_fixperms
dh_makeshlibs -V
dh_installdeb
- dh_shlibdeps -ldebian/libwmf0.2-7/usr/lib -Xusr/lib/gtk
+ dh_shlibdeps -ldebian/$(libwmf_pkg)/usr/lib -Xusr/lib/gtk
dh_gencontrol
dh_md5sums
dh_builddeb
--- libwmf-0.2.8.4/debian/postinst
+++ libwmf-0.2.8.4.orig/debian/postinst
@@ -1,8 +0,0 @@
-#!/bin/sh
-set -e
-
-if [ "$1" = configure ] && type update-gdkpixbuf-loaders >/dev/null 2>&1; then
- update-gdkpixbuf-loaders
-fi
-
-#DEBHELPER#
--- libwmf-0.2.8.4/debian/postrm
+++ libwmf-0.2.8.4.orig/debian/postrm
@@ -1,8 +0,0 @@
-#!/bin/sh
-set -e
-
-if [ "$1" = remove ] && type update-gdkpixbuf-loaders >/dev/null 2>&1; then
- update-gdkpixbuf-loaders
-fi
-
-#DEBHELPER#
Reply to: