Skip to content

Commit

Permalink
Merge pull request #321 from ghostbsd/24.04.1
Browse files Browse the repository at this point in the history
 24.04.1 system update
  • Loading branch information
ericbsd authored Apr 17, 2024
2 parents dac8400 + 28f4688 commit 2a31748
Show file tree
Hide file tree
Showing 11,363 changed files with 1,143,326 additions and 313,536 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
56 changes: 46 additions & 10 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,35 +20,52 @@ env:

task:
matrix:
- name: amd64-llvm15 World and kernel build and boot smoke test
- name: amd64-llvm16 World and kernel build and boot smoke test
only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
trigger_type: manual
env:
TARGET: amd64
TARGET_ARCH: amd64
TOOLCHAIN: llvm15
TOOLCHAIN: llvm16
TOOLCHAIN_PKG: ${TOOLCHAIN}-lite
- name: amd64-llvm16 World and kernel build and boot smoke test
- name: amd64-llvm17 World and kernel build and boot smoke test
only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src' || $CIRRUS_BRANCH =~ 'pull/.*'
env:
TARGET: amd64
TARGET_ARCH: amd64
TOOLCHAIN: llvm16
TOOLCHAIN: llvm17
TOOLCHAIN_PKG: ${TOOLCHAIN}-lite
- name: arm64-llvm15 World and kernel build and boot smoke test
- name: amd64-llvm18 World and kernel build and boot smoke test
only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
trigger_type: manual
env:
TARGET: amd64
TARGET_ARCH: amd64
TOOLCHAIN: llvm18
TOOLCHAIN_PKG: ${TOOLCHAIN}-lite
- name: arm64-llvm16 World and kernel build and boot smoke test
only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
trigger_type: manual
env:
TARGET: arm64
TARGET_ARCH: aarch64
TOOLCHAIN: llvm15
TOOLCHAIN: llvm16
TOOLCHAIN_PKG: ${TOOLCHAIN}
- name: arm64-llvm16 World and kernel build and boot smoke test
- name: arm64-llvm17 World and kernel build and boot smoke test
only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
trigger_type: manual
env:
TARGET: arm64
TARGET_ARCH: aarch64
TOOLCHAIN: llvm16
TOOLCHAIN: llvm17
TOOLCHAIN_PKG: ${TOOLCHAIN}
- name: arm64-llvm18 World and kernel build and boot smoke test
only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
trigger_type: manual
env:
TARGET: arm64
TARGET_ARCH: aarch64
TOOLCHAIN: llvm18
TOOLCHAIN_PKG: ${TOOLCHAIN}
- name: amd64-gcc12 World and kernel build and boot smoke test (manual)
only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
Expand All @@ -59,6 +76,15 @@ task:
TOOLCHAIN: amd64-gcc12
TOOLCHAIN_PKG: ${TOOLCHAIN}
EXTRA_MAKE_FLAGS: -s
- name: amd64-gcc13 World and kernel build and boot smoke test (manual)
only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
trigger_type: manual
env:
TARGET: amd64
TARGET_ARCH: amd64
TOOLCHAIN: amd64-gcc13
TOOLCHAIN_PKG: ${TOOLCHAIN}
EXTRA_MAKE_FLAGS: -s
- name: aarch64-gcc12 World and kernel build and boot smoke test (manual)
only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
trigger_type: manual
Expand All @@ -68,8 +94,17 @@ task:
TOOLCHAIN: aarch64-gcc12
TOOLCHAIN_PKG: ${TOOLCHAIN}
EXTRA_MAKE_FLAGS: -s
- name: aarch64-gcc13 World and kernel build and boot smoke test (manual)
only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
trigger_type: manual
env:
TARGET: arm64
TARGET_ARCH: aarch64
TOOLCHAIN: aarch64-gcc13
TOOLCHAIN_PKG: ${TOOLCHAIN}
EXTRA_MAKE_FLAGS: -s
- name: amd64-gcc12 World and kernel build and boot smoke test (FreeBSD repo)
only_if: $CIRRUS_REPO_FULL_NAME == 'freebsd/freebsd-src'
only_if: $CIRRUS_REPO_FULL_NAME == 'freebsd/freebsd-src' && $CIRRUS_BRANCH =~ 'pull/.*'
env:
TARGET: amd64
TARGET_ARCH: amd64
Expand All @@ -85,9 +120,10 @@ task:
- gpart show
- df -m
- pkg --version
- pw useradd user
- pw useradd -n user -m
- mkdir -p /usr/obj/$(pwd -P)
- chown user:user /usr/obj/$(pwd -P)
- su user -c "git config --global --add safe.directory $(pwd -P)"

build_world_script:
- su user -c "make -j$(sysctl -n hw.ncpu) ${EXTRA_MAKE_FLAGS} CROSS_TOOLCHAIN=${TOOLCHAIN} WITHOUT_TOOLCHAIN=yes buildworld"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cross-bootstrap-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- target_arch: aarch64
target: arm64
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: install packages (Ubuntu)
if: runner.os == 'Linux'
run: |
Expand Down
9 changes: 8 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ A pull request will be considered if:
* The commits follow FreeBSD's style guide. See [Style](#Style).
* Run tools/build/checkstyle9.pl on your Git branch and eliminate all errors
* The commits do not introduce trailing white space.
* If the commmit fixes a bug, please add 'PR: \<bugnumber\>' to the commit message.
* If the commit fixes a bug, please add 'PR: \<bugnumber\>' to the commit message.
* If there's a code review in Phabricator, please include a link as a 'Differential Revision: ' line.

When updating your pull request, please rebase with a forced push rather than a
Expand Down Expand Up @@ -75,6 +75,13 @@ submission does not meet the limited scope for pull requests accepted
here. Sometimes it is easier to review a GitHub pull request than to do the
review in Phabricator, so that's also allowed.

### Author Name and Email

We require that contributions are associated with a unique identity.
The author email address should not be `<something>@users.noreply.github.com`.
Do note that your name and email address will become a permanent and immutable
part of the public Git history of the FreeBSD source tree.

## Style

Avoid adding trailing newlines and whitespace. These slow down the integration
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ META_TGT_WHITELIST+= build${libcompat}
.ORDER: buildkernel installkernel.debug
.ORDER: buildkernel reinstallkernel
.ORDER: buildkernel reinstallkernel.debug
.ORDER: kernel-toolchain buildkernel

# Only sanitize PATH on FreeBSD.
# PATH may include tools that are required to cross-build
Expand Down
115 changes: 69 additions & 46 deletions Makefile.inc1
Original file line number Diff line number Diff line change
Expand Up @@ -1838,7 +1838,8 @@ reinstallkernel reinstallkernel.debug: _installcheck_kernel .PHONY
@echo "--------------------------------------------------------------"
${_+_}cd ${KRNLOBJDIR}/${INSTALLKERNEL}; \
${CROSSENV} PATH=${TMPPATH:Q} \
${MAKE} ${IMAKE_INSTALL} KERNEL=${INSTKERNNAME} ${.TARGET:S/kernel//}
${MAKE} ${IMAKE_INSTALL} KERNEL=${INSTKERNNAME} METALOG=${METALOG} \
${.TARGET:S/kernel//}
@echo "--------------------------------------------------------------"
@echo ">>> Installing kernel ${INSTALLKERNEL} completed on $$(LC_ALL=C date)"
@echo "--------------------------------------------------------------"
Expand All @@ -1850,7 +1851,8 @@ reinstallkernel reinstallkernel.debug: _installcheck_kernel .PHONY
@echo "--------------------------------------------------------------"
${_+_}cd ${KRNLOBJDIR}/${_kernel}; \
${CROSSENV} PATH=${TMPPATH:Q} \
${MAKE} ${IMAKE_INSTALL} KERNEL=${INSTKERNNAME}.${_kernel} ${.TARGET:S/kernel//}
${MAKE} ${IMAKE_INSTALL} KERNEL=${INSTKERNNAME}.${_kernel} METALOG=${METALOG} \
${.TARGET:S/kernel//}
@echo "--------------------------------------------------------------"
@echo ">>> Installing kernel ${_kernel} completed on $$(LC_ALL=C date)"
@echo "--------------------------------------------------------------"
Expand All @@ -1870,7 +1872,8 @@ distributekernel distributekernel.debug: .PHONY
${_+_}cd ${KRNLOBJDIR}/${INSTALLKERNEL}; \
${IMAKEENV} ${IMAKE_INSTALL:S/METALOG/kernel.premeta/} \
${IMAKE_MTREE} PATH=${TMPPATH:Q} ${MAKE} KERNEL=${INSTKERNNAME} \
DESTDIR=${INSTALL_DDIR}/kernel \
DISTBASE=/kernel DESTDIR=${INSTALL_DDIR}/kernel \
METALOG=${METALOG:S/METALOG/kernel.premeta/} \
${.TARGET:S/distributekernel/install/}
.if defined(NO_ROOT)
@sed -e 's|^./kernel|.|' ${DESTDIR}/${DISTDIR}/kernel.premeta > \
Expand All @@ -1886,7 +1889,8 @@ distributekernel distributekernel.debug: .PHONY
${IMAKEENV} ${IMAKE_INSTALL:S/METALOG/kernel.${_kernel}.premeta/} \
${IMAKE_MTREE} PATH=${TMPPATH:Q} ${MAKE} \
KERNEL=${INSTKERNNAME}.${_kernel} \
DESTDIR=${INSTALL_DDIR}/kernel.${_kernel} \
DISTBASE=/kernel.${_kernel} DESTDIR=${INSTALL_DDIR}/kernel.${_kernel} \
METALOG=${METALOG:S/METALOG/kernel.${_kernel}.premeta/} \
${.TARGET:S/distributekernel/install/}
.if defined(NO_ROOT)
@sed -e "s|^./kernel.${_kernel}|.|" \
Expand Down Expand Up @@ -2088,26 +2092,34 @@ create-source-packages: _pkgbootstrap .PHONY
.if !empty(GIT_CMD) && exists(${GIT_CMD}) && exists(${SRCDIR}/.git)
@cd ${SRCDIR}; \
( echo "@override_prefix /usr/src" ; \
${GIT_CMD} ls-files ":!:sys/" ) > ${SSTAGEDIR}/src.plist
${GIT_CMD} ls-files --recurse-submodules ":!:sys/" ) \
> ${SSTAGEDIR}/src.plist
@cd ${SRCDIR}; \
( echo "@override_prefix /usr/src" ; \
${GIT_CMD} ls-files "sys/" ) > ${SSTAGEDIR}/src-sys.plist
sed -e "s/%VERSION%/${PKG_VERSION}/" \
-e "s/%DESC%/FreeBSD sources/" \
-e "s/ %VCS_REVISION%/${VCS_REVISION}/" \
-e "s/%PKG_NAME_PREFIX%/${PKG_NAME_PREFIX}/" \
-e "s/%PKG_MAINTAINER%/${PKG_MAINTAINER}/" \
-e "s|%PKG_WWW%|${PKG_WWW}|" \
${SRCDIR}/release/packages/src.ucl \
> ${SSTAGEDIR}/src.ucl
sed -e "s/%VERSION%/${PKG_VERSION}/" \
-e "s/%DESC%/FreeBSD Kernel sources/" \
-e "s/ %VCS_REVISION%/${VCS_REVISION}/" \
-e "s/%PKG_NAME_PREFIX%/${PKG_NAME_PREFIX}/" \
-e "s/%PKG_MAINTAINER%/${PKG_MAINTAINER}/" \
-e "s|%PKG_WWW%|${PKG_WWW}|" \
${SRCDIR}/release/packages/src-sys.ucl \
> ${SSTAGEDIR}/src-sys.ucl
${GIT_CMD} ls-files --recurse-submodules "sys/" ) \
> ${SSTAGEDIR}/src-sys.plist
${SRCDIR}/release/packages/generate-ucl.lua \
PKGNAME "src" \
PKGGENNAME "src" \
VERSION "${PKG_VERSION}" \
DESC "FreeBSD Kernel Sources" \
COMMENT "FreeBSD Userland Sources" \
PKG_NAME_PREFIX "${PKG_NAME_PREFIX}" \
PKG_MAINTAINER "${PKG_MAINTAINER}" \
PKG_WWW "${PKG_WWW}" \
${SRCDIR}/release/packages/template.ucl \
${SSTAGEDIR}/src.ucl
${SRCDIR}/release/packages/generate-ucl.lua \
PKGNAME "src-sys" \
PKGGENNAME "src" \
VERSION "${PKG_VERSION}" \
DESC "FreeBSD Kernel Sources" \
COMMENT "FreeBSD Kernel Sources" \
PKG_NAME_PREFIX "${PKG_NAME_PREFIX}" \
PKG_MAINTAINER "${PKG_MAINTAINER}" \
PKG_WWW "${PKG_WWW}" \
${SRCDIR}/release/packages/template.ucl \
${SSTAGEDIR}/src-sys.ucl
${PKG_CMD} -o ABI=${PKG_ABI} \
-o OSVERSION="${SRCRELDATE}" \
create -f ${PKG_FORMAT} \
Expand Down Expand Up @@ -2177,17 +2189,17 @@ create-kernel-packages-flavor${flavor:C,^""$,${_default_flavor},}: _pkgbootstrap
${METALOG_SORT_CMD} ${KSTAGEDIR}/kernel.meta | \
awk -f ${SRCDIR}/release/scripts/mtree-to-plist.awk \
-v kernel=yes -v _kernconf=${INSTALLKERNEL} ; \
sed -e "s/%VERSION%/${PKG_VERSION}/" \
-e "s/%PKGNAME%/kernel-${INSTALLKERNEL:tl}${flavor}/" \
-e "s/%KERNELDIR%/kernel/" \
-e "s/%COMMENT%/FreeBSD ${INSTALLKERNEL} kernel ${flavor}/" \
-e "s/%DESC%/FreeBSD ${INSTALLKERNEL} kernel ${flavor}/" \
-e "s/ %VCS_REVISION%/${VCS_REVISION}/" \
-e "s/%PKG_NAME_PREFIX%/${PKG_NAME_PREFIX}/" \
-e "s/%PKG_MAINTAINER%/${PKG_MAINTAINER}/" \
-e "s|%PKG_WWW%|${PKG_WWW}|" \
${SRCDIR}/release/packages/kernel.ucl \
> ${KSTAGEDIR}/${DISTDIR}/kernel.${INSTALLKERNEL}${flavor}.ucl ; \
${SRCDIR}/release/packages/generate-ucl.lua \
PKGNAME "kernel-${INSTALLKERNEL:tl}${flavor}" \
VERSION "${PKG_VERSION}" \
KERNELDIR "kernel" \
COMMENT "FreeBSD ${INSTALLKERNEL} kernel ${flavor}" \
DESC "FreeBSD ${INSTALLKERNEL} kernel ${flavor}" \
PKG_NAME_PREFIX "${PKG_NAME_PREFIX}" \
PKG_MAINTAINER "${PKG_MAINTAINER}" \
PKG_WWW "${PKG_WWW}" \
${SRCDIR}/release/packages/template.ucl \
${KSTAGEDIR}/${DISTDIR}/kernel.${INSTALLKERNEL}${flavor}.ucl ; \
awk -F\" ' \
/name/ { printf("===> Creating %s-", $$2); next } \
/version/ {print $$2; next } ' \
Expand All @@ -2214,17 +2226,20 @@ create-kernel-packages-extra-flavor${flavor:C,^""$,${_default_flavor},}-${_kerne
${METALOG_SORT_CMD} ${KSTAGEDIR}/kernel.${_kernel}.meta | \
awk -f ${SRCDIR}/release/scripts/mtree-to-plist.awk \
-v kernel=yes -v _kernconf=${_kernel} ; \
sed -e "s/%VERSION%/${PKG_VERSION}/" \
-e "s/%PKGNAME%/kernel-${_kernel:tl}${flavor}/" \
-e "s/%KERNELDIR%/kernel.${_kernel}/" \
-e "s/%COMMENT%/FreeBSD ${_kernel} kernel ${flavor}/" \
-e "s/%DESC%/FreeBSD ${_kernel} kernel ${flavor}/" \
-e "s/ %VCS_REVISION%/${VCS_REVISION}/" \
-e "s/%PKG_NAME_PREFIX%/${PKG_NAME_PREFIX}/" \
-e "s/%PKG_MAINTAINER%/${PKG_MAINTAINER}/" \
-e "s|%PKG_WWW%|${PKG_WWW}|" \
${SRCDIR}/release/packages/kernel.ucl \
> ${KSTAGEDIR}/kernel.${_kernel}/kernel.${_kernel}${flavor}.ucl ; \
${SRCDIR}/release/packages/generate-ucl.lua \
PKGNAME "kernel-${_kernel:tl}${flavor}" \
PKGGENNAME "kernel" \
FORCEINCLUDE "kernel${flavor}" \
UCLFILES "${SRCDIR}/release/packages/" \
VERSION "${PKG_VERSION}" \
KERNELDIR "kernel.${_kernel}" \
DESC "FreeBSD ${_kernel} kernel ${flavor}" \
COMMENT "FreeBSD ${_kernel} kernel ${flavor}" \
PKG_NAME_PREFIX "${PKG_NAME_PREFIX}" \
PKG_MAINTAINER "${PKG_MAINTAINER}" \
PKG_WWW "${PKG_WWW}" \
${SRCDIR}/release/packages/template.ucl \
${KSTAGEDIR}/kernel.${_kernel}/kernel.${_kernel}${flavor}.ucl ; \
awk -F\" ' \
/name/ { printf("===> Creating %s-", $$2); next } \
/version/ {print $$2; next } ' \
Expand Down Expand Up @@ -2405,8 +2420,12 @@ _bootstrap_tools_links+=m4 lex
_elftoolchain_libs= lib/libelf lib/libdwarf lib/libzstd
${_bt}-lib/libelf: ${_bt_m4_depend}
${_bt}-lib/libdwarf: ${_bt_m4_depend}
_bt_libelf_depend=${_bt}-lib/libelf
.endif

_kldxref= usr.sbin/kldxref
${_bt}-usr.sbin/kldxref: ${_bt_libelf_depend}

# flua is required to regenerate syscall files. It first appeared during the
# 13.0-CURRENT cycle, thus needs to be built on -older releases and stable
# branches.
Expand Down Expand Up @@ -2498,6 +2517,7 @@ _gensnmptree= usr.sbin/bsnmpd/gensnmptree
${MK_LLDB} != "no" || ${MK_LLVM_BINUTILS} != "no"
_clang_tblgen= \
lib/clang/libllvmminimal \
usr.bin/clang/llvm-min-tblgen \
usr.bin/clang/llvm-tblgen
.if ${MK_CLANG_BOOTSTRAP} != "no" || ${MK_CLANG} != "no" || \
${MK_LLDB} != "no"
Expand All @@ -2508,8 +2528,10 @@ _clang_tblgen+= usr.bin/clang/clang-tblgen
_clang_tblgen+= usr.bin/clang/lldb-tblgen
.endif
${_bt}-usr.bin/clang/clang-tblgen: ${_bt}-lib/clang/libllvmminimal
${_bt}-usr.bin/clang/llvm-tblgen: ${_bt}-lib/clang/libllvmminimal
${_bt}-usr.bin/clang/lldb-tblgen: ${_bt}-lib/clang/libllvmminimal
${_bt}-usr.bin/clang/llvm-min-tblgen: ${_bt}-lib/clang/libllvmminimal
${_bt}-usr.bin/clang/llvm-tblgen: ${_bt}-lib/clang/libllvmminimal
${_bt}-usr.bin/clang/llvm-tblgen: ${_bt}-usr.bin/clang/llvm-min-tblgen
.endif

# C.UTF-8 is always built in share/ctypes and we need localedef for that.
Expand Down Expand Up @@ -2665,6 +2687,7 @@ bootstrap-tools: ${_bt}-links .PHONY
${_cat} \
${_kbdcontrol} \
${_elftoolchain_libs} \
${_kldxref} \
lib/libopenbsd \
usr.bin/mandoc \
usr.bin/rpcgen \
Expand Down Expand Up @@ -3445,7 +3468,7 @@ check-old-files: .PHONY
list-old-libs: .PHONY
@cd ${.CURDIR}; \
${MAKE} -f ${.CURDIR}/Makefile.inc1 ${.MAKEFLAGS} ${.TARGET} \
-V "OLD_LIBS:ts\n" -V "MOVED_LIBS:ts\n" \
-V "OLD_LIBS:ts\n" \
${_ALL_libcompats:@v@-V "OLD_LIBS:Mlib/*:S,^lib,usr/lib$v,:ts\n"@} \
${_ALL_libcompats:@v@-V "OLD_LIBS:Musr/lib/*:S,^usr/lib,usr/lib$v,:ts\n"@} \
${_ALL_libcompats:@v@-V "OLD_LIBS:Mlib/casper/*:S,^lib/casper,usr/lib$v,:ts\n"@} | \
Expand Down
Loading

0 comments on commit 2a31748

Please sign in to comment.