pkgsrc-Users archive

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

Issues with bootstraping for OpenServer 5 and pkgsrc-2019Q4



Hello,

I'm able to boostrap from pkgsrc-2015Q1, but I'm hitting this issue and I'm not sure how to deal with it. I have the following set
CONFIG_SHELL=/usr/bin/bash
WRAPPER_SHELL=/usr/bin/bash

/u/build/pkgsrc-blg/bootstrap/work/bin/install-sh -c -o root -g sys -m 444 tar.1 /u/build/pkgsrc-blg/bootstrap/work/wrk/archivers/pax/work/.destdir/usr/pkg/man/man1/$(echo tar | sed 's&^&nb&').1
=> Automatic manual page handling
=> Generating post-install file lists
=> Checking file-check results for pax-20080110nb4
/bin/sh: -u:  not found
/bin/sh: -u:  not found
/bin/sh: -u:  not found
/bin/sh: -u:  not found
=> 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
pkg_add: 1 package addition failed
*** Error code 1

Stop.
bmake[4]: stopped in /u/build/pkgsrc-blg/archivers/pax
*** Error code 1

Stop.
bmake[3]: stopped in /u/build/pkgsrc-blg/archivers/pax
*** Error code 1

Stop.
bmake[2]: stopped in /u/build/pkgsrc-blg/archivers/pax
*** Error code 1

Stop.
bmake[1]: stopped in /u/build/pkgsrc-blg/devel/diffutils
*** Error code 1

Stop.
bmake: stopped in /u/build/pkgsrc-blg/pkgtools/bootstrap-mk-files
===> exited with status 1
aborted.

l -R /u/build/pkgsrc-blg/bootstrap/work/wrk/archivers/pax/work.destdir/
total 2
drwxr-xr-x   3 root     sys          512 Feb 26 07:35 usr

.destdir/usr:
total 2
drwxr-xr-x   4 root     sys          512 Feb 26 07:35 pkg

.destdir/usr/pkg:
total 4
drwxr-xr-x   2 root     sys          512 Feb 26 07:35 bin
drwxr-xr-x   3 root     sys          512 Feb 26 07:35 man

.destdir/usr/pkg/bin:
total 966
-rwxr-xr-x   3 root     sys       163492 Feb 26 07:35 nbcpio
-rwxr-xr-x   3 root     sys       163492 Feb 26 07:35 nbpax
-rwxr-xr-x   3 root     sys       163492 Feb 26 07:35 nbtar

.destdir/usr/pkg/man:
total 2
drwxr-xr-x   2 root     sys          512 Feb 26 07:35 man1

.destdir/usr/pkg/man/man1:
total 104
-r--r--r--   1 root     sys         7704 Feb 26 07:35 nbcpio.1
-r--r--r--   1 root     sys        32911 Feb 26 07:35 nbpax.1
-r--r--r--   1 root     sys         9949 Feb 26 07:35 nbtar.1

There is a nbcpio in ./work/wrk/archivers/pax/work/.destdir/usr/pkg/bin/nbcpio

I modified bootstrap as follows because the machine_arch was not being passed to digest and it would fail to build with the below digest builds. My current pkg/bin/

l /usr/pkg/bin/
total 654
-rwxr-xr-x   1 root     root      110544 Feb 24 16:04 digest
-rwxr-xr-x   1 root     root      158680 Feb 25 07:54 ftp
-rwxr-xr-x   1 root     root       62184 Feb 24 16:04 nbpatch


--- bootstrap.orig      2020-02-25 12:21:23.000000000 -0700
+++ bootstrap   2020-02-25 08:06:31.000000000 -0700
@@ -844,6 +844,19 @@
        set_opsys=no
        whoamiprog='id -u'
        groupsprog='id -g'
+        machine_arch=`uname -m`
+        # Override machine_arch where required.
+        case "$machine_arch" in
+        i?86)           machine_arch=i386 ;;
+        esac
+         if [ -x "/usr/bin/bash" ]; then
+               bootstrap_sh=${SH:-/usr/bin/bash}
+               bootstrap_sh_set=set
+         else
+               need_ksh=yes
+               bootstrap_sh=${SH:-/bin/ksh}
+               bootstrap_sh_set=set
+         fi
        # /bin/sh under OpenServer 5.0.7/3.2 breaks bmake tests.
        #bmakexargs="$bmakexargs --with-defshell=/bin/ksh"
        ;;

Any ideas on how to fix this issue. I'm still looking into the problem.

Thanks in advance,

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