| @@ -1,16 +1,16 @@ | | | @@ -1,16 +1,16 @@ |
1 | #! /bin/sh | | 1 | #! /bin/sh |
2 | | | 2 | |
3 | # $NetBSD: bootstrap,v 1.321 2024/02/15 19:43:42 joerg Exp $ | | 3 | # $NetBSD: bootstrap,v 1.322 2024/03/12 22:00:13 joerg Exp $ |
4 | # | | 4 | # |
5 | # Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org> | | 5 | # Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org> |
6 | # All rights reserved. | | 6 | # All rights reserved. |
7 | # | | 7 | # |
8 | # Redistribution and use in source and binary forms, with or without | | 8 | # Redistribution and use in source and binary forms, with or without |
9 | # modification, are permitted provided that the following conditions | | 9 | # modification, are permitted provided that the following conditions |
10 | # are met: | | 10 | # are met: |
11 | # 1. Redistributions of source code must retain the above copyright | | 11 | # 1. Redistributions of source code must retain the above copyright |
12 | # notice, this list of conditions and the following disclaimer. | | 12 | # notice, this list of conditions and the following disclaimer. |
13 | # 2. Redistributions in binary form must reproduce the above copyright | | 13 | # 2. Redistributions in binary form must reproduce the above copyright |
14 | # notice, this list of conditions and the following disclaimer in the | | 14 | # notice, this list of conditions and the following disclaimer in the |
15 | # documentation and/or other materials provided with the distribution. | | 15 | # documentation and/or other materials provided with the distribution. |
16 | # | | 16 | # |
| @@ -1345,30 +1345,31 @@ yes) echo_msg "Bootstrapping sed" | | | @@ -1345,30 +1345,31 @@ yes) echo_msg "Bootstrapping sed" |
1345 | fi | | 1345 | fi |
1346 | ;; | | 1346 | ;; |
1347 | esac | | 1347 | esac |
1348 | | | 1348 | |
1349 | # bootstrap pkg_install | | 1349 | # bootstrap pkg_install |
1350 | extra_libarchive_depends() { | | 1350 | extra_libarchive_depends() { |
1351 | $sedprog -n -e 's/Libs.private: //p' $wrkdir/libarchive/build/pkgconfig/libarchive.pc | | 1351 | $sedprog -n -e 's/Libs.private: //p' $wrkdir/libarchive/build/pkgconfig/libarchive.pc |
1352 | } | | 1352 | } |
1353 | | | 1353 | |
1354 | echo_msg "Bootstrapping pkgtools" | | 1354 | echo_msg "Bootstrapping pkgtools" |
1355 | copy_src $pkgsrcdir/archivers/libarchive/files libarchive | | 1355 | copy_src $pkgsrcdir/archivers/libarchive/files libarchive |
1356 | run_cmd "(cd $wrkdir/libarchive; env $BSTRAP_ENV CONFIG_SHELL=$shprog \ | | 1356 | run_cmd "(cd $wrkdir/libarchive; env $BSTRAP_ENV CONFIG_SHELL=$shprog \ |
1357 | $shprog ./configure $configure_quiet_flags --enable-static --disable-shared \ | | 1357 | $shprog ./configure $configure_quiet_flags --enable-static --disable-shared \ |
1358 | --disable-bsdtar --disable-bsdcpio --disable-bsdunzip --disable-posix-regex-lib \ | | 1358 | --disable-bsdcat --disable-bsdtar --disable-bsdcpio --disable-bsdunzip \ |
1359 | --disable-xattr --disable-maintainer-mode --disable-acl --without-zlib \ | | 1359 | --disable-posix-regex-lib --disable-xattr --disable-maintainer-mode \ |
1360 | --without-bz2lib --without-iconv --without-lzma --without-lzo2 --without-lz4 \ | | 1360 | --disable-acl --without-zlib --without-bz2lib --without-iconv --without-lzma \ |
1361 | --without-nettle --without-openssl --without-xml2 --without-expat --without-zstd \ | | 1361 | --without-lzo2 --without-lz4 --without-nettle --without-openssl \ |
| | | 1362 | --without-xml2 --without-expat --without-zstd \ |
1362 | MAKE=$bmake && $bmake $make_quiet_flags -j$make_jobs)" | | 1363 | MAKE=$bmake && $bmake $make_quiet_flags -j$make_jobs)" |
1363 | copy_src $pkgsrcdir/pkgtools/pkg_install/files pkg_install | | 1364 | copy_src $pkgsrcdir/pkgtools/pkg_install/files pkg_install |
1364 | run_cmd "(cd $wrkdir/pkg_install; env $BSTRAP_ENV \ | | 1365 | run_cmd "(cd $wrkdir/pkg_install; env $BSTRAP_ENV \ |
1365 | CPPFLAGS='$CPPFLAGS -I${wrkdir}/libnbcompat -I${wrkdir}/libarchive/libarchive' \ | | 1366 | CPPFLAGS='$CPPFLAGS -I${wrkdir}/libnbcompat -I${wrkdir}/libarchive/libarchive' \ |
1366 | LDFLAGS='$LDFLAGS -L${wrkdir}/libnbcompat' \ | | 1367 | LDFLAGS='$LDFLAGS -L${wrkdir}/libnbcompat' \ |
1367 | LIBS='$LIBS -lnbcompat' $shprog ./configure $configure_quiet_flags -C \ | | 1368 | LIBS='$LIBS -lnbcompat' $shprog ./configure $configure_quiet_flags -C \ |
1368 | --enable-bootstrap --prefix=$prefix --sysconfdir=$sysconfdir \ | | 1369 | --enable-bootstrap --prefix=$prefix --sysconfdir=$sysconfdir \ |
1369 | --with-pkgdbdir=$pkgdbdir --infodir=$infodir \ | | 1370 | --with-pkgdbdir=$pkgdbdir --infodir=$infodir \ |
1370 | --mandir=$mandir $pkg_install_args && \ | | 1371 | --mandir=$mandir $pkg_install_args && \ |
1371 | STATIC_LIBARCHIVE=$wrkdir/libarchive/.libs/libarchive.a \ | | 1372 | STATIC_LIBARCHIVE=$wrkdir/libarchive/.libs/libarchive.a \ |
1372 | STATIC_LIBARCHIVE_LDADD='`extra_libarchive_depends`' \ | | 1373 | STATIC_LIBARCHIVE_LDADD='`extra_libarchive_depends`' \ |
1373 | PKGSRC_MACHINE_ARCH="$machine_arch" $bmake $make_quiet_flags -j$make_jobs)" | | 1374 | PKGSRC_MACHINE_ARCH="$machine_arch" $bmake $make_quiet_flags -j$make_jobs)" |
1374 | run_cmd "$install_sh -c -o $user -g $group -m 755 $wrkdir/pkg_install/add/pkg_add $wrkdir/sbin/pkg_add" | | 1375 | run_cmd "$install_sh -c -o $user -g $group -m 755 $wrkdir/pkg_install/add/pkg_add $wrkdir/sbin/pkg_add" |