Subject: Re: pkgsrc on solaris 8/sparc + bmake gnome2
To: adam morley <adam-netbsd-techpkg@gmi.com>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: tech-pkg
Date: 06/25/2003 21:09:21
--64zwfBjuwM6ycdfi
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
hi,
On Wed, Jun 25, 2003 at 11:29:42AM -0700, adam morley wrote:
>=20
> > bmake show-var VARNAME=3DLOWER_ARCH
>=20
> returns nothing (blank line)
>=20
> > bmake -d v show-var VARNAME=3DLOWER_ARCH
>=20
> Global:MACHINE_GNU_ARCH =3D ${GNU_ARCH.${MACHINE_ARCH}}
> Global:LOWER_VENDOR =3D sun
> Global:LOWER_OPSYS =3D solaris
ok, we are getting somewhere. these lines should look this way instead:
Global:MACHINE_GNU_ARCH =3D ${GNU_ARCH.${MACHINE_ARCH}}
Global:MACHINE_ARCH =3D sparc
Global:SPARC_TARGET_ARCH =3D sparcv7
Global:LOWER_VENDOR =3D sun
Global:LOWER_OPSYS =3D solaris
the corresponding lines are (bsd.prefs.mk):
.elif ${OPSYS} =3D=3D "SunOS"
. if ${MACHINE_ARCH} =3D=3D "sparc"
SPARC_TARGET_ARCH?=3D sparcv7
. elif ${MACHINE_ARCH} =3D=3D "sun4"
MACHINE_ARCH=3D sparc
SPARC_TARGET_ARCH?=3D sparcv7
. elif ${MACHINE_ARCH} =3D=3D "i86pc"
MACHINE_ARCH=3D i386
. elif ${MACHINE_ARCH} =3D=3D "unknown"
. if !defined(LOWER_ARCH)
LOWER_ARCH!=3D ${UNAME} -p
. endif # !defined(LOWER_ARCH)
MAKEFLAGS+=3D LOWER_ARCH=3D${LOWER_ARCH}
. endif
LOWER_VENDOR?=3D sun
LOWER_OPSYS?=3D solaris
MACHINE_ARCH is set by bmake itself but it completely ignores these
conditionals, so it suggests it's neither "sparc" or "sun4", nor "unknown".
could you test this simple Makefile somewhere outside pkgsrc?
all:
@echo ${MACHINE_ARCH}
which compiler did you use to compile bootstrap-pkgsrc and what precise mac=
hine
do you have, btw?
regards,
--=20
-- Lubomir Sedlacik <salo@Xtrmntr.org> --
-- <salo@silcnet.org> --
--64zwfBjuwM6ycdfi
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (NetBSD)
iD8DBQE++fNhiwjDDlS8cmMRAnh+AJ0TKbfYUtpsuvq2zxglzRidToxmVQCcDolJ
Gw78HzogC9wdsrvb0LpePwk=
=AwON
-----END PGP SIGNATURE-----
--64zwfBjuwM6ycdfi--