pkgsrc-Users archive

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

Re: Issues with bootstraping for OpenServer 5 and pkgsrc-2019Q4



On 28.02.2020 17:05, Boyd Lynn Gerber wrote:
Hello Roland,

Thanks for the assistance so far it has been really valuable.  I have a
few things I'm trying to understand below:

1. Every so often I'm finding things trying to use -belf, where it
    should be -melf, Most to the configure test for this and find it is
    not needed and do not try to use its Everything seems to work fine in
    this case, but when pkgsrc choose to use the -belf I see many errors.

Please be a bit more specific. What are the "things" that try to use
-belf, and why should it be -melf? Is it some command line that has the
-belf option, maybe from the linker? I've never seen -belf anywhere,
therefore it might be good to explain it a bit more. Especially if it is
something that is specific to OpenServer.

2.
=> Generating post-install file lists
=> Checking file-check results for pax-20080110nb4
=> Creating binary package
/u/build/pkgsrc-blg/bootstrap/work/wrk/archivers/pax/work/.packages/pax-20080110nb4.tgz

===> Installing binary package of pax-20080110nb4
pkg_add: Failed to write bin/nbpax for pax-20080110nb4: Could not open
bin/nbcpio
pkg_add: Couldn't remove /usr/pkg/bin/nbpax
pkg_add: Couldn't remove /usr/pkg/bin/nbtar
pkg_add: Couldn't remove /usr/pkg/man/man1/nbcpio.1
pkg_add: Couldn't remove /usr/pkg/man/man1/nbpax.1
pkg_add: Couldn't remove /usr/pkg/man/man1/nbtar.1

A few minutes ago I fixed pkgtools/pkg_install/files/lib/plist.c by
replacing the warnx in line 700 with warn. The above error messages now
include the system error (such as ENOENT, EPERM). This should make it
easier to get to the real cause of these error messages.

Could this have something to do with hard links to files? Does
OpenServer and the /u/ filesystem support hard links? Just a wild guess.

I'm able to go to
/u/build/pkgsrc-blg/bootstrap/work/wrk/archivers/pax/work/pax-20080110/
and do the bmake or make install and then the error above about removing
them disapears and I only get
pkg_add: Failed to write bin/nbpax for pax-20080110nb4: Could not open
bin/nbcpio

Does OpenServer have a tool named truss, ktruss, strace? When I want to
understand what happens under the hood I often use these tools to see
the actual system calls and their results and errors. Maybe they help us
get onto the right track here.

3. My platform doesn't have a strtoull in any of the libraries, causing
    the below, Do I need to create a library that has trtoull?  Also I
    noticed the command being used has -lnbcompat twice.

If you don't intend to cryptographically sign the packages you create,
you can replace the strtoull in security/netpgpverify/files/bignum.c
with strtoul. That code is buggy anyway since it doesn't check whether
the integer conversion succeeded at all. You can also add an abort();
above that code to make sure you don't accidentally run that code.

This is just a hotfix to get your installation working. The proper fix
is probably to add strtoull to pkgtools/libnbcompat.


Home | Main Index | Thread Index | Old Index