Subject: Solaris/SPARC: default compiler
To: None <pkgsrc-users@netbsd.org>
From: Mehul N. Sanghvi <mehul.sanghvi@gmail.com>
List: pkgsrc-users
Date: 05/11/2007 11:35:11
'allo,

     I've got PKGSRC_COMPILER=gcc  in my /etc/mk.conf file.  Yet for some 
reason  I get the following results:

       prompt# bmake show-var VARNAME=PKGSRC_COMPILER
       sunpro

The same is true for other variables that I've set in my /etc/mk.conf and 
/etc/mk.conf.site files, like SHELL, CONFIG_SHELL, WRAPPER_SHELL, BUILD_JAVA, 
etc.  They do not seem to be getting set.  I'm including both the files at the 
end of the email.

I'm using pkgsrc-current, on a SPARC based Solaris 9 system.


----- /etc/mk.conf BEGIN -----
# Example /usr/pkg/etc/mk.conf file produced by bootstrap-pkgsrc
# Wed Dec  8 23:10:08 EST 2004

.ifdef BSD_PKG_MK       # begin pkgsrc settings

PKG_DBDIR=/var/db/pkg
LOCALBASE=/usr/pkg
FETCH_CMD=/usr/pkg/bin/ftp
PAX=/usr/pkg/bin/pax
SED=/usr/pkg/bin/nbsed
SHELL=/bin/bash

PKGSRC_COMPILER=gcc

# include site specific settings

.include "/etc/mk.conf.site"

.endif                  # end pkgsrc settings
----- /etc/mk.conf END -----


----- /etc/mk.conf.site BEGIN -----
# Site specific settings

CONFIG_SHELL=/usr/bin/bash
WRAPPER_SHELL=/usr/bin/bash

# based on pkgsrc-users mailing list information
TOOLS_PLATFORM.ar=  /usr/ccs/bin/ar
TOOLS_PLATFORM.nm=  /usr/ccs/bin/nm
TOOLS_PLATFORM.ranlib=  /usr/ccs/bin/ranlib

USE_TOOLS+= ar nm ranlib

## If we build GCC, we want to have the following languages built for it
## NOTE: Ada requires an existing Ada compiler.
BUILD_ADA=     NO
BUILD_CXX=     YES
BUILD_F77=     NO
BUILD_JAVA=    NO
BUILD_OBJC=    YES


BINPKG_SITES=http://sunpkg.de/packages/SunOS-5.9-sparc

----- /etc/mk.conf.site END -----

-- 
Mehul N. Sanghvi
email: mehul.sanghvi@gmail.com