pkgsrc-Bugs archive

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

Re: pkg/45041: bootstrap/bootstrap minix support



The following reply was made to PR pkg/45041; it has been noted by GNATS.

From: Thomas Cort <tcort%minix3.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/45041: bootstrap/bootstrap minix support
Date: Tue, 19 Jul 2011 07:30:09 -0400

 After submitting the original patch, Minix got a new C library and headers.
 The C library and headers were ported from NetBSD. There are changes to
 CPPFLAGS to add some definitions needed for the new headers. LDFLAGS is
 set to include -lcompat_minix and -lminlib, two compatibility libraries
 that go with our new libc.
 
 The other change is to the configure flags for libnbcompat. Since our
 new C library has the db stuff, we pass the --disable-db parameter to
 libnbcompat's configure script. Other systems still pass --enable-db.
 
 diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap
 index 8a417be..9007d86 100755
 --- a/bootstrap/bootstrap
 +++ b/bootstrap/bootstrap
 @@ -448,6 +448,7 @@ overpath=""
  root_user=root
  bmakexenv=
  bmakexargs=
 +enable_db=yes
  need_extras=no
  case "$opsys" in
  AIX)
 @@ -598,6 +599,24 @@ Linux)
        set_opsys=no
        machine_arch=`uname -m | sed -e 's/i.86/i386/'`
        ;;
 +Minix)
 +      root_group=operator
 +      need_bsd_install=yes
 +      need_sed=no
 +      need_awk=no
 +      enable_db=no
 +      set_opsys=no
 +      groupsprog="id -gn"
 +      machine_arch=`uname -p`
 +      check_compiler=yes
 +      export CC="gcc"
 +      export CPPFLAGS="-D_NETBSD_SOURCE -D_MINIX -D_POSIX_SOURCE 
-D_COMPAT_MINIX"
 +      export LDFLAGS="-lcompat_minix -lminlib"
 +      export AR="ar"
 +      export LD="ld"
 +      export NM="nm"
 +      [ -z "$fetch_cmd" ] && fetch_cmd=/usr/bin/fetch
 +      ;;
  MirBSD)
        root_group=wheel
        need_pax=yes
 @@ -928,7 +947,16 @@ 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 --mandir=$mandir --sysconfdir=$sysconfdir 
--enable-bsd-getopt --enable-db && $bmake $make_quiet_flags)"
 +
 +db_flag=""
 +if [ "$enable_db" = "yes" ]
 +then
 +      db_flag="--enable-db"
 +else
 +      db_flag="--disable-db"
 +fi
 +
 +run_cmd "(cd $wrkdir/libnbcompat; $shprog ./configure $configure_quiet_flags 
-C --prefix=$prefix --mandir=$mandir --sysconfdir=$sysconfdir 
--enable-bsd-getopt $db_flag && $bmake $make_quiet_flags)"
  
  # bootstrap ksh if necessary
  case "$need_ksh" in
 


Home | Main Index | Thread Index | Old Index