Commit graph

1543 commits

Author SHA1 Message Date
Lexi Winter
9c401bf148 zstd: Move to a new zstd package
Zstd is a discrete, self-contained system component.  To match how we
package zlib, bzip2 and xz, move it to its own package, with a separate
lib package.

Add the new package to the minimal set, since this is a core component
that users expect to be installed.

This change adds a new package to the system so, until we have a proper
policy on how to handle this in release/stable branches, it should not
be MFC'd.

MFC after:	never
Reviewed by:	bapt
Sponsored by:	https://www.patreon.com/bsdivy
Differential Revision:	https://reviews.freebsd.org/D53603
2026-01-06 04:24:59 +00:00
ykla
171f9cbbbf UPDATING: move entry to the correct place
Reviewed by:	vexeduxr
Signed-off-by:	ykla yklaxds@gmail.com
Sponsored by:	Chinese FreeBSD Community
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1917
2026-01-06 04:16:22 +02:00
Rick Macklem
60eb371c2b UPDATING: Add an entry for commit 9f49f436a9
Some checks are pending
Cross-build Kernel / amd64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / amd64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / amd64 macos-latest (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 macos-latest (clang-18) (push) Waiting to run
2025-12-22 15:28:59 -08:00
Warner Losh
8ac7a3801c cam: Reduce overly long timeout values for initial device probing
Some checks are pending
Cross-build Kernel / amd64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / amd64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / amd64 macos-latest (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 macos-latest (clang-18) (push) Waiting to run
Currently, we have very long timeouts for the initial probing
commands. However, these are not appropriate for modern (post 2010) SCSI
disks. Sandards since SPC3 state that these commands should not wait for
media access. Since we retry them several times during the initial bus
scan, these delays can delay the boot by minutes (5 minutes per errant
disk in our expereince). These delays don't help and only hurt, so
reduce the TESTUNITREADY, INQUIRY and MODESENSE commands (during the
initial probe). Provide sysctl/tuneables to change the time for these
and also the REPORTLUNS commands for people that might need to adjust
them for devices that violate this belief but none-the-less work with
longer timeouts.
	kern.cam.tur_timeout		(default was 60s, now 1s)
	kern.cam.inquiry_timeout	(default was 60s, now 1s)
	kern.cam.reportluns_timeout	(default is 60s)
	kern.cam.modesense_timeout	(default was 60s, now 1s)
This can be partially merged: the sysctls can, but the new defaults likely
shouldn't.

Sponsored by:		Netflix
Differential Revision:	https://reviews.freebsd.org/D52427
2025-12-11 12:07:17 -07:00
Ed Maste
fad4c92b78 Revert "kernel linker: Disable local sym resolution by default"
I've received a report of a failure from resolving kern_kmq_open.
Revert for now as we are currently in stabweek.

This reverts commit 9562994a7a.

Reported by:	mav
2025-11-25 12:14:10 -05:00
Ed Maste
9562994a7a kernel linker: Disable local sym resolution by default
In 95c20faf11 and ecd8245e0d kib introduced support to have the
kernel linker stop resolving local symbols from other files, but did
not enable it by default to avoid surprises.  Flip the default now,
before FreeBSD 16.0.

The debug.link_elf_leak_locals and debug.link_elf_obj_leak_locals
sysctls are available to revert to the previous behaviour if necessary.

PR:		207898
Reviewed by:	bz
Relnotes:	Yes
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D47742
2025-11-25 08:49:20 -05:00
Colin Percival
6ccdd2fc23 UPDATING: Document FreeBSD-base pkg .conf shuffle
Reminded by:	yasu
MFC after:	3 days
2025-11-16 08:59:10 -08:00
Lexi Winter
560af6b43e libpam: Move to a new "pam" package
OpenPAM is a discrete, largely self-contained system component.
Users may not need PAM for many use-cases (e.g. jails, containers),
so move it to its own package.

Use LIB_PACKAGE to create a separate pam-lib package for libpam,
so that applications that support PAM don't need to bring in all
the PAM modules if PAM isn't actually in use.

Add pam to the minimal sets, since this is a core system component that
people expect to be installed.  This means all supported installation
methods will install the PAM modules by default, so don't add explicit
dependencies on the PAM modules from things that use PAM (e.g. runtime),
allowing custom/embedded systems to omit these easily.

This change adds a new package to the system so, until we have a proper
policy on how to handle this in release/stable branches, it should not
be MFC'd.

MFC after:	never
Reviewed by:	des, bapt
Sponsored by:	https://www.patreon.com/bsdivy
Differential Revision:	https://reviews.freebsd.org/D53602
2025-11-10 11:05:37 +00:00
Kristof Provost
f939619a2f UPDATING: mention pf's nat64 support
MFC after:	3 days
Sponsored by:	Rubicon Communications, LLC ("Netgate")
2025-11-05 14:59:29 +01:00
Rick Macklem
088ced14a6 UPDATING: Add an entry for e5aa60d069
Some checks are pending
Cross-build Kernel / amd64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / amd64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / amd64 macos-latest (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 macos-latest (clang-18) (push) Waiting to run
2025-11-02 16:20:26 -08:00
Lexi Winter
957715f877 flua: Move to a new flua package
flua is a standalone third-party component that deserves its own
package.  In particular, this means things can use flua without
having to depend on FreeBSD-utilities, which will be useful as
more base utilities use flua.

This saves ~500kB in FreeBSD-utilities for systems which don't
need flua.

MFC after:	3 days
Reviewed by:	kevans
Sponsored by:	https://www.patreon.com/bsdivy
Differential Revision:	https://reviews.freebsd.org/D53161
2025-10-26 02:22:47 +00:00
Bjoern A. Zeeb
37ad1beaf5 UPDATING: bump __FreeBSD_version for LinuxKPI changes
The size of an embedded struct has changed and might possibly be a
problem.  Allow this change to be detected by bumping __FreeBSD_version.

MFC after:	3 days
2025-10-21 07:52:46 +00:00
Ed Maste
9f85cf09d4 UPDATING: Belatedly note OpenZFS sysctls moving
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D52665
2025-10-16 14:43:01 -04:00
Lexi Winter
bf84861460 packages: Rename unbound to local-unbound
This more accurately reflects its purpose, and its contents, since
everything in the package is prefixed with "local-".

While here, add a message on upgrade about regenerating the config.

MFC after:	3 seconds
Requested by:	des
Reviewed by:	des
Sponsored by:	https://www.patreon.com/bsdivy
Differential Revision:	https://reviews.freebsd.org/D53056
2025-10-15 13:29:18 +01:00
Jose Luis Duran
376508ef2f
UPDATING: Fix typo objump should be objdump
Approved by:	emaste (mentor)
Fixes:		86edb11e74 ("Always install llvm-objdump as objdump")
MFC after:	1 day
2025-10-13 14:54:46 +00:00
Jose Luis Duran
ffa8165009
blocklist: Add an UPDATING entry
Add an UPDATING entry about the renaming of blocklist.

Approved by:	emaste (mentor)
Fixes:	7238317403 ("blocklist: Rename blacklist to blocklist")
MFC after:	1 day
2025-10-13 14:42:45 +00:00
Lexi Winter
1b806e607f packages: Add a sound package
Put virtual_oss, /etc/devd/snd.conf and the other audio-related tools
into a new "sound" package.  Don't create a separate -lib package,
since it's unlikely someone will want mixer(3) without mixer(8).

Put the sound package in the optional set rather than minimal, since
it's not actually required for audio hardware support, and many systems
(including nearly all servers) won't want it installed.

MFC after:	3 seconds
Reviewed by:	christos
Sponsored by:	https://www.patreon.com/bsdivy
Differential Revision:	https://reviews.freebsd.org/D52823
2025-10-02 02:37:35 +01:00
Bjoern A. Zeeb
52ce810302 UPDATING: bump __FreeBSD_version for drm-kmod/nvidia-drm vs. LinuxLPI
Both drm-kmod and nvidia-drm were updated to keep compiling and/or
working after the latest LinuxKPI PCI changes.  Some of what should
have worked for a long time but did not or conflicted was hidden
behind native PCI calls instead of using LinuxKPI.  We cleaned this
up.  Bump __FreeBSD_version so that users will get the updated packages.

MFC after:	3 days
PR:		289647
2025-09-29 23:16:51 +00:00
Lexi Winter
614c8750ce Remove ftpd(8)
This was previously deprecated and is slated for removal in 15.0.
Users who still need ftpd(8) can install the ftp/freebsd-ftpd port.

Retain the ftp(d) PAM services since other FTP daemons use them.

Update /etc/inetd.conf to point to /usr/local.

Add ftpd to ObsoleteFiles, but do not list configuration files since
users may want to preserve these to use with the freebsd-ftpd port.

There is still some language in the manual referring to ftpd(8)
which is relevant to the port, which has been retained but updated
to reference the port.

MFC after:	3 days
Relnotes:	yes
Reviewed by:	cperciva
Differential Revision:	https://reviews.freebsd.org/D52739
2025-09-29 22:53:34 +01:00
Lexi Winter
61ca69110f packages: Replace libbz2 package with a bzip2 package
Currently libbz2 is in the libbz2 package, while bzip2 itself is in
-utilities, which is inconsistent.  Move both the library and the
utility to a new -bzip2 package, and use LIB_PACKAGE to create a
separate -bzip2-lib package for runtime dependencies.

Add the bzip2 package to the minimal set, and since newsyslogd uses
bzip2 for logfile compression, add a dependency from there.

MFC after:	1 day
Reviewed by:	manu
Differential Revision:	https://reviews.freebsd.org/D52663
2025-09-23 23:06:33 +01:00
Lexi Winter
67c3c3a274 libpmc: Move libpmc and utils to a new pmc package
Due to the size of libpmc.so.5, this reduces the size of the -utilities
package by 10%.

MFC after:	1 day
Reviewed by:	manu, adrian, emaste
Differential Revision:	https://reviews.freebsd.org/D52662
2025-09-23 23:06:33 +01:00
Lexi Winter
5efd371bba packages: Move powerd to its own package
Nearly everyone wants powerd to manage CPU frequency scaling on real
hardware, even if -utilities isn't installed.  Conversely, very small
jails might want -utilities but don't need powerd.

Move it to its own package and add it to the minimal set.

MFC after:	1 day
Reviewed by:	manu, imp
Differential Revision:	https://reviews.freebsd.org/D52645
2025-09-23 23:06:32 +01:00
Lexi Winter
ea5e50c298 packages: Add a mandoc package
Move mandoc to its own package so users can install it independently of
-utilities.  Put the package in the minimal set, since we also ship
manpages in minimal and "man" is a basic Unix utility.

Add a pkg-triggers(5) hook to run makewhatis when new manpages are
installed, so that apropos(1) works.  This depends on a new pkg(8)
feature expected to be in in the upcoming 2.3.2 release; in the mean
time, this is a no-op (i.e., having an older pkg doesn't break anything,
it just won't run the trigger).

MFC after:	3 seconds
Reviewed by:	bapt
Differential Revision:	https://reviews.freebsd.org/D52564
2025-09-18 10:26:12 +01:00
Lexi Winter
9065390ddc packages: Remove the tests-dev package
We don't want a tests-dev package, because this means set-devel depends
on tests-dev, which transitively depends on tests, which means you can't
install set-devel without also getting tests.

The only real "dev" files in tests-dev are from ATF (libprivateatf),
so move that to its own package and add a dependency from tests.

Also move Kyua to its own package, since this might be useful for
running tests even when the user doesn't want the whole set of base
tests installed.

Add a dependency from -tests to both -atf and -kyua, and a dependency
on -set-base, since the tests won't work without the full base system
installed.

The remaining "dev" files in tests are actually test artifacts, not real
development libraries.  Add a new NO_DEV_PACKAGE option to bsd.lib.mk,
which causes dev files to be installed in the base package instead of
creating a -dev package, and set this option for everything that
installs test libraries.

While here, add a slightly more informative description for the tests
package.

MFC after:	3 seconds
Reviewed by:	bapt, emaste
Differential Revision:	https://reviews.freebsd.org/D52597
2025-09-18 10:26:12 +01:00
Harry Fellowes
e239f49146 UPDATING: fix typos
Fixed typos in UPDATING

Signed-off-by: Harry Fellowes <harryfellowes1@gmail.com>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1846
2025-09-14 21:07:13 -06:00
Dag-Erling Smørgrav
ab2fea3f9a UPDATING: mention the src.conf change
Fixes:		dd8c666d8b ("src.sys.mk: Support src.conf in SRCTOP")
2025-09-12 19:16:48 +02:00
Lexi Winter
a8a18eeb5e packages: Turn off MANSPLITPKG by default
Manpages are very small, and having a separate manpages package for
every base package is quite annoying for users.  Turn this option
off by default.

Discussed with:	bapt
Reviewed by:	manu, emaste
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D52417
2025-09-10 19:38:01 +01:00
Colin Percival
8b4e4c2737 Update main to 16
* Bumps to versions in lib/clang
* Bumps to sys/conf/newvers.sh and sys/sys/param.h
* Update to UPDATING

Approved by:	re (implicit)
Sponsored by:	https://www.patreon.com/cperciva
2025-09-04 16:06:47 -07:00
Ed Maste
92255335d9 sys: Rename BLOAT_KERNEL_WITH_EXTERR to EXTERR_STRINGS
There's no need for an implied value judgement.

Suggested by:	jhb
Reviewed by:	kib, jhb
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D52351
2025-09-03 09:09:09 -04:00
Colin Percival
e0bc44b589 Mention pkg repo renaming in UPDATING
Reported by:	rpokala
Fixes:		c83705a575 ("Rename FreeBSD* pkg repos to FreeBSD-ports*")
2025-08-27 10:59:17 -07:00
Alexander Leidinger
75b18baf09
UPDATING: fix typo in pattern 2025-08-26 12:06:21 +02:00
Alexander Leidinger
bcefbb46d2
UPDATING: fix typo in the Secure RPC entry. 2025-08-26 11:23:04 +02:00
Alexander Leidinger
3463f02706
UPDATING: add an entry for [gs]etgroups 2025-08-26 11:22:03 +02:00
Lexi Winter
929f5966a9 packages: Improve handling of -lib packages
For some packages (OpenSSL, Kerberos) we want to ship runtime libraries
in a separate package, e.g. openssl and openssl-lib.  Currently this is
done using PACKAGE=openssl-lib, but that creates packages with strange
names like openssl-lib-lib32.

Instead, add a new LIB_PACKAGE option to bsd.lib.mk that causes runtime
libraries to be placed in a new -lib subpackage.  This significantly
improves the set of packages we create; for example, OpenSSL goes from:

	FreeBSD-openssl
	FreeBSD-openssl-dbg
	FreeBSD-openssl-lib
	FreeBSD-openssl-lib-dbg
	FreeBSD-openssl-lib-dbg-lib32
	FreeBSD-openssl-lib-dev
	FreeBSD-openssl-lib-dev-lib32
	FreeBSD-openssl-lib-lib32
	FreeBSD-openssl-lib-man
	FreeBSD-openssl-man

to:

	FreeBSD-openssl
	FreeBSD-openssl-dbg
	FreeBSD-openssl-dbg-lib32
	FreeBSD-openssl-dev
	FreeBSD-openssl-dev-lib32
	FreeBSD-openssl-lib
	FreeBSD-openssl-lib32
	FreeBSD-openssl-man

While here, move /usr/bin/krb5-config and /usr/bin/compile_et into
the kerberos-dev package.

Reviewed by:	des
Differential Revision:	https://reviews.freebsd.org/D51925
2025-08-23 01:57:23 +01:00
Lexi Winter
110a2fa97d bridge: Restore ABI compatibility with 14.x
When new fields were added to struct ifbreq in 15.0, the decision was
made to not use the padding to preserve binary compatibility.  However
this causes some issues, including the inability for 14.x jails to use
bridges, and a failure to bring up networking when booting a 15 kernel
with a 14.x userland, e.g. during upgrade.

Restore the old size of struct ifbreq by eating some of the padding.
This only requires 4 bytes of padding; we have 28 bytes left, and in
the medium term this problem will be solved with a netlink interface,
so running out of padding should not be a concern.

Fixes:	65ed1a035c ("bridge: allow member interface vlan to be configured")
Fixes:	f94c370de6 ("bridge: Allow VLAN protocol to be configured")
Reviewed by:	zlei, kevans, flo
Differential Revision:	https://reviews.freebsd.org/D52028
2025-08-23 00:43:48 +01:00
Lexi Winter
dc5ba6b8b4 Remove MK_GSSAPI
For MIT Kerberos, MK_GSSAPI has no meaning: GSSAPI is a required part of
Kerberos and is always built if MK_KERBEROS is enabled.  Backport this
behaviour to Heimdal so it works the same way.

While here, change Heimdal's libcom_err and compile_et to be selected by
MK_KERBEROS, not MK_KERBEROS_SUPPORT, since these are part of Kerberos
and third-party users might need it even if Kerberos support is disabled
in the base system.  This means MK_KERBEROS_SUPPORT installs the same
files with both MIT and Heimdal.

Reviewed by:	cy
Differential Revision:	https://reviews.freebsd.org/D51859
2025-08-20 19:42:20 +01:00
Bojan Novković
ba487345f8 UPDATING: Add an entry covering recent libvmmapi ABI changes
Reviewed by:	des
Differential Revision:	https://reviews.freebsd.org/D52054
2025-08-20 20:12:45 +02:00
Kyle Evans
dc5f8c3442 build: Switch CLEAN back off by default, again
Now that we have the notion of a build epoch, we have sufficient tooling
to handle changes that might need a larger hammer to unbreak the build.

Future changes may extend our cleanup to avoid scenarios like with the
MITKRB5 knob where flipping it will still require a cleanup, but on the
whole most users aren't regularly flipping breaking knobs enough for
this to cause the same level of problems.  Those users are advised to do
a CLEAN build when they flip it until we start recording build options
and doing another clean for important knob switches (see D52011).

When knobs of that sort are newly introduced or switch defaults, we can
explicitly record an epoch for them in the interim until
option-switching is detected and handled properly.

This reverts commit 6dab48b9de.

Reviewed by:	jrtc27, markj
Differential Revision:	https://reviews.freebsd.org/D51923
2025-08-19 23:14:48 -05:00
Lexi Winter
14b4a3f3ef UPDATING: Add an entry for the libmilter package move 2025-08-16 21:18:28 +01:00
Warner Losh
69af14a57c jemalloc: Note update in UPDATING and RELNOTES
Sponsored by:		Netflix
2025-08-15 15:57:59 -06:00
Lexi Winter
837b13af68 Revert "Remove Secure RPC DES authentication"
This reverts commit 7ac276298b.

Requested by:	kib
2025-08-15 17:59:18 +01:00
Rick Macklem
db57584068 UPDATING: Make an entry for cce64f2e68 2025-08-13 12:52:09 -07:00
Ahmad Khalifa
f13e8ea083 bump FreeBSD_version to 1500060 for gpiobus changes
Bump FreeBSD_version and add UPDATING entry for gpiobus changes.

Reviewed by:	imp
Approved by:	imp (mentor)
Differential Revision:	https://reviews.freebsd.org/D51579
2025-08-13 14:14:24 +03:00
Lexi Winter
084a3e1e03 RELNOTES, UPDATING: Document Secure RPC DES removal 2025-08-10 16:40:08 +01:00
Dag-Erling Smørgrav
6dab48b9de build: Switch CLEAN back on by default
There have been too many issues with non-META_MODE incremental builds
recently, and it is clear that most users, even developers, were not
aware that the default had been switched.

This will be revisited once more work has been done to help prevent
future breakage.

This reverts commit ba373fca78.

Reviewed by:	markj, jhb
Differential Revision:	https://reviews.freebsd.org/D51828
2025-08-08 17:57:31 +02:00
Lexi Winter
7ed6b6b9d1 packages: move route(6)d to the rip package
These are deprecated, but in the mean time, move them to another
package.  routed in particularly doesn't need to be in -runtime.

Reviewed by:		manu
Differential Revision:	https://reviews.freebsd.org/D51783
2025-08-07 13:36:59 +01:00
Ronald Klop
3a2d4a1017 Change the default of net.link.epair.ether_gen_addr 0 -> 1.
Now if_epair(4) uses ether_gen_addr(9) to generate a stable MAC.
This feature was committed in 590493c141.

Approved by:	kp
MFC after:	never
Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D51157
2025-08-06 13:07:14 +02:00
Lexi Winter
37056594f0 bsdconfig: Move to -bsdconfig package
Now that rc.subr(8) no longer depends on sysrc(8), bsdconfig does not
need to be part of -utilities.  Move it to a -bsdconfig package.

Differential Revision:	https://reviews.freebsd.org/D51543
2025-08-04 00:13:03 +01:00
Ed Maste
d0144563a0 UPDATING: Correct typo in hw.usb.usbhid.enable tunable
I accidentally had usbhid_enable.

Reported by:	Ralf Wenk
2025-08-02 13:07:14 -04:00
Kevin Bowling
147b90973b Revert "src.opts.mk: Default LLVM_ASSERTIONS off"
Enabling and disabling LLVM assertions changes the ABI. There have
been multiple reports on the freebsd-current@ mailing list of broken
'cc'.

Out of caution, you may wish to do a clean build while crossing this
commit after building the reverted commit if you do not set
LLVM_ASSERTIONS in your src.conf.

Discussed with:	kevans, jrtc27

This reverts commit 9b3055d0d4.
2025-07-30 20:33:52 -07:00