Step 0: mk/ Update Minix platform definition

We are transitionning from a full platform to a NetBSD variant,
per the project policy of having a NetBSD userland. There is then
little meaning in adapting all the NetBSD tests to also be true for
Minix.

This means the following is set as:
 * OPSYS = NetBSD
 * OS_VARIANT = Minix

This also has the consequence of obsoleting a few files in
pkgtools/bootstrap-mk-files.
This commit is contained in:
2013-10-07 16:06:08 +02:00
committed by Lionel Sambuc
parent 9d819b6d54
commit bc17d767a5
11 changed files with 50 additions and 1332 deletions

View File

@@ -47,6 +47,8 @@ unprivileged=no
preserve_path=no
enable_db=yes
# where the building takes place
bootstrapdir=`dirname "$0"`
bootstrapdir=`cd "${bootstrapdir}" && pwd`
@@ -711,11 +713,12 @@ Linux)
Minix)
root_group=operator
need_bsd_install=yes
enable_db=no
need_awk=no
need_sed=no
set_opsys=no
machine_arch=`uname -p`
LDFLAGS="-lcompat_minix -lminlib"
check_compiler=yes
;;
MirBSD)
root_group=wheel
@@ -1098,6 +1101,13 @@ if [ "$need_xargs" = "yes" ]; then
need_extras=yes
fi
if [ "$enable_db" = "yes" ]
then
db_flag="--enable-db"
else
db_flag="--disable-db"
fi
echo_msg "Bootstrapping mk-files"
run_cmd "(cd ${pkgsrcdir}/pkgtools/bootstrap-mk-files/files && env CP=${cpprog} \
OPSYS=${opsys} MK_DST=${wrkdir}/share/mk ROOT_GROUP=${root_group} \
@@ -1118,7 +1128,7 @@ bmake="$wrkdir/bin/bmake $make_quiet_flags"
# build libnbcompat
echo_msg "Building libnbcompat"
copy_src $pkgsrcdir/pkgtools/libnbcompat/files libnbcompat
run_cmd "(cd $wrkdir/libnbcompat; $shprog ./configure $configure_quiet_flags -C --prefix=$prefix --infodir=$infodir --mandir=$mandir --sysconfdir=$sysconfdir --enable-bsd-getopt --enable-db && $bmake -j$make_jobs)"
run_cmd "(cd $wrkdir/libnbcompat; $shprog ./configure $configure_quiet_flags -C --prefix=$prefix --infodir=$infodir --mandir=$mandir --sysconfdir=$sysconfdir --enable-bsd-getopt $db_flag && $bmake -j$make_jobs)"
# bootstrap ksh if necessary
case "$need_ksh" in