Subject: Re: bootstrap re-engineering status?
To: Simon Gerraty <>
From: Jeremy C. Reed <>
List: tech-pkg
Date: 11/11/2005 10:55:52
On Fri, 11 Nov 2005, Simon Gerraty wrote:

>> testing bootstrap on a system without pkgsrc installed anywhere, so
>> there is no mk.conf that could be causing a problem.
> I'd have to assume its either local changes (I don't mean yours),
> in pkgsrc.*bmake, or possibly something in pkgsrc/mk

The devel/bmake and bootstrap/bmake don't use the mk-20051104.

bootstrap/bmake uses the mk files as were already installed via the 
bootstrap. (I don't think I made any changes there.)

I made my own devel/mk include the mk files in devel/mk/files and tried 
using them for the bootstrap but had various failures. For example, on 
DragonFly, something made the DragonFly's native mk files take precedence 
and so X11BASE was always /usr/X11R6.

And the differences between three sets of mk files were too much for me to 
review: native /usr/share/mk, pkgsrc/devel/mk and pkgsrc/bootstrap/*/mk.

I will try again with this newest bmake and mk-20051104 and see how it 

Soem of the related steps from the bootstrap/bootstrap:

If pkgsrc/bootstrap/mods/mk/$ exists then copy it to
$prefix/share/mk/ else use the mods/mk/

Copies the  pkgsrc/bootstrap/bmake/mk/bsd.*.mk to $prefix/share/mk/.

If mods/mk/$ exists then copies it in place as

If mods/mk/$ exists then copies it in place as

If mods/mk/$ exists, then uses it. Modifies the 
to set the root user, root group and $sysconfdir. Copies in place the file.

If mods/mk/$opsys.bsd.prog.m exists, then copies in place as

If mods/mk/$ exists, copies in place as

Then builds and installs bmake:

cd $wrkdir/bmake && env CPPFLAGS='$CPPFLAGS -I../../libnbcompat' LDFLA
GS='$LDFLAGS -L../../libnbcompat' LIBS='-lnbcompat' $shprog ./boot-strap 
-q -o $opsys --prefix=$prefix --sysconfdir=$sysconfdir --mksrc none 

install-sh -c -o $user -g $group -m 755 $wrkdir/bmake/$opsys/bmake $prefix/bin/bmake

Should I jsut remove all the custom mk files from bootstrap and just use 
your mk-20051104?

Anyone else want to look at working on this too?

Over the past couple months, I have probably ran the bootstrap well over a 
hundred times on a few different platforms :)

  Jeremy C. Reed

  	  	 	 BSD News, BSD tutorials, BSD links