Olaf Hering
2013-Jun-11 13:18 UTC
[Libguestfs] [PATCH] Mask some package names if appliance is build for SUSE
Signed-off-by: Olaf Hering <olaf@aepfle.de> --- Not compile-tested! appliance/packagelist.in | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/appliance/packagelist.in b/appliance/packagelist.in index 8a4a5ea..a00a7ad 100644 --- a/appliance/packagelist.in +++ b/appliance/packagelist.in @@ -126,11 +126,9 @@ dosfstools file findutils gawk -gdisk grep gzip jfsutils -kmod less libxml2 lsof @@ -146,17 +144,14 @@ ocfs2-tools */ parted procps -procps-ng psmisc rsync -scrub sed strace syslinux tar udev util-linux -util-linux-ng #ifndef UBUNTU /* on Ubuntu contains a file in /lib64 which conflicts with libc6 that has * /lib64 as a symbolic link @@ -165,6 +160,14 @@ xfsprogs #endif zerofree +#ifndef SUSE +gdisk +kmod +procps-ng +scrub +util-linux-ng +#endif + #ifdef VALGRIND_DAEMON valgrind #endif
Richard W.M. Jones
2013-Jun-11 13:28 UTC
Re: [Libguestfs] [PATCH] Mask some package names if appliance is build for SUSE
On Tue, Jun 11, 2013 at 03:18:23PM +0200, Olaf Hering wrote:> Signed-off-by: Olaf Hering <olaf@aepfle.de> > --- > > Not compile-tested! > > appliance/packagelist.in | 13 ++++++++----- > 1 file changed, 8 insertions(+), 5 deletions(-) > > diff --git a/appliance/packagelist.in b/appliance/packagelist.in > index 8a4a5ea..a00a7ad 100644 > --- a/appliance/packagelist.in > +++ b/appliance/packagelist.in > @@ -126,11 +126,9 @@ dosfstools > file > findutils > gawk > -gdisk > grep > gzip > jfsutils > -kmod > less > libxml2 > lsof > @@ -146,17 +144,14 @@ ocfs2-tools > */ > parted > procps > -procps-ng > psmisc > rsync > -scrub > sed > strace > syslinux > tar > udev > util-linux > -util-linux-ng > #ifndef UBUNTU > /* on Ubuntu contains a file in /lib64 which conflicts with libc6 that has > * /lib64 as a symbolic link > @@ -165,6 +160,14 @@ xfsprogs > #endif > zerofree > > +#ifndef SUSE > +gdisk > +kmod > +procps-ng > +scrub > +util-linux-ng > +#endif > + > #ifdef VALGRIND_DAEMON > valgrind > #endifBut supermin is supposed to ignore packages that don't exist in the distro. This is a bug in supermin or the zypp plugin for supermin. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/
Olaf Hering
2013-Jun-11 14:07 UTC
Re: [Libguestfs] [PATCH] Mask some package names if appliance is build for SUSE
On Tue, Jun 11, Richard W.M. Jones wrote:> But supermin is supposed to ignore packages that don't exist in the > distro. This is a bug in supermin or the zypp plugin for supermin.It looks like zypper has no "ignore unknown packages/provides" flag. zypper .. install $pkg is called with an unknown package then zypper will just abort because it expects valid input. Maybe there should be some code which iterates over "names" and lets zypper check for every single pkg and drop the ones which it can not resolve. Later the smaller "names" list can be passed to zypper. Are other plugins more forgiving in this? Olaf
Reasonably Related Threads
- [PATCH] Mask some package names if appliance is build for SUSE
- [PATCH v2 1/9] build: Remove ./configure --enable-valgrind-daemon.
- [PATCH] Enable running the daemon under valgrind.
- [PATCH] build: Choose a virtual directory for the daemon which is not a symlink.
- Re: [PATCH v4] RFC: New tool: virt-dib