[CUWiN-Dev] builds using current NetBSD

Bill Comisky bcomisky at pobox.com
Tue May 24 17:55:12 CDT 2005


I've tried a variety of NetBSD sources, but here's a chronicle of my 
latest attempts.  The source used is described below:

netBSD current dated 05-21-2005, with the following 2 modifications:
--------------------------------------------------------------------
- Dave's host-tools-patch-22-Apr-2005 applied.
- src/sbin/veriexecctl/veriexecctl.c updated to v1.11
   (to avoid build error)

[note to Dave: this version of current includes v1.197 of 
src/sys/uvm/uvm_map.c]

CUWiN source r3244 with attached patch applied 
-----------------------------------------------
Patch includes minor changes to allow crossbuilding, fix location of 
postinstall, add stuff to the trimlist, and a couple tweaks to get the 
"Official" build and svnrev to output properly for my linux build.  A 
couple of the things I added to the trimlist seem like they should've been 
taken care of through the trimming of base-locale-ca and base-locale-sk 
set lists (I'm over my head here, maybe makeplist isn't returning all the 
files it should?).

Results using same source on two build platforms:
=================================================

Linux build:
- Build completes, but hslsd still segfaults when started from /etc/rc.d
   (at boot time or from command line).  Just running /usr/sbin/hslsd
   without options does not cause a segfault.
- No $BUILDDIR/Z directory is produced.. another MAKEOBJDIR definition
   problem?  I'll try to find something that works under linux and build
   again later, so I can send unstripped binaries with the core files.

NetBSD 1.6.2 build:
- Build fails with:

[snip]
all ===> iswlan
nbmake: don't know how to make 
/usr/local/cuwin/build/D/usr/include/errno.h. Stop

nbmake: stopped in /usr/local/cuwin/svnrepo/src/iswlan

*** Failed target:  all-iswlan
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; 
shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; 
real="/usr/local/cuwin/svnrepo/src" ;; *) this="${dir}/"; 
real="/usr/local/cuwin/svnrepo/src/${dir}" ;; esac; show=${this:-.}; echo 
"${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && 
/usr/local/cuwin/netbsd/build/T/bin/nbmake _THISDIR_="${this}" "$@" 
${target}; }; _makedirtarget iswlan all
*** Error code 2

Stop.
nbmake: stopped in /usr/local/cuwin/svnrepo/src
[snip]

- $BUILDDIR/Z is created on this platform

Any help/pointers/corrections appreciated.  Once I can get a reproducible 
build with non-segfaulting hslsd I'll start putting the nightly builds 
up..

bill

--
Bill Comisky
bcomisky at pobox.com
-------------- next part --------------
Index: boot-image/steps.d/toolenv
===================================================================
--- boot-image/steps.d/toolenv	(revision 3244)
+++ boot-image/steps.d/toolenv	(working copy)
@@ -55,8 +55,4 @@
 EOF
 )
 
-# XXX override settings above
-export TOOL_DISKLABEL=/sbin/disklabel
-export TOOL_FDISK=/sbin/fdisk
-
 export INSTALL="$PLAIN_INSTALL -U -M $DESTDIR/metalog.new -D $DESTDIR"
Index: boot-image/steps.d/install
===================================================================
--- boot-image/steps.d/install	(revision 3244)
+++ boot-image/steps.d/install	(working copy)
@@ -58,5 +58,5 @@
 	[ $rc -eq 0 ] || exit 1
 done || exit 1
 
-$SRC/etc/postinstall -a $MACHINE_ARCH -m $MACHINE -s $SRC -d $INSTDIR fix \
+$SRC/usr.sbin/postinstall/postinstall -a $MACHINE_ARCH -m $MACHINE -s $SRC -d $INSTDIR fix \
     postinstall makedev defaults periodic mtree || exit 1
Index: boot-image/filter-syspkg/trimlist
===================================================================
--- boot-image/filter-syspkg/trimlist	(revision 3244)
+++ boot-image/filter-syspkg/trimlist	(working copy)
@@ -366,6 +366,11 @@
 ./usr/share/examples
 ./usr/share/i18n
 ./usr/share/i18n/csmapper
+./usr/share/i18n/csmapper/CNS
+./usr/share/i18n/csmapper/CNS/CNS11643-1%UCS.mps
+./usr/share/i18n/csmapper/CNS/CNS11643-2%UCS.mps
+./usr/share/i18n/csmapper/CNS/UCS%CNS11643-1.mps
+./usr/share/i18n/csmapper/CNS/UCS%CNS11643-2.mps
 ./usr/share/i18n/csmapper/CP
 ./usr/share/i18n/csmapper/CP/CP037%UCS.mps
 ./usr/share/i18n/csmapper/CP/CP038%UCS.mps
@@ -692,6 +697,7 @@
 ./usr/share/i18n/esdb/EUC/EUC-KR.esdb
 ./usr/share/i18n/esdb/EUC/EUC-TW.esdb
 ./usr/share/i18n/esdb/ISO-2022
+./usr/share/i18n/esdb/ISO-2022/ISO-2022-CN.esdb
 ./usr/share/i18n/esdb/ISO-2022/ISO-2022-JP-2.esdb
 ./usr/share/i18n/esdb/ISO-2022/ISO-2022-JP.esdb
 ./usr/share/i18n/esdb/ISO-2022/ISO-2022-KR.esdb
@@ -752,6 +758,7 @@
 ./usr/share/i18n/esdb/UTF/UTF-32.esdb
 ./usr/share/i18n/esdb/UTF/UTF-32BE.esdb
 ./usr/share/i18n/esdb/UTF/UTF-32LE.esdb
+./usr/share/i18n/esdb/UTF/UTF-7.esdb
 ./usr/share/i18n/esdb/UTF/UTF-8.esdb
 ./usr/share/i18n/esdb/esdb.alias
 ./usr/share/i18n/esdb/esdb.alias.db
@@ -762,6 +769,12 @@
 ./usr/share/keymaps/amiga
 ./usr/share/keymaps/atari
 ./usr/share/keymaps/x68k
+./usr/share/locale/ca
+./usr/share/locale/ca/LC_MESSAGES
+./usr/share/locale/ca/LC_MESSAGES/gettext-tools.mo
+./usr/share/locale/sk
+./usr/share/locale/sk/LC_MESSAGES
+./usr/share/locale/sk/LC_MESSAGES/gettext-tools.mo
 ./usr/share/nls/nls.alias
 ./usr/share/tabset/3101
 ./usr/share/tabset/9837
@@ -801,6 +814,7 @@
 ./usr/share/wscons/keymaps
 ./usr/share/wscons/keymaps/amikbd.pl.qwertz.iso8859-2 
 ./usr/share/wscons/keymaps/pckbd.be.azerty 
+./usr/share/wscons/keymaps/pckbd.br.abnt2
 ./usr/share/wscons/keymaps/pckbd.hu.iso8859-2 
 ./usr/share/wscons/keymaps/pckbd.pl.iso8859-2 
 ./usr/share/wscons/keymaps/pckbd.ru.koi8-r 
@@ -863,6 +877,18 @@
 ./usr/share/zoneinfo/America/Anguilla
 ./usr/share/zoneinfo/America/Antigua
 ./usr/share/zoneinfo/America/Araguaina
+./usr/share/zoneinfo/America/Argentina
+./usr/share/zoneinfo/America/Argentina/Buenos_Aires
+./usr/share/zoneinfo/America/Argentina/Catamarca
+./usr/share/zoneinfo/America/Argentina/ComodRivadavia
+./usr/share/zoneinfo/America/Argentina/Cordoba
+./usr/share/zoneinfo/America/Argentina/Jujuy
+./usr/share/zoneinfo/America/Argentina/La_Rioja
+./usr/share/zoneinfo/America/Argentina/Mendoza
+./usr/share/zoneinfo/America/Argentina/Rio_Gallegos
+./usr/share/zoneinfo/America/Argentina/San_Juan
+./usr/share/zoneinfo/America/Argentina/Tucuman
+./usr/share/zoneinfo/America/Argentina/Ushuaia
 ./usr/share/zoneinfo/America/Aruba
 ./usr/share/zoneinfo/America/Asuncion
 ./usr/share/zoneinfo/America/Atka
Index: boot-image/image.subr
===================================================================
--- boot-image/image.subr	(revision 3244)
+++ boot-image/image.subr	(working copy)
@@ -15,7 +15,7 @@
 
 	# Get branding status of this build.  By default, builds are
 	# unofficial.
-	if [ $OFFICIAL ]; then
+	if [ $OFFICIAL -eq 1 ]; then
 		official_status="Official"
 	else
 		official_status="Unofficial"
@@ -32,7 +32,7 @@
 	cd $CUWSRC
 
 	# Retrieve SVN info for the current directory.
-	svn_info=$(svn info . 2>/dev/null)
+	svn_info=$(svn info . 2>/dev/null | grep Revision)
 	svn_info_rc=$?
 
 	# Format SVN info based on output of svn info command.


More information about the CU-Wireless-Dev mailing list