[Pkg-libvirt-commits] [libguestfs] 258/266: Fixed the code that extracts dependencies from .../guestfs/supermin.d/packages-* lists. This should also take care of the iproute legacy package. (Closes: #752017)
Hilko Bengen
bengen at moszumanska.debian.org
Fri Oct 3 14:42:59 UTC 2014
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag debian/1%1.27.35-1
in repository libguestfs.
commit 2dc558d07f5c390587a33838d99465acd3299a1d
Author: Hilko Bengen <bengen at debian.org>
Date: Wed Jul 16 12:46:46 2014 +0200
Fixed the code that extracts dependencies from .../guestfs/supermin.d/packages-* lists. This should also take care of the iproute legacy package. (Closes: #752017)
---
debian/control | 4 ++--
debian/rules | 28 ++++++++++++++++++----------
2 files changed, 20 insertions(+), 12 deletions(-)
diff --git a/debian/control b/debian/control
index f71b00c..1fd7116 100644
--- a/debian/control
+++ b/debian/control
@@ -64,7 +64,7 @@ Build-Depends: debhelper (>= 9),
# gfs-tools,
grub2 [i386 amd64 powerpc sparc],
hfsplus,
- iproute,
+ iproute2 | iproute,
jfsutils,
kmod,
less,
@@ -113,7 +113,7 @@ Depends: ${shlibs:Depends}, ${misc:Depends},
bsdmainutils,
diffutils,
# grub-pc,
- iproute,
+ iproute2 | iproute,
libaugeas0,
udev,
binutils,
diff --git a/debian/rules b/debian/rules
index 505881a..d234268 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,6 +15,9 @@ BUILDS := $(filter-out $(PYTHON_DEFAULT), $(PYTHONS)) \
$(filter-out $(LUA_DEFAULT), $(LUAS)) \
default
+pkglist_to_deps := sed -e 's,iproute2\?,iproute2|iproute,;s,\(gfs-tools\|gfs2-tools\|gfs2-utils\),gfs2-utils|gfs2-tools|gfs-tools,'
+essential_deps := grep -v '^\(bash\|coreutils\|e2fsprogs\|findutils\|grep\|gzip\|sed\|sysvinit\|tar\|util\-linux\)'
+
QEMU_CPU := $(shell echo $(DEB_HOST_GNU_CPU) \
| sed -e 's,i[456]86,i386,;s,sparc,sparc64,;s,powerpc,ppc64,;s,arm.*,arm,')
@@ -116,9 +119,9 @@ override_dh_install:
# main libguestfs0 can avoid depending on everything.
cd $(CURDIR)/debian/tmp/usr/lib/*-*/guestfs/supermin.d && \
cp -n packages packages.orig; \
- for f in gfs2 hfsplus jfs nilfs reiserfs rsync xfs zfs; do \
- sed -i -e "/$$f/d" packages; \
- grep -F "$$f" < packages.orig > packages-$$f; \
+ for p in gfs2 hfsplus jfs nilfs reiserfs rsync xfs zfs; do \
+ sed -i -e "/$$p/d" packages; \
+ grep -F "$$p" < packages.orig > packages-$$p; \
done ; \
sed -i -e "/^\(iputils\|lsof\|openssh-server\|strace\|vim\)/d" packages; \
grep "^\(iputils\|lsof\|openssh-server\|strace\|vim\)" \
@@ -131,16 +134,21 @@ override_dh_install:
# Add packages (except essential packages) from appliance packagelist
# to libguestfs0 dependencies
- for p in libguestfs0 \
- $(patsubst %,libguestfs-%,gfs2 hfsplus jfs nilfs reiserfs rescue rsync xfs zfs); \
+ for p in gfs2 hfsplus jfs nilfs reiserfs rescue rsync xfs zfs; \
do \
- echo "appliance for $$p..."; \
- echo -n 'appliance:Depends=' >> debian/$$p.substvars; \
- cat debian/$$p/usr/lib/*-*/guestfs/supermin.d/*packages* | \
- grep -v '^\(bash\|coreutils\|e2fsprogs\|findutils\|grep\|gzip\|iproute\|sed\|sysvinit\|tar\|util\-linux\)' | \
- tr '\n' ',' >> debian/$$p.substvars; \
+ echo -n 'appliance:Depends=' >> debian/libguestfs-$$p.substvars; \
+ cat debian/libguestfs-$$p/usr/lib/*-*/guestfs/supermin.d/packages-$$p | \
+ $(pkglist_to_deps) | \
+ $(essential_deps) | \
+ tr '\n' ',' >> debian/libguestfs-$$p.substvars; \
done
+ echo -n 'appliance:Depends=' >> debian/libguestfs0.substvars
+ cat debian/libguestfs0/usr/lib/*-*/guestfs/supermin.d/packages | \
+ $(pkglist_to_deps) | \
+ $(essential_deps) | \
+ tr '\n' ',' >> debian/libguestfs0.substvars; \
+
override_dh_python3:
dh_python3 -p python3-guestfs
override_dh_python2:
--
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