pkgsrc-Users archive

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

Re: Can't bootstrap pkgsrc2021Q1 on Solaris 10



Excerpts from Julien Savard's message of 2021-05-27 11:16:38 -0400:
> up
> 

https://gnats.netbsd.org/56225
https://gnats.netbsd.org/56226

And this small diff on rsync:

diff --git a/net/rsync/patches/patch-cmdormsg
b/net/rsync/patches/patch-cmdormsg
new file mode 100644
index 00000000000..e0f7b22c215
--- /dev/null
+++ b/net/rsync/patches/patch-cmdormsg
@@ -0,0 +1,10 @@
+$NetBSD$
+
+--- cmdormsg.orig      2021-06-01 08:56:54.232830623 +0000
++++ cmdormsg
+@@ -1,4 +1,4 @@
+-#!/bin/sh
++#!/usr/bin/env bash
+ 
+ srcdir=`dirname $0`
+ opt="$1"

Is what I had to do to get pbulk building on my Solaris 10 machine.

> 
> On Sat, May 8, 2021 at 7:12 AM Julien Savard <juliensavard17%gmail.com@localhost>
> wrote:
> 
> > Hi,
> > it seems pkgsrc can no more bootstrap on solaris 10. Trying to bootstrap
> > with this command :
> >
> > sh $PKGSRC_DIR/bootstrap/bootstrap --abi=64 --prefix=$PREFIX
> > --mk-fragment=$DATA_DIR/conf/mk.conf.usr.pkg.frag --workdir=/tmp/work
> > --gzip-binary-kit=$DATA_DIR/bootstrap/bootstrap.tar.gz
> >
> >
> > mk fragment file containing this :
> >
> > PKG_DEVELOPER=yes
> > MAKE_JOBS=2
> > SKIP_LICENSE_CHECK=yes
> > ALLOW_VULNERABLE_PACKAGES=YES
> > FETCH_USING=fetch
> > # Can be remote
> > DISTDIR=/srv/data/distfiles
> > PACKAGES=/srv/data/packages
> > # Must be local
> > WRKOBJDIR=/var/tmp/pkgbuild
> > PKG_DEBUG_LEVEL=2
> >
> > lz4 seems to be the problem here :
> >
> > gmake[1]: Entering directory
> > `/var/tmp/pbulkbuild/archivers/lz4/work/lz4-1.9.3/programs'
> > gcc -O3 -Wall -Wextra -Wundef -Wcast-qual -Wcast-align -Wshadow
> > -Wswitch-enum -Wdeclaration-after-statement -Wstrict-prototypes
> > -Wpointer-arith -Wstrict-aliasing=1   -I../lib -DXXH_NAMESPACE=LZ4_  -c -o
> > bench.o bench.c
> > gcc -O3 -Wall -Wextra -Wundef -Wcast-qual -Wcast-align -Wshadow
> > -Wswitch-enum -Wdeclaration-after-statement -Wstrict-prototypes
> > -Wpointer-arith -Wstrict-aliasing=1   -I../lib -DXXH_NAMESPACE=LZ4_  -c -o
> > datagen.o datagen.c
> > gcc -O3 -Wall -Wextra -Wundef -Wcast-qual -Wcast-align -Wshadow
> > -Wswitch-enum -Wdeclaration-after-statement -Wstrict-prototypes
> > -Wpointer-arith -Wstrict-aliasing=1   -I../lib -DXXH_NAMESPACE=LZ4_  -c -o
> > lz4cli.o lz4cli.c
> > gcc -O3 -Wall -Wextra -Wundef -Wcast-qual -Wcast-align -Wshadow
> > -Wswitch-enum -Wdeclaration-after-statement -Wstrict-prototypes
> > -Wpointer-arith -Wstrict-aliasing=1   -I../lib -DXXH_NAMESPACE=LZ4_  -c -o
> > lz4io.o lz4io.c
> > gcc -O3 -Wall -Wextra -Wundef -Wcast-qual -Wcast-align -Wshadow
> > -Wswitch-enum -Wdeclaration-after-statement -Wstrict-prototypes
> > -Wpointer-arith -Wstrict-aliasing=1   -I../lib -DXXH_NAMESPACE=LZ4_
> > -Wl,-R/srv/pbulk/lib ../lib/lz4.o ../lib/lz4frame.o ../lib/lz4hc.o
> > ../lib/xxhash.o bench.o datagen.o lz4cli.o lz4io.o -o lz4
> > gmake[1]: Leaving directory
> > `/var/tmp/pbulkbuild/archivers/lz4/work/lz4-1.9.3/programs'
> > creating versioned links
> > gmake[1]: Leaving directory
> > `/var/tmp/pbulkbuild/archivers/lz4/work/lz4-1.9.3/lib'
> > *** Error code 2
> >
> > Stop.
> > bmake[3]: stopped in /srv/pkgsrc/archivers/lz4
> > : commands for target barrier-error-check; set -x; set -e;
> >                                               /usr/bin/rm -f
> > /var/tmp/pbulkbuild/archivers/lz4/work/.warning/*.tmp;
> >               test -d /var/tmp/pbulkbuild/archivers/lz4/work/.warning ||
> > exit 0;                              cd
> > /var/tmp/pbulkbuild/archivers/lz4/work/.warning;
> >                   for file in ./*; do
> >       test "$file" != "./*" || exit 0;                        break;
> >                                            done;
> >                                 /usr/bin/cat ./* | /srv/pbulk/bin/nbsed -e
> > "s|^|WARNING: |" 1>&2;                                       /usr/bin/mv -f
> > ./* /var/tmp/pbulkbuild/archivers/lz4/work/.warning-done
> > : commands for target barrier-error-check; set -x; set -e;
> >                                               /usr/bin/rm -f
> > /var/tmp/pbulkbuild/archivers/lz4/work/.error/*.tmp;
> >               test -d /var/tmp/pbulkbuild/archivers/lz4/work/.error || exit
> > 0;                                cd
> > /var/tmp/pbulkbuild/archivers/lz4/work/.error;
> >                   for file in ./*; do
> >       test "$file" != "./*" || exit 0;                        break;
> >                                            done;
> >                                 /usr/bin/cat * | /srv/pbulk/bin/nbsed -e
> > "s|^|ERROR: |" 1>&2;                                   if
> > /srv/pbulk/bin/nawk 'END { exit (NR > 0) ? 0 : 1; }' ./*; then
> >                   /usr/bin/mv -f ./*
> > /var/tmp/pbulkbuild/archivers/lz4/work/.error-done;                  exit
> > 1;                                                         fi
> > *** Error code 1
> >
> > Stop.
> > bmake[2]: stopped in /srv/pkgsrc/archivers/lz4
> > *** Error code 1
> >
> > Stop.
> > bmake[1]: stopped in /srv/pkgsrc/net/rsync
> > *** Error code 1
> >
> > Stop.
> > bmake: stopped in /srv/pkgsrc/pkgtools/pbulk
> >
> > Using GCC8. Also tried with OpenCSW GCC5. Not sure where to start
> > troubleshooting even less how to fix it.
> >
> >


Home | Main Index | Thread Index | Old Index