Support for WITH_/WITHOUT_LLVM_TARGET_SPARC was removed in commit
47e9f42ea3 ("Remove sparc64 specific buid-system hacks") so the
descriptions serve no purpose.
Sponsored by: The FreeBSD Foundation
In commit "stress2: exlock2.sh: Preserve behavior after ps(1)'s '-U'
change" (1265d3b07e), I forgot that '-U' also has the side-effect of
implying '-x' by default. Now that '-U' has been removed, make '-x'
explicit.
Fixes: 1265d3b07e ("stress2: exlock2.sh: Preserve behavior after ps(1)'s '-U' change")
MFC after: 1 hour
Sponsored by: The FreeBSD Foundation
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>
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
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
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 81fa5c4a82.
This reverts commit 7ca3db1999.
PR: 286605
Reported by: olivier
Reviewed by: olivier, brooks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D50084
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
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
In 2e47f35be5, libllvm, libclang and liblldb became shared libraries,
so make sure the binaries that depend on these libraries get rebuilt.
MFC after: 2 weeks
This allows clang, lld, lldb, and other llvm tools to be linked against
these shared libraries, which makes them smaller and avoids duplication.
Since these are not quite the same as the shared libraries shipped by
the upstream llvm build system, and we do not want to expose the ABI to
external programs such as ports, make them private libraries.
Note that during the cross-tools stage they are still built as static
libraries, so the cross compiler and linker are static binaries, as they
have always been.
This also requires a depend-cleanup.sh kludge which will be added in a
follow-up commit, to ensure binaries are rebuilt against the shared
libraries in case of incremental builds.
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D49967
The previous commit was pushed in error. Remove 'else fi' that was a
left-over change that was incomplete and removed. Fix by removing the
rest of that change that wasn't done.
Sponsored by: Netflix
Stop trying to push to the pull request branches. Only I have permission
to do that. Add 'meged' tag. This isn't quite as good as having the PRs
show up as 'merged' since there's some stats based on that which won't
happen. However, it's too much of a hassle, so just stop doing it.
We now require the 'gh' but don't make sure that it's around. Note: We
still need better error handling, for this and other things.
Sponsored by: Netflix
These are the scripts I've been using to land github pull requests. They
suck for me and likely are too painful for any other person to use. I
share them to help facilitate collaboration to make the
characterizations in this commit message a big lie.
Sponsored by: Netflix
We may want a knob for this later for Adrian's wifi-box builds if those
are still happening now that mips is gone, but I suspect it's less of a
concern for FreeBSD > 14 (and maybe even 14 as well).
Reviewed by: adrian, imp
Differential Revision: https://reviews.freebsd.org/D42501
WPA stuff is now structured a little bit differently and requires a
number of other libs now, so pull those in. It also needs to be able to
keep wpa_driver_bsd_ops exposed as part of the lib/program contract.
Reviewed by: adrian, imp
Differential Revision: https://reviews.freebsd.org/D42500
hostapd is removed for now because it's a little less trivial with
recent wpa architecture. The rest is adopting to ncurses and ifconfig
changes, as well as a switch in PIE default.
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D42498
since the etc link exists already.
Before creating the nanobsd image nanobsd.sh creates a soft link for
usr/local/etc in the function setup_nanobsd()
This fails if the link already exists (when using nanobsd.sh -wkWK)
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D49873
libedit.so.8 needs libtinfow.so.9 too, starting in stable/14. so
add it here.
With this I have an image that boots the minimal 'echo success' test for
LinuxBoot on amd64... Though changes for that aren't upstreamed just
yet. They need to be cleaned up a little before I do that. Stay tuned.
Sponsored by: Netflix
13.x didn't need this, but 14.2 does need it. Extract /sbin/fastboot
too since it's recorded as the target of reboot/halt that we do want.
Sponsored by: Netflix
Only aarch64 and amd64 are working. For the moment, comment out
everything else until I can make it work too. The others build, to be
fair, but don't work or haven't been confirmed to work.
Sponsored by: Netflix
A kgdb script allows us to be relatively resilient to kernel structure
changes, with a lower burden for updates when they happen than a C tool.
tuexen@ requested we ship this script in a source distribution. Making
it easier for users to extract useful debugging information from a core.
It requires kgdb and python3 and would ideally be a lldb lua script, but
there is more work needed on lldb lua before we can do that.
Add the script as is. A single script we could run against a core would
be nice, but I don't want to let that block making this tool more
available.
Reviewed by: teuxen, rrs
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D48705
This feature could be used to store the last sent and received TCP
packets for a TCP endpoint. There was no utility to get these packets
from a live system or core.
This functionality is now provided by TCP Black Box Logging, which also
stores additional events. There are tools to get these traces from a
live system or a core.
Therefore remove TCPPCAP to avoid maintaining it, when it is not
used anymore.
Reviewed by: rrs, rscheff, Peter Lei, glebiu
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D49589
Check req->s instead of s to know if the state needs to be
cleaned up first.
This error is from a refactor I did years ago. Oops!
Differential Revision: https://reviews.freebsd.org/D49545
Reviewed by: thj