[libvirt] [jenkins-ci PATCH 1/5] guests: Add mapping for augeas-lenses

Pino Toscano ptoscano at redhat.com
Thu Dec 12 15:42:46 UTC 2019


On Thursday, 12 December 2019 16:26:26 CET Andrea Bolognani wrote:
> On Thu, 2019-12-12 at 16:05 +0100, Pino Toscano wrote:
> > On Thursday, 12 December 2019 15:31:04 CET Andrea Bolognani wrote:
> > > +  augeas-lenses:
> > > +    default: augeas
> > > +    deb: augeas-lenses
> > > +    OpenSUSE: augeas-lenses
> > 
> > Why is this needed? The lenses must be already a dependency of the
> > augeas shared library, or at least of the tools.
> 
> Not on openSUSE, apparently:
> 
>   $ docker run --rm -it opensuse/leap:15.1
>   edb149088975:/ # zypper install augeas
>   Building repository 'Non-OSS Repository' cache ......................
>   Building repository 'Main Repository' cache .........................
>   Building repository 'Main Update Repository' cache ..................
>   Building repository 'Update Repository (Non-Oss)' cache .............
>   Loading repository data...
>   Reading installed packages...
>   Resolving package dependencies...
> 
>   The following NEW package is going to be installed:
>     augeas
> 
>   1 new package to install.
>   Overall download size: 130.1 KiB. Already cached: 0 B. After the operation, additional 205.1 KiB will be used.
>   Continue? [y/n/v/...? shows all options] (y): y
>   Retrieving package augeas-1.10.1-lp151.2.3.x86_64     (1/1), 130.1 KiB (205.1 KiB unpacked)
>   Retrieving: augeas-1.10.1-lp151.2.3.x86_64.rpm ......................
> 
>   Checking for file conflicts: ........................................
>   (1/1) Installing: augeas-1.10.1-lp151.2.3.x86_64 ....................
>   edb149088975:/ # rpm -qa | grep augeas-lenses
>   edb149088975:/ # ls /usr/share/augeas/lenses
>   ls: cannot access '/usr/share/augeas/lenses': No such file or directory
>   edb149088975:/ #

Sigh...

OTOH, in the mapping file I see:

   augeas:
     default: augeas
     deb: augeas-tools

This means that most probably there are different packages installed
depending on the distro:
- on Debian-based distros you get the command line tools
- on some distros (mostly RPM-based) you get only the shared library
- on some other distros (FreeBSD, and Linux distros not handled yet)
  you may get either everything, or the command line tools

OTOH², looking at the spec [1] makes me sad, as nothing really
depends on augeas-lenses, neither the shared library package nor the
tools package :-( This is totally nonsense, you install augeas in
openSUSE and it is broken by default if you have recommends disabled...

So my suggestion is to limit the manual lenses installation only on
openSUSE, as any other distro is already doing a sane job in this case.

[1] https://build.opensuse.org/package/view_file/openSUSE:Factory/augeas/augeas.spec

-- 
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20191212/317e1b60/attachment-0001.sig>


More information about the libvir-list mailing list