Subject: Building from the 1.5 branch
To: port-mac68k NetBSD Mailinglist <port-mac68k@netbsd.org>
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
List: port-mac68k
Date: 03/09/2002 17:47:53
Hi,

the question first: Is anybody on the list building mac68k snapshots ("make
release") from the 1.5 branch?

I have attempted to build a snapshot for quite some time on a Quadra 700
running a -current kernel and mid-2001 userland. Using the following setup:

---------------------------------------------------------------------
# Where the distribution files go
RELEASEDIR=/mnt2/1.5/releasedir

# Where the binaries go
DESTDIR=/mnt2/1.5/destdir

# For building sysinst
MENUC=${DESTDIR}/usr/bin/menuc
MSGC=${DESTDIR}/usr/bin/msgc

# Just to be sure
MAKE="${DESTDIR}/usr/bin/make -m ${DESTDIR}/usr/share/mk"

# shortcuts
make_vars="RELEASEDIR=${RELEASEDIR} DESTDIR=${DESTDIR}"
make_vars="${make_vars} UPDATE=1"
make_vars="${make_vars} MENUC=${MENUC} MSGC=${MSGC}"

# Pick the newly-built tools first
PATH=${DESTDIR}/bin:${DESTDIR}/usr/bin:${PATH}
PATH=${DESTDIR}/sbin:${DESTDIR}/usr/sbin:${PATH}

export RELEASEDIR DESTDIR MENUC MSGC PATH

nohup ${MAKE} ${make_vars} release >~hauke/rel15.out 2>&1 &
---------------------------------------------------------------------

the build fails late in the process while trying to build sysinst (the
section is rather obscure to me):

---------------------------------------------------------------------
[...]

cd /usr/src/etc/../distrib/mac68k/instkernel/ramdisk &&
/mnt2/1.5/destdir/usr/bin/make  -m /mnt2/1.5/d
...skipping...
u_defs.o msg_defs.o main.o install.o upgrade.o txtwalk.o run.o factor.o
net.o disks.o util.o geom.o la
bel.o target.o md.o)
touch msgtouch
sed "s/@@VERSION@@/1.5.3_ALPHA/"
/usr/src/distrib/utils/sysinst/arch/mac68k/../../menus.mi.en menus.md
.en msgtouch > menus.def
sed "s/@@VERSION@@/1.5.3_ALPHA/"
/usr/src/distrib/utils/sysinst/arch/mac68k/../../msg.mi.en msg.md.en
msgtouch > msg.def
/mnt2/1.5/destdir/usr/bin/msgc msg.def
/mnt2/1.5/destdir/usr/bin/menuc menus.def
cc -O2  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wno-uninitialized -Werror   -I
. -I/usr/src/distrib/utils/sysinst/arch/mac68k/../..
-I/usr/src/distrib/utils/sysinst/arch/mac68k  -DR
EL=\"1.5.3_ALPHA\" -DMACH=\"mac68k\" -nostdinc -idirafter
/mnt2/1.5/destdir/usr/include -c menu_defs.c
menu_defs.c:2179: conflicting types for `new_menu'
menu_defs.h:59: previous declaration of `new_menu'
*** Error code 1

Stop.
---------------------------------------------------------------------

I was told that building the latest release from -current is "unsupported"
- how wide is the window considered to be? Can I build 1.5.3ALPHA from
1.5.2? From 1.5? Trying to get closer to 1.5, I put the 1.5 binaries first
in the $path (including the 1.5 make(1) and share/mk/*.mk). That didn't
break anything, but it did not fix the problem, either.

What makes the whole thing very inconvenient is the fact that a 'make
UPDATE=1 release' with up-to-date objects takes eight hours to get to the
point of failure.

What makes this even more annoying: I couldn't care less about the dratted
sysinst. I want 1.5.3 tarballs to upgrade a IIci with the latest ipfilter
etc.

"Any help is much appreciated."

	hauke


--
/~\  The ASCII Ribbon Campaign          "Those who are willing to sacrifice
\ /    No HTML/RTF in email             essential liberties for a little order
 X     No Word docs in email            will lose both and deserve neither."
/ \  Respect for open standards                              Benjamin Franklin