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



Hello,

On Sunday 2020-03-01 12:26, Roland Illig wrote:
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:
...
 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

the pkgadd seems to work with the one created with the option for diffutils below.

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.

Didn't really help.

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

Yes hard links work.

 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 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.

I've solved all the issues but this one. The bootstrap works for pax-20080110nb4 on my build system that has most packges updated from pkgsrc-2015Q1 to pkgsrc-2019Q4, but not all.

Trying to do a bootstrap on pkgsrc-2019Q4 with this in /u/build/pkgsrc-blg/mk/tools/tools.SCO_SV.mk the bootstrap completes but is missing a lot of the files in /usr/pkg/.

.if exists(/usr/gnu/bin/diff)
TOOLS_PLATFORM.diff?= /usr/gnu/bin/diff
.endif

Removing it I still get the error on pax-20080110nb4 doing a bootstrap with the above removed, so there is something really different. Just not sure where to go to resolve the problem. I don't think it has anything to do
with pax-20080110nb4.

When trying to build the missing tools from the bootstrap done with the patch.

I constantly get
ERROR: This package has set PKG_FAIL_REASON:
ERROR: Circular dependency detected

l /usr/pkg/pkgdb/
total 28
drwxr-xr-x   2 root     sys          512 Mar  5 10:04 bmake-20150505
drwxr-xr-x   2 root     sys          512 Mar  5 10:04 bootstrap-mk-files-20180901
drwxr-xr-x   2 root     sys          512 Mar  5 10:03 install-sh-20100824
drwxr-xr-x   2 root     sys          512 Mar  5 10:04 nawk-20121220nb1
drwxr-xr-x   2 root     sys          512 Mar  5 10:05 nbsed-20120308
drwxr-xr-x   2 root     sys          512 Mar  5 10:08 pkg_install-20191008
-rw-r--r--   1 root     sys         8192 Mar  5 10:08 pkgdb.byfile.db

l /usr/pkg-20150508/pkgdb/
total 98
drwxr-xr-x   2 root     sys          512 Mar  5 07:21 bmake-20150505
drwxr-xr-x   2 root     sys          512 Mar  5 07:21 bootstrap-mk-files-20180901
drwxr-xr-x   2 root     sys          512 Mar  5 07:20 diffutils-3.3
drwxr-xr-x   2 root     sys          512 Mar  5 07:12 digest-20121220
drwxr-xr-x   2 root     sys          512 Mar  5 07:20 gettext-lib-0.19.4
drwxr-xr-x   2 root     sys          512 Mar  5 07:20 install-sh-20100824
drwxr-xr-x   2 root     sys          512 Mar  5 07:17 libiconv-1.14nb2
drwxr-xr-x   2 root     sys          512 Mar  5 07:14 libtool-base-2.4.2nb9
drwxr-xr-x   2 root     sys          512 Mar  5 07:21 nawk-20121220nb1
drwxr-xr-x   2 root     sys          512 Mar  5 07:13 nbpatch-20100124
drwxr-xr-x   2 root     sys          512 Mar  5 07:22 nbsed-20120308
drwxr-xr-x   2 root     sys          512 Mar  5 07:14 pax-20080110nb4
drwxr-xr-x   2 root     sys          512 Mar  5 07:25 pkg_install-20150508
drwxr-xr-x   2 root     sys          512 Mar  5 07:20 pkg_install-info-4.5nb3
-rw-r--r--   1 root     sys        32768 Mar  5 07:25 pkgdb.byfile.db
drwxr-xr-x   2 root     sys          512 Mar  5 07:13 tnftp-20141104
drwxr-xr-x   2 root     sys          512 Mar  5 07:19 xz-5.2.1

So it seems I need to get the bootstrap to work without the patch.

Any more ideas?

--
Boyd Gerber <gerberb%zenez.com@localhost> 801 849-0213
ZENEZ   1042 East Fort Union #135, Midvale Utah  84047



Home | Main Index | Thread Index | Old Index