Port-xen archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: xentools depends on X11?



Hi Eric!

eric%cirr.com@localhost:
> Lars-Johan Liman writes:
> - I just tried to build a minimal Xen dom0. I was somewhat surprised to
> - learn that you cannot install xentools without dragging in "all of" X11,
> - as it depends on some X11 lib. Is this really a) necessary, b)
> - desirable?

> Which version of xentools are you building/installing?

I'm doing a binary install from:

http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/7.1/All/xentools46-4.6.5nb2.tgz

> In checking the dependency list for xentools46, I couldn't find
> anything that seemed to pull in anything X11 related, unless
> python27 or ocaml manages to do it in some  hidden fashion..

It could be related to one of the packages on which it depends. I'm not
sure. Trying to install leads to an error state I haven't seen before,
but I think it happens because I _haven't_ installed all the basic
NetBSD installation packages (in this case the X11 ones), and as I
usually do that, I haven't ended up in this situation before.

Since this is purely a pkg related matter, you can do the following
_inside_ a lab domU. I would be weary to take things further than just
installing the packages, though ... ;-):

To repeat:

Take a blank disk(-image). Partition it and install

    base.tgz
    etc.tgz
    comp.tgz
    <kern-of-your-choice>.tgz
    man.tgz
    misc.tgz
    modules.tgz
    text.tgz

from

    http://cdn.netbsd.org/pub/NetBSD/iso/7.1/NetBSD-7.1-amd64.iso

* "Make it boot" :-)

* Set up some basic things like hostname, networking, resolver, ...

* Set and export PKG_PATH:

    http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/7.1/All

* pkg_add -v pkgin

* set /usr/pkg/etc/pkgin/repositories.conf to the above URL in PKG_PATH.

* pkgin update

* pkgin install xenkernel46

  (Just a test. This works fine.)

Now try to install xentools. Note the "warning message", and then the
situation at the end

* pkgin install xentools46

    calculating dependencies... done.
    /usr/X11R7/lib/libpixman-1.so.2, needed by xentools46-4.6.5nb2 is not present in this system.

    nothing to upgrade.
    13 packages to be installed (125M to download, 409M to install):

    perl-5.24.1 pcre-8.40nb1 libelf-0.8.13nb1 ncurses-6.0nb3 mozilla-rootcerts-1.0.20170121nb2 libffi-3.2.1nb2 yajl-2.1.0 python27-2.7.13nb1 py27-curses-2.7.13nb4 ocaml-findlib-1.7.1nb1 ocaml-4.04.0 glib2-2.50.3 argp-1.3nb1

    ...
    ... (Long list of successful installations.)
    ...

    installing ocaml-4.04.0...
    installing glib2-2.50.3...
    No schema files found: doing nothing.
    installing argp-1.3nb1...
    pkg_install warnings: 13, errors: 0
    pkg_install error log can be found in /var/db/pkgin/pkg_install-err.log
    reading local summary...
    processing local summary...
    no such installed package xentools46
    #


    (NOTE: The "pkg_install warnings: 13, errors: 0" message pertains
    almost exclusively to the fact that the packages at that URL are
    built for 7.0, not for the newer 7.1, which yields a "wrong
    platform" warning for every package (which I happily ignore ;-) The
    only exception is the (harmless) warning:

        pkg_add: package `ocaml-4.04.0' was already installed as dependency,
        now marked as installed manually
    )

Ummm ... Let's try again.

* pkgin install xentools46

    calculating dependencies... done.
    /usr/X11R7/lib/libpixman-1.so.2, needed by xentools46-4.6.5nb2 is not present in this system.

    nothing to upgrade.
    nothing to install.
    #

* Test:

    # /usr/pkg/sbin/xl
    -sh: /usr/pkg/sbin/xl: not found

* pkg_info | grep -i xen
    xenkernel46-4.6.5   Xen 4.6.x Kernel
    #

Alas, not installed, apparently due to lack of X11/libpixman. If I add
the X11 packages from the NetBSD .iso image, the xentools installation
works fine.

This is in no way a showstopper, but it think it "slightly
inelegant". :-)

				Cheers,
				  /Liman


Home | Main Index | Thread Index | Old Index