• Status of NetBSD 8 packages

    From =?UTF-8?Q?Yannick_Duch=C3=AAne?=@21:1/5 to All on Tue Oct 9 11:12:57 2018
    Hi there (hope there is someone in this group),

    I installed NetBSD on a 32bits machine a few days ago, and have issues installing packages, it often complains it cannot find the package or cannot satisfy a dependencies (*).

    Searching the web, it seems NetBSD 8 is new, so may be not all packages are available?

    If this is indeed the cause of my issue, how can I know when it will be OK?

    (I may additionally have framebuffer and terminal related questions later)



    (*) The only two packages I could install are `nano` and `elinks` and I miss `feh` (to display images on the framebuffer), `xpdf` (to read PDF) and `surf` (a light WebKit based web browser, unavoidable, to me).

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael =?ISO-8859-1?Q?B=E4uerle?=@21:1/5 to All on Thu Oct 11 12:09:33 2018
    Yannick Duchne wrote:

    [...]
    (*) The only two packages I could install are `nano` and `elinks` and
    I miss `feh` (to display images on the framebuffer), `xpdf` (to read
    PDF) and `surf` (a light WebKit based web browser, unavoidable, to
    me).

    feh and xpdf should be available as binary packages for i386: <https://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/graphics/feh/README.html> <https://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/print/xpdf/README.html>

    Looks like surf is not in pkgsrc yet. Maybe you want to play with this
    package from the wip (work in progress) section:
    <http://pkgsrc.se/wip/surf>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Yannick_Duch=C3=AAne?=@21:1/5 to All on Thu Oct 11 16:02:24 2018
    Indeed, the first two packages are there, but some of their dependencies seems to be missing:

    # pkg_add feh
    pkg_add: no pkg found for 'libelf>=0.8.5', sorry.
    pkg_add: Can't install dependency libelf>=0.8.5
    pkg_add: Can't install dependency glib2>=2.34.0
    pkg_add: Can't install dependency desktop-file-utils>=0.10nb1
    pkg_add: 1 package addition failed

    # pkg_add xpdf
    pkg_add: no pkg found for 'openjpeg>=2.1.0', sorry.
    pkg_add: Can't install dependency openjpeg>=2.1.0
    pkg_add: Can't install dependency poppler-utils-[0-9]*
    pkg_add: 1 package addition failed

    For the WIP packages, I could not find how to add it in PKG_PATH, and I though WIP is for developers only. My PKG_PATH is this (defined in `/root/.profile`):

    http://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/i386/8.0/All


    Le jeudi 11 octobre 2018 13:08:06 UTC+2, Michael Bäuerle a écrit :

    feh and xpdf should be available as binary packages for i386: <https://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/graphics/feh/README.html> <https://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/print/xpdf/README.html>

    Looks like surf is not in pkgsrc yet. Maybe you want to play with this package from the wip (work in progress) section:
    <http://pkgsrc.se/wip/surf>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael =?ISO-8859-1?Q?B=E4uerle?=@21:1/5 to All on Fri Oct 12 17:40:57 2018
    Yannick Duchne wrote:
    Le jeudi 11 octobre 2018 13:08:06 UTC+2, Michael Buerle a crit:

    feh and xpdf should be available as binary packages for i386: <https://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/graphics/feh/README.html> <https://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/print/xpdf/README.html>

    Looks like surf is not in pkgsrc yet. Maybe you want to play with this package from the wip (work in progress) section: <http://pkgsrc.se/wip/surf>

    Indeed, the first two packages are there, but some of their
    dependencies seems to be missing:

    # pkg_add feh
    pkg_add: no pkg found for 'libelf>=0.8.5', sorry.
    pkg_add: Can't install dependency libelf>=0.8.5
    pkg_add: Can't install dependency glib2>=2.34.0
    pkg_add: Can't install dependency desktop-file-utils>=0.10nb1
    pkg_add: 1 package addition failed

    # pkg_add xpdf
    pkg_add: no pkg found for 'openjpeg>=2.1.0', sorry.
    pkg_add: Can't install dependency openjpeg>=2.1.0
    pkg_add: Can't install dependency poppler-utils-[0-9]*
    pkg_add: 1 package addition failed

    For the WIP packages, I could not find how to add it in PKG_PATH, and
    I though WIP is for developers only. My PKG_PATH is this (defined in `/root/.profile`):

    http://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/i386/8.0/All

    But at least binary packages to fulfil the dependencies for feh and xpdf
    are there. Normally pkg_add should install them automatically. If this
    doesn't work, you can download them manually (and install via pkg_add
    from your local disk).

    WIP is for unfinished packages. Nobody forbids you to use them, you
    simply should not expect them to be mature. To build surf checkout
    the pkgsrc and the wip trees as described here: <https://www.netbsd.org/docs/pkgsrc/getting.html>
    <https://pkgsrc.org/wip/>
    The dependencies are "x11/gtk2" and "www/webkit24-gtk". You can try to
    install binary packages for them as described above. Then:

    cd /usr/pkgsrc/wip/surf
    make install

    should build a binary package (in "/usr/pkgsrc/packages") for wip/surf
    and install it.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Yannick_Duch=C3=AAne?=@21:1/5 to All on Fri Oct 12 18:40:52 2018
    Le samedi 13 octobre 2018 03:33:40 UTC+2, Yannick Duchêne a écrit :
    I’m not on a hurry, so I will try to have some time to investigate a bit.

    I forget to mention I noticed `pkg_add` often seems to hang, sometime I even have to forcefully stop it with Ctrl‑C and retry the command. According to `top`, when it seems to hang, its state is either `netio` or `select`. But I don’t know if it’s
    related or not. Is this an issue in `pkg_add` or is this an issue with the server which could impact `pkg_add` process, I don’t know.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Yannick_Duch=C3=AAne?=@21:1/5 to All on Fri Oct 12 18:33:39 2018
    Le vendredi 12 octobre 2018 18:08:05 UTC+2, Michael Bäuerle a écrit :

    But at least binary packages to fulfil the dependencies for feh and xpdf
    are there. Normally pkg_add should install them automatically. If this doesn't work, you can download them manually (and install via pkg_add
    from your local disk).

    You are right, but it still had failures (more later). There is not even a need to download, using `pkg_add` and dependency name without version number, works.

    Still, strange things occurred. For both `feh` and `xpdf`, I got an error about a missing shared library and the error came from `pkg_add` process. For `feh`, it was a missing `libglib.so.1`, while the `feh` executable has no dependency on this,
    according to `ldd`. For `xpdf`, it was another whose name I forget.

    `xpdf` works, but `feh` don’t, there is a missing `libImlib2` with an uppercase “i”. An `imlib2` package was installed, but failed to provide it.

    I’m not on a hurry, so I will try to have some time to investigate a bit.

    WIP is for unfinished packages. Nobody forbids you to use them, you
    simply should not expect them to be mature. To build surf checkout
    the pkgsrc and the wip trees as described here: <https://www.netbsd.org/docs/pkgsrc/getting.html>
    <https://pkgsrc.org/wip/>
    The dependencies are "x11/gtk2" and "www/webkit24-gtk". You can try to install binary packages for them as described above. Then:

    cd /usr/pkgsrc/wip/surf
    make install

    should build a binary package (in "/usr/pkgsrc/packages") for wip/surf
    and install it.

    I will try this a later day …

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael =?ISO-8859-1?Q?B=E4uerle?=@21:1/5 to All on Sat Oct 13 08:50:37 2018
    Yannick Duchêne wrote:
    Le vendredi 12 octobre 2018 18:08:05 UTC+2, Michael Bäuerle a écrit :

    But at least binary packages to fulfil the dependencies for feh and xpdf are there. Normally pkg_add should install them automatically. If this doesn't work, you can download them manually (and install via pkg_add
    from your local disk).

    You are right, but it still had failures (more later). There is not
    even a need to download, using `pkg_add` and dependency name without
    version number, works.

    Still, strange things occurred. For both `feh` and `xpdf`, I got an
    error about a missing shared library and the error came from `pkg_add` process. For `feh`, it was a missing `libglib.so.1`, while the `feh` executable has no dependency on this, according to `ldd`. For `xpdf`,
    it was another whose name I forget.

    Something with your pkg_add looks broken.

    `xpdf` works,

    Good. Then the real problem seems only related to pkg_add and not the
    system itself.

    but `feh` don’t, there is a missing `libImlib2` with
    an uppercase “i”. An `imlib2` package was installed, but failed to provide it.

    It is this package: <http://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/graphics/imlib2/README.html> If you look into its PLIST: <http://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/graphics/imlib2/PLIST>
    |
    | [...]
    | lib/libImlib2.la
    ^^^^^^^^^
    you see that the library name use a capital "I", but the package name
    is "imlib2" (with a small "i"). The extension ".la" is for libtool,
    after installing the package you should find a shared library with
    ".so" extension" on your disk.

    A binary package of graphics/imlib2 for your platform is available.
    So again try to install it manually as workaround until pkg_add works.

    For more dependencies of feh, you can look at the Makefile of its
    package (last section): <http://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/graphics/feh/Makefile>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Yannick_Duch=C3=AAne?=@21:1/5 to All on Sat Oct 13 08:17:02 2018
    Just for information before I left this for a few days, here is the state of `imlib2` after trying to install it with `pkg_add`:

    # find / -iname '*imlib2*' -exec stat -F {} ;

    drwxr-xr-x 2 root wheel 512 Oct 12 22:27:59 2018 /var/db/pkg/imlib2-1.4.10/
    -rwxr-xr-x 1 root wheel 1058 Jul 1 15:45:51 2018 /usr/pkg/bin/imlib2-config*
    -rwxr-xr-x 1 root wheel 7328 Jul 1 15:45:45 2018 /usr/pkg/bin/imlib2_bumpmap*
    -rwxr-xr-x 1 root wheel 9120 Jul 1 15:45:45 2018 /usr/pkg/bin/imlib2_colorspace*
    -rwxr-xr-x 1 root wheel 6416 Jul 1 15:45:45 2018 /usr/pkg/bin/imlib2_conv*
    -rwxr-xr-x 1 root wheel 7108 Jul 1 15:45:45 2018 /usr/pkg/bin/imlib2_grab*
    -rwxr-xr-x 1 root wheel 7988 Jul 1 15:45:45 2018 /usr/pkg/bin/imlib2_poly*
    -rwxr-xr-x 1 root wheel 35668 Jul 1 15:45:45 2018 /usr/pkg/bin/imlib2_show*
    -rwxr-xr-x 1 root wheel 10644 Jul 1 15:45:45 2018 /usr/pkg/bin/imlib2_test*
    -rwxr-xr-x 1 root wheel 11588 Jul 1 15:45:45 2018 /usr/pkg/bin/imlib2_view*
    -rw-r--r-- 1 root wheel 31737 Jul 1 15:45:45 2018 /usr/pkg/include/Imlib2.h
    drwxr-xr-x 4 root wheel 512 Oct 12 22:16:42 2018 /usr/pkg/lib/imlib2/

    I feel I will try to reinstall all of NetBSD and do some checking for each important step after initial installation, just in case I can figure if it’s me or a bug and if it’s a bug, what is it.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Yannick_Duch=C3=AAne?=@21:1/5 to All on Sun Oct 14 04:36:56 2018
    I checked `pkgin` cleanly handle dependencies where `pkg_add` fails to. I checked it with the package `mlterm`. Fortunately, `pkgin` could be installed with `pkg_add` without a failure. So I would recommend to install it prior to any other package.

    Still remains an issue with a missing shared object when I try to run `mlterm`, even when installed with `pkgin` (that’s just to report, I will remove this package anyway).

    Additionally, checking dynamic link dependencies of `mlterm` with `ldd`, I get a message like “Bus error (core dumped)”. I can’t figure what this bus is.

    Off topic: I feel I should read https://www.netbsd.org/support/send-pr.html , especially that I also get an error saying something like “tfs_read: not a directory” with `ls` on a mounted partition … while most of time it works.

    I have not tried yet to restart from a fresh new installation, the above is with the same installation as for the previous messages.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)