Subject: Re: Guide: pkgsrc on Solaris
To: None <segv@netctl.net>
From: Roland Illig <rillig@NetBSD.org>
List: tech-pkg
Date: 02/21/2006 19:09:50
This is a multi-part message in MIME format.
--------------080106070403000504090201
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
segv@netctl.net wrote:
> Hi, I have just finished writing a guide on how to use pkgsrc on OpenSolaris.
> It tells you how to set up the necessary pkgsrc infrastructure and provides a
> link to a set of my scripts and mk.conf files, which make it very easy to
> deploy pkgsrc on Solaris. In particular:
>
> - How to build packages inside a chroot jail
> - How to bootstrap GCC from pkgsrc
> - How to use SunPro and GCC compilers with pkgsrc
> - How to make the most of SMP hardware to speed up package builds
>
> The guide is located here: http://www.netctl.net/pkgsrc_solaris.html
> Let me know if you have any questions, or if you find any errors.
Looks great. And it is very different from what the pkgsrc guide
mentions about Solaris.
A fix for the problem in chapter 06 is appended. Please try it.
Another problem I have stumbled upon is that GCC comes with <stdbool.h>,
but SunPro does not. This can lead to situations where all packages that
depend on a certain library have to be compiled with GCC just because
that library assumes that <stdbool.h> exists. I don't know yet how to
work around that.
Roland
--------------080106070403000504090201
Content-Type: text/plain;
name="transform-solaris-gcc.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="transform-solaris-gcc.patch"
Index: transform-solaris-gcc
===================================================================
RCS file: /cvsroot/pkgsrc/mk/wrapper/transform-solaris-gcc,v
retrieving revision 1.1
diff -u -p -r1.1 transform-solaris-gcc
--- transform-solaris-gcc 23 Jul 2005 04:45:30 -0000 1.1
+++ transform-solaris-gcc 21 Feb 2006 17:58:46 -0000
@@ -39,4 +39,9 @@ case $arg in
msg_log $wrapperlog " (transform-solaris-gcc) to: $arg"
addtocache=yes
;;
+-mt) # (from SunPro)
+ arg=-threads
+ msg_log $wrapperlog " (transform-solaris-gcc) to: $arg"
+ addtocache=yes
+ ;;
esac
--------------080106070403000504090201--