[Pkg-libvirt-commits] [libguestfs] 03/04: Automatically add appliance dependencies to libguestfs0
Hilko Bengen
bengen at moszumanska.debian.org
Tue Mar 25 10:50:22 UTC 2014
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to branch experimental
in repository libguestfs.
commit 72da1b2549656d5971d04cad69806a6ecda12b40
Author: Hilko Bengen <bengen at debian.org>
Date: Sun Mar 23 23:04:54 2014 +0100
Automatically add appliance dependencies to libguestfs0
---
debian/control | 35 +----------------------------------
debian/rules | 10 ++++++++++
2 files changed, 11 insertions(+), 34 deletions(-)
diff --git a/debian/control b/debian/control
index b8a611c..ecfc5db 100644
--- a/debian/control
+++ b/debian/control
@@ -161,40 +161,7 @@ Depends: ${shlibs:Depends}, ${misc:Depends},
qemu-system-ppc [powerpc],
qemu-system-sparc [sparc],
qemu-system-x86 [i386 amd64],
- bsdmainutils,
- btrfs-tools,
- cryptsetup,
- diffutils,
-# gfs-tools,
-# gfs2-tools,
-# grub-pc,
-# hfsplus,
- iproute,
- libaugeas0,
-# nilfs2-tools,
- ntfs-3g (>> 1:2012.1.15AR.5-2.1~),
- reiserfsprogs,
- udev,
- vim-tiny,
- xz-utils,
- zfs-fuse,
- binutils,
- cpio,
- dosfstools,
- file,
- jfsutils,
- kmod,
- lsof,
- lvm2,
- net-tools,
- parted,
- procps,
- scrub,
- strace,
- xfsprogs,
- zerofree,
- netpbm, icoutils,
- ldmtool,
+ ${appliance:Depends}
Description: guest disk image management system - shared library
The libguestfs library allows accessing and modifying guest disk
images. It offers the following features, among many others:
diff --git a/debian/rules b/debian/rules
index 211c26e..6a4207c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -117,6 +117,16 @@ override_dh_python3:
dh_python3 -p python3-guestfs
override_dh_python2:
dh_python2 -p python-guestfs -V 2.6-
+override_dh_shlibdeps:
+ dh_shlibdeps
+# Add libraries needed by guestfsd to libguestfs0 dependencies
+ dh_shlibdeps -p libguestfs0 -- -e debian/guestfsd/usr/sbin/guestfsd
+# Add packages (except essential packages) from appliance packagelist
+# to libguestfs0 dependencies
+ echo -n 'appliance:Depends=' >> debian/libguestfs0.substvars
+ cat debian/libguestfs0/usr/lib/*/guestfs/supermin.d/packages | \
+ sed -e '/^\(bash\|coreutils\|e2fsprogs\|findutils\|grep\|gzip\|sed\|sysvinit\|tar\|util-linux\)$$/d' | \
+ tr '\n' ',' >> debian/libguestfs0.substvars
# Workaround for Lintian warning
# "{pre,post}inst-has-useless-call-to-ldconfig"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git
More information about the Pkg-libvirt-commits
mailing list