Merge from vendor branch TNF:
[pkgsrcv2.git] / bootstrap / README.MirBSD
1 $NetBSD$
2
3 Please read the general README file as well.
4
5 pkgsrc will install the portable NetBSD make as "bmake". The standard
6 make(1) from MirBSD is incompatible with pkgsrc.
7
8 Unless you bootstrap pkgsrc with the --unprivileged option, sudo(8) will
9 be used to gain root privileges.
10
11 MirPorts and pkgsrc can be installed in parallel. The MirPorts framework
12 uses /usr/mpkg as its default prefix and /usr/mpkg/db/pkg as its package
13 database directory. Thus, its paths do not clash with the default
14 choices of pkgsrc, which are /usr/pkg and /var/db/pkg respectively. We
15 suggest however that you place the package database for pkgsrc below its
16 prefix, for example by specifying the
17
18         --pkgdbdir /usr/pkg/db
19
20 option to bootstrap. Please note that the package tools from MirPorts
21 and pkgsrc have the same names (e.g. pkg_add) but are incompatible. This
22 leads to strage behavior when building or installing packages if both
23 frameworks are in your PATH.
24
25 Thus, before you start the bootstrap, you must make sure that
26 /usr/mpkg/bin and /usr/mpkg/sbin are NOT in your PATH if MirPorts is
27 already installed. Use a command like the following:
28
29         export PATH=${HOME}/.etc/bin:/usr/local/bin:/usr/pkg/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/sbin:/sbin:/usr/pkg/sbin:/usr/games
30
31 Other environment variables that you may want to set are MANPATH,
32 INFOPATH and XAPPLRESDIR. There should be no need to set the
33 LD_LIBRARY_PATH environment variable.
34
35 The default mk.conf will be installed in /usr/pkg/etc.  It mirrors the
36 values for CFLAGS, CPPFLAGS, and LDFLAGS retrieved from the native
37 make(1) at bootstrap time, instead of including /etc/make.cfg and the
38 native <bsd.own.mk>. If you change values in /etc/make.cfg, you will
39 also have to adjust the mk.conf used by bmake.
40
41 The standard compiler is mgcc; if you have more than one native compiler
42 installed (assuming all are GCC variants), export CC=gcc-1.2.3 before
43 using pkgsrc and possibly adjust /usr/pkg/etc/mk.conf accordingly.