Tue Jun 14 05:04:23 2022 UTC ()
OpenBSD 7.1 tested to work, but '--prefer-pkgsrc yes' is required

I was able to reproduce an OpenBSD user's boostrap failure because they
followed the instructions in this file, which doesn't mention
'--prefer-pkgsrc' at all. And yet it was required in order for me to
succeed on OpenBSD/amd64 7.1


(charlotte)
diff -r1.14 -r1.15 pkgsrc/bootstrap/README.OpenBSD

cvs diff -r1.14 -r1.15 pkgsrc/bootstrap/README.OpenBSD (expand / switch to unified diff)

--- pkgsrc/bootstrap/README.OpenBSD 2022/06/01 12:07:37 1.14
+++ pkgsrc/bootstrap/README.OpenBSD 2022/06/14 05:04:23 1.15
@@ -1,30 +1,33 @@ @@ -1,30 +1,33 @@
1$NetBSD: README.OpenBSD,v 1.14 2022/06/01 12:07:37 gdt Exp $ 1$NetBSD: README.OpenBSD,v 1.15 2022/06/14 05:04:23 charlotte Exp $
2 2
3Please read the general README file as well. 3Please read the general README file as well.
4 4
5# Instructions 5# Instructions
6 6
7pkgsrc bootstrap installs several tools whose names happen to match 7pkgsrc bootstrap installs several tools whose names happen to match
8programs already provided by OpenBSD. The two sets of package tools are 8programs already provided by OpenBSD. The two sets of package tools are
9not interchangeable, so you'll need to decide which ones should appear 9not interchangeable, so you'll need to decide which ones should appear
10earlier in your PATH -- probably pkgsrc paths before system ones. 10earlier in your PATH -- probably pkgsrc paths before system ones.
11 11
12Once that's settled, you might think about moving OpenBSD's native 12Once that's settled, you might think about moving OpenBSD's native
13package tools out of the way so they can't get invoked by mistake, 13package tools out of the way so they can't get invoked by mistake,
14perhaps like so: 14perhaps like so:
15 15
16 # cd /usr/sbin && for i in pkg_*; do mv $i $i.orig; done 16 # cd /usr/sbin && for i in pkg_*; do mv $i $i.orig; done
17 17
18But you probably don't want to do this, because it would (for instance) 18But you probably don't want to do this, because it would (for instance)
19also prevent OpenBSD's pkg_add(1) from being invoked on purpose by 19also prevent OpenBSD's pkg_add(1) from being invoked on purpose by
20fw_update(1). 20fw_update(1).
21 21
22# Status 22# Status
23 23
24pkgsrc bootstrap has been tested on OpenBSD 7.0 (amd64, i386) with the 24pkgsrc bootstrap has been tested on OpenBSD 7.1 (amd64, i386) with the
25system-provided clang. Earlier version/platform/compiler combinations 25system-provided clang. Earlier version/platform/compiler combinations
26have previously been reported to work. 26have previously been reported to work.
27 27
 28If the bootstrap fails for you, try adding `--prefer-pkgsrc yes` to your
 29bootstrap command line.
 30
28Once bootstrapped, as is typical with pkgsrc, many packages build as is. 31Once bootstrapped, as is typical with pkgsrc, many packages build as is.
29For any particular package that doesn't, fixes are often in OpenBSD 32For any particular package that doesn't, fixes are often in OpenBSD
30Ports waiting to be borrowed. 33Ports waiting to be borrowed.