aboutsummaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
...
* libbsnmp: make binding of client UNIX socket optional and configurableGleb Smirnoff2025-07-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Before this change snmp_open(3) would always bind(2) client socket to a random "/tmp/snmpXXXXXXXXXXXXXX" name. However, this binding is not required for SOCK_STREAM transport. Also, any attempt to specify a different name would fail, as open_client_local() would blindly rewrite the name to the default. Make this binding optional. If application had initialized snmp_client.local_path, then try to bind to the specified pathname, otherwise perform the random name binding only if we are in the SOCK_DGRAM mode. While here change snmp_client.local_path size to SUNPATHLEN, so that any legitimate local socket name can be used. This requires library version bump. Note that this code has been broken by 81e0e7b9e36d for three years, thus it is known not to be widely used. Reviewed by: harti Differential Revision: https://reviews.freebsd.org/D51070
* stress2/fullpath2: Clean up the vn_fullpath DTrace one-linerMateusz Piotrowski2025-07-181-1/+1
| | | | | | | | | | | | | - Remove -w; there is no need for destructive actions here. - Remove the glob from before "vn_fullpath"; the probe description matches vn_fullpath only anyway, so there is no need for the glob here. PR 288222 Reviewed by: christos Approved by: christos (mentor) Fixes: 113f2f0c76a7 stress2: Updated dtrace comment Differential Revision: https://reviews.freebsd.org/D51341
* libc: Test time zone change detection.Dag-Erling Smørgrav2025-07-181-0/+4
| | | | | | | | | While here, clean the detection code up a bit. Sponsored by: Klara, Inc. Sponsored by: NetApp, Inc. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D51343
* stress2: Updated dtrace commentPeter Holm2025-07-161-1/+1
|
* stress2: Added syzkaller reproducers. Update the exclude listPeter Holm2025-07-163-2/+398
|
* cross-build: provide exterr.h and sys/exterrvar.h for non-FreeBSD hostsKonstantin Belousov2025-07-102-0/+20
| | | | | | | | | with enough glue to make libc/gen/err.c compilable. Reported by: jhb Reviewed by: jhb, jrtc27 Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D51217
* share: Delete bitrotted make_*_driver.sh scriptsJessica Clarke2025-07-101-4/+0
| | | | | | | | | | | | | | | | These scripts have not seen the necessary changes to keep them up to date with current KPIs and coding practices. They use I/O ports directly rather than any bus abstractions, use i386 (which is on the way out for kernel configs) as the architecture of choice for generated kernel configs, use ISA KPIs, use INTR_TYPE_FAST (renamed in 2000 to INTR_FAST and removed in 2011), and likely have other issues too that render them more harm than good for the uninitiated developer looking for a driver template. If anyone wants to invest time in modernising them they can do so and bring them back, but for now delete them. Reviewed by: cperciva, imp, emaste MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D50468
* OptionalObsoleteFiles: libkadm5clnt.so is used by MIT and HeimdalCy Schubert2025-07-071-1/+0
| | | | | Reported by: fluffy, "Herbert J. Skuhra" <herbert@gojira.at> Fixes: af2593e3212c
* git-arc: Fix handling of author names when we have to make a guessMark Johnston2025-07-071-1/+1
| | | | | The output printed by this function is used as the author name, so we don't want to print informational messages to stdout.
* src.conf.5: Add WITH_RUN_TESTS descriptionEd Maste2025-07-061-0/+1
| | | | | Fixes: 8e1e989c77d4 ("Add host.test.mk for DIRDEPS_BUILD") Sponosred by: The FreeBSD Foundation
* git-arc: Try harder to get the author name and email out of phabMark Johnston2025-07-021-11/+4
| | | | | | | | | | | | | | | | | | | When patching, we use the querydiffs endpoint to get a name and email for the revision's author. It's possible that this info isn't recorded, in which case the results after post-processing are just "null". However, if the diff has multiple revisions, the endpoint returns an entry for each one, some of which may contain author info, others not. So, the deleted code which tries to filter out "null" isn't sufficient, since the value in question might be something like "<valid name>\nnull". Try to make this filtering a bit smarter to avoid generating incorrect author info. Reviewed by: jlduran Reported by: des MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D51065
* OptionalObsoleteFiles: Keep Heimdal man pages when switching backCy Schubert2025-06-261-2/+0
| | | | | | | Additional man pages that should not be removed when switching back to Heimdal. Fixes: af2593e3212c
* OptionalObsoleteFiles: Keep Heimdal files when switching backCy Schubert2025-06-261-5/+0
| | | | | | | Additional files that should not be removed when switching back to Heimdal. Fixes: af2593e3212c
* OptionalObsoleteFiles: Remove an MIT .a file when switching backCy Schubert2025-06-261-0/+1
| | | | | | When switching back to Heimdal remove libverto.a, an MIT KRB5 library. Fixes: af2593e3212c
* OptionalObsoleteFiles: Keep Heimdal files when switching backCy Schubert2025-06-261-4/+0
| | | | | | When switching back to Heimdal keep Heimdal's .a files. Fixes: af2593e3212c
* boot: Update the test generation script for serial and rootfsWarner Losh2025-06-261-0/+4
| | | | | | | | Update the script to include serial port config, serial console and the proper root filesystem. This works for amd64 + ufs, but might need a slight refactor for aarch64 and/or zfs. Sponsored by: Netflix
* MK_FORTH: Allow removing loader.4th w/ delete-oldAlexander Ziaee2025-06-251-0/+26
| | | | | | | | | | | | The lua loader is quite mature, and /boot is getting a bit cluttered. Allow removing the Forth loader with `make delete-old` if WITHOUT_FORTH is set, instead of the previous behavior of only removing the doc. MFC: no, I think this is a breaking change Approved by: kevans (src) Reviewed by: kevans (UPDATING note tweaked since) Discussed with: imp, tsoome (thanks!) Differential Revision: https://reviews.freebsd.org/D50708
* krb5: Do not remove krb5.h when selecting HeimdalCy Schubert2025-06-231-2/+0
|
* krb5: Remove artifaccts of my initial buildsCy Schubert2025-06-201-0/+28
| | | | | | | | | | | | | | | | | | | | | The files being removed were artifacts of my initial builds using a process to extract files used by the port during its build. It was later discovered they were not needed but they were not removed from the build at the time. tools/build/mk/OptionalObsoleteFiles.inc removes the extraneous files from an installed system. These files are not supposed to be installed. There are three parts of this patch. 1. Don't install them in the first place. 2. Remove the files if they were previously installed. 3. Ensure they are removed when switching back to Heimdal from MIT. Reported by: fluffy Fixes: ee3960cba106
* share/mk: Add sccache suport for WITH_CCACHE_BUILD optionSHENGYI HONG2025-06-201-0/+7
| | | | | | | | | | By setting CCACHE_NAME=sccache , sccache can be used as an alternative for ccache. Reviewed by: emaste, jhb Event: Kitchener-Waterloo Hackathon 202506 Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D49417
* tests: Update for jemalloc's option parsingEd Maste2025-06-171-1/+1
| | | | | | | | | | MALLOC_OPTIONS=J -> MALLOC_CONF=junk:true PR: 287357 Reviewed by: markj Event: Kitchener-Waterloo Hackathon 202506 Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D50910
* OptionalObsoleteFiles: Keep common files between MIT and HeimdalCy Schubert2025-06-171-6/+0
| | | | | | Reported by: "Herbert J. Skuhra" <herbert@gojira.at> Original by: "Herbert J. Skuhra" <herbert@gojira.at> Fixes: 7e35117eb07f
* tools/build: Provide extra headers on non-FreeBSDJessica Clarke2025-06-162-0/+9
| | | | | | These will be needed by future changes to continue to allow building makefs as a bootstrap tool on Linux and macOS. This also requires defining __sbintime_t in our cross-build sys/_types.
* Makefile: Hook MIT KRB5 into the buildCy Schubert2025-06-161-0/+64
| | | | | | | | | | | Add tests for MK_MITKRB5. If "yes" build MIT KRB5. If "no" build Heimdal. The default is MK_MITKRB5 = no, added by "krb5: Add build plumbing". At some point we will change the default to MK_MITKRB5 = yes. A ports exp-run will need to be successfully run first. Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D50815
* OptionalObsoleteFiles: Support MIT KRB5Cy Schubert2025-06-161-6/+3251
| | | | | | | | | | | | If no Kerberos is wanted (MK_KERBEROS == no) remove whatever kerberos is installed. If MIT KRB5 is wanted (MK_MITKRB5 == yes) remove the Heimdal files. If Heimdal is wanted (MK_MITKRB5 == no) remove the MIT KRB5 files. Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D50814
* src.conf.5: Update MALLOC_PRODUCTION diag optionsEd Maste2025-06-132-2/+12
| | | | | | | PR: 287502 Reviewed by: kbowling, ziaee Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D50834
* nanobsd: Fix kernel buildWarner Losh2025-06-121-0/+1
| | | | | | 'device crypto' is now required for 'device pf' so add it. Sponsored by: Netflix
* machine/stdarg.h -> sys/stdarg.hBrooks Davis2025-06-112-3/+2
| | | | | | | | | | | | | Switch to using sys/stdarg.h for va_list type and va_* builtins. Make an attempt to insert the include in a sensible place. Where style(9) was followed this is easy, where it was ignored, aim for the first block of sys/*.h headers and don't get too fussy or try to fix other style bugs. Reviewed by: imp Exp-run by: antoine (PR 286274) Pull Request: https://github.com/freebsd/freebsd-src/pull/1595
* share/mk: Add MIT KRB5 build knobCy Schubert2025-06-051-0/+1
| | | | | | | | | | | | | | | | | | | | This is the first in a series of commits to replace Heimdal with MIT KRB5. This first commit adds the WITH_MITKRB5/MK_MITKRB5 knob to src.opts.mk and its corresponding documentation in tools/build/options. The default is off. This change of and by itself is of no consequence as MIT KRB5 has yet to be imported in to HEAD. But it does insulate the build from inremental change until the last patch is committed when WITH_MITKRB5 will build MIT KRB5 1.21.3 instead of Heimdal. The affords us the opportunity to review smaller commits. This is the first of many commits. Reviewed by: imp, jhb, brooks, markj Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D50684
* tools: build: add a rewrite of makeman in luaKyle Evans2025-06-041-0/+791
| | | | | | | | | | | | | | | | | | | | | | | The primary benefit of this rewrite is that it parallelizes a number of the make(1) jobs that it needs to do. It does so with a very naive forking model that could likely be improved, but is sufficient for our purposes. This version also doesn't assume that CWD is sane, and instead operates relative to the directory the script resides in. Note that this initial version is only intended to match the output of the legacy script. Some work is planned afterward to refactor the script out into various components to improve maintainability after we have switched over to it. In my horribly performing dev environment, this version runs in 40s rather than the original ~2 minutes. On a Mt. Snow machine, this version runs in ~15s rather than the original ~1m40s. This change does not yet switch the top-level `makeman` target over to the new version. Reviewed by: bapt (earlier version), emaste Differential Revision: https://reviews.freebsd.org/D39084
* OptionalObsoleteFiles.inc: add some now-optional rc.d scriptsLexi Winter2025-06-041-0/+9
| | | | | | | | | | | After f91d251b399a, some rc.d scripts are gated behind the src.conf knob for the services they start. Add them to OptionalObsoleteFiles.inc so they are properly removed when the knob is disabled. Fixes: f91d251b399a ("rc.d: move some rc scripts to their packages") Reviewed by: kevans, jhb Approved by: kevans (mentor) Differential Revision: https://reviews.freebsd.org/D50560
* stress2: Added a regression testPeter Holm2025-06-011-0/+36
|
* convert_ifapi: handle the special case of getting interface nameLi-Wen Hsu2025-05-281-1/+1
| | | | | | Reviewed by: jhibbits Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D50445
* tools/diag/prtblknos: fix buildRobert Wing2025-05-272-10/+1
| | | | | | The build was broken by two separate changes: aa90fbed151de512ab6e59f75df009533a15751f 772430dd67955850942d689714ab982da24257ba
* Remove LLVM_TARGET_SPARC descriptionsEd Maste2025-05-262-8/+0
| | | | | | | | Support for WITH_/WITHOUT_LLVM_TARGET_SPARC was removed in commit 47e9f42ea39b ("Remove sparc64 specific buid-system hacks") so the descriptions serve no purpose. Sponsored by: The FreeBSD Foundation
* OptionalObsoleteFiles: etc/rc.d/powerd is used/useful without ACPI/APMAndriy Gapon2025-05-191-4/+0
| | | | | | | | Just like powerd daemon does not depend on ACPI/APM, its rc script does not either. Fixes: 20eb6bd8c598f MFC after: 1 week
* stress2: Fix scenario after the changes to ptrace(PT_ATTACH) in commit ↵Peter Holm2025-05-161-22/+14
| | | | | | | ecc662c749b1. The traced process now no longer exits immediately at the attach. After a PT_DETACH do not try to wait on a non child process. Style fixes.
* stress2: Added syzkaller reproducersPeter Holm2025-05-124-0/+889
|
* stress2: exlock2.sh: Fix impact of previous '-U' removalOlivier Certner2025-05-121-1/+1
| | | | | | | | | | | In commit "stress2: exlock2.sh: Preserve behavior after ps(1)'s '-U' change" (1265d3b07eaa), I forgot that '-U' also has the side-effect of implying '-x' by default. Now that '-U' has been removed, make '-x' explicit. Fixes: 1265d3b07eaa ("stress2: exlock2.sh: Preserve behavior after ps(1)'s '-U' change") MFC after: 1 hour Sponsored by: The FreeBSD Foundation
* src.conf.5: Add WITH_ZONEINFO_LEAPSECONDS_SUPPORT warningAndrew Gierth2025-05-091-0/+5
| | | | | | | | | | People are turning on the option and then tripping over weird consequences. See bugs 248338 and 271170 as examples. Approved by: cy, imp, philip Differential Revision: https://reviews.freebsd.org/D25902 Co-authored-by: Joseph Mingrone <jrm@FreeBSD.org>
* OptionalObsoleteFiles: Add recent bsdinstall additionsEd Maste2025-05-081-0/+2
| | | | | | Reported by: garga Fixes: a6d202077dee ("bsdinstall: revisit the finalconfig step") Fixes: bbe2a1da2df6 ("bsdinstall: add menu to install firmware")
* OptionalObsoleteFiles: Add bsdinstall pkgbaseEd Maste2025-05-081-0/+1
| | | | | Reported by: garga Fixes: ee9cfd727578 ("bsdinstall: add pkgbase target")
* stress2: exlock2.sh: Preserve behavior after ps(1)'s '-U' changeOlivier Certner2025-05-071-1/+1
| | | | | | | | | | | | | | Remove '-Uroot', as now '-U' selects processes based on their real user IDs, and since the program using them was launched as 'root', the equivalent now is just to remove it, as now ps(1) by default selects processes based on its effective UID (root) and their effective UIDs. It seems that matching on effective or real UID does not really matter in this test, but at least this change simplifies the command-line. MFC after: 1 day Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D50200
* cross-build: Provide real fflagstostr/strtofflags on LinuxJessica Clarke2025-05-063-64/+25
| | | | | | | | | | | | | | | | | | | | | These are used by mtree and makefs, so in order to be able to set schg on /var/empty in METALOG and set schg on various files and directories in the resulting disk images we need to have a real implementation rather than always giving no flags. Ideally mtree wouldn't rely on round-tripping the textual flags field via the "native" flags encoding using these functions, and ideally makefs wouldn't rely on the "native" flags encoding matching FreeBSD's, but in practice macOS's schg is the same and we can pretend Linux has the same. This fixes Linux-produced disk images lacking schg on any files or directories, and Linux-produced distribution tarballs lacking schg on /var/empty (note though that they do set schg on files, as install already preserves file flags on Linux). Reviewed by: emaste, markj Differential Revision: https://reviews.freebsd.org/D50080
* strings: Unconditionally install ELF Tool Chain's stringsEd Maste2025-05-052-0/+4
| | | | | | | | | | | | | | | | | | | llvm-strings may consume a large amount of memory while reading the input file before producing any output. ELF Tool Chain's strings is small and lightweight, and we always install strings regardless of WITH_/WITHOUT_TOOLCHAIN settings (as it is useful in many contexts). Return to always installing ELF Tool Chain's version of strings. This reverts commit 81fa5c4a828bec9f1ead280c59c31bd423e6eeea. This reverts commit 7ca3db1999cd967f9d6d7b259aa7af54aae14a5f. PR: 286605 Reported by: olivier Reviewed by: olivier, brooks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D50084
* ghpr-push: Better auotmated closing messageWarner Losh2025-05-051-1/+1
| | | | | | | | | | Make it clear this is an automated message and that the change isn't on the mirror yet, but will be soon. Also, be polite and thank the contributor for this submission, because the project really does appreciate it. Reviewed by: emaste Sponsored by: Netflix
* netinet: Make in_systm.h self-containedMark Johnston2025-05-031-1/+0
| | | | | PR: 286539 MFC after: 3 days
* bpf: Make bpf.h self-containedMark Johnston2025-05-031-1/+0
| | | | | PR: 286539 MFC after: 3 days
* src.conf.5: Correct LLVM_BINUTILS comment about strings(1)Ed Maste2025-04-302-4/+0
| | | | | | Reported by: olivier Fixes: 81fa5c4a828b ("llvm-strings: Install as strings when WITH_LLVM_BINUTILS=YES") Sponsored by: The FreeBSD Foundation
* cross-build: Workaround system-provided strchrnul on macOS 15.4+John Baldwin2025-04-281-2/+5
| | | | | | | | | | | | | macOS added a native strchrnul in 15.4. There is not an easy way to detect it at compile time, so use a macro to rename our local inline version to avoid conflicts while also forcing its use during bootstrap. The local version can be removed once macOS versions older than 15.4 are no longer supported as build hosts. Co-authored by: jrtc27 Reported by: kib Reviewed by: jrtc27 Differential Revision: https://reviews.freebsd.org/D49893