summaryrefslogtreecommitdiff
path: root/usr.bin/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* MFV r299425:Martin Matuska2016-05-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update libarchive to 3.2.0 New features: - new bsdcat command-line utility - LZ4 compression (in src only via external utility from ports) - Warc format support - 'Raw' format writer - Zip: Support archives >4GB, entries >4GB - Zip: Support encrypting and decrypting entries - Zip: Support experimental streaming extension - Identify encrypted entries in several formats - New --clear-nochange-flags option to bsdtar tries to remove noschg and similar flags before deleting files - New --ignore-zeros option to bsdtar to handle concatenated tar archives - Use multi-threaded LZMA decompression if liblzma supports it - Expose version info for libraries used by libarchive Patched files (fixed compiler warnings): contrib/libarchive/cat/bsdcat.c (vendor PR #702) contrib/libarchive/cat/bsdcat.h (vendor PR #702) contrib/libarchive/libarchive/archive_read_support_format_mtree.c (PR #701) contrib/libarchive/libarchive_fe/err.c (vendor PR #703) MFC after: 1 month Relnotes: yes Notes: svn path=/head/; revision=299529
* import sdiff(1) from GSoC 2012Baptiste Daroussin2016-04-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Import sdiff(1) from the diff version written by Raymond Lai, improved during GSoC 2012 by Jesse Hagewood. Compared to the version done in during that summer of code: - Remove the zlib frontend: zsdiff - Compatible output (column size and separators) with GNU sdiff Compared to GNU sdiff in ports: - The only difference is padding using spaces vs tabs Compared to OpenBSD and NetBSD import: - Implement missing options (including long options) from GNU sdiff - Improved support for the edition mode (signal handling) - Output visually compatible with GNU sdiff: size of columns While here import regression tests from NetBSD adapted to fit the output as expected by GNU sdiff Reviewed by: emaste (in part) Obtained from: OpenBSD, NetBSD, GSoC 2012 Relnotes: yes Differential Revision: https://reviews.freebsd.org/D5981 Differential Revision: https://reviews.freebsd.org/D6032 (diff with NetBSD version) Differential Revision: https://reviews.freebsd.org/D6033 (diff with OpenBSD version) Notes: svn path=/head/; revision=298823
* Add a small tool, resizewin(1), to query terminal for window sizeConrad Meyer2016-04-131-0/+1
| | | | | | | | | | Submitted by: Daniel O'Connor Reviewed by: kan, wblock, cem Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D4438 Notes: svn path=/head/; revision=297897
* Obsolete mkulzma(8) and geom_uncompress(4), their functionalityMaxim Sobolev2016-02-241-1/+0
| | | | | | | | | is now provided by mkuzip(8) and geom_uzip(4) respectively. MFC after: 1 month Notes: svn path=/head/; revision=295945
* Disable gprof and users on RISC-V, they don't build.Ruslan Bukin2016-01-251-1/+4
| | | | Notes: svn path=/head/; revision=294736
* Reintegrate colldef(1) and mklocale(1)Baptiste Daroussin2015-11-201-0/+2
| | | | | | | | | | | | | | While those tools are not needed anymore they are necessary to build FreeBSD 9 and 10. it does not hurt to keep those tools around until both 9 and 10 branch become EOLed. Modify colldef(1) to build after the change in the collation header, and ensure it does produce the same collation definition it used to generate for 9 and 10 Reported by: Oliver Pinter Notes: svn path=/head/; revision=291115
* Merge from headBaptiste Daroussin2015-11-011-1/+5
|\ | | | | | | Notes: svn path=/projects/collation/; revision=290241
| * Lots of improvements to the BSD-licensed dtcDavid Chisnall2015-10-251-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | - Various fixes to includes (including recursive includes) - Lots of testing that the output exactly matches GPL'd dtc - Lots of bug fixes to merging - Fix incorrect mmap usage - Ad-hoc memory management replaced with C++11 unique_ptr and similar Patrick Wildt has successfully run many (all?) of the GPL dtc test suite. Notes: svn path=/head/; revision=289935
| * dtc needs to be installed if MK_GPL_DTC is not set, which doesn't fit into theBryan Drewery2015-10-231-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | SUBDIR.yes pattern well. This fixes installation of the BSDL dtc after r288904. Reported by: jhibbits Discussed with: imp Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289839
* | Merge from headBaptiste Daroussin2015-10-131-208/+97
|\| | | | | | | Notes: svn path=/projects/collation/; revision=289256
| * Start using the fact that SUBDIR.yes is added to SUBDIRWarner Losh2015-10-051-218/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and move from the pattern of: .if ${MK_FOO} != "no" SUBDIR+= bar .endif to SUBDIR.${MK_FOO}+= bar since we know that MK_FOO is always either yes or no and the latter form is easier to follow and much shorter. Various exception to this pattern dealt with on an ah-hoc basis. Discussed on arch@ a while ago. Notes: svn path=/head/; revision=288904
| * Add aarch64 support to truss(1).Konstantin Belousov2015-10-021-2/+0
| | | | | | | | | | | | | | | | | | | | Reviewed by: jhb Discussed with: emaste (license) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3750 Notes: svn path=/head/; revision=288493
| * Final step of eliminating the "games" distribution: Merge src/gamesColin Percival2015-10-021-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | (or what's left of it, at least) into src/usr.bin. This change will not be MFCed. Discussed at: EuroBSDCon 2014 Committed from: EuroBSDCon 2015 Notes: svn path=/head/; revision=288485
| * Revert r288270 to fix the buildConrad Meyer2015-09-261-7/+0
| | | | | | | | | | | | | | | | Submitted by: bdrewery Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=288275
| * Hookup mkcsmapper_static and mkesdb_static for all but install.Bryan Drewery2015-09-261-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are only handled as 'build-tools' in Makefile.inc1. This causes 'make clean' from the top of the tree to not clean the directories. It also effectively has kept them disconnected and risks them bitrotting. The buildworld process never cleans them either. Connect them so they will always be built, cleaned, etc, but never installed. Discussed with: imp (briefly) Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=288270
* | Merge from HEADBaptiste Daroussin2015-08-251-38/+16
|\| | | | | | | Notes: svn path=/projects/collation/; revision=287142
| * Roll WITHOUT_ELFTOOLCHAIN_TOOLS into WITHOUT_TOOLCHAINEd Maste2015-08-131-10/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The option was added only to ease the transition from GNU Binutils to ELF Tool Chain tools, and that process is now complete (for the viable replacements). Noting the removal in UPDATING is sufficient as we have not shipped a release with the option. Reviewed by: brooks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3240 Notes: svn path=/head/; revision=286730
| * Use consistent style for optional subdirectoriesEd Maste2015-08-101-29/+15
| | | | | | | | | | | | | | | | | | Reviewed by: imp Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3356 Notes: svn path=/head/; revision=286592
| * Remove ${_subdir}s that are never setEd Maste2015-08-101-6/+1
| | | | | | | | | | | | | | | | | | | | The MK_NIS subdirs were leftovers from r212558 and kdump/truss were introduced in r240404. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=286590
* | Remove colldef which is not needed anymoreBaptiste Daroussin2015-08-081-1/+0
| | | | | | | | Notes: svn path=/projects/collation/; revision=286468
* | Remove mklocale which is not needed anymoreBaptiste Daroussin2015-08-081-1/+0
| | | | | | | | Notes: svn path=/projects/collation/; revision=286467
* | Add localedef(1), a locale definition generator toolBaptiste Daroussin2015-08-071-0/+1
|/ | | | | | | | | | | | | | | | | | | The localedef tool can read entire (and unmodified) CLDR posix definition files, and generate all 6 LC categories: LC_COLLATE, LC_CTYPE, LC_TIME, LC_NUMERIC, LC_MONETARY and LC_MESSAGES. This tool has a long history with Solaris. The Nexenta developers modified it to read CLDR files and created the much richer collation formats. The libc collation functions have to be modified to read the new format (called "BSD-1.0") and to handle the new data structures. The result will be that locale-sensitive tools and functions will now properly sort multibyte and unicode strings. Obtained from: Dragonfly Notes: svn path=/projects/collation/; revision=286432
* Replace GNU RCS ident with a BSD license identBaptiste Daroussin2015-07-261-0/+1
| | | | | | | | | | | | | | | | | | | | | | | Rationale: ident(1) is useful out of RCS, lot of scripts are using ident(1) and failing when base is built WITHOUT_RCS. This version is: - fully compatible with RCS 5.7 ident. - fully compatible with RCS 5.9 ident. - passes all ident test from GNU RCS 5.9 test suite This version has support for: svn extension for the Keyword id (double colon and # before last $) Différences with GNU RCS ident: - no long options as found in GNU RCS 5.9 (but not commented there). - '-V' reports nothing but has been added for compatibility. Differential Revision: https://reviews.freebsd.org/D3200 Reviewed by: pfg Notes: svn path=/head/; revision=285890
* Add an initial NUMA affinity/policy configuration for threads and processes.Adrian Chadd2015-07-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is based on work done by jeff@ and jhb@, as well as the numa.diff patch that has been circulating when someone asks for first-touch NUMA on -10 or -11. * Introduce a simple set of VM policy and iterator types. * tie the policy types into the vm_phys path for now, mirroring how the initial first-touch allocation work was enabled. * add syscalls to control changing thread and process defaults. * add a global NUMA VM domain policy. * implement a simple cascade policy order - if a thread policy exists, use it; if a process policy exists, use it; use the default policy. * processes inherit policies from their parent processes, threads inherit policies from their parent threads. * add a simple tool (numactl) to query and modify default thread/process policities. * add documentation for the new syscalls, for numa and for numactl. * re-enable first touch NUMA again by default, as now policies can be set in a variety of methods. This is only relevant for very specific workloads. This doesn't pretend to be a final NUMA solution. The previous defaults in -HEAD (with MAXMEMDOM set) can be achieved by 'sysctl vm.default_policy=rr'. This is only relevant if MAXMEMDOM is set to something other than 1. Ie, if you're using GENERIC or a modified kernel with non-NUMA, then this is a glorified no-op for you. Thank you to Norse Corp for giving me access to rather large (for FreeBSD!) NUMA machines in order to develop and verify this. Thank you to Dell for providing me with dual socket sandybridge and westmere v3 hardware to do NUMA development with. Thank you to Scott Long at Netflix for providing me with access to the two-socket, four-domain haswell v3 hardware. Thank you to Peter Holm for running the stress testing suite against the NUMA branch during various stages of development! Tested: * MIPS (regression testing; non-NUMA) * i386 (regression testing; non-NUMA GENERIC) * amd64 (regression testing; non-NUMA GENERIC) * westmere, 2 socket (thankyou norse!) * sandy bridge, 2 socket (thankyou dell!) * ivy bridge, 2 socket (thankyou norse!) * westmere-EX, 4 socket / 1TB RAM (thankyou norse!) * haswell, 2 socket (thankyou norse!) * haswell v3, 2 socket (thankyou dell) * haswell v3, 2x18 core (thankyou scott long / netflix!) * Peter Holm ran a stress test suite on this work and found one issue, but has not been able to verify it (it doesn't look NUMA related, and he only saw it once over many testing runs.) * I've tested bhyve instances running in fixed NUMA domains and cpusets; all seems to work correctly. Verified: * intel-pcm - pcm-numa.x and pcm-memory.x, whilst selecting different NUMA policies for processes under test. Review: This was reviewed through phabricator (https://reviews.freebsd.org/D2559) as well as privately and via emails to freebsd-arch@. The git history with specific attributes is available at https://github.com/erikarn/freebsd/ in the NUMA branch (https://github.com/erikarn/freebsd/compare/local/adrian_numa_policy). This has been reviewed by a number of people (stas, rpaulo, kib, ngie, wblock) but not achieved a clear consensus. My hope is that with further exposure and testing more functionality can be implemented and evaluated. Notes: * The VM doesn't handle unbalanced domains very well, and if you have an overly unbalanced memory setup whilst under high memory pressure, VM page allocation may fail leading to a kernel panic. This was a problem in the past, but it's much more easily triggered now with these tools. * This work only controls the path through vm_phys; it doesn't yet strongly/predictably affect contigmalloc, KVA placement, UMA, etc. So, driver placement of memory isn't really guaranteed in any way. That's next on my plate. Sponsored by: Norse Corp, Inc.; Dell Notes: svn path=/head/; revision=285387
* Remove old fmake. It wasn't built by default for some time. Users thatWarner Losh2015-06-161-4/+0
| | | | | | | | | | really need it can find it in the devel/fmake port or pkg install fmake. Note: This commit is orthogonal to the question 'can we fmake buildworld'. Differential Revision: https://reviews.freebsd.org/D2840 Notes: svn path=/head/; revision=284464
* Switch to mandoc's version of makewhatis(8), whatis(1), apropos(1) utilities.Baptiste Daroussin2015-05-301-0/+2
| | | | | | | | | | | | | | This change among other things improve search capabilities over the manpages allowing fine grain query. A new build option WITHOUT_MANDOCDB has been added to keep the ancient version of the database and the tools. The plan is to entirely remove this option before 11.0-RELEASE. Differential Revision: https://reviews.freebsd.org/D2603 Notes: svn path=/head/; revision=283777
* Remove demandoc(1) from the buildBaptiste Daroussin2015-05-211-1/+0
| | | | Notes: svn path=/head/; revision=283221
* Replace groff's soelim by soeliminate(1) renamed soelim(1)Baptiste Daroussin2015-05-011-1/+1
| | | | Notes: svn path=/head/; revision=282318
* Add ELF Tool Chain's c++filt to the buildEd Maste2015-04-301-0/+2
| | | | | | | | | Differential Revision: https://reviews.freebsd.org/D2408 Reviewed by: brooks, imp Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=282285
* Disable truss, gprof, and lint on arm64, they don't build.Andrew Turner2015-04-141-0/+6
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=281522
* Switch to ELF toolchain readelf(1)Ed Maste2015-03-301-0/+2
| | | | | | | | | | | | | | | | ELF toolchain readelf lacked some functionality at the time other tools (like size, strip, nm, etc.) were switched over to the ELF toolchain versions. That has been addressed as of the last update, so we can add it to the list. PR: 198950 [exp-run] Reviewed by: bapt, imp, rpaulo Relnotes: yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D2156 Notes: svn path=/head/; revision=280859
* These local variables are unused. gc them.Warner Losh2015-03-121-3/+0
| | | | Notes: svn path=/head/; revision=279906
* Add MK_FILE to control whether or not to build file(1), libmagic(3), etcEnji Cooper2015-02-041-1/+4
| | | | | | | | MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=278193
* Add the following options to enable/disable several features in the base systemEnji Cooper2015-02-041-3/+12
| | | | | | | | | | | | | | | | | | WITHOUT_BOOTPARAMD - bootparamd WITHOUT_BOOTPD - bootpd WITHOUT_FINGER - finger, fingerd WITHOUT_FTP - ftp, ftpd WITHOUT_INETD - inetd WITHOUT_RBOOTD - rbootd WITHOUT_TCP_WRAPPERS - tcpd, et al WITHOUT_TFTP - tftp, tftp-server WITHOUT_TIMED - timed MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=278192
* Add MK_TALK knob for building the talk and talkdEnji Cooper2015-01-251-1/+4
| | | | | | | | MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=277676
* Add MK_ISCSI knob for building the iscsi initiator, iscsi daemon, kernelEnji Cooper2015-01-251-1/+4
| | | | | | | | | | modules, etc MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=277675
* Add MK_EE knob to control installing edit, ee, etcEnji Cooper2015-01-251-1/+4
| | | | | | | | MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=277663
* Update to mandoc cvs version as of 20141201Baptiste Daroussin2014-12-021-1/+0
| | | | | | | | | - Compatiblity with existing manpages has been improved - Now support ".so" directive with compressed manpages (which fixes a regression we have since we have new man(1)) Notes: svn path=/head/; revision=275432
* Build infrastructure for elftoolchain toolsEd Maste2014-12-011-1/+14
| | | | | | | | | | | | | | | | | | Set WITH_ELFTOOLCHAIN_TOOLS in src.conf to use the elftoolchain version of the following tools: * addr2line * elfcopy (strip / mcs) * nm * size * strings Reviewed by: bapt (earlier version) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D1224 Notes: svn path=/head/; revision=275373
* Readd protect(2) removed by mistakeBaptiste Daroussin2014-11-251-0/+1
| | | | | | | Reported by: emaste Notes: svn path=/head/; revision=275043
* Convert to usr.bin/ to LIBADDBaptiste Daroussin2014-11-251-1/+0
| | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275042
* Add the demandoc utility from the mandoc projectBaptiste Daroussin2014-11-221-0/+1
| | | | | | | | This is a modern version of the deroff utility, useful for example to do spellchecking on manpages Notes: svn path=/head/; revision=274895
* Add the preconv utility from mandoc projectBaptiste Daroussin2014-11-221-0/+1
| | | | | | | it recodes multibyte UNIX manual files into mandoc(1) Notes: svn path=/head/; revision=274893
* Revert accidently message Makefile from 274836 and connect soeliminate(1)Baptiste Daroussin2014-11-221-10/+10
| | | | Notes: svn path=/head/; revision=274837
* Add a new soeliminate(1) commandBaptiste Daroussin2014-11-221-10/+11
| | | | | | | | | | | | | | | | | | | | | | | | | mandoc(1) does not provide an equivalent of the GNU groff's soelim(1) as an external binary. It does provide the funcitonnality but internally. Lots if manpages in ports uses ".so" directives to include the content of another manpage, which works properly if the manpages are not compressed. With compressed manpages it will fail. So we need to preprocess those manpages with soelim(1) before compressing them. soeliminate(1) add the minimum functionnality from soelim(1) required for that task, in order to still be able to prepare properly those manpages in case we ship the base system only with mandoc as a manpage renderer. soeliminate(1) accept all the arguments from soelim(1) for compatibility but only '-I dir' is really functionnal. Name it soeliminate and not soelim, so groff from base or ports can still call soelim(1) for its internal use and avoid potential incompatibilities MFC after: 1 month Notes: svn path=/head/; revision=274836
* Re-enable dpv(1,3): Introduced via r274116; temporarily disabledDevin Teske2014-11-061-0/+1
| | | | | | | | | | | | | | shortly thereafter via r274124 until I could get the right recipe down w/respect to SUBDIR_DEPEND. Thanks to: ngie, ian Reviewed by: ian MFC after: 21 days X-MFC-to: stable/10 stable/9 X-MFC-with: 274116 274120 274121 274123 274144 274146 Notes: svn path=/head/; revision=274192
* Temporarily _disable_ compilation of dpv(3) and dpv(1).Devin Teske2014-11-051-1/+0
| | | | | | | | | | Will revisit this to find out how to solve the ordering issue in buildworld (potentially `make -j' specific). Reviewed by: shurd Notes: svn path=/head/; revision=274124
* Add new libraries/utilities for data throughput visualization.Devin Teske2014-11-041-0/+1
| | | | | | | | | | | | | | | | dpv(3): dialog progress view library dpv(1): stream data from stdin or multiple paths with dialog progress view figpar(3): configuration file parsing library Reviews: D714 Reviewed by: jelischer, shurd Discussed at: MeetBSD California 2014 Vendor/Dev Summit Discussed on: -current MFC after: 21 days X-MFC-to: stable/10 stable/9 Notes: svn path=/head/; revision=274116
* Hook xo(1) to the build -- it's like echo, but uses libxo toMarcel Moolenaar2014-10-231-0/+1
| | | | | | | | | support emitting machine-readable output. Sponsored by: Juniper Networks, Inc. Notes: svn path=/head/; revision=273568
* New BSDL timeout(1) utility compatible with GNU timeoutBaptiste Daroussin2014-07-161-0/+1
| | | | | | | | | | it fully passes the GNU timeout regression tests, it is written in a mostly portable way (only signal parsing is relying on non portable structures) Phabric: D377 Notes: svn path=/head/; revision=268745