pkgsrc-Users archive

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

SCO bootstrap, pax issues and "bin/nbcpio" not found error



Hello,

I'm not sure how to fix this error with pax. I have attached my patches to pkgsrc-2021Q1. I need to resolve the bin/nbcpio not found error. I had to comment out pax in bootstrap. With this I'm able to bootstrap pkgsrc

===> Checking for vulnerabilities in pax-20210219
===> Installing for pax-20210219
=> Generating pre-install file lists
/usr/pkg/bin/install-sh -c -o root -g sys -m 755 -d /home/build/pkgsrc_bootstrap/pkgsrc_build/archivers/pax/work/.destdir/usr/pkg/bin /usr/pkg/bin/install-sh -c -o root -g sys -m 755 -d /home/build/pkgsrc_bootstrap/pkgsrc_build/archivers/pax/work/.destdir/usr/pkg/man/man1 /usr/pkg/bin/install-sh -c -o root -g sys pax /home/build/pkgsrc_bootstrap/pkgsrc_build/archivers/pax/work/.destdir/usr/pkg/bin/$(echo pax | sed 's&^&nb&') ln -f /home/build/pkgsrc_bootstrap/pkgsrc_build/archivers/pax/work/.destdir/usr/pkg/bin/$(echo pax | sed 's&^&nb&') /home/build/pkgsrc_bootstrap/pkgsrc_build/archivers/pax/work/.destdir/usr/pkg/bin/$(echo cpio | sed 's&^&nb&') ln -f /home/build/pkgsrc_bootstrap/pkgsrc_build/archivers/pax/work/.destdir/usr/pkg/bin/$(echo pax | sed 's&^&nb&') /home/build/pkgsrc_bootstrap/pkgsrc_build/archivers/pax/work/.destdir/usr/pkg/bin/$(echo tar | sed 's&^&nb&') /usr/pkg/bin/install-sh -c -o root -g sys -m 444 pax.1 /home/build/pkgsrc_bootstrap/pkgsrc_build/archivers/pax/work/.destdir/usr/pkg/man/man1/$(echo pax | sed 's&^&nb&').1 /usr/pkg/bin/install-sh -c -o root -g sys -m 444 cpio.1 /home/build/pkgsrc_bootstrap/pkgsrc_build/archivers/pax/work/.destdir/usr/pkg/man/man1/$(echo cpio | sed 's&^&nb&').1 /usr/pkg/bin/install-sh -c -o root -g sys -m 444 tar.1 /home/build/pkgsrc_bootstrap/pkgsrc_build/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-20210219
=> Creating binary package /home/build/pkgsrc_bootstrap/pkgsrc_build/archivers/pax/work/.packages/pax-20210219.tgz
===> Building binary package for pax-20210219
=> Creating binary package /home/build/pkgsrc_bootstrap/pkgsrc_build/packages/All/pax-20210219.tgz
===> Installing binary package of pax-20210219
pkg_add: Failed to write bin/nbpax for pax-20210219: Could not open bin/nbcpio
pkg_add: Couldn't remove /usr/pkg/bin/nbpax: No such file or directory
pkg_add: 1 package addition failed
*** Error code 1

Stop.
bmake[3]: stopped in /home/build/pkgsrc_bootstrap/pkgsrc_build/archivers/pax
*** Error code 1

Stop.
bmake[2]: stopped in /home/build/pkgsrc_bootstrap/pkgsrc_build/archivers/pax
*** Error code 1

Stop.
bmake[1]: stopped in /home/build/pkgsrc_bootstrap/pkgsrc_build/archivers/pax
*** Error code 1

Any ideas?

--
Boyd Gerber <gerberb%zenez.com@localhost> 801 849-0213
ZENEZ   1042 East Fort Union #135, Midvale Utah  84047
--- pkgsrc_build/bootstrap/bootstrap.pkgsrc-2021Q1	2021-06-19 04:52:24.605182345 -0600
+++ pkgsrc_build/bootstrap/bootstrap	2021-06-19 07:09:57.000000000 -0600
@@ -792,13 +792,28 @@
 	;;
 SCO_SV)
 	root_group=root
+	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
 	need_awk=yes
 	need_bsd_install=yes
+#	need_pax=yes
 	need_sed=yes
 	whoamiprog='id -u'
 	groupsprog='id -g'
 	# /bin/sh under OpenServer 5.0.7/3.2 breaks bmake tests.
 	#bmakexargs="$bmakexargs --with-defshell=/bin/ksh"
+	CC="gcc"; export CC
 	;;
 SunOS)
 	root_group=root
--- pkgsrc_build/bootstrap/bootstrap.pkgsrc-2021Q1	2021-06-19 04:52:24.605182345 -0600
+++ pkgsrc_build/bootstrap/bootstrap	2021-06-19 07:09:57.000000000 -0600
@@ -792,13 +792,28 @@
 	;;
 SCO_SV)
 	root_group=root
+	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
 	need_awk=yes
 	need_bsd_install=yes
+	need_pax=yes
 	need_sed=yes
 	whoamiprog='id -u'
 	groupsprog='id -g'
 	# /bin/sh under OpenServer 5.0.7/3.2 breaks bmake tests.
 	#bmakexargs="$bmakexargs --with-defshell=/bin/ksh"
+	CC="gcc"; export CC
 	;;
 SunOS)
 	root_group=root
43c43
< #if (HAVE_SYS_MTIO_H || HAVE_SYS_TAPE_H) && !defined(UNIXWARE) && !defined(_SCO_DS)
---
> #if (HAVE_SYS_MTIO_H || HAVE_SYS_TAPE_H) && !defined(UNIXWARE) && !defined(_SCO_DS) && !defined(__OSR5_GCC__)
86a87,88
> 
> #if defined(_SCO_DS) || defined (__OSR5_GCC__)
88,89c90,93
< #if defined(_SCO_DS)
< #define MAXPATHLEN	1024
---
> #define MAXPATHLEN    256
> #endif
> #if !defined(PATH_MAX)
> #define PATH_MAX 256
268c272
< # elif defined(_SCO_DS) || defined(__linux__)
---
> # elif defined(_SCO_DS) || defined (__OSR5_GCC__) || defined(__linux__)
--- /sdbhome/master/pkgsrc/archivers/pax/files/mtree_extern.h	2021-03-04 11:22:59.163301779 -0700
+++ pkgsrc_build/archivers/pax/files/mtree_extern.h	2021-03-04 11:22:59.163301779 -0700
@@ -63,9 +63,12 @@
  * SCO OpenServer 5.0.7/3.2 has no MAXPATHLEN, but it has PATH_MAX (256).
  * in limits.h. But it is not usable under ordinal condition.
  */
+#if defined(_SCO_DS_LL) || defined (__OSR5_GCC__)
 #if !defined(MAXPATHLEN)
-#if defined(_SCO_DS)
-#define MAXPATHLEN	1024
+#define MAXPATHLEN    256
+#endif
+#if !defined(PATH_MAX)
+#define PATH_MAX 256
 #endif
 #endif
 


Home | Main Index | Thread Index | Old Index