summaryrefslogtreecommitdiff
path: root/doc/pkgsrc.txt
diff options
context:
space:
mode:
authorrillig <rillig>2007-02-08 23:27:40 +0000
committerrillig <rillig>2007-02-08 23:27:40 +0000
commita2d79fc82228c6f79f1a524df373138fa923c186 (patch)
treed1ba7e4789d697bc22b3b0f5780f17b030f37010 /doc/pkgsrc.txt
parentedb49293b492ce674e45e27220d55bbec3e0fc90 (diff)
downloadpkgsrc-a2d79fc82228c6f79f1a524df373138fa923c186.tar.gz
regen
Diffstat (limited to 'doc/pkgsrc.txt')
-rw-r--r--doc/pkgsrc.txt71
1 files changed, 21 insertions, 50 deletions
diff --git a/doc/pkgsrc.txt b/doc/pkgsrc.txt
index ea0625db5e5..c364f6521c7 100644
--- a/doc/pkgsrc.txt
+++ b/doc/pkgsrc.txt
@@ -804,7 +804,7 @@ Before you download any pkgsrc files, you should decide whether you want the
current branch or the stable branch. The latter is forked on a quarterly basis
from the current branch and only gets modified for security updates. The names
of the stable branches are built from the year and the quarter, for example
-2006Q3.
+2006Q4.
The second step is to decide how you want to download pkgsrc. You can get it as
a tar file, via SUP, or via CVS. All three ways are described here.
@@ -818,8 +818,8 @@ described in detail in Appendix C, Directory layout of the pkgsrc FTP server.
The tar file for the current branch is in the directory current and is called
pkgsrc.tar.gz. It is autogenerated daily.
-The tar file for the stable branch 2006Q3 is in the directory pkgsrc-2006Q3 and
-is also called pkgsrc-2006Q3.tar.gz.
+The tar file for the stable branch 2006Q4 is in the directory pkgsrc-2006Q4 and
+is also called pkgsrc-2006Q4.tar.gz.
After downloading the tar file, change to the directory where you want to have
pkgsrc. This is usually /usr. Then, run gzcat pkgsrc.tar.gz | tar xf - to
@@ -853,7 +853,7 @@ Or, the same for the bourne shell:
Then, you change to the directory where you want to have your copy of pkgsrc.
In most cases this is /usr. In that directory you run the checkout command,
which is cvs -q checkout -P pkgsrc for the current branch and cvs -q checkout
--rpkgsrc-2006Q3 -P pkgsrc for the stable branch. This command will create a
+-rpkgsrc-2006Q4 -P pkgsrc for the stable branch. This command will create a
directory called pkgsrc with all the pkgsrc files in it.
2.2. Keeping pkgsrc up-to-date
@@ -894,7 +894,7 @@ When updating pkgsrc, the CVS program keeps track of the branch you selected.
But if you, for whatever reason, want to switch from the stable branch to the
current one, you can do it by adding the option "-A" after the "update"
keyword. To switch from the current branch back to the stable branch, add the
-"-rpkgsrc-2006Q3" option.
+"-rpkgsrc-2006Q4" option.
2.2.2.2. What happens to my changes when updating?
@@ -1474,59 +1474,30 @@ You will need at least the following packages installed (from WorkShop 5.0)
* SPROlang - Sun WorkShop Compilers common components
-You should set CC, CXX and optionally, CPP in /etc/mk.conf, e.g.:
+You should set the following variables in your mk.conf file:
- CC= cc
- CXX= CC
- CPP= /usr/ccs/lib/cpp
+ CC= cc
+ CXX= CC
+ CPP= cc -E
+ CXXCPP= CC -E
+Note
-3.3.7.3. Building 64-bit binaries with SunPro
-
-Building 64-bit binaries is a little trickier. First, you need to bootstrap
-pkgsrc in 64-bit mode. One problem here is that while building one of the
-programs in the bootstrap kit (bmake), the CFLAGS variable is not honored, even
-if it is set in the environment. To work around this bug, you can create a
-simple shell script called cc64 and put it somewhere in the PATH:
-
- #! /bin/sh
- exec /opt/SUNWspro/bin/cc -xtarget=ultra -xarch=v9 ${1+"$@"}
-
-
-Then, pass the definition for CC in the environment of the bootstrap command:
-
- $ cd bootstrap
- $ CC=cc64 ./bootstrap
-
-
-After bootstrapping, there are two alternative ways, depending on whether you
-want to find bugs in packages or get your system ready quickly. If you just
-want a running system, add the following lines to your mk.conf file:
-
- CC= cc64
- CXX= CC64
- PKGSRC_COMPILER= sunpro
-
+The CPP setting might break some packages that use the C preprocessor for
+processing things other than C source code.
-This way, all calls to the compiler will be intercepted by the above wrapper
-and therefore get the necessary ABI options automatically. (Don't forget to
-create the shell script CC64, too.)
+3.3.7.3. Building 64-bit binaries with SunPro
-To find packages that ignore the user-specified CFLAGS and CXXFLAGS, add the
-following lines to your mk.conf file:
+To build 64-bit packages, you just need to have the following lines in your
+mk.conf file:
- CC= cc
- CXX= CC
- PKGSRC_COMPILER= sunpro
- CFLAGS= -xtarget=ultra -xarch=v9
- CXXFLAGS= -xtarget=ultra -xarch=v9
- LDFLAGS= -xtarget=ultra -xarch=v9
+ PKGSRC_COMPILER= sunpro
+ ABI= 64
+Note
-Packages that don't use the flags provided in the configuration file will try
-to build 32-bit binaries and fail during linking. Detecting this is useful to
-prevent bugs on other platforms where the error would not show up but pass
-silently.
+This setting has been tested for the SPARC architecture. Intel and AMD machines
+need some more work.
3.3.7.4. Common problems