[BACK]Return to README.MirBSD CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / bootstrap

File: [cvs.NetBSD.org] / pkgsrc / bootstrap / README.MirBSD (download)

Revision 1.3, Tue Nov 15 11:19:09 2016 UTC (3 years, 8 months ago) by jperkin
Branch: MAIN
CVS Tags: pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, HEAD
Changes since 1.2: +7 -11 lines

Change the default PKG_DBDIR to be ${LOCALBASE}/pkgdb.  Resolves issues on
other BSDs which already use /var/db/pkg for the native package manager.

$NetBSD: README.MirBSD,v 1.3 2016/11/15 11:19:09 jperkin Exp $

Please read the general README file as well.

pkgsrc will install the portable NetBSD make as "bmake". The standard
make(1) from MirBSD is incompatible with pkgsrc.

Unless you bootstrap pkgsrc with the --unprivileged option, sudo(8) will
be used to gain root privileges.

MirPorts and pkgsrc can be installed in parallel. The MirPorts framework
uses /usr/mpkg as its default prefix and /usr/mpkg/db/pkg as its package
database directory. Thus, its paths do not clash with the default
choices of pkgsrc, which are /usr/pkg and /usr/pkg/pkgdb respectively.

Please note that the package tools from MirPorts and pkgsrc have the
same names (e.g. pkg_add) but are incompatible. This leads to strage
behavior when building or installing packages if both frameworks are in
your PATH.

Thus, before you start the bootstrap, you must make sure that
/usr/mpkg/bin and /usr/mpkg/sbin are NOT in your PATH if MirPorts is
already installed. Use a command like the following:

	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

Other environment variables that you may want to set are MANPATH,
INFOPATH and XAPPLRESDIR. There should be no need to set the
LD_LIBRARY_PATH environment variable.

The default mk.conf will be installed in /usr/pkg/etc.  It mirrors the
values for CFLAGS, CPPFLAGS, and LDFLAGS retrieved from the native
make(1) at bootstrap time, instead of including /etc/make.cfg and the
native <bsd.own.mk>. If you change values in /etc/make.cfg, you will
also have to adjust the mk.conf used by bmake.

The standard compiler is mgcc; if you have more than one native compiler
installed (assuming all are GCC variants), export CC=gcc-1.2.3 before
using pkgsrc and possibly adjust /usr/pkg/etc/mk.conf accordingly.

The pkgsrc on MirOS page contains more details