Sun Jul 3 19:15:50 2016 UTC ()
Remove Solaris section, bootstrap/README.Solaris provides extensive information


(sevan)
diff -r1.95 -r1.96 pkgsrc/doc/guide/files/platforms.xml

cvs diff -r1.95 -r1.96 pkgsrc/doc/guide/files/platforms.xml (expand / switch to unified diff)

--- pkgsrc/doc/guide/files/platforms.xml 2016/07/03 15:26:27 1.95
+++ pkgsrc/doc/guide/files/platforms.xml 2016/07/03 19:15:50 1.96
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1<!-- $NetBSD: platforms.xml,v 1.95 2016/07/03 15:26:27 sevan Exp $ --> 1<!-- $NetBSD: platforms.xml,v 1.96 2016/07/03 19:15:50 sevan Exp $ -->
2 2
3<chapter id="platforms"> 3<chapter id="platforms">
4 <title>Using pkgsrc on systems other than &os;</title> 4 <title>Using pkgsrc on systems other than &os;</title>
5 5
6<sect1 id="binarydist"> 6<sect1 id="binarydist">
7<title>Binary distribution</title> 7<title>Binary distribution</title>
8 8
9<para>See <xref linkend="using-pkg"/>.</para> 9<para>See <xref linkend="using-pkg"/>.</para>
10 10
11</sect1> 11</sect1>
12 12
13 <sect1 id="bootstrapping-pkgsrc"> 13 <sect1 id="bootstrapping-pkgsrc">
14 <title>Bootstrapping pkgsrc</title> 14 <title>Bootstrapping pkgsrc</title>
@@ -316,124 +316,15 @@ ICCBASE= /opt/intel/cc/10 @@ -316,124 +316,15 @@ ICCBASE= /opt/intel/cc/10
316 <para>pkgsrc uses the static linking method of the runtime libraries 316 <para>pkgsrc uses the static linking method of the runtime libraries
317 provided by icc, so binaries can be run on other systems which do not 317 provided by icc, so binaries can be run on other systems which do not
318 have the shared libraries installed.</para> 318 have the shared libraries installed.</para>
319 319
320 <para>Libtool, however, extracts a list of libraries from the 320 <para>Libtool, however, extracts a list of libraries from the
321 &man.ld.1; command run when linking a C++ shared library and 321 &man.ld.1; command run when linking a C++ shared library and
322 records it, throwing away the -Bstatic and -Bdynamic options 322 records it, throwing away the -Bstatic and -Bdynamic options
323 interspersed between the libraries. This means that 323 interspersed between the libraries. This means that
324 libtool-linked C++ shared libraries will have a runtime 324 libtool-linked C++ shared libraries will have a runtime
325 dependency on the icc libraries until this is fixed in 325 dependency on the icc libraries until this is fixed in
326 libtool.</para> 326 libtool.</para>
327 327
328 </sect2> 328 </sect2>
329 
330 <sect2 id="solaris"> 
331 <title>Solaris</title> 
332 
333 <para>Solaris 2.6 through 10 are supported on both x86 and sparc. 
334 You will need a working C compiler. Both gcc 4.5.3 and 
335 Sun WorkShop 5 have been tested.</para> 
336 
337 <para>The following packages are required on Solaris 8 for the bootstrap 
338 process and to build packages.</para> 
339 
340 <itemizedlist> 
341 <listitem><para>SUNWsprot</para></listitem> 
342 <listitem><para>SUNWarc</para></listitem> 
343 <listitem><para>SUNWbtool</para></listitem> 
344 <listitem><para>SUNWtoo</para></listitem> 
345 <listitem><para>SUNWlibm</para></listitem> 
346 </itemizedlist> 
347 
348 <para>Please note that the use of GNU binutils on Solaris is 
349 <emphasis>not</emphasis> supported, as of June 2006.</para> 
350 
351 <para>Whichever compiler you use, please ensure the compiler tools and 
352 your $prefix are in your <varname>PATH</varname>. This includes 
353 <filename>/usr/ccs/{bin,lib}</filename> 
354 and e.g. <filename>/usr/pkg/{bin,sbin}</filename>.</para> 
355 
356 <sect3 id="solaris-gcc-note"> 
357 <title>If you are using gcc</title> 
358 
359 <para>It makes life much simpler if you only use the same gcc consistently 
360 for building all packages.</para> 
361 
362 <para>It is recommended that an external gcc be used only for bootstrapping, 
363 then either build gcc from 
364 <filename role="pkg">lang/gcc46</filename> or install a binary gcc 
365 package, then remove gcc used during bootstrapping.</para> 
366 
367 <para>Binary packages of gcc can be found through <ulink 
368 url="http://www.sunfreeware.com/"/>.</para> 
369 </sect3> 
370 
371 <sect3 id="solaris-sun-workshop-note"> 
372 <title>If you are using Sun WorkShop</title> 
373 
374 <para>You will need at least the following packages installed (from WorkShop 
375 5.0)</para> 
376 
377 <itemizedlist> 
378 <listitem><para>SPROcc 
379 - Sun WorkShop Compiler C 5.0</para></listitem> 
380 <listitem><para>SPROcpl 
381 - Sun WorkShop Compiler C++ 5.0</para></listitem> 
382 <listitem><para>SPROild 
383 - Sun WorkShop Incremental Linker</para></listitem> 
384 <listitem><para>SPROlang 
385 - Sun WorkShop Compilers common components</para></listitem> 
386 </itemizedlist> 
387 
388 <para>You should set the following variables in your 
389 &mk.conf; file:</para> 
390 
391<programlisting> 
392CC= cc 
393CXX= CC 
394CPP= cc -E 
395CXXCPP= CC -E 
396</programlisting> 
397 
398 <note><para>The <varname>CPP</varname> setting might break some 
399 packages that use the C preprocessor for processing things other 
400 than C source code.</para></note> 
401 
402 </sect3> 
403 <sect3 id="solaris-sunpro-64"> 
404 <title>Building 64-bit binaries with SunPro</title> 
405 
406 <para>To build 64-bit packages, you just need to have the 
407 following lines in your &mk.conf; file:</para> 
408 
409<programlisting> 
410PKGSRC_COMPILER= sunpro 
411ABI= 64 
412</programlisting> 
413 
414 <note><para>This setting has been tested for the SPARC 
415 architecture. Intel and AMD machines need some more 
416 work.</para></note> 
417 
418 </sect3> 
419 <sect3 id="plat.sunos.problems"><title>Common problems</title> 
420 
421 <para>Sometimes, when using <command>libtool</command>, 
422 <filename>/bin/ksh</filename> crashes with a segmentation fault. 
423 The workaround is to use another shell for the configure 
424 scripts, for example by installing <filename 
425 role="pkg">shells/bash</filename> and adding the following lines 
426 to your &mk.conf;:</para> 
427 
428 <programlisting> 
429CONFIG_SHELL= ${LOCALBASE}/bin/bash 
430WRAPPER_SHELL= ${LOCALBASE}/bin/bash 
431 </programlisting> 
432 
433 <para>Then, rebuild the <filename 
434 role="pkg">devel/libtool-base</filename> package.</para> 
435 
436 </sect3> 
437 </sect2> 
438 </sect1> 329 </sect1>
439</chapter> 330</chapter>