1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00
freebsd/tools
Dag-Erling Smørgrav 6895133fe2 lorder: Clean up and improve robustness.
* Properly parse (no) command-line options.

* Ensure that errors go to stderr and result in a non-zero exit.

* Drop the special-case code for a single argument, as it will produce
  the wrong outcome if the file does not exist or is corrupted.

* Don't print anything until after we've collected all the data.

* Always create all temporary files before setting the trap.  This
  ensures that the trap can safely fire at any moment, regardless of any
  previous definition of `T`.

* Use a temporary file rather than a pipe between `nm` and `sed` to
  ensure proper termination if `nm` fails due to a missing or invalid
  input.

* The check for self-referential entries was conditional on testing our
  argument list against a regex looking for archives.  This was a
  needless and unreliable optimization; make the check unconditional.

* Document that lorder will not work properly if any of its inputs have
  spaces in their name.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	allanjude
Differential Revision:	https://reviews.freebsd.org/D44133

(cherry picked from commit 5c7b986c21)

lorder: Add unit tests.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	allanjude
Differential Revision:	https://reviews.freebsd.org/D44134

(cherry picked from commit 96da41b6db)

lorder: Undeprecate.

While lorder is not required by our current toolchain (or any toolchain
we've used in the past decade or two), it still occasionally shows up
in build systems of third party software, including The Open Group's
UNIX conformance test suite, and the maintenance cost is negligible.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	imp, allanjude, emaste
Differential Revision:	https://reviews.freebsd.org/D44135

(cherry picked from commit cf4d9bf8b3)

lorder: Don't rely on legacy syntax.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	allanjude
Differential Revision:	https://reviews.freebsd.org/D44155

(cherry picked from commit aedb37dc49)

lorder: Tweak invalid file test.

Different implementations of `nm` have different ways of telling you
that your file is not a valid object or library, but they all seem to
have “not recognized” as a common substring.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	allanjude
Differential Revision:	https://reviews.freebsd.org/D44154

(cherry picked from commit aa80cfadff)

usr.bin: Make lorder conditional on MK_TOOLCHAIN.

MFC after:	1 week
Reviewed by:	allanjude, markj
Differential Revision:	https://reviews.freebsd.org/D44558

(cherry picked from commit 125c4560bc)
2024-04-04 11:55:25 +02:00
..
boot Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
bsdbox Remove $FreeBSD$: one-line bare tag 2023-08-23 11:43:33 -06:00
build lorder: Clean up and improve robustness. 2024-04-04 11:55:25 +02:00
bus_space Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
coccinelle copystr(9): Move to deprecate (attempt #2) 2020-05-25 16:40:48 +00:00
debugscripts Remove $FreeBSD$: one-line bare tag 2023-08-23 11:43:33 -06:00
diag Remove $FreeBSD$: one-line bare tag 2023-08-23 11:43:33 -06:00
ifnet Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
kerneldoc Remove $FreeBSD$: one-line bare tag 2023-08-23 11:43:33 -06:00
LibraryReport Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
lua Remove $FreeBSD$: one-line lua tag 2023-08-23 11:43:34 -06:00
pkgbase Remove $FreeBSD$: one-line lua tag 2023-08-23 11:43:34 -06:00
regression Remove $FreeBSD$: one-line bare tag 2023-08-23 11:43:33 -06:00
sched Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
test gpioevents: Fix a typo in a diagnostic output message 2024-01-07 12:44:16 +01:00
tools tools/net80211: add mlme_assoc 2024-02-19 08:01:59 +00:00
uma/smrstress Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
install.sh Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
make_libdeps.sh Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
README Remove $FreeBSD$: one-line bare tag 2023-08-23 11:43:33 -06:00
tinder.sh Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00

This directory tree contains tools used for the maintenance and
testing of FreeBSD.  There is no toplevel Makefile structure since
these tools are not meant to be built as part of the standard system,
though there may be individual Makefiles in some of the subdirs.

Please read the README files in the subdirs for further information.