Subject: Re: pkgsrc on solaris 8/sparc + bmake gnome2
To: Simon J. Gerraty <sjg@crufty.net>
From: adam morley <adam-netbsd-techpkg@gmi.com>
List: tech-pkg
Date: 07/11/2003 09:29:54
On Thu, Jul 03, 2003 at 08:53:03PM -0700, Simon J. Gerraty wrote:
> Adam,
>
> sorry for delay in getting to this...
>
> Can you grab bmake-3.1.18 from ftp://ftp.netbsd.org/pub/incoming/sjg/
> and if you don't already have *.mk installed somewhere, grab
> mk-1.3.2 from the same location - though I suspect the ones you got from
> bootstrap-pkgsrc will do (be better).
>
> Unpack the above bmake somewhere and just:
>
> ./configure
> make -f makefile.boot bootstrap
>
> You may need to set MKSRC to the place where you have *.mk
I set this before I compiled (export MKSRC=/var/tmp/bmake/mk)
but it barfed:
19855: open64("/usr/share/mk", O_RDONLY|O_NDELAY) Err#2 ENOENT
19855: open64("/usr/local/share/mk", O_RDONLY|O_NDELAY) Err#2 ENOENT
19855: open64("/opt/share/mk", O_RDONLY|O_NDELAY) Err#2 ENOENT
bmake19855: write(2, " b m a k e", 5) = 5
: no system rules (19855: write(2, " : n o s y s t e m ".., 19) = 19
sys.mk19855: write(2, " s y s . m k", 6) = 6
).19855: write(2, " ) .", 2) = 2
19855: write(2, "\n", 1) = 1
19855: ioctl(1, TCGETA, 0xFFBED7AC) = 0
bmake: stopped in /var/tmp/bmake/bmake
so I symlinked /var/tmp/bmake/mk /usr/share/mk
then i copied /usr/pkgsrc/mk/bsd* to /var/tmp/bmake/mk b/c it barfed again:
$ ./bmake -V MACHINE
bmake: "/var/tmp/bmake/bmake/Makefile" line 77: Could not find bsd.prog.mk
bmake: "/var/tmp/bmake/bmake/Makefile" line 78: Could not find bsd.subdir.mk
bmake: Fatal errors encountered -- cannot continue
so i moved /var/tmp/bmake/bmake/mk to /var/tmp/bmake/mk and got:
$ ./bmake -V MACHINE
SunOS5
$ ./bmake -V MACHINE_ARCH
sparc
>
> With that bmake, see what you get for
>
> bmake -V MACHINE
> bmake -V MACHINE_ARCH
see above.
>
> also, as work arrounds you can use
>
> configure --with-machine_arch=sparc
Okay. Also, someone, I forget who, said that putting MACHINE_ARCH=sparc in /etc/mk.conf will do the same thing. Its sort of moot --- I found out that in order to get wheel mice to work with sunrays I need to first upgrade to Solaris 9, then upgrade the sunray server software, hence why I've been fiddling with pkgsrc on Solaris 9 (which is working quite nicely, btw).
>
> if that doesn't help, then you have an env problem. bmake actually picks up
> MACHINE and MACHINE_ARCH from the environment. It uses internal/learned
> values only if not already set in the environment.
>
> If what its getting from your environment is a problem you can use
>
> --with-force-machine=<whatever>
>
> see configure --help for the other interesting/esoteric options.
>
> I don't recall if bmake-3.1.12 (which is what's in bootstrap-pkgsrc)
> has all the above or if the bootstrap target works as well as in
> 3.1.18.
3.1.18 seems to work nicely, once I've got all the mk files in the right place (note that I did have the pkgsrc tree at /usr/pkgsrc at the time I was running these tests)
--
adam