[Libguestfs] supermin in Fedora Rawhide switched (again) to using dnf instead of yum

Kashyap Chamarthy kchamart at redhat.com
Tue May 26 10:12:43 UTC 2015


On Tue, May 26, 2015 at 10:59:19AM +0200, Kashyap Chamarthy wrote:
> On Tue, May 26, 2015 at 09:44:33AM +0100, Richard W.M. Jones wrote:
> > On Mon, May 25, 2015 at 10:22:35PM +0200, Kashyap Chamarthy wrote:
> > > I just built `supermin` from source on my Fedora 22 machine, and somehow
> > > it can't seem to detect RPM (but `supermin` from Rawhide detects it).
> > > Exact error:
> > > 
> > >     supermin: could not detect package manager used by this system or
> > >     distro.
> > > 
> > > which is coming from: supermin/src/package_handler.ml.
> > > 
> > > Test
> > > ----
> > > 
> > > Build `supermin` from source:
> > > 
> > >     $ git clone https://github.com/libguestfs/supermin.git
> > >     $ ./bootstrap
> > >     $ ./autogen.sh
> > >     $ ./configure 
> > 
> > I'm guessing that you don't have one of 'rpm-devel', 
> 
> I was missing this. Retrying with it.

Yep -- 'rpm-devel' and  'zlib-static' (which was not pulled in by `dnf
builddep supermin`, though) package did it (thanks Pino):

Build `supermin:

    $ dnf install xz-static
    $ sudo dnf install rpm-devel -y
    $ ./configure
    $ make
    $ make check
    [. . .]
    # TOTAL: 8
    # PASS:  8
    [. . .]

Check for rpm driver:

    $ ../src/supermin --list-drivers | grep fedora
    fedora/rpm      detected

Prepare and build the appliance using the existing script from source
tree:

    $ ./build-basic-vm.sh
    $ cd basic-full-appliance/

Boot it:

    $ qemu-system-x86_64 -m 512 -kernel kernel \
       -initrd initrd  -serial mon:stdio \
       -append 'console=ttyS0,115200,selinux=0' \
       -drive file=root,format=raw,if=virtio \
       -nographic -nodefconfig -nodefaults
    [. . .]
    bash-4.3#   


Thanks.

-- 
/kashyap




More information about the Libguestfs mailing list