Commit Graph

6242 Commits

Author SHA1 Message Date
Kyle Evans 8bbba9f681 makeman.lua: catch up to REQUIRED_OPTIONS change
161f8edc65 ("bsd.mkopt.mk: Prepare a list of all build options")
restructured things and now we should simply strip the leading double
underbar.  This fixes the oddity noticed in
4ed20e0236 ("kshim/usb: Add build option."), where WITH_CASPER made
a surprise appearance.

This is a part of D56558, but not the meat of the change.

Reviewed by:	emaste, imp
2026-04-21 21:32:23 -05:00
Alexander Leidinger 315f665fe1 Doxygen subsystem config: exclude the content of the .git directory 2026-04-19 14:46:35 +02:00
Warner Losh 4ed20e0236 kshim/usb: Add build option.
Add WITH{,OUT}_LOADER_USB to build the kshim usb library. Nothing
in-tree uses it, but this will make it easier to keep building. Updated
src.conf.5 with a few extra changes...

Sponsored by:		Netflix
2026-04-17 20:41:43 -06:00
Pouria Mousavizadeh Tehrani 87bea33a67 nd6: Remove DRAFT_IETF_6MAN_IPV6ONLY_FLAG and EXPERIMENTAL options
The draft-ietf-6man-ipv6only-flag has been obsoleted by RFC 8925.
Remove the EXPERIMENTAL compile option from the kernel and remove
DRAFT_IETF_6MAN_IPV6ONLY_FLAG from userland.
This compile option was not enabled by default.
Also regenerate src.conf.5.

Reviewed by: bz
Differential Revision: https://reviews.freebsd.org/D56228
2026-04-10 23:42:09 +03:30
Warner Losh 428034ad0d sys/kobj.h: Make self-sufficient
kobj.h just needs sys/types.h (because it uses u_int, it can't use
sys/_types.h). kobj.h isn't a standard thing, so we don't need to be
careful about namespace pollution.

Sponsored by:		Netflix
2026-04-09 17:37:21 -06:00
Lexi Winter 0dd9c4abf0 tools/build/Makefile: Always add md4.h to SYSINCS
Since libmd was added to the bootstrap, building main on stable/14
fails because of an incompatibility in its old md4.h.  Fix this by
always including md4.h in the bootstrap headers, instead of only
doing so when building on a non-FreeBSD host.

Fixes:		50de0bf505 ("flua: Always build as a bootstrap tool")
Reported by:	olce
Reviewed by:	olce, kevans
Sponsored by:	https://www.patreon.com/bsdivy
Differential Revision:	https://reviews.freebsd.org/D56327
2026-04-09 15:30:20 +01:00
Gordon Bergling 3957e233dd shlib-compat: Fix two typos in error messages
- s/implemeted/implemented/

MFC after:	3 days
2026-04-04 09:11:11 +02:00
Lexi Winter ab9257599a Remove WITHOUT_BZIP2, WITHOUT_BZIP2_SUPPORT
WITHOUT_BZIP2_SUPPORT only affects a single binary, gzip(1); it doesn't
remove bzip2 support from other bits (e.g., libarchive) and there are
no similar options for gzip, xz or zstd.

WITHOUT_BZIP2 has not done anything at all since it was first added
in 2007.

MFC after:	never
Discussed on:	arch@
Reviewed by:	imp, des, adrian, delphij, emaste
Differential Revision:	https://reviews.freebsd.org/D56148
Sponsored by:		https://www.patreon.com/bsdivy
2026-04-03 14:50:09 +01:00
Ed Maste 9b1f77e647 Makefile.inc1: Drop AS and RANLIB variables
These are not used in our world and kernel build targets.  We use the
compiler driver for assembly, and ar adds the archive index (symbol
table) automatically.

Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55964
2026-03-31 13:18:32 -04:00
Jessica Clarke 47402c9422 cross-build: Provide mempcpy when building on macOS
We could patch the tzcode config to not use it, but it's simple to
provide an implementation of it and avoid spreading cross-build
bootstrapping special cases.

Fixes:		ff2c98b30b ("tzcode: Update to 2026a")
MFC after:	1 week
2026-03-23 16:56:09 +00:00
Peter Holm 4f8a1b4dff stress2: Added syzkaller reproducers. Update the exclude file 2026-03-23 12:15:29 +01:00
Ed Maste 17494c6e6b build: Boostrap LLVM_BINUTILS for cross-tools
Reported by:	vexeduxr, jrtc27
Reviewed by:	imp
Sponsored by:	The FreeBSD Foundation
Pull request:	https://github.com/freebsd/freebsd-src/pull/2084
Differential Revision: https://reviews.freebsd.org/D55923
2026-03-20 09:38:40 -04:00
Baptiste Daroussin b42e852e89 pkg-serve(8): serve pkg repositories over TCP via inetd (8)
Reviewed by:	manu, bdrewery (previous version)
Differential Revision:	https://reviews.freebsd.org/D55895
2026-03-20 13:29:48 +01:00
Jose Luis Duran 894992e786 nanobsd: embedded: Time stamp the code image
While there is a function nano_makefs() that already takes care of this
issue, we are not yet ready to consume it.

Just add the time stamp and FFS options to makefs.  This is done
primarily to use UFS2 (UFS version 2).  If the user needs further
customization, the variable NANO_MAKEFS can be overridden.  Timestamping
takes care of making the images bit-for-bit identical.

Reviewed by:	imp
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D54980
2026-03-19 17:14:36 +00:00
Jose Luis Duran 5902c1834d nanobsd: Minor cleanup
No functional change intended.

Reviewed by:	imp
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D54979
2026-03-19 17:14:24 +00:00
Jose Luis Duran 60f8d36f7e nanobsd: embedded: Fix more regressions from last cleanup
Commit c99bb5747f changed "()" grouping into "{}", but in these cases
we chdir and depended on the subshell not changing the directory for the
caller.  Restore the old behavior.  While things appear to work without
this change, the previous code was intentionally structured this way.

Reviewed by:	imp
Fixes:		c99bb5747f ("nanobsd: minor formatting cleanup")
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D54978
2026-03-19 17:13:59 +00:00
Jose Luis Duran 21970f2780 nanobsd: embedded: Remove stray comment
Remove an outdated comment about NanoBSD not being able to remove the
firstboot sentinel file.

It was fixed in cb51e2bc3d ("rc: Allow the removal of
firstboot_sentinel on read-only file systems").

Reviewed by:	imp
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D54977
2026-03-19 17:13:29 +00:00
Jose Luis Duran 5de9a54c76 nanobsd: embedded: Remove mtools dependency
Rely on makefs -t msdos to create the MS-DOS partition and remove the
dependency on filesystems/mtools.

Note that NANO_SLICE_FAT_SIZEs defined in sectors (ending with an "s")
are no longer supported, as a workaround the letter "b" (blocks) may be
used instead.

Reviewed by:	imp
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D54976
2026-03-19 17:12:51 +00:00
Jose Luis Duran 68f5e5b124 nanobsd: embedded: Calculate FAT type and scheme
Determine the FAT (MS-DOS) type (FAT32, FAT16, or FAT12) and partition
scheme (fat32lba or fat16b) based on partition size.

Accept any (NetBSD) strsuftoll(3)-compatible string, as the value will
be fed to makefs(8) "-s" in a future commit.

NANO_SLICE_FAT_SIZEs defined in sectors (ending with an "s") will not be
supported.  As a workaround, the letter "b" (blocks) may be used.

Reviewed by:	imp
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D54975
2026-03-19 17:12:26 +00:00
Robert Clausecker b5514e1c6d depend-cleanup.sh: rebuild strnlen.o on riscv64 if it came from strnlen.S
We have to switch back to the previous rule once the temporary
build fix has been replaced with a permanent fix.

MFC after:	1 week
See also:	2a4e3112c8
PR:		293353, 293296
2026-03-08 00:33:53 +01:00
Perdixky 9f2eb94736 Add __unused workaround for linux/sys/types.h
Signed-off-by: Perdixky <3293789706@qq.com>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2063
2026-03-07 00:51:14 -07:00
Peter Holm b15dc3ff28 stress2: Updated comments 2026-03-06 10:03:53 +01:00
Peter Holm 05cbd5fc2b stress2: Added a new test scenario 2026-03-06 10:03:11 +01:00
Ed Maste 5d757312ad build: Retire LLVM_CXXFILT option
The LLVM_CXXFILT option was added when we used ELF Tool Chain tools by
default.  ELF Tool Chain's c++filt failed to demangle some symbols, so
we added a special case to install LLVM's version and enabled it by
default.

The rest of the LLVM tools are now used by default, as of commit
9fa94e1c09 ("Turn on WITH_LLVM_CXXFILT by default").  Simplify the
build logic by removing a special case and just include llvm-cxxfilt
with the rest of the LLVM utilities.

Reviewed by:	dim
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55654
2026-03-05 09:43:46 -05:00
Ed Maste c9f3de0ba9 INIT_ALL: Fix typo in option description
From GitHub pull request #2035; the change needs to be applied to the
source file for the option description, not the generated src.conf.5.
2026-03-04 13:32:32 -05:00
George V. Neville-Neil bc9229035c Allow programs run under this program to have arguments. 2026-03-03 17:10:42 +00:00
Ed Maste b6bb2fc77e src.opts.mk: Retire BSD_CPIO option
Prior to commit 6973701a00 ("1. Make the BSD version of cpio the
default [1]") GNU cpio was installed unconditionally.  The BSD_CPIO
option was added when we introduced the BSD licensed, libarchive-based
cpio, to support installation of GNU cpio, libarchive cpio, or both.

GNU cpio was removed long ago and there is no longer a need for this
option.  We can just install BSD cpio unconditionally.

Reviewed by:	des
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55467
2026-03-03 09:25:53 -05:00
Warner Losh 7951411672 sanitize.lua: A tool to extract interfaces from files
This is a simple too to remove all comments, extra whitespace and other
unnecessary things that may have creative content. What remains can be
just the minimal interface described by the header file. When used with
care, this can mechanically sanitize files, like some device tree
bindings file, that are only #defines that are meant to be used in
multiple context (the dts files and in C code to interpret the resulting
dtb).

Sponsored by:		Netflix
Reviewed by:		kevans
Differential Revision:	https://reviews.freebsd.org/D55087
2026-02-26 17:40:32 -07:00
Ka Ho Ng 0ac5cddebe syscall_timing: add Makefile.depend
This was part of review D44761. It was separated into another commit for
better clarity.

Obtained from:	Hewlett Packard Enterprise
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D44761
2026-02-25 05:38:40 +00:00
Stephen J. Kiernan de773bcc2f Use NO_SHARED instead of explicitly using -static flag
NO_SHARED is the proper way to declare linking a program without
shared libraries.

Obtained from:	Hewlett Packard Enterprise
MFC after:	1 week
Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D44761
2026-02-25 05:29:04 +00:00
Ahmad Khalifa 0c075db78a tools/build/stddef.h: fix stock clang/gcc headers
Both clang and gcc's stddef.h are designed to be included multiple times
with different combinations of __need_* macros defined (e.g
__need_size_t). Remove the #pragma once to accommodate this, ptraddr_t
is guarded by _PTRADDR_T_DECLARED anyways.

Also use __SIZE_TYPE__ instead of size_t since it's not guaranteed to be
defined.

Reviewed by:	brooks, imp, kib
Differential Revision:	https://reviews.freebsd.org/D55453
2026-02-24 22:42:21 +02:00
Ed Maste 9a44e42a2b Retire GNU diff3
We added the option to build BSD diff3 in commit 2201f7c49f ("Build
BSD diff3 if GNU diff3 is disabled.") and made it the default in
4d5c434ed1 ("diff3: use bsd diff3 by default") after resolving
deficiencies relative to GNU diff3.  Thus, we can now remove the GNU
diff3 build infrastructure and source.

Reviewed by:	bapt, ziaee
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D46878
2026-02-21 20:53:19 -05:00
Dag-Erling Smørgrav d4f6cb7542 build: Move all of lp under LPR option
* Tag related directories with package=lp

* Make the examples/printing directory conditional on MK_LPR

* Make the hosts.lpd(5) manual page conditional on MK_LPR

MFC after:	3 days
2026-02-21 22:25:49 +01:00
John Baldwin 1602f0013b nvmf: Limit the default I/O queue size to 128 entries
Previously the size defaulted to the maximum supported size reported
by the remote host.  The value of 128 matches the default on Linux and
avoids excessive resource usage for I/O queues.

Sponsored by:	Chelsio Communications
2026-02-20 15:39:02 -05:00
Artem Bunichev c8191c3d61 OptionalObsoleteFiles: Don't mark /usr/lib/debug/boot directory obsolete
The intent of the currect code is to ignore anything under
/usr/lib/debug/boot/*.  But we also should make sure that
/usr/lib/debug/boot directory is also ignored and is not marked
obsolete.  If we don't do that, `make DBATCH_DELETE_OLD_FILES
delete-old` will try to rmdir(1) this directory, which will cause an
error, since /usr/lib/debug/boot may have nested directories like
kernel/ and modules/.

Reviewed by:	markj
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D55077
2026-02-19 19:09:56 +00:00
Brooks Davis 89c3ae5fc9 build: add stddef.h to define ptraddr_t as required
Effort:		CHERI upstreaming
Sponsored by:	Innovate UK
Reviewed by:	kib
Co-authored-by:	Alfredo Mazzinghi <am2419@cl.cam.ac.uk>
Co-authored-by:	Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Differential Revision:	https://reviews.freebsd.org/D55308
2026-02-19 15:10:32 +00:00
Warner Losh 4fb507cae9 git-arc: Tweak heuristic for email address
In the email address heuristic, assume guest-* are external
contributors. It's a new convention, apparently.

Sponsored by:		Netflix
2026-02-18 09:39:28 -07:00
Dag-Erling Smørgrav 32ec8e29a6 OptionalObsoleteFiles: Add missing dpv MLINK
MFC after:	3 days
2026-02-18 11:06:50 +01:00
Dag-Erling Smørgrav efcfba9b31 OptionalObsoleteFiles: Add missing figpar MLINKS
MFC after:	3 days
Fixes:		bc6c827078 ("OptionalObsoleteFiles: Add figpar to dialog section")
2026-02-18 09:13:28 +01:00
Dag-Erling Smørgrav bc6c827078 OptionalObsoleteFiles: Add figpar to dialog section
MFC after:	3 days
Fixes:		15d781b532 ("lib: Gate libfigpar under MK_DIALOG")
Reviewed by:	jhb, emaste
Differential Revision:	https://reviews.freebsd.org/D55330
2026-02-17 23:58:43 +01:00
Dag-Erling Smørgrav f9f4a022a8 ObsoleteFiles: Deduplicate
Since we dropped support for profile libraries, all optional entries for
them are now non-optional.  Most of them were already duplicated there,
a few were not.

MFC after:	3 days
Reviewed by:	jhb, emaste
Differential Revision:	https://reviews.freebsd.org/D55329
2026-02-17 23:58:43 +01:00
Peter Holm 83693c121a stress2: Fix cleanup 2026-02-12 11:32:24 +01:00
Peter Holm 2b061bd179 stress2: Limit output from test 2026-02-12 11:31:36 +01:00
Alexander Ziaee 261ed379c8 prepare-commit-msg: Sync with committers guide
Add `Discussed with:`, `Closes:`, `MFC to:`, and `Co-authored-by:` to
the commit message template from the committer's guide. While here,
wordsmith these to fit on standard console.

Reported by:		lwhsu
Discussed with:		emaste, jlduran
Reviewed by:		vexeduxr
Differential Revision:	https://reviews.freebsd.org/D54707
2026-02-11 23:46:19 -05:00
Joseph Mingrone 69c64e3fb5 git-arc.1: Fix patch options
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D55228
2026-02-10 14:49:46 -04:00
Quentin Thébault 6a0ab05eb5 tools: fix WITHOUT_LOADER_GELI typo in universe.sh
Signed-off-by: 	Quentin Thébault <quentin.thebault@defenso.fr>
Reviewed by:	emaste
Sponsored by:	Defenso
Pull Request:	https://github.com/freebsd/freebsd-src/pull/2011
2026-02-09 09:13:05 -05:00
Timo Völker d84870d90b ifinfo: improve output of hwassist value
In addition to print the hexadecimal number hwassist, also print
the symbolic names of the corresponding CSUM_* flags.

Reviewed by:		tuexen
MFC after:		1 week
Differential Revision:	https://reviews.freebsd.org/D55055
2026-02-08 21:02:58 +01:00
Joseph Mingrone 32bd754d4d git-arc.1: Refer to new port name
The git-arc script was moved from devel/freebsd-git-devtools to
devel/freebsd-git-arc.

Reviewed by:	ziaee
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D55127
2026-02-06 23:32:52 -04:00
Artem Bunichev 5c9d988d86 OptionalObsoleteFiles: Add etc/zfs/compatibility.d
If the world is built and installed with WITHOUT_ZFS, then make
-DBATCH_DELETE_OLD_FILES delete-old-dirs will give the error:

> rmdir: /etc/zfs: Directory not empty

because /etc/zfs/compatibility.d is still there.  While we're here,
clean out /usr/share/zfs as well.

Co-authored-by:	kevans
Differential Revision:	https://reviews.freebsd.org/D54758
2026-02-04 21:35:01 -06:00
Enji Cooper b78806b156 Remove additional libtpool and libuutil-related files
This change removes additional library files and tests orphaned in the
commit referenced below.

MFC with:	8b78d412a
Fixes: 8b78d412a ("zfs: world changes after 89f729dcc merge")
2026-02-03 23:33:04 -08:00