| @@ -1,29 +1,26 @@ | | | @@ -1,29 +1,26 @@ |
1 | $NetBSD: README.OpenBSD,v 1.11 2021/02/10 21:47:15 cjep Exp $ | | 1 | $NetBSD: README.OpenBSD,v 1.12 2022/04/06 00:23:30 schmonz Exp $ |
2 | | | 2 | |
3 | Please read the general README file as well. | | 3 | Please read the general README file as well. |
4 | | | 4 | |
5 | Care should be taken so that the tools that this kit installs do not conflict | | 5 | bootstrap-pkgsrc installs several tools whose names happen to match |
6 | with the OpenBSD userland tools. There are several steps: | | 6 | programs already provided by OpenBSD. The two sets of package tools are |
7 | | | 7 | not interchangeable, so you'll need to decide which ones should appear |
8 | 1. If you do not intend to use the OpenBSD ports tools, it's probably a | | 8 | earlier in your PATH -- probably pkgsrc paths before system ones. |
9 | good idea to move them out of the way to avoid confusion, e.g.: | | 9 | |
10 | cd /usr/sbin | | 10 | Once that's settled, you might think about moving OpenBSD's native |
11 | mv pkg_add pkg_add.orig | | 11 | package tools out of the way so they can't get invoked by mistake, |
12 | mv pkg_create pkg_create.orig | | 12 | perhaps like so: |
13 | mv pkg_delete pkg_delete.orig | | 13 | |
14 | mv pkg_info pkg_info.orig | | 14 | # cd /usr/sbin && for i in pkg_*; do mv $i $i.orig; done |
15 | | | 15 | |
16 | 2. The bootstrap script will create an initial mk.conf file located in | | 16 | But you probably don't want to do this, because it would (for instance) |
17 | in your target pkgsrc directory. It contains the settings you provided to | | 17 | also prevent OpenBSD's pkg_add(1) from being invoked on purpose by |
18 | bootstrap. The bootstrap will tell you where it is when it completes. | | 18 | fw_update(1). |
19 | | | 19 | |
20 | 3. It's possible to use pkgsrc libraries instead of system libraries. For | | 20 | bootstrap-pkgsrc has been tested on OpenBSD 7.0 (amd64, i386) with the |
21 | example, to use OpenSSL, you can use: | | 21 | system-provided clang. Earlier version/platform/compiler combinations |
22 | ./bootstrap --prefer-pkgsrc=openssl | | 22 | have previously been reported to work. |
23 | Or after a bootstrap, you can add the following line to $prefix/etc/mk.conf: | | 23 | |
24 | PREFER.openssl=pkgsrc | | 24 | Once bootstrapped, as is typical with pkgsrc, many packages build as is. |
25 | | | 25 | For any particular package that doesn't, fixes are often in OpenBSD |
26 | The bootstrap has been tested on OpenBSD 6.8 (amd64, sparc64, i386). It | | 26 | Ports waiting to be borrowed. |
27 | has also been tested on these platforms with 6.9-beta and there should be | | | |
28 | no reason why it won't work on 6.9 when it is released. Previously it | | | |
29 | has been used on 5.5 (sparc64), 5.6 (amd64, sparc64) and 3.0. | | | |