From 8120950a643b31218cdb7f69873ccb560913d705 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Fri, 21 Apr 2017 14:31:09 +0200 Subject: [PATCH] deborphan: add qemu-kvm to list of packages which are never to be reported In commit ec12218051e8c1 we added qemu-system-x86 as underlying dependency for qemu-kvm, now qemu-kvm is considered for removal. This seems to be the case because qemu-kvm depends on qemu-system-x86 and and even though we explicitely ask for both packages to be installed, then qemu-kvm is considered for removal. Let's avoid this by adding qemu-kvm to the list of packages which are never to be reported by deborphan, then it's not automatically removed via DEBORPHAN/98-clean-chroot. Noticed via "grml-live-missing-packages.test_missing_packages_qemu-kvm" in Jenkins daily builds. --- etc/grml/fai/config/scripts/GRMLBASE/40-deborphan | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/etc/grml/fai/config/scripts/GRMLBASE/40-deborphan b/etc/grml/fai/config/scripts/GRMLBASE/40-deborphan index 148880d..814d5d8 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/40-deborphan +++ b/etc/grml/fai/config/scripts/GRMLBASE/40-deborphan @@ -21,9 +21,13 @@ if [ -r $target/usr/bin/ewfinfo -a -x $target/usr/bin/deborphan ] ; then $ROOTCMD deborphan --add-keep libewf1 || /bin/true fi -if [ -r $target//usr/lib/libstdc++-libc6.2-2.so.3 -a -x $target/usr/bin/deborphan ] ; then +if [ -r $target/usr/lib/libstdc++-libc6.2-2.so.3 -a -x $target/usr/bin/deborphan ] ; then $ROOTCMD deborphan --add-keep libstdc++2.10-glibc2.2 || /bin/true fi +if [ -r "$target"/usr/bin/kvm -a -x "$target"/usr/bin/deborphan ] ; then + $ROOTCMD deborphan --add-keep qemu-kvm || /bin/true +fi + ## END OF FILE ################################################################# # vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2 -- 2.1.4