Skip to content

Commit 6039256

Browse files
Merge pull request #344 from ghostbsd/24.10.1
24.10.1 Base update from FreeBSD
2 parents 5b377a3 + 0fd42e1 commit 6039256

File tree

1,916 files changed

+119440
-71829
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,916 files changed

+119440
-71829
lines changed

Makefile.inc1

Lines changed: 37 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1970,6 +1970,10 @@ REPODIR?= ${OBJROOT}repo
19701970
PKG_FORMAT?= tzst
19711971
PKG_REPO_SIGNING_KEY?= # empty
19721972
PKG_OUTPUT_DIR?= ${PKG_VERSION}
1973+
PKG_ABI_FILE?= ${WSTAGEDIR}/usr/bin/uname
1974+
.if make(create-*-packages*) || make(real-update-packages) || make(real-sign-packages)
1975+
PKG_ABI!= ${PKG_CMD} -o ABI_FILE=${PKG_ABI_FILE} config ABI
1976+
.endif
19731977

19741978
.ORDER: stage-packages create-packages
19751979
.ORDER: create-packages create-world-packages
@@ -1982,12 +1986,6 @@ _pkgbootstrap: .PHONY
19821986
@env ASSUME_ALWAYS_YES=YES pkg bootstrap
19831987
.endif
19841988

1985-
#
1986-
# Determine PKG_ABI from newvers.sh if not already set.
1987-
#
1988-
.if !defined(PKG_ABI) && (make(create-world-packages-jobs) || make(create-kernel-packages*) || make(real-update-packages) || make (create-source-packages) || make(sign-packages))
1989-
PKG_ABI=${_TYPE}:${MAJOR_REVISION}:${TARGET_ARCH}
1990-
.endif
19911989
PKG_BIN_VERSION!=${PKG_CMD} --version </dev/null 2>/dev/null |\
19921990
awk -F. '/^[0-9.]+$$/ {print $$1 * 10000 + $$2 * 100 + $$3}'
19931991
.if ${PKG_BIN_VERSION} < 11700
@@ -1997,8 +1995,7 @@ PKG_EXT= pkg
19971995
.endif
19981996

19991997
.if !defined(PKG_VERSION_FROM) && make(real-update-packages)
2000-
.if defined(PKG_ABI)
2001-
.if exists(${REPODIR}/${PKG_ABI})
1998+
.if exists(${PKG_ABI_FILE}) && exists(${REPODIR}/${PKG_ABI})
20021999
PKG_VERSION_FROM!=/usr/bin/readlink ${REPODIR}/${PKG_ABI}/latest
20032000
PKG_VERSION_FROM_DIR= ${REPODIR}/${PKG_ABI}/${PKG_VERSION_FROM}
20042001
BRANCH_EXT_FROM= ${PKG_VERSION_FROM:C/.*([[:alpha:]][^\.]*).*/\1/}
@@ -2008,7 +2005,6 @@ PKG_VERSION_FROM_DIR=
20082005
BRANCH_EXT_FROM=
20092006
.endif
20102007
.endif
2011-
.endif
20122008

20132009
PKGMAKEARGS+= PKG_VERSION=${PKG_VERSION} \
20142010
NO_INSTALLEXTRAKERNELS=${NO_INSTALLEXTRAKERNELS}
@@ -2099,17 +2095,13 @@ create-packages-source: _pkgbootstrap _repodir .PHONY
20992095

21002096
create-packages: .PHONY create-packages-world create-packages-kernel create-packages-source
21012097

2102-
create-source-packages: _pkgbootstrap .PHONY
2103-
rm -f ${SSTAGEDIR}/*.plist 2>/dev/null || :
2098+
create-source-src-package: _pkgbootstrap .PHONY
2099+
rm -f ${SSTAGEDIR}/src.plist 2>/dev/null || :
21042100
.if !empty(GIT_CMD) && exists(${GIT_CMD}) && exists(${SRCDIR}/.git)
21052101
@cd ${SRCDIR}; \
21062102
( echo "@override_prefix /usr/src" ; \
21072103
${GIT_CMD} ls-files --recurse-submodules ":!:sys/" ) \
21082104
> ${SSTAGEDIR}/src.plist
2109-
@cd ${SRCDIR}; \
2110-
( echo "@override_prefix /usr/src" ; \
2111-
${GIT_CMD} ls-files --recurse-submodules "sys/" ) \
2112-
> ${SSTAGEDIR}/src-sys.plist
21132105
${SRCDIR}/release/packages/generate-ucl.lua \
21142106
PKGNAME "src" \
21152107
PKGGENNAME "src" \
@@ -2121,6 +2113,22 @@ create-source-packages: _pkgbootstrap .PHONY
21212113
PKG_WWW "${PKG_WWW}" \
21222114
${SRCDIR}/release/packages/template.ucl \
21232115
${SSTAGEDIR}/src.ucl
2116+
${PKG_CMD} -o ABI=${PKG_ABI} \
2117+
-o OSVERSION="${SRCRELDATE}" \
2118+
create -f ${PKG_FORMAT} \
2119+
-M ${SSTAGEDIR}/src.ucl \
2120+
-p ${SSTAGEDIR}/src.plist \
2121+
-r ${SRCDIR} \
2122+
-o ${REPODIR}/${PKG_ABI}/${PKG_OUTPUT_DIR}
2123+
.endif
2124+
2125+
create-source-src-sys-package: _pkgbootstrap .PHONY
2126+
rm -f ${SSTAGEDIR}/src-sys.plist 2>/dev/null || :
2127+
.if !empty(GIT_CMD) && exists(${GIT_CMD}) && exists(${SRCDIR}/.git)
2128+
@cd ${SRCDIR}; \
2129+
( echo "@override_prefix /usr/src" ; \
2130+
${GIT_CMD} ls-files --recurse-submodules "sys/" ) \
2131+
> ${SSTAGEDIR}/src-sys.plist
21242132
${SRCDIR}/release/packages/generate-ucl.lua \
21252133
PKGNAME "src-sys" \
21262134
PKGGENNAME "src" \
@@ -2132,13 +2140,6 @@ create-source-packages: _pkgbootstrap .PHONY
21322140
PKG_WWW "${PKG_WWW}" \
21332141
${SRCDIR}/release/packages/template.ucl \
21342142
${SSTAGEDIR}/src-sys.ucl
2135-
${PKG_CMD} -o ABI=${PKG_ABI} \
2136-
-o OSVERSION="${SRCRELDATE}" \
2137-
create -f ${PKG_FORMAT} \
2138-
-M ${SSTAGEDIR}/src.ucl \
2139-
-p ${SSTAGEDIR}/src.plist \
2140-
-r ${SRCDIR} \
2141-
-o ${REPODIR}/${PKG_ABI}/${PKG_OUTPUT_DIR}
21422143
${PKG_CMD} -o ABI=${PKG_ABI} \
21432144
-o OSVERSION="${SRCRELDATE}" \
21442145
create -f ${PKG_FORMAT} \
@@ -2148,6 +2149,8 @@ create-source-packages: _pkgbootstrap .PHONY
21482149
-o ${REPODIR}/${PKG_ABI}/${PKG_OUTPUT_DIR}
21492150
.endif
21502151

2152+
create-source-packages: .PHONY _pkgbootstrap create-source-src-package create-source-src-sys-package
2153+
21512154
create-world-packages: _pkgbootstrap .PHONY
21522155
@rm -f ${WSTAGEDIR}/*.plist 2>/dev/null || :
21532156
@cd ${WSTAGEDIR} ; \
@@ -2180,7 +2183,7 @@ create-world-package-${pkgname}: .PHONY
21802183
@if [ "${pkgname}" == "runtime" ]; then \
21812184
sed -i '' -e "s/%VCS_REVISION%/${VCS_REVISION}/" ${WSTAGEDIR}/${pkgname}.ucl ; \
21822185
fi
2183-
${PKG_CMD} -o ABI_FILE=${WSTAGEDIR}/usr/bin/uname -o ALLOW_BASE_SHLIBS=yes \
2186+
${PKG_CMD} -o ABI=${PKG_ABI} -o ALLOW_BASE_SHLIBS=yes \
21842187
-o OSVERSION="${SRCRELDATE}" \
21852188
create -f ${PKG_FORMAT} -M ${WSTAGEDIR}/${pkgname}.ucl \
21862189
-p ${WSTAGEDIR}/${pkgname}.plist \
@@ -2256,7 +2259,7 @@ create-kernel-packages-extra-flavor${flavor:C,^""$,${_default_flavor},}-${_kerne
22562259
/name/ { printf("===> Creating %s-", $$2); next } \
22572260
/version/ {print $$2; next } ' \
22582261
${KSTAGEDIR}/kernel.${_kernel}/kernel.${_kernel}${flavor}.ucl ; \
2259-
${PKG_CMD} -o ABI_FILE=${WSTAGEDIR}/usr/bin/uname -o ALLOW_BASE_SHLIBS=yes \
2262+
${PKG_CMD} -o ABI=${PKG_ABI} -o ALLOW_BASE_SHLIBS=yes \
22602263
-o OSVERSION="${SRCRELDATE}" \
22612264
create -f ${PKG_FORMAT} \
22622265
-M ${KSTAGEDIR}/kernel.${_kernel}/kernel.${_kernel}${flavor}.ucl \
@@ -2268,20 +2271,22 @@ create-kernel-packages-extra-flavor${flavor:C,^""$,${_default_flavor},}-${_kerne
22682271
. endfor
22692272
.endif
22702273

2271-
sign-packages: _pkgbootstrap .PHONY
2274+
sign-packages: .PHONY
2275+
${_+_}@cd ${.CURDIR}; \
2276+
${MAKE} -f Makefile.inc1 PKG_VERSION=${PKG_VERSION} real-sign-packages
2277+
2278+
real-sign-packages: _pkgbootstrap .PHONY
22722279
printf "version = 2;\n" > ${WSTAGEDIR}/meta
22732280
.if ${PKG_BIN_VERSION} < 11700
22742281
printf "packing_format = \"${PKG_FORMAT}\";\n" >> ${WSTAGEDIR}/meta
22752282
.endif
2276-
@[ -L "${REPODIR}/$$(${PKG_CMD} -o ABI_FILE=${WSTAGEDIR}/usr/bin/uname config ABI)/latest" ] && \
2277-
unlink ${REPODIR}/$$(${PKG_CMD} -o ABI_FILE=${WSTAGEDIR}/usr/bin/uname config ABI)/latest ; \
2278-
${PKG_CMD} -o ABI_FILE=${WSTAGEDIR}/usr/bin/uname repo \
2279-
-o OSVERSION="${SRCRELDATE}" \
2283+
@[ -L "${REPODIR}/${PKG_ABI}/latest" ] && unlink ${REPODIR}/${PKG_ABI}/latest; \
2284+
${PKG_CMD} -o ABI=${PKG_ABI} repo -o OSVERSION="${SRCRELDATE}" \
22802285
-m ${WSTAGEDIR}/meta \
2281-
-o ${REPODIR}/$$(${PKG_CMD} -o ABI_FILE=${WSTAGEDIR}/usr/bin/uname config ABI)/${PKG_VERSION} \
2282-
${REPODIR}/$$(${PKG_CMD} -o ABI_FILE=${WSTAGEDIR}/usr/bin/uname config ABI)/${PKG_VERSION} \
2286+
-o ${REPODIR}/${PKG_ABI}/${PKG_VERSION} \
2287+
${REPODIR}/${PKG_ABI}/${PKG_VERSION} \
22832288
${PKG_REPO_SIGNING_KEY} ; \
2284-
cd ${REPODIR}/$$(${PKG_CMD} -o ABI_FILE=${WSTAGEDIR}/usr/bin/uname config ABI); \
2289+
cd ${REPODIR}/${PKG_ABI}; \
22852290
ln -s ${PKG_OUTPUT_DIR} latest
22862291

22872292
#

ObsoleteFiles.inc

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,24 @@
5151
# xargs -n1 | sort | uniq -d;
5252
# done
5353

54+
# 20240914 libpcap upgrade from 1.10.4 to 1.10.5
55+
OLD_FILES+=contrib/libpcap/pcap-haiku.cpp
56+
OLD_FILES+=contrib/libpcap/pcap-rpcap-int.h
57+
OLD_FILES+=contrib/libpcap/pcap-usb-linux-common.c
58+
59+
# 20240827: retire fips.so
60+
OLD_LIBS+=usr/lib/ossl-modules/fips.so
61+
62+
# 20240824: sound examples: midi.c moved out of oss/
63+
OLD_FILES+=share/examples/sound/oss/midi.c
64+
65+
# 20240824: sound examples: Remove ossinit.h and rename basic.c to audio.c
66+
OLD_FILES+=share/examples/sound/oss/ossinit.h
67+
OLD_FILES+=share/examples/sound/oss/basic.c
68+
69+
# 20240824: sound examples: Remove ossmidi.h
70+
OLD_FILES+=share/examples/sound/oss/ossmidi.h
71+
5472
# 20240801: retire ifaddr_byindex
5573
OLD_FILES+=usr/share/man/man9/ifaddr_byindex.9.gz
5674

@@ -3634,11 +3652,6 @@ OLD_FILES+=usr/share/man/man4/ng_h4.4.gz
36343652
# 20210923: rename boot(9) to kern_reboot(9)
36353653
OLD_FILES+=usr/share/man/man9/boot.9.gz
36363654

3637-
# 20210922: Old mixer(8) tests removed
3638-
OLD_FILES+=usr/tests/usr.sbin/mixer/Kyuafile
3639-
OLD_FILES+=usr/tests/usr.sbin/mixer/mixer_test
3640-
OLD_DIRS+=usr/tests/usr.sbin/mixer
3641-
36423655
# 20210921: remove cloudabi
36433656
OLD_FILES+=usr/share/man/man4/cloudabi.4.gz
36443657
OLD_FILES+=usr/share/man/man4/cloudabi32.4.gz

UPDATING

Lines changed: 43 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,12 @@ Items affecting the ports and packages system can be found in
1212
/usr/ports/UPDATING. Please read that file before updating system packages
1313
and/or ports.
1414

15-
20240202:
16-
Loader now also read configuration files listed in local_loader_conf_files.
17-
Files listed here are the last ones read. And /boot/loader.conf.local was
18-
moved from loader_conf_files to local_loader_conf_files leaving only
19-
loader.conf and device.hints in loader_conf_files by default.
20-
21-
The following sequencing is applied:
22-
23-
1. Bootstrap:
24-
/boot/defaults/loader.conf
25-
26-
2. Read loader_conf_files files:
27-
/boot/device.hints
28-
/boot/loader.conf
29-
30-
3. Read loader_conf_dirs files:
31-
/boot/loader.conf.d/*.conf
32-
33-
4. And finally, rread local_loader_conf_files files:
34-
/boot/loader.conf.local
15+
20240419:
16+
Clang, llvm, lld, lldb, compiler-rt, libc++, libunwind and openmp have
17+
been upgraded to 18.1.6. It is important that you run `make delete-old`
18+
as described in the COMMON ITEMS section, otherwise several libc++
19+
headers that are obsolete and need to be removed can cause compilation
20+
errors in C++ programs.
3521

3622
20240415:
3723
MFC e0f3dc82727f: If you have an arm64 system that uses ACPI, you will
@@ -53,9 +39,26 @@ and/or ports.
5339
non-compliant MTAs; please see the first 8.18.1 release note in
5440
contrib/sendmail/RELEASE_NOTES for mitigations.
5541

56-
20231113:
57-
The WITHOUT_LLD_IS_LD option has been removed. When LLD is enabled
58-
it is always installed as /usr/bin/ld.
42+
20240202:
43+
Loader now also read configuration files listed in local_loader_conf_files.
44+
Files listed here are the last ones read. And /boot/loader.conf.local was
45+
moved from loader_conf_files to local_loader_conf_files leaving only
46+
loader.conf and device.hints in loader_conf_files by default.
47+
48+
The following sequencing is applied:
49+
50+
1. Bootstrap:
51+
/boot/defaults/loader.conf
52+
53+
2. Read loader_conf_files files:
54+
/boot/device.hints
55+
/boot/loader.conf
56+
57+
3. Read loader_conf_dirs files:
58+
/boot/loader.conf.d/*.conf
59+
60+
4. And finally, rread local_loader_conf_files files:
61+
/boot/loader.conf.local
5962

6063
20240119:
6164
Commit d34f4baaf138 changed the internal interface between
@@ -77,6 +80,10 @@ and/or ports.
7780
sources.
7881
As such, __FreeBSD_version has been bumped to 1400502.
7982

83+
20231113:
84+
The WITHOUT_LLD_IS_LD option has been removed. When LLD is enabled
85+
it is always installed as /usr/bin/ld.
86+
8087
20230924:
8188
Enable splitting out pkgbase manpages into separate packages by
8289
default. To disable this, set WITHOUT_MANSPLITPKG=yes in src.conf.
@@ -311,6 +318,10 @@ and/or ports.
311318
belongs. Consequently, users may experience surprising results with
312319
such names when roaming to different homenets.
313320

321+
20211118:
322+
Mips has been removed from universe builds. It will be removed from the
323+
tree shortly.
324+
314325
20211110:
315326
Commit b8d60729deef changed the TCP congestion control framework so
316327
that any of the included congestion control modules could be
@@ -324,10 +335,6 @@ and/or ports.
324335
kernel and you are including networking, the kernel compile will
325336
fail. Also if no default is declared the kernel compile will fail.
326337

327-
20211118:
328-
Mips has been removed from universe builds. It will be removed from the
329-
tree shortly.
330-
331338
20211106:
332339
Commit f0c9847a6c47 changed the arguments for VOP_ALLOCATE.
333340
The NFS modules must be rebuilt from sources and any out
@@ -1928,6 +1935,8 @@ COMMON ITEMS:
19281935
make -DALWAYS_CHECK_MAKE buildkernel KERNCONF=YOUR_KERNEL_HERE
19291936
make -DALWAYS_CHECK_MAKE installkernel KERNCONF=YOUR_KERNEL_HERE
19301937

1938+
If you are running kernel modules from ports, see FOOTNOTE [1].
1939+
19311940
To test a kernel once
19321941
---------------------
19331942
If you just want to boot a kernel once (because you are not sure
@@ -1944,8 +1953,7 @@ COMMON ITEMS:
19441953
<make sure you have good level 0 dumps>
19451954
make buildworld
19461955
make buildkernel KERNCONF=YOUR_KERNEL_HERE
1947-
make installkernel KERNCONF=YOUR_KERNEL_HERE
1948-
[1]
1956+
make installkernel KERNCONF=YOUR_KERNEL_HERE [1]
19491957
<reboot in single user> [3]
19501958
etcupdate -p [5]
19511959
make installworld
@@ -1963,7 +1971,7 @@ COMMON ITEMS:
19631971
<make sure you have good level 0 dumps>
19641972
<boot into -stable>
19651973
make buildworld
1966-
make buildkernel KERNCONF=YOUR_KERNEL_HERE
1974+
make buildkernel KERNCONF=YOUR_KERNEL_HERE [1]
19671975
<maybe newfs current's root partition>
19681976
<mount current's root partition on directory ${CURRENT_ROOT}>
19691977
make installworld DESTDIR=${CURRENT_ROOT} -DDB_FROM_SRC
@@ -1982,8 +1990,7 @@ COMMON ITEMS:
19821990
<make sure you have good level 0 dumps>
19831991
make buildworld [9]
19841992
make buildkernel KERNCONF=YOUR_KERNEL_HERE [8]
1985-
make installkernel KERNCONF=YOUR_KERNEL_HERE
1986-
[1]
1993+
make installkernel KERNCONF=YOUR_KERNEL_HERE [1]
19871994
<reboot in single user> [3]
19881995
etcupdate -p [5]
19891996
make installworld
@@ -2003,8 +2010,10 @@ COMMON ITEMS:
20032010
messages there. If in doubt, please track -stable which has
20042011
much fewer pitfalls.
20052012

2006-
[1] If you have third party modules, such as vmware, you should disable
2007-
them at this point so they don't crash your system on
2013+
FOOTNOTES:
2014+
2015+
[1] If you have third party modules, such as drm-kmod or vmware, you
2016+
should disable them at this point so they don't crash your system on
20082017
reboot. Alternatively, you should rebuild all the modules you have in
20092018
your system and install them as well. If you are running -current, you
20102019
should seriously consider placing all sources to all the modules for

bin/date/date.1

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3030
.\" SUCH DAMAGE.
3131
.\"
32-
.Dd May 2, 2024
32+
.Dd September 10, 2024
3333
.Dt DATE 1
3434
.Os
3535
.Sh NAME
@@ -538,8 +538,11 @@ Finally the command
538538
.Pp
539539
.Dl "TZ=America/Los_Angeles date -z Europe/Paris -j 0900"
540540
.Pp
541-
will print the time in the "Europe/Paris" timezone when it is 9:00 in The
542-
America/Los_Angeles timezone.
541+
will print the time in the
542+
.Dq Europe/Paris
543+
timezone when it is 9:00 in the
544+
.Dq America/Los_Angeles
545+
timezone.
543546
.Sh DIAGNOSTICS
544547
It is invalid to combine the
545548
.Fl I

bin/date/date.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,8 @@ strftime_ns(char * __restrict s, size_t maxsize, const char * __restrict format,
395395
bool seen_percent;
396396

397397
seen_percent = false;
398-
if (asprintf(&newformat, "%s", format) < 0)
399-
err(1, "asprintf");
398+
if ((newformat = strdup(format)) == NULL)
399+
err(1, "strdup");
400400
tok = newformat;
401401
for (tok = newformat; *tok != '\0'; tok++) {
402402
switch (*tok) {
@@ -418,9 +418,9 @@ strftime_ns(char * __restrict s, size_t maxsize, const char * __restrict format,
418418
suffix = tok + 1;
419419
/*
420420
* Construct a new format string from the
421-
* prefix (i.e., the part of the old fromat
421+
* prefix (i.e., the part of the old format
422422
* from its beginning to the currently handled
423-
* "%N" conversion specification, the
423+
* "%N" conversion specification), the
424424
* nanoseconds, and the suffix (i.e., the part
425425
* of the old format from the next token to the
426426
* end).

0 commit comments

Comments
 (0)