DragonFlyBSD/src b46e26busr.bin/vi Makefile config.h

vi(1): Tweak and clean up Makefile

- Group -D__REGEX_PRIVATE with -I${SRCDIR}/regex
- Update config.h to define USE_WIDECHAR, which aligns with the vendor
  generated one.
DeltaFile
+3-3usr.bin/vi/Makefile
+1-1usr.bin/vi/config.h
+4-42 files

DragonFlyBSD/src 007ca2cusr.bin/vi config.h

vi(1): Sync config.h with the vendor generated one
DeltaFile
+6-6usr.bin/vi/config.h
+6-61 files

DragonFlyBSD/src 123c8a2contrib/nvi2 README.DRAGONFLY

contrib/nvi2: Update README.DRAGONFLY
DeltaFile
+4-4contrib/nvi2/README.DRAGONFLY
+4-41 files

DragonFlyBSD/src 898a792contrib/nvi2/common put.c options.c, contrib/nvi2/ex ex_append.c ex_shift.c

Merge branch 'vendor/NVI2'

Upgrade nvi2 from main at 2025-03-21 to v2.2.2.
DeltaFile
+30-16contrib/nvi2/common/put.c
+14-25contrib/nvi2/common/options.c
+16-18contrib/nvi2/vi/v_put.c
+11-10contrib/nvi2/ex/ex_append.c
+7-4contrib/nvi2/common/common.h
+6-2contrib/nvi2/ex/ex_shift.c
+84-758 files not shown
+100-8314 files

DragonFlyBSD/src 082a109contrib/nvi2/common put.c options.c, contrib/nvi2/ex ex_append.c ex_shift.c

vendor/NVI2: Upgrade from main at 2025-03-21 to v2.2.2

Version 2.2.2 release on 2025-10-09.

URL: https://github.com/lichray/nvi2/releases/tag/v2.2.2
DeltaFile
+30-16contrib/nvi2/common/put.c
+14-25contrib/nvi2/common/options.c
+16-18contrib/nvi2/vi/v_put.c
+11-10contrib/nvi2/ex/ex_append.c
+7-4contrib/nvi2/common/common.h
+6-2contrib/nvi2/ex/ex_shift.c
+84-758 files not shown
+100-8314 files

DragonFlyBSD/src 3de1e9dusr.sbin/makefs hammer2.c

usr.sbin/makefs/hammer2.c: Remove built-in unittest
DeltaFile
+0-50usr.sbin/makefs/hammer2.c
+0-501 files

DragonFlyBSD/src 0d602a9test/crypto/cryptoapi expected_output.md cryptoapi_test.c

test: Use snapshot testing for cryptoapi/cryptodev

The tests I wrote for cryptoapi where based on comparing the results
against the results of cryptodev - if they match, the test succeeds. But
as I am planning to remove cryptodev, this test methodology no longer
works.

Instead, store the test input data in fixtures.csv and run the test case
for each input. The generated output should then match the
expected_output.md in order for the tests to pass. This simplifies
adding new test fixtures and allows for re-generating the
expected_output.md.
DeltaFile
+3,602-0test/crypto/cryptoapi/expected_output.md
+187-128test/crypto/cryptoapi/cryptoapi_test.c
+241-0test/crypto/cryptoapi/fixtures.csv
+2-1test/crypto/cryptoapi/Makefile
+4,032-1294 files

DragonFlyBSD/src 496f6desys/conf files options

sys/conf: continue to build kernel despite removal of devices

Commit 980dc6f5ee469df858eb285322bf689882073b07 removed the hifn(4),
safe(4), ubsec(4) and padlock(4) drivers. With this change, every
KERNELCONF that still refers to any of those devices or related options
like for example "device hifn" or "options HIFN_RNDTEST" would no longer
build.

Obsolete these devices and emit a warning, but do not break the build.

Suggested-by: Aaron Li
DeltaFile
+21-0sys/conf/files
+12-0sys/conf/options
+33-02 files

DragonFlyBSD/src dc2dec1. Makefile.inc1

Tweak ${WORLD_ALTCOMPILER} to better handle multiple alternatives (2)

Was missed in commit 248b26df4c3309867044b0cb2dcd3555da1d3228.
DeltaFile
+2-2Makefile.inc1
+2-21 files

DragonFlyBSD/src 794ce71sys/dev/raid/arcmsr arcmsr.h

arcmsr.h: Include sys/bus.h header

The "arcmsr.h" header file uses types like bus_space_handle_t defined in
"sys/bus.h", but it does not include the "sys/bus.h" header itself. This
can cause build breakage elsewhere.

The build of "usr.bin/kdump" depends on the auto-generated file
"ioctl.c" created by the "mkioctls" script. Within the generated
"ioctl.c" file, various header files are included. Some of these header
files (namely "arcmsr.h") might depend on the order in which the header
files are included or depend on other header files being included before
themselves.

In the process of removing cryptodev, I noticed build breakage of kdump
when "sys/cryptodev.h" is removed. This is because "sys/cryptodev.h"
includes "sys/bus.h" and is placed before the include of "arcmsr.h"
(within the auto-generated "ioctl.c"). So removing "sys/cryptodev.h"
would lead to type definitions from "arcmsr.h" refering to yet undefined
types from "sys/bus.h".
DeltaFile
+1-0sys/dev/raid/arcmsr/arcmsr.h
+1-01 files

DragonFlyBSD/src a71cbe4libexec/customcc cc.sh

libexec/customcc: Fix a wrong variable name

Obviously, the variable for C++ compiler should be ${CUSTOM_CXXFLAGS}
instead of ${CUSTOM_CFLAGS}.  This bug was introduced in commit
571f588a5c6622ead0ed757b2884a76bb45bdb56.
DeltaFile
+1-1libexec/customcc/cc.sh
+1-11 files

DragonFlyBSD/src 53045d3libexec/customcc cc.sh

libexec/customcc: Fix bug with the `[ -n ${X} ]` conditional

Before this fix, command `CCVER=xxx cc --version` failed with a strange
error:
```
exec: --version: not found
```
which was given by this customcc wrapper script.  The expected error
should be:
```
xxx_CC undefined, see compilers.conf(5)
```

It turned out this was caused by the `[ -n ${X} ]` conditional: `[ -n ]`
evaluates to *true*, while `[ -n "" ]` evaulates to *false*.
Interestingly, both `[ -z ]` and `[ -z "" ]` evaulates to *false*.  The
original version of this wrapper used `[ -z ${X} ]` style and it worked
fine, but commit 571f588a5c6622ead0ed757b2884a76bb45bdb56 changed it to
`[ -n ${X} ]` style and thus broke it.
DeltaFile
+3-3libexec/customcc/cc.sh
+3-31 files

DragonFlyBSD/src af1f418nrelease Makefile

nrelease: Simplify the setting of disklabel packid/label

The packid (i.e., label name) can be directly set upon the label
creation; no need to edit the disklabel dump file.
DeltaFile
+1-3nrelease/Makefile
+1-31 files

DragonFlyBSD/src 16afa6bsys/kern subr_diskgpt.c

kernel: Fix GPT partition start/end check in gptinit()

The GPT partition ending LBA is inclusive, so it's valid to have a GPT
partition with start == end, i.e., the partition size is 1 block.  Fix
gptinit() to support this case.  In addition, improve the kprintf()
debug message to show the value of start and ending LBAs.
DeltaFile
+5-4sys/kern/subr_diskgpt.c
+5-41 files

DragonFlyBSD/src 8ff2c04usr.bin/objformat objformat.c

objformat(1): Whitespace cleanups
DeltaFile
+4-4usr.bin/objformat/objformat.c
+4-41 files

DragonFlyBSD/src 248b26d. Makefile.inc1, gnu/lib Makefile

Tweak ${WORLD_ALTCOMPILER} to better handle multiple alternatives

No functional changes.
DeltaFile
+4-4Makefile.inc1
+2-3gnu/lib/Makefile
+2-3gnu/usr.bin/Makefile
+8-103 files

DragonFlyBSD/src 3f5357eusr.bin/objformat objformat.1 objformat.c

objformat.1: Document the fallback behavior to use external compilers

When objformat(1) cannot find any of /usr/libexec/<ccver>/prog, it will
fallback to use /usr/libexec/custom/prog to access external compilers
defined by compilers.conf(5).
DeltaFile
+12-4usr.bin/objformat/objformat.1
+3-2usr.bin/objformat/objformat.c
+15-62 files

DragonFlyBSD/src 20ce32busr.bin/objformat objformat.c

objformat(1): Define 'newcmd' as a char array to avoid alloc/free
DeltaFile
+5-9usr.bin/objformat/objformat.c
+5-91 files

DragonFlyBSD/src 6cec064share/mk sys.mk

mk/sys.mk: Explain a bit more about ${WORLD_ALTCOMPILER}

It was introduced in commit 8d7da4247e43eb2bbe924d08f6a40ef80d742515 for
supporting multiple alternative compilers.
DeltaFile
+3-0share/mk/sys.mk
+3-01 files

DragonFlyBSD/src cb4a9d9usr.bin/objformat Makefile

objformat(1): Remove obsolete 'TARGET_ARCH' from Makefile

The last use of 'TARGET_ARCH' was removed in commit
52bf25c327d5777700d21174fdabe4dbf201e56c in 2005.
DeltaFile
+1-4usr.bin/objformat/Makefile
+1-41 files

DragonFlyBSD/src e4e2126usr.bin/objformat objformat.c

objformat(1): Simplify cmds handling code

* Set 'cmd=NULL' for the last cmds element, and the loop until it,
  avoiding the NELEM() macro and <sys/param.h> inclusion.

* The 'cmds' variable cannot be NULL, so remove the unnecessary 'if'
  tests.
DeltaFile
+34-44usr.bin/objformat/objformat.c
+34-441 files

DragonFlyBSD/src 386bb64libexec/customcc cc.sh

libexec/customcc: Fix a wrong variable name

Obviously, the variable for C++ compiler should be ${CUSTOM_CXXFLAGS}
instead of ${CUSTOM_CFLAGS}.  This bug was introduced in commit
571f588a5c6622ead0ed757b2884a76bb45bdb56.
DeltaFile
+1-1libexec/customcc/cc.sh
+1-11 files

DragonFlyBSD/src aba9d54libexec/customcc cc.sh

libexec/customcc: Document why pre-determine INCPREFIX/MACHARCH/MACHREL

This change was made in commit 571f588a5c6622ead0ed757b2884a76bb45bdb56
to improve the wrapper script efficiency.
DeltaFile
+5-3libexec/customcc/cc.sh
+5-31 files

DragonFlyBSD/src 60ed70flibexec/customcc cc.sh

libexec/customcc: Fix bug with the `[ -n ${X} ]` conditional

Before this fix, command `CCVER=xxx cc --version` failed with a strange
error:
```
exec: --version: not found
```
which was given by this customcc wrapper script.  The expected error
should be:
```
xxx_CC undefined, see compilers.conf(5)
```

It turned out this was caused by the `[ -n ${X} ]` conditional: `[ -n ]`
evaluates to *true*, while `[ -n "" ]` evaulates to *false*.
Interestingly, both `[ -z ]` and `[ -z "" ]` evaulates to *false*.  The
original version of this wrapper used `[ -z ${X} ]` style and it worked
fine, but commit 571f588a5c6622ead0ed757b2884a76bb45bdb56 changed it to
`[ -n ${X} ]` style and thus broke it.
DeltaFile
+3-3libexec/customcc/cc.sh
+3-31 files

DragonFlyBSD/src 50707a2usr.bin/objformat objformat.c

objformat(1): Only need to do setenv() once
DeltaFile
+3-3usr.bin/objformat/objformat.c
+3-31 files

DragonFlyBSD/src 91d554elibexec/customcc cc.sh

libexec/customcc: Simplify 'eval + echo' code
DeltaFile
+27-27libexec/customcc/cc.sh
+27-271 files

DragonFlyBSD/src 4752920libexec/customcc cc.sh

libexec/customcc: Update the C++ include path to /usr/include/c++/8.0

It was missed in commit 0cbc219347118fb18bd144b3cace9e025e6ea22d.
DeltaFile
+2-2libexec/customcc/cc.sh
+2-21 files

DragonFlyBSD/src fdd6a26. Makefile_upgrade.inc

Remove remaining module files: hifn.ko, padlock.ko, safe.ko, ubsec.ko

These kernel modules were removed in commit
980dc6f5ee469df858eb285322bf689882073b07 but these files were missed
there.
DeltaFile
+5-1Makefile_upgrade.inc
+5-11 files

DragonFlyBSD/src 64191b4usr.bin/objformat objformat.c

objformat(1): Clean up assignment of 'base_path'
DeltaFile
+1-4usr.bin/objformat/objformat.c
+1-41 files

DragonFlyBSD/src 2f36cb2libexec/customcc cc.sh

libexec/customcc: Catch potential inconsistency between two switch's
DeltaFile
+4-0libexec/customcc/cc.sh
+4-01 files