<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.bin/Makefile, branch stable/13</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=stable%2F13</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=stable%2F13'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2024-04-04T09:55:25Z</updated>
<entry>
<title>lorder: Clean up and improve robustness.</title>
<updated>2024-04-04T09:55:25Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2024-02-28T15:37:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6895133fe293902f19a060c0cf229ea9b23bb555'/>
<id>urn:sha1:6895133fe293902f19a060c0cf229ea9b23bb555</id>
<content type='text'>
* 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 5c7b986c21ed47545203e8f630fe2281b83112d2)

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 96da41b6dbf383436018f11ad8a672faab2d3789)

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 cf4d9bf8b38819da12c6d686d5cf6dbd6353cd61)

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 aedb37dc49319a7cd1faf34f312a8a9fc01e611d)

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 aa80cfadff0bb715ca090cbd1b3561a1619251d5)

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 125c4560bc70971b950d035cfcd2255b89984011)
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line sh pattern</title>
<updated>2023-08-23T17:43:30Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-22T01:32:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=023fc80ee38a117fa65b2ccb2abf8bdc7dbd6fd9'/>
<id>urn:sha1:023fc80ee38a117fa65b2ccb2abf8bdc7dbd6fd9</id>
<content type='text'>
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/

Similar commit in main:
(cherry picked from commit d0b2dbfa0ecf)
</content>
</entry>
<entry>
<title>timeout: Move from /usr/bin to /bin</title>
<updated>2023-02-07T17:37:53Z</updated>
<author>
<name>Mateusz Piotrowski</name>
<email>0mp@FreeBSD.org</email>
</author>
<published>2023-02-01T15:24:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0a4f7dbd9e9450cea25af944d47dce578960a1b8'/>
<id>urn:sha1:0a4f7dbd9e9450cea25af944d47dce578960a1b8</id>
<content type='text'>
timeout(1) is used by /etc/rc.d/zfskeys. Unfortunately, having
timeout(1) installed in /usr/bin causes problems when /usr is an
encrypted ZFS partition.

Implementing timeout(1) in sh(1) is not trivial. A more elegant solution
is to move timeout(1) to /bin so that it is available to early services
in the boot process.

PR:		265221
Reviewed by:	allanjude, des, imp
Approved by:	allanjude, des, imp
Reported by:	Ivan &lt;r4@sovserv.ru&gt;
Fixes:	33ff39796ffe Add zfskeys rc.d script for auto-loading encryption keys
Relnotes:	yes
Sponsored by:	Modirum MDPay
Sponsored by:	Klara Inc.
Differential Revision:	https://reviews.freebsd.org/D38344

(cherry picked from commit e7ab133648a168c4bf7c11da840663c5581771d8)
</content>
</entry>
<entry>
<title>usr.bin: hook wg(8) up to the build</title>
<updated>2022-11-13T05:37:05Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2022-10-29T03:04:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=cd1ebf9c7ee83efc2bcbc3e7a1fe40869698b3f9'/>
<id>urn:sha1:cd1ebf9c7ee83efc2bcbc3e7a1fe40869698b3f9</id>
<content type='text'>
wg(8) is used to manage WireGuard interfaces; see wg(4) and wg(8) both
for more details and usage examples.

(cherry picked from commit 0283826706706c598fff86e16c42604841c1a05a)
</content>
</entry>
<entry>
<title>Add WITH_LLVM_BINUTILS to install LLVM binutils instead of Elftoolchain</title>
<updated>2021-12-05T20:42:14Z</updated>
<author>
<name>Alex Richardson</name>
<email>arichardson@FreeBSD.org</email>
</author>
<published>2021-09-06T08:49:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a5186406aced401de7984f8b338675da650d0e25'/>
<id>urn:sha1:a5186406aced401de7984f8b338675da650d0e25</id>
<content type='text'>
When WITH_LLVM_BINUTILS is set, we will install the LLVM binutils as
ar/ranlib/nm/objcopy/etc. instead of the elftoolchain ones.
Having the LLVM binutils instead of the elftoolchain ones allows us to use
features such as LTO that depend on binutils that understand LLVM IR.
Another benefit will be an improved user-experience when compiling with
AddressSanitizer, since ASAN does not symbolize backtraces correctly if
addr2line is elftoolchain addr2line instead of llvm-symbolizer.
See https://lists.freebsd.org/archives/freebsd-toolchain/2021-July/000062.html
for more details.

This is currently off by default but will be turned on by default at some
point in the near future.

Reviewed By:	emaste

Differential Revision: https://reviews.freebsd.org/D31060

(cherry picked from commit 021385aba56279febcfdcc64d23673a0106ae45d)
</content>
</entry>
<entry>
<title>beep(1): Initial version of utility to create terminal beep via soundcard.</title>
<updated>2021-11-12T14:33:10Z</updated>
<author>
<name>Hans Petter Selasky</name>
<email>hselasky@FreeBSD.org</email>
</author>
<published>2021-10-26T17:13:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=af21e0057acc06d606a06f8babc9e1524c3cd66e'/>
<id>urn:sha1:af21e0057acc06d606a06f8babc9e1524c3cd66e</id>
<content type='text'>
Reviewed by:	imp@, emaste@ and pstef@
Differential Revision:	https://reviews.freebsd.org/D32672
Sponsored by:	NVIDIA Networking

(cherry picked from commit 8abfbe5a79b19bb95430f574d970843607f5809c)
</content>
</entry>
<entry>
<title>Remove mkcsmapper_static and mkesdb_static from build-tools</title>
<updated>2021-08-05T09:00:56Z</updated>
<author>
<name>Alex Richardson</name>
<email>arichardson@FreeBSD.org</email>
</author>
<published>2021-08-02T09:49:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1d7c196d119dcb5571ec4dff91d95327d1b5c91b'/>
<id>urn:sha1:1d7c196d119dcb5571ec4dff91d95327d1b5c91b</id>
<content type='text'>
Build them as part of the bootstrap-tools phase instead.

Reviewed by:	emaste (no objections)
Differential Revision: https://reviews.freebsd.org/D28181

(cherry picked from commit 2de949cf85d0e0b9ff71e1ffd74153814de96175)
</content>
</entry>
<entry>
<title>lastcomm(1): Only install if MK_ACCT is on</title>
<updated>2021-02-19T18:01:48Z</updated>
<author>
<name>Emmanuel Vadot</name>
<email>manu@FreeBSD.org</email>
</author>
<published>2021-02-06T19:41:39Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2142926f63d8d64924b6e7f7ed886de276fa9337'/>
<id>urn:sha1:2142926f63d8d64924b6e7f7ed886de276fa9337</id>
<content type='text'>
MFC after:	3 days

(cherry picked from commit 8af54bdfcaecf922f936a14d1d9efcf84076029f)
</content>
</entry>
<entry>
<title>Remove remaining uses of ${COMPILER_FEATURES:Mc++11}</title>
<updated>2021-01-19T21:37:36Z</updated>
<author>
<name>Alex Richardson</name>
<email>arichardson@FreeBSD.org</email>
</author>
<published>2021-01-19T15:05:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c1a3d7f20696ab5b72eee45863f3e04410d81fc8'/>
<id>urn:sha1:c1a3d7f20696ab5b72eee45863f3e04410d81fc8</id>
<content type='text'>
All supported compilers have C++11 support so these checks can be replaced
with MK_CXX guards.
See also https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252759

PR:		252759
Reviewed By:	emaste
Differential Revision: https://reviews.freebsd.org/D28234
</content>
</entry>
<entry>
<title>Add WITH_LLVM_CXXFILT option to install llvm-cxxfilt as c++filt</title>
<updated>2020-11-03T19:57:28Z</updated>
<author>
<name>Dimitry Andric</name>
<email>dim@FreeBSD.org</email>
</author>
<published>2020-11-03T19:57:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=07bab4417d0e08bed86f48dea6d0c68f496b456c'/>
<id>urn:sha1:07bab4417d0e08bed86f48dea6d0c68f496b456c</id>
<content type='text'>
Since elftoolchain's cxxfilt is rather far behind on features, and we
ran into several bugs, add an option to use llvm-cxxfilt as an drop-in
replacement.

It supports the same options as elftoolchain cxxfilt, though it doesn't
have support for old ARM (C++ Annotated Reference Manual, not the CPU)
and GNU v2 manglings. But these are irrelevant in 2020.

Note: as we already compile the required libraries as part of libllvm,
this will not add any significant build time either.

PR:		250702
Reviewed by:	emaste, yuri
Differential Revision: https://reviews.freebsd.org/D27071
MFC after:	2 weeks
</content>
</entry>
</feed>
