sync code with last improvements from OpenBSD

This commit is contained in:
purplerain 2023-09-07 18:23:23 +00:00
parent cac1167ac2
commit 0e5a54c21a
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
19 changed files with 662 additions and 356 deletions

View file

@ -1,4 +1,4 @@
.\" $OpenBSD: mcx.4,v 1.2 2019/05/04 15:57:20 jmc Exp $
.\" $OpenBSD: mcx.4,v 1.3 2023/09/07 01:45:53 jsg Exp $
.\"
.\" Copyright (c) 2019 David Gwynne <dlg@openbsd.org>
.\"
@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
.Dd $Mdocdate: May 4 2019 $
.Dd $Mdocdate: September 7 2023 $
.Dt MCX 4
.Os
.Sh NAME
@ -37,6 +37,10 @@ ConnectX-4 EN
ConnectX-5 EN
.It
ConnectX-6 EN
.It
ConnectX-6 Dx EN
.It
ConnectX-6 Lx EN
.El
.Sh SEE ALSO
.Xr arp 4 ,

View file

@ -1,4 +1,4 @@
.\" $OpenBSD: bsd.port.mk.5,v 1.612 2023/09/06 22:28:50 espie Exp $
.\" $OpenBSD: bsd.port.mk.5,v 1.620 2023/09/07 17:26:14 espie Exp $
.\"
.\" Copyright (c) 2000-2008 Marc Espie
.\"
@ -24,7 +24,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd $Mdocdate: September 6 2023 $
.Dd $Mdocdate: September 7 2023 $
.Dt BSD.PORT.MK 5
.Os
.Sh NAME
@ -1801,9 +1801,9 @@ If defined,
.Nm
will provide dummy values for variables mandatory for a minimally functional
port.
Used by
Used by the
.Pa sqlports
and
package and
.Xr dpb 1
to perform introspection and obtain
.Nm Ns 's
@ -1865,7 +1865,9 @@ and
for other common issues).
.Pp
Note that setting fatal errors defeats all introspection mechanisms and breaks
.Pa sqlports .
the
.Pa sqlports
package.
.Pp
Tip: if you need to debug a fatal error, you can always override
.Ev ERRORS
@ -2541,9 +2543,9 @@ User settings.
Location for built packages.
Defaults to
.Pa ${PORTSDIR}/packages .
See
See the
.Cm package
for details.
target for details.
.It Ev PARALLEL_MAKE_FLAGS
Used when
.Ev DPB_PROPERTIES
@ -2665,6 +2667,10 @@ ports:
.Bd -literal
PATCH_LIST=${PORTSDIR}/x11/kde/libs2/patches/p-* patch-*
.Ed
.Pp
But beware that minor variations will result in
.Cm update-patches
creating useless churn !
.It Ev PATCH_STRIP
Patch option used to strip directory levels while applying port's patches.
Defaults to -p0.
@ -2765,7 +2771,10 @@ as per default.
Setting of env variable
.Ev HOME
for most shell invocations.
Default will trip ports that try to write into $HOME while building.
Default will trip ports that try to write into $HOME while building:
non-existent
.Pa /${PKGPATH}_writes_to_HOME/ .
.It Ev PORTPATH
Path used by most shell invocations.
Don't override unless really needed.
@ -2987,8 +2996,8 @@ and
.Xr pkg_create 1
to use their progress-meter even in the absence of a terminal.
.It Ev PROPERTIES
List of properties specific to a given machine architecture.
Most often obtained through
List of properties specific to a given machine architecture,
obtained through the inclusion of
.Xr bsd.port.arch.mk 5 .
These can be checked like this
.Bd -literal -offset indent
@ -3187,11 +3196,22 @@ port.
Porters of software using libtool should make sure
.Ev MAKE_FLAGS
get propagated to the libtool invocations.
This should be enough in most cases.
.Pp
Most common build systems in the ports tree have been modified
to handle this mechanism correctly.
.It Ev SITE_BACKUP
User settings.
List of sites to try after normal master sites.
Normally includes ${SITE_OPENBSD} and ${SITE_FREEBSD}.
.Po
For now the ports tree is transitioning from
.Ev MASTER_SITES*
to
.Ev SITES*
which means that
.Ev MASTER_SITE_BACKUP
should be set instead until the transition is complete.
.Pc
.It Ev SITE_*
Lists of standard sites to retrieve files from, refer to
.Pa ${PORTSDIR}/infrastructure/db/network.conf
@ -3222,7 +3242,7 @@ See
for details.
Suffix should start with
.Sq \&.
for consistency.
and be all lowercase for consistency.
.It Ev SITES0 , ... , SITES9
Supplementary locations from which distribution files and patchfiles are
retrieved (deprecated).
@ -3362,14 +3382,13 @@ in
the ports tree will only invoke root's privileges for the parts that
really require it.
.It Ev SUPDISTFILES*
Supplementary files that need to be retrieved under some specific
circumstances.
For instance, a port might need architecture-specific files.
Supplementary distribution files for mirroring and creating checksums with
.Cm makesum .
For instance, a port might need architecture-specific files, or have
some flavor that requires more code.
.Ev SUPDISTFILES*
should hold a list of all distribution files and patchfiles that are not
always needed, so that a mirror will be able to grab all files, or that
.Cm makesum
will work.
should hold a list of all those distribution files and patchfiles
that are not always needed.
Having an overlap between
.Ev SUPDISTFILES*
and
@ -3396,7 +3415,9 @@ Set to the list of special targets for a port
.Cm {pre,do,post}-*
and module hooks
.Pc .
Used by introspection tools such as the sqlports package.
Used by introspection tools such as the
.Pa sqlports
package.
.It Ev TEMPLATE_DISTFILES.<name>
Template used to construct
.Ev DISTFILES.name

View file

@ -23,10 +23,10 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.\" $OpenBSD: ports.7,v 1.131 2023/02/19 14:37:54 sdk Exp $
.\" $OpenBSD: ports.7,v 1.132 2023/09/07 17:19:19 espie Exp $
.\" $FreeBSD: ports.7,v 1.7 1998/06/23 04:38:50 hoek Exp $
.\"
.Dd $Mdocdate: February 19 2023 $
.Dd $Mdocdate: September 7 2023 $
.Dt PORTS 7
.Os
.Sh NAME
@ -242,7 +242,7 @@ or
.It Cm fetch
Fetch all of the files needed to build this port from the site(s)
listed in
.Ev MASTER_SITES .
.Ev SITES .
See
.Ev FETCH_CMD .
Use
@ -563,7 +563,7 @@ Variable names starting with
.Sq _
are private to the ports infrastructure,
should not be changed by the user, and are liable to change without notice.
.Bl -tag -width MASTER_SITES
.Bl -tag -width PORTS_PRIVSEP
.It Ev PORTS_PRIVSEP
If set to
.Sq Yes ,
@ -599,7 +599,7 @@ If set to empty, it will revert to a file under
Where to install things in general
(usually
.Pa /usr/local ) .
.It Ev MASTER_SITES
.It Ev SITES
Primary sites for distribution files if not found locally.
.It Ev CLEANDEPENDS
If set to