Subject: Re: solaris pkgsrc, gcc, and bulk builds (fwd)
To: None <tech-pkg@NetBSD.org>
From: Jan Schaumann <jschauma@netmeister.org>
List: tech-pkg
Date: 02/08/2005 08:56:23
--TRYliJ5NKNqkz5bu
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Eric Boutilier <Eric.Boutilier@Sun.COM> wrote:
=20
> - Now bootstrap pkgsrc (follow this sequence exactly):
>   1. Go to ..pkgsrc/bootstrap and run ./bootstrap
>   2. Add the following to /usr/pkg/etc/mk.conf:
>        CC=3D /usr/sfw/bin/gcc
>   3. Copy /usr/sfw/bin/{ggrep,gegrep} to /usr/pkgsrc/bin/{grep,egrep}

/usr/pkgsrc/bin ?  Did you mean /usr/pkg/bin ?

If so, why is this necessary?  Shouldn't the pkgsrc framework know when
there is an insufficient grep and then build the appropriate version
itself?

>   4. Temporarily set: LD_LIBRARY_PATH=3D/opt/sfw/lib
>   5. a. Go to pkgsrc/devel/libtool-base and do `bmake install'
>      b. Go to pkgsrc/converters/libiconv and do `bmake install'
>      c. Go to pkgsrc/devel/gettext-lib and do `bmake install'
>      d. Go to pkgsrc/devel/gmake and do `bmake install'
>      e. Go to pkgsrc/lang/gcc3-c and do `bmake install'

Shouldn't 5.e. by itself be sufficient?  Ie, it should pull in all the
required packages without the user having to know which they are and
manually adding them.

>   6. Go back into /usr/pkg/etc/mk.conf and change CC like this:
>        CC=3D /usr/pkg/gcc3/bin/gcc
>      and add:
>        GCC_REQD+=3D 3

I believe lang/gcc3-c provides a make-file fragment suitable for
inclusion in mk.conf.

-Jan

--=20
http://www.netbsd.org -
         Multiarchitecture OS, no hype required.

--TRYliJ5NKNqkz5bu
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)

iD8DBQFCCMUGfFtkr68iakwRAs/SAJ0TxLKJKec+ch7H5flOTey8woeqLACfcc8W
8Hv6aasmUqV8Wwrt7sFpObQ=
=sMfX
-----END PGP SIGNATURE-----

--TRYliJ5NKNqkz5bu--