aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Add WITH_LLVM_CXXFILT option to install llvm-cxxfilt as c++filtDimitry Andric2020-11-031-0/+2
| | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=367304
* Add backlight(8)Emmanuel Vadot2020-10-021-0/+1
| | | | | | | | | | | | | This tool is used to configure registered backlights. It can incr/decr (default to 10%) or accept a percentage value directly. Reviewed by: manpages (gbe@) Relnotes: yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D26251 Notes: svn path=/head/; revision=366370
* Cleanups for gprof:Andrew Turner2020-09-141-4/+0
| | | | | | | | | | | | | * Remove identical or almost identical headers * Only build aout.c on amd64 and i386. None of the the other current architectures ever supported running a.out binaries * Enable on all architectures Sponsored by: Innovate UK Differential Revision: https://reviews.freebsd.org/D26369 Notes: svn path=/head/; revision=365727
* Import new 2-clause BSD licenced implementation of the bc and dc commandsStefan Eßer2020-06-271-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These implementations of the bc and dc programs offer a number of advantages compared to the current implementations in the FreeBSD base system: - They do not depend on external large number functions (i.e. no dependency on OpenSSL or any other large number library) - They implements all features found in GNU bc/dc (with the exception of the forking of sub-processes, which the author of this version considers as a security issue). - They are significantly faster than the current code in base (more than 2 orders of magnitude in some of my tests, e.g. for 12345^100000). - They should be fully compatible with all features and the behavior of the current implementations in FreeBSD (not formally verified). - They support POSIX message catalogs and come with localized messages in Chinese, Dutch, English, French, German, Japanese, Polish, Portugueze, and Russian. - They offer very detailed man-pages that provide far more information than the current ones. The upstream sources contain a large number of tests, which are not imported with this commit. They could be integrated into our test framework at a latter time. Installation of this version is controlled by the option "MK_GH_BC=yes". This option will be set to yes by default in 13-CURRENT, but will be off by default in 12-STABLE. Approved by: imp Obtained from: https://git.yzena.com/gavin/bc MFC after: 4 weeks Relnotes: yes Differential Revision: https://reviews.freebsd.org/D19982 Notes: svn path=/head/; revision=362681
* Import the kyua test framework.Brooks Davis2020-03-231-0/+1
| | | | | | | | | | | | | | | Having kyua in the base system will simplify automated testing in CI and eliminates bootstrapping issues on new platforms. The build of kyua is controlled by WITH(OUT)_TESTS_SUPPORT. Reviewed by: emaste Obtained from: CheriBSD Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D24103 Notes: svn path=/head/; revision=359260
* Add extremely useful calendar(1) application to FreeBSDConrad Meyer2020-03-031-0/+1
| | | | | | | | | | | | It does extremely useful things like execute sendmail and spew dubiously accurate factoids. From the feedback, it seems like it is an essential utility in a modern unix and not at all a useless bikeshed. How do those Linux people live without it? Reverts r358561. Notes: svn path=/head/; revision=358562
* Fix typo in r278616Conrad Meyer2020-03-021-1/+0
| | | | | | | FreeBSD isn't an encyclopedia. Notes: svn path=/head/; revision=358561
* Move ELF feature note tool to usr.bin/elfctlEd Maste2020-03-021-0/+1
| | | | | | | | | | | | | | | elfctl is a tool for modifying the NT_FREEBSD_FEATURE_CTL ELF note, which contains a set of flags for enabling or disabling vulnerability mitigations and other features. Reviewed by: csjp, kib MFC after: 2 weeks Relnotes: Yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D23910 Notes: svn path=/head/; revision=358512
* retire in-tree GPL dtc devicetree compilerEd Maste2020-02-291-2/+0
| | | | | | | | | | | | | | | | | | | | | Now that we no longer have GCC 4.2.1 in the tree and can assume FreeBSD is being built with a C++11 compiler available, we can use BSDL dtc unconditionally and retire the GPL dtc. GPL dtc now has FreeBSD CI support via Cirrus-CI to help ensure it continues to build/work on FreeBSD and is available in the ports tree if needed. The copy of (copyfree licensed) libfdt that we actually use is in sys/contrib/libfdt so the extra copy under contrib/dtc/libfdt can be removed along with the rest of the GPL dtc. Reviewed by: kevans, ian, imp, manu, theraven Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D23192 Notes: svn path=/head/; revision=358468
* Remove elf2aoutWarner Losh2020-02-061-1/+0
| | | | | | | | | | | | Remove the long obsolete elf2aout utility. Should any ports need to know when this left the tree, use 1300077 as the revision so we avoid multiple bumps for the sparc64 removal. Reviewed by: brooks@, emaste@ Differential Revision: https://reviews.freebsd.org/D23527 Notes: svn path=/head/; revision=357627
* gprof: Enable riscvKristof Provost2020-01-131-1/+1
| | | | | | | | | | Add a missing riscv.h header file, and fix the check for riscv (must test MACHINE_CPUARCH, not MACHINE_ARCH, if we want to use 'riscv'). Sponsored by: Axiado Notes: svn path=/head/; revision=356687
* libcompat: build 32-bit rtld and ldd as part of "everything"Brooks Davis2019-11-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Alter bsd.compat.mk to set MACHINE and MACHINE_ARCH when included directly so MD paths in Makefiles work. In the process centralize setting them in LIBCOMPATWMAKEENV. Alter .PATH and CFLAGS settings in work when the Makefile is included. While here only support LIB32 on supported platforms rather than always enabling it and requiring users of MK_LIB32 to filter based TARGET/MACHINE_ARCH. The net effect of this change is to make Makefile.libcompat only build compatability libraries. Changes relative to r354449: Correct detection of the compiler type when bsd.compat.mk is used outside Makefile.libcompat. Previously it always matched the clang case. Set LDFLAGS including the linker emulation for mips where -m32 seems to be insufficent. Reviewed by: imp, kib (origional version in r354449) Obtained from: CheriBSD (conceptually) Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D22251 Notes: svn path=/head/; revision=354491
* Revert r354449: libcompat: build 32-bit rtld and ldd as part of "everything"Brooks Davis2019-11-071-1/+0
| | | | | | | Additional testing is required.. Notes: svn path=/head/; revision=354465
* libcompat: build 32-bit rtld and ldd as part of "everything"Brooks Davis2019-11-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | Alter bsd.compat.mk to set MACHINE and MACHINE_ARCH when included directly so MD paths in Makefiles work. In the process centralize setting them in LIBCOMPATWMAKEENV. Alter .PATH and CFLAGS settings in work when the Makefile is included. While here only support LIB32 on supported platforms rather than always enabling it and requiring users of MK_LIB32 to filter based TARGET/MACHINE_ARCH. The net effect of this change is to make Makefile.libcompat only build compatability libraries. Reviewed by: imp, kib Obtained from: CheriBSD (conceptually) Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D22251 Notes: svn path=/head/; revision=354449
* Remove mklocale(1) and colldef(1) which are deprecated since FreeBSD 11Baptiste Daroussin2019-09-101-2/+0
| | | | | | | | | | | | In FreeBSD 11 along with the rework on the collation, mklocale(1) and colldef(1) has been replaced by localedef(1) (a note has been added to the manpage to state it). mklocale(1) and colldef(1) has been kept around to be able to build older versions of FreeBSD. None of the version requiring those tools are supported anymore so it is time to remove them from base Notes: svn path=/head/; revision=352128
* Add posixshmcontrol(1), an utility to manipulate posix shared memory segments.Konstantin Belousov2019-05-231-0/+1
| | | | | | | | | | | | See usage for the command line structure. Man page will come shortly. Reviewed by: jilles, tmunro Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D20258 Notes: svn path=/head/; revision=348167
* Move trim(1) from usr.bin to usr.sbin to become trim(8).Eugene Grosbein2018-11-291-1/+0
| | | | | | | | Requested by: se MFC after: 1 month Notes: svn path=/head/; revision=341243
* Add new small tool trim(1) to delete contents for blocks on flashEugene Grosbein2018-11-291-0/+1
| | | | | | | | | | based storage devices that use wear-leveling algorithms. Reviewed by: hackers@ MFC after: 1 month Notes: svn path=/head/; revision=341232
* send-pr: wave goodbyeEitan Adler2018-08-191-1/+0
| | | | | | | | | | Entering into the world of 12.x we no longer need even the placeholder for send-pr. It has not done anything for some time. With Hat: bugmeister Notes: svn path=/head/; revision=338042
* Remove bits of the old NUMA.Konstantin Belousov2018-07-101-1/+0
| | | | | | | | | | | | Remove numactl(1), edit numa(4) to bring it some closer to reality, provide libc ABI shims for old NUMA syscalls. Noted and reviewed by: brooks (previous version) Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D16142 Notes: svn path=/head/; revision=336182
* Makefiles: remove outdated commentsEitan Adler2018-06-241-5/+0
| | | | Notes: svn path=/head/; revision=335598
* Rename usr.bin/elfcopy to usr.bin/objcopyEd Maste2018-06-211-1/+1
| | | | | | | | | | | | We always install ELF Tool Chain's elfcopy as objcopy, so to avoid confusion rename the src directory containing our reach-over Makefile to match. Requested by: jhb Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=335482
* Rework ofed build.Konstantin Belousov2018-06-161-0/+1
| | | | | | | | | | | | | | Aligns the build with the FreeBSD traditional approach to not build in contrib/, and to track inter-dependencies between libraries. With help from: bdrewery Reviewed by: bdrewery, hselasky Sponsored by: Mellanox Technologies MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D15648 Notes: svn path=/head/; revision=335253
* Add the etdump utility for dumping El Torito boot catalog information.Benno Rice2018-04-031-0/+1
| | | | | | | | | | | | | This can be used to check existing images but will be used in the future to find EFI ESP images placed in El Torito catalogs so they can be used for hybrid boot purposes. Reviewed by: imp (code), sbruno (man page), bcr (man page) Sponsored by: iXsystems, Inc. Differential Revision: https://reviews.freebsd.org/D14952 Notes: svn path=/head/; revision=331949
* sponge(1): revertEitan Adler2017-12-061-1/+0
| | | | | | | | | | | | I did a complete buildworld and test... with the program disconnected from the tree. Revert the change for now. (this keeps the change to .arclint which is still correct) Wearing: my pointhat Notes: svn path=/head/; revision=326614
* Fix build after r326554; reconnect sponge to build again.Cy Schubert2017-12-051-0/+1
| | | | Notes: svn path=/head/; revision=326575
* For now, disconnect usr.bin/sponge from the build, to unbreak worldDimitry Andric2017-12-051-1/+0
| | | | | | | | | | after r326557. Noticed by: many Pointy hat to: eadler Notes: svn path=/head/; revision=326570
* sponge(1): fix my testsEitan Adler2017-12-051-0/+1
| | | | | | | Reviewed by: kevans Notes: svn path=/head/; revision=326557
* Install strings unconditionallyEd Maste2017-11-201-1/+1
| | | | | | | | | | | | | | | | Previously it was enabled by WITH_/WITHOUT_TOOLCHAIN, but it is commonly expected to be available and may have non-toolchain consumers. As it is now taken from the BSD-licensed ELF Tool Chain project, just install it unconditionally. PR: 213665, 223725 Reviewed by: bdrewery MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D8398 Notes: svn path=/head/; revision=326030
* Remove xlint(1).Konstantin Belousov2017-11-161-3/+0
| | | | | | | | | | | | | | | | | | | | xlint is currently a fossil. We have much more useful and alive tools to do now what xlint did twenty years ago. I did not cleared some stuff which makes lint operational, in sys/x86/include and sys/sys, but I might do it as followup. The x86/include/ucontext.h and _types.h hacks made to please lint was the main reason for my initial proposal to classify xlint as obsolete and to remove it. Also I do not intend to clear sccs ids. Reviewed by: bapt, brooks, emaste, jhb, pfg Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D13015 Notes: svn path=/head/; revision=325893
* Remove rcmds.Jeremie Le Hen2017-10-061-2/+0
| | | | | | | | | | | | | | | | | | | | | If they are still needed, you can find them in the net/bsdrcmds port. This was proposed June, 20th and approved by various committers [1]. They have been marked as deprecated on CURRENT in r320644 [2] on July, 4th. Both stable/11 and release/11.1 contain the deprecation notice (thanks to allanjude@). Note that ruptime(1)/rwho(1)/rwhod(8) were initially thought to be part of rcmds but this was a mistake and those are therefore NOT removed. [1] https://lists.freebsd.org/pipermail/freebsd-arch/2017-June/018239.html [2] https://svnweb.freebsd.org/base?view=revision&revision=320644 Reviewed by: bapt, brooks Differential Revision: https://reviews.freebsd.org/D12573 Notes: svn path=/head/; revision=324351
* Deorbit catman. The tradeoff of disk for performance has long since tippedGordon Tetlow2017-09-131-1/+0
| | | | | | | | | | | | | in favor of just rendering the manpage instead of relying on pre-formatted catpages. Note, this does not impede the ability to use existing catpages, it just removes the utility to generate them. Reviewed by: imp, allanjude Approved by: emaste (mentor) Differential Revision: https://reviews.freebsd.org/D12317 Notes: svn path=/head/; revision=323550
* rwho/ruptime/rwhod shouldn't be gated by RCMDS.Jeremie Le Hen2017-08-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | As peter@ points out in pr/220953: "rwho, rwhod and ruptime are not part of the remote login suite (rsh, rlogin etc). They should *not* be in the rcmds package which is disabled by default. We rely on rwho/rwhod/ruptime in the freebsd.org cluster." This commit is a re-commit of r322029 and r322031 with a better commit log, as pointed out by ngie@. This also includes the necesary changes to OptionalObsoleteFiles.inc, as requested by jhb@. PR: 220953 Reported by: peter@, jhb@ Differential Revision: https://reviews.freebsd.org/D11743 Notes: svn path=/head/; revision=322277
* Revert r322029 and r322031 so as to recommit them with a better commit log.Jeremie Le Hen2017-08-081-2/+2
| | | | | | | | PR: 220953 Reported by: ngie@ Notes: svn path=/head/; revision=322276
* rwho/ruptime/rwhod shouldn't be gated by RCMDS.Jeremie Le Hen2017-08-031-2/+2
| | | | | | | | | PR: 220953 Reported by: peter@ Differential Revision: https://reviews.freebsd.org/D11743 Notes: svn path=/head/; revision=322029
* Remove SUBDIR ordering/uniquifying in *bin/MakefileEnji Cooper2017-07-061-2/+0
| | | | | | | | | | | | | | | | | | After the addition of SUBDIR.yes, uniquifying/ordering the SUBDIRs doesn't make a whole lot of sense, and it's in effect a half measure. Ordering SUBDIR (after adding SUBDIR.yes to it) in bsd.subdir.mk is a separate change that warrants more discussion/testing, because while the SUBDIR_PARALLEL work largely fixed dependency ordering for SUBDIRs, there might be downstream FreeBSD consumers that rely on the SUBDIR ordering. MFC after: 2 months Reviewed by: bdrewery Differential Revision: D11398 Notes: svn path=/head/; revision=320701
* Remove leftovers from groff removalBaptiste Daroussin2017-06-071-2/+0
| | | | | | | Reported by: rpokala Notes: svn path=/head/; revision=319666
* Remove groff from baseBaptiste Daroussin2017-06-071-1/+0
| | | | | | | | | | | | | All manpages in base are now compatible with mandoc(1), all roff documentation will be relocated in the doc tree. man(1) can now use groff from the ports tree if it needs. Also remove checknr(1) and colcrt(1) which are only useful with groff. Approved by: (no objections on the mailing lists) Notes: svn path=/head/; revision=319664
* Redo r288270: Hookup mkcsmapper_static and mkesdb_static for 'make clean'Bryan Drewery2017-05-011-0/+6
| | | | | | | | | | | | | These are only built as part of the top-level 'build-tools' call for 'make buildworld'. They still need to be cleaned during the 'make clean' treewalks though. Reported by: markj MFC after: 2 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=317658
* Replace again GNU diff with BSD diffBaptiste Daroussin2017-04-201-0/+1
| | | | | | | | | | After a firts failed attempt, BSD diff is now good enough to replace GNU diff. Relnotes: yes Notes: svn path=/head/; revision=317209
* Import zstandard 1.1.4 in baseBaptiste Daroussin2017-04-151-1/+2
| | | | | | | | | | zstandard is a new compression library/tool which is very fast at compression/decompression For now import as a private library Notes: svn path=/head/; revision=316978
* Port the getaddrinfo(1) utility from NetBSDEric van Gyzen2017-03-201-0/+1
| | | | | | | | | | | | | Submitted by: Lohith Bellad <lohithbsd@gmail.com> Reviewed by: hiren (earlier rev), ae Obtained from: NetBSD MFC after: 1 week Relnotes: yes Sponsored by: Dell EMC Differential Revision: https://reviews.freebsd.org/D9365 Notes: svn path=/head/; revision=315640
* Temporary readd GNU diffBaptiste Daroussin2017-03-191-1/+0
| | | | | | | | etcupdate requires --change-group-format it is not easy to implement in bsd diff so for now readd GNU diff Notes: svn path=/head/; revision=315565
* Remove the WITHOUT_MANDOCDB optionBaptiste Daroussin2017-03-111-3/+0
| | | | | | | | mandoc database is activated since FreeBSD 11.0, let's remove the previous database format for FreeBSD 12.0 Notes: svn path=/head/; revision=315057
* Import diff from OpenBSD and remove GNU diffBaptiste Daroussin2017-03-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Some of the modifications from the previous summer of code has been integrated Modification for compatibility with GNU diff output has been added Main difference with OpenBSD: Implement multiple GNU diff options: * --ignore-file-name-case * --no-ignore-file-name-case * --normal * --tabsize * --strip-trailing-cr Make diff -p compatible with GNU diff Implement diff -l Make diff -r compatible with GNU diff Capsicumize diffing 2 regular files Add a simple test suite Approved by: AsiaBSDcon devsummit Obtained from: OpenBSD, GSoC Relnotes: yes Notes: svn path=/head/; revision=315051
* Remove bdes(1)Allan Jude2017-02-061-1/+0
| | | | | | | | | | | | | | | | | | The use of DES for anything is discouraged, especially with a static IV of 0 If you still need bdes(1) to decrypt Kirk's video lectures, see security/bdes in ports. This commit brought to you by the FOSDEM DevSummit and the "remove unneeded dependancies on openssl in base" working group Reviewed by: bapt, brnrd Relnotes: yes Sponsored by: FOSDEM DevSummit Differential Revision: https://reviews.freebsd.org/D9424 Notes: svn path=/head/; revision=313329
* Add a WITHOUT_DIALOG src.conf(5) knobEd Maste2016-09-271-1/+1
| | | | | | | | | | | It also turns off dependencies (bsdinstall, bsdconfig, dpv, tzsetup). Reviewed by: dteske Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D7969 Notes: svn path=/head/; revision=306375
* Provide proccontrol(1), an utility to control processes behaviour, relatedKonstantin Belousov2016-09-231-0/+1
| | | | | | | | | | to procctl(2). Sponsored by: The FreeBSD Foundation MFC after: 1 week Notes: svn path=/head/; revision=306261
* users: don't build when we don't have a C++ toolchainEd Maste2016-08-311-1/+1
| | | | | | | | | | (On RISC-V MK_CXX is in BROKEN_OPTIONS, so users remains skipped there.) Reviewed by: bdrewery Differential Revision: https://reviews.freebsd.org/D7725 Notes: svn path=/head/; revision=305156
* Continuation lines with comments badly affects gprof, it is excluded fromAndrey A. Chernov2016-07-201-2/+3
| | | | | | | build on amd64 f.e. Notes: svn path=/head/; revision=303094