aboutsummaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* ncurses: only keep the version with widechar supportBaptiste Daroussin2021-01-052-2/+2
| | | | | | | | | | | | | | | | Only keep the widechar version of ncurses as libncursesw.so.9 Keep the old name to avoid breaking the ABI compatibility (the non widechar version libncurses.so.9 is not binary compatible with libncursesw.so.9) since all ports and base are already only linking against the widechar version we can simply remove libncurses.so.9 Since the .9 version only lived in the dev branch and never ended in a release, it is simply removed and not added to any binary compat package. Add symlinks to keep build time compatibility for anyone linking against -lncurses
* Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmpDimitry Andric2021-01-031-281/+281
| | | | | | | release/11.x llvmorg-11.0.1-rc2-0-g43ff75f2c3f (aka 11.0.1 rc2). MFC after: 4 weeks X-MFC-With: r364284
* Add comment explaining Git commit message hookEd Maste2020-12-301-0/+10
| | | | Suggested by: jhb
* Handle ports FLAVOR better. (+minor polish)Poul-Henning Kamp2020-12-301-2/+9
|
* Fix generation of colldef source files for non-UTF-8 localesHiroki Sato2020-12-294-283/+363
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Files for colldef were generated by duplicating UTF-8 collation files for each language and included invalid characters in the non-UTF-8 encodings. localedef(1) does not allow those characters. cldr2def.pl now checks if the characters are valid based on charmap files. TODO: ja_JP.UTF-8 locale should not be generated solely from CLDR because it was standardized in a document "UI-OSF Application Platform Profile for Japanese Environment" which was incompatible with information in CLDR. Most of commercial Unix vendors adopt this pre-Unicode-era document as the reference even for UTF-8 locale. Newer versions of Solaris have added a CLDR version as ja_JP.UTF-8@cldr, and IBM AIX has used JA_JP.UTF-8 for the UI-OSF specification and ja_JP.UTF-8 for CLDR. Note that this commit does not change generation of ja_JP.UTF-8. Changes related to this issue will be committed separately later. - Generate POSIX charamap UTF-32 as a reference. It was confusing that charmap.xml used Unicode names defined in UnicodeData.txt though POSIX charmap used slightly different names for the same code points. cldr2def.pl now uses UTF-32.cm as single information source for Unicode symbol names and code points. Charset.xml is also updated to use them. - Fix a bug in get_encodings() in cldr2def.pl which did not understand 0x00+0x00 notation correctly in charmaps/ISCII-DEV.TXT. - Do not regenerate posix/xx_Comm_C.UTF-8.src every time when doing "make build". Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D27809
* [wlanwatch] fix compiler warnings-as-errors on gcc-6.4 mipsAdrian Chadd2020-12-291-4/+13
| | | | | | | | | | | * argc/argv are currently unused * msglen is currently unused * "default" is a const buffer, but char *cp isn't, so change default string to be a non-const global string variable * Make 'cp' private to each context that's using it, which fixes a "variable shadows previous declaration" warning and makes it easier to track where it was being leaked between address family sections
* [wlanwds] Fix compiler warnings-as-errors on freebsd gcc-6.4 mipsAdrian Chadd2020-12-291-1/+2
| | | | | | | | | * Remove unused verbose global; things are now done through syslog * Mark a variable as unused in handle_rtmsg() Tested: * FreeBSD/mips32 using gcc-6.4
* [wlanstats] Fix warnings-as-errors on gcc-6.4 on mipsAdrian Chadd2020-12-292-8/+10
| | | | | | | | | | * use CLLADDR() to not try deconsting a const * Unsigned where they should be * static where it should be Tested: * freebsd/mips32, using gcc-6.4
* build: remove the option to build gnugrepKyle Evans2020-12-255-36/+0
| | | | | | | | | Unconditionally install bsdgrep as grep, bootstrap or not. Remove all build glue and stop installing both gnugrep and libgnuregex now that all consumers of the latter are gone. Relnotes: yes Differential Revision: https://reviews.freebsd.org/D27732
* mk48txx(4): remove obsolete driverMarius Strobl2020-12-251-21/+0
| | | | | It's no longer used since 58aa35d42975c298ca0adba705c042596303c9f5 and r357455 respectively.
* mc146818(4): remove obsolete driverMarius Strobl2020-12-251-21/+0
| | | | | It's no longer used since 58aa35d42975c298ca0adba705c042596303c9f5 and r357455 respectively.
* make the git commit message template more compactEd Maste2020-12-231-27/+17
| | | | | | | | | | | | git's default commit message includes the list of staged, unstaged, and untracked files; adding our metadata tags and then their descriptions made for a very long template. Move the descriptions to the metadata lines themselves. Reviewed by: bcr Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D27664
* tools/tools/locale: skip control character widthsYuri Pankov2020-12-232-65/+4
| | | | | | | | Do not explicitly encode control characters widths as 0 allowing wcwidth() to return the proper implicit value for non-printable characters (-1). Reported by: naddy
* tools/tools/locale: fix static-colldefYuri Pankov2020-12-181-2/+1
| | | | Notes: svn path=/head/; revision=368754
* tools/tools/locale: install generated files in current src checkoutYuri Pankov2020-12-181-1/+1
| | | | Notes: svn path=/head/; revision=368750
* Describe the commit message template our git hook script producesEd Maste2020-12-171-1/+10
| | | | | | | Reported by: rpokala Notes: svn path=/head/; revision=368740
* chmod +x the git commit message prep hookEd Maste2020-12-171-0/+0
| | | | Notes: svn path=/head/; revision=368737
* Add initial version of git commit message preparation hookEd Maste2020-12-171-0/+55
| | | | | | | | | | | | | | | | | Start with a slightly modified version of the SVN commit template, to allow developers to experiment. This will be updated in the future as our process and techniques evolve. This can be installed by copying or symlinking into the .git/hooks/ directory. Feedback from: cem, jhb Reviewed by: imp Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D27633 Notes: svn path=/head/; revision=368736
* lualoader: fix lua-lint runKyle Evans2020-12-171-1/+2
| | | | | | | | | | | luacheck rightfully complains that i is unused in the show-module-options loop at the end (it was used for some debugging in the process). We've added a new pager module that's compiled in, so declare that as an acceptable global. Notes: svn path=/head/; revision=368729
* Remove Doxyfiles for removed driversBrooks Davis2020-12-1525-525/+0
| | | | | | | Reported by: emaste Notes: svn path=/head/; revision=368670
* Retire obsolete GDB 6.1.1Ed Maste2020-12-151-5/+0
| | | | | | | | | | | | | | | | | | | | | GDB 6.1.1 was released in June 2004 and is long obsolete. It does not support all of the architectures that FreeBSD does, and imposes limitations on the FreeBSD kernel build, such as the continued use of DWARF2 debugging information. It was kept (in /usr/libexec/) only for use by crashinfo(8), which extracts some basic information from a kernel core dump after a crash. Crashinfo already prefers gdb from port/package if installed. Future work may add kernel debug support to LLDB or find another path for crashinfo's needs, but in any case we do not want to ship the excessively outdated GDB in FreeBSD 13. Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D27610 Notes: svn path=/head/; revision=368667
* Remove more cx,ctau leftoversEd Maste2020-12-152-42/+0
| | | | | | | Missed in r359178 Notes: svn path=/head/; revision=368652
* locale: fix mode for installed files to be 644, not 755Yuri Pankov2020-12-121-1/+1
| | | | | | | | While here, drop '-c' flag to install as it's default and provided for backward compatibility only. Notes: svn path=/head/; revision=368598
* Provide userland notification of gpio pin changes ("userland gpio interrupts").Ian Lepore2020-12-123-0/+655
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an import of the Google Summer of Code 2018 project completed by Christian Kramer (and, sadly, ignored by us for two years now). The goals stated for that project were: FreeBSD already has support for interrupts implemented in the GPIO controller drivers of several SoCs, but there are no interfaces to take advantage of them out of user space yet. The goal of this work is to implement such an interface by providing descriptors which integrate with the common I/O system calls and multiplexing mechanisms. The initial imported code supports the following functionality: - A kernel driver that provides an interface to the user space; the existing gpioc(4) driver was enhanced with this functionality. - Implement support for the most common I/O system calls / multiplexing mechanisms: - read() Places the pin number on which the interrupt occurred in the buffer. Blocking and non-blocking behaviour supported. - poll()/select() - kqueue() - signal driven I/O. Posting SIGIO when the O_ASYNC was set. - Many-to-many relationship between pins and file descriptors. - A file descriptor can monitor several GPIO pins. - A GPIO pin can be monitored by multiple file descriptors. - Integration with gpioctl and libgpio. I added some fixes (mostly to locking) and feature enhancements on top of the original gsoc code. The feature ehancements allow the user to choose between detailed and summary event reporting. Detailed reporting provides a record describing each pin change event. Summary reporting provides the time of the first and last change of each pin, and a count of how many times it changed state since the last read(2) call. Another enhancement allows the recording of multiple state change events on multiple pins between each call to read(2) (the original code would track only a single event at a time). The phabricator review for these changes timed out without approval, but I cite it below anyway, because the review contains a series of diffs that show how I evolved the code from its original state in Christian's github repo for the gsoc project to what is being commited here. (In effect, the phab review extends the VC history back to the original code.) Submitted by: Christian Kramer Obtained from: https://github.com/ckraemer/freebsd/tree/gsoc2018 Differential Revision: https://reviews.freebsd.org/D27398 Notes: svn path=/head/; revision=368585
* riscv: allow building virtual machine imagesMitchell Horne2020-12-081-0/+1
| | | | | | | | | | | | RISC-V has the same booting requirements as arm64 (loader.efi, no legacy boot options), so generated images for both architectures have the same partition layout. Reviewed by: gjb Differential Revision: https://reviews.freebsd.org/D27044 Notes: svn path=/head/; revision=368422
* Fix the source directory when installing the results. The installHiroki Sato2020-12-071-0/+1
| | | | | | | | | target did not install them actually. Spotted by: Thomas Munro, bapt, yuripv Notes: svn path=/head/; revision=368404
* update wcwidth data from utf8procYuri Pankov2020-12-065-395/+71814
| | | | | | | | | | | | | | | | | | | Character width data being out of date is a constant source of weird rendering issues and wasted time trying to diagnose those, e.g. as reported by Jeremy Chadwick: https://gitlab.com/muttmua/mutt/-/issues/67 Sadly, there is no real ("standard") wcwidth data source, so this tries to rectify the problem using the utf8proc one (through its C API) which would hopefully benefeat both FreeBSD and utf8proc through bug reports (if any). Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D27259 Notes: svn path=/head/; revision=368390
* Retire GNU_GREP_COMPAT knobKyle Evans2020-12-052-7/+0
| | | | | | | | | | | | | This was introduced and then disabled by default primarily to avoid dealing with bugs in libgnuregex. rS363823 switched to using libregex for it, so let's just rip the option out now so we can make sure we're getting tested with libregex via bsdgrep. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D27476 Notes: svn path=/head/; revision=368355
* make.py: Also pass STRIPBINAlex Richardson2020-12-041-0/+3
| | | | | | | | | This is required for cross-building to allow stripping the installed binaries. Submitted By: Henry Vogt <hv@tue.mpg.de> Notes: svn path=/head/; revision=368338
* Fix compilation on head and while here:Olivier Cochard2020-11-302-22/+11
| | | | | | | | | | | | | | - remove unwanted whitespaces - remove useless function ifphys() - fix the Makefile to install it into /usr/bin PR: 250133 Reviewed by: glebius, maxim Approved by: glebius Differential Revision: https://reviews.freebsd.org/D27155 Notes: svn path=/head/; revision=368188
* ping: add a ping6 hard link for backwards compatibilityAlan Somers2020-11-261-0/+2
| | | | | | | | | | | | When invoked as "ping6", ping will now attempt to use ICMPv6 for hostnames that resolve both IPv4 and IPv6 addresses. Reviewed by: bz, manu MFC-With: r368045 Differential Revision: https://reviews.freebsd.org/D27384 Notes: svn path=/head/; revision=368078
* GH Actions: Use pre-installed clang packagesUlrich Spörlein2020-11-261-2/+6
| | | | | | | | | | | | | | | | Also fix the run by setting up the environment in non-deprecated way. Always run with --debug to understand better what sort of stuff is happening in the background. Also split out the bmake bootstrap stage (takes about 31s on ubuntu, but 1m14 on macOS?) Drops the dependency on coreutils (realpath, nproc) and thus (?) fixes macOS to be just as fast (4 logical cores vs 2 physical cores before, go figure.) Reviewed by: arichardson Notes: svn path=/head/; revision=368056
* Merge ping6 to pingAlan Somers2020-11-261-3/+0
| | | | | | | | | | | | | There is now a single ping binary, which chooses to use ICMP or ICMPv4 based on the -4 and -6 options, and the format of the address. Submitted by: Ján Sučan <sucanjan@gmail.com> Sponsored by: Google LLC (Google Summer of Code 2019) MFC after: Never Differential Revision: https://reviews.freebsd.org/D21377 Notes: svn path=/head/; revision=368045
* Remove uses of CRIOGET in OCF tests after r368005.John Baldwin2020-11-252-18/+3
| | | | | | | | | Pointy hat to: jhb Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D27367 Notes: svn path=/head/; revision=368008
* Remove the cloned file descriptors for /dev/crypto.John Baldwin2020-11-251-17/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Crypto file descriptors were added in the original OCF import as a way to provide per-open data (specifically the list of symmetric sessions). However, this gives a bit of a confusing API where one has to open /dev/crypto and then invoke an ioctl to obtain a second file descriptor. This also does not match the API used with /dev/crypto on other BSDs or with Linux's /dev/crypto driver. Character devices have gained support for per-open data via cdevpriv since OCF was imported, so use cdevpriv to simplify the userland API by permitting ioctls directly on /dev/crypto descriptors. To provide backwards compatibility, CRIOGET now opens another /dev/crypto descriptor via kern_openat() rather than dup'ing the existing file descriptor. This preserves prior semantics in case CRIOGET is invoked multiple times on a single file descriptor. Reviewed by: markj Relnotes: yes Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D27302 Notes: svn path=/head/; revision=368005
* netmap: bridge: improve readabilityVincenzo Maffione2020-11-221-42/+74
| | | | | | | | | | Multiple cosmetic changes, plus a fix to a verbose print (indicating wrong net->host/host->net direction). MFC after: 3 days Notes: svn path=/head/; revision=367936
* netmap: nmreplay: switch to libnetmapVincenzo Maffione2020-11-221-31/+24
| | | | | | | | | | Use the newer libnetmap (included in base) rather than the older nm_open()/nm_close() defined in netmap_user.h MFC after: 3 days Notes: svn path=/head/; revision=367934
* netmap: lb: switch to libnetmapVincenzo Maffione2020-11-222-55/+123
| | | | | | | | | | Use the newer libnetmap (included in base) rather than the older nm_open()/nm_close() defined in netmap_user.h MFC after: 3 days Notes: svn path=/head/; revision=367933
* netmap: pkt-gen: switch to libnetmapVincenzo Maffione2020-11-221-95/+120
| | | | | | | | Use the newer libnetmap (included in base) rather than the older nm_open()/nm_close() defined in netmap_user.h Notes: svn path=/head/; revision=367932
* netmap: bridge: switch to libnetmapVincenzo Maffione2020-11-222-19/+22
| | | | | | | | Use the newer libnetmap (included in base) rather than the older nm_open()/nm_close() defined in netmap_user.h Notes: svn path=/head/; revision=367931
* netmap: bridge, pkt-gen: fix man page typoVincenzo Maffione2020-11-212-3/+3
| | | | | | | | Reported by: ian MFC after: 3 days Notes: svn path=/head/; revision=367921
* netmap: bridge: update man page with more informationVincenzo Maffione2020-11-211-3/+17
| | | | | | | | Update the man page to describe how it is necessary to enable promiscuous mode and/or disable offloads. Notes: svn path=/head/; revision=367920
* Revert "When building on Ubuntu bootstrap bmake with bash as the default shell"Alex Richardson2020-11-161-8/+0
| | | | | | | | This reverts r365950 since the latest bmake update includes fixes for the test failures that prompted the change. Notes: svn path=/head/; revision=367720
* Ensure make delete-old does not unlink the llvm-cxxfilt and its manpage,Dimitry Andric2020-11-151-2/+5
| | | | | | | | | | | after r367304 and r367324, when WITH_LLVM_CXXFILT is enabled. Noticed by: "Herbert J. Skuhra" <herbert@gojira.at> MFC after: 3 days X-MFC-With: r367304 Notes: svn path=/head/; revision=367712
* Support initializing stack variables on function entryBrooks Davis2020-11-102-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | There are two options: - WITH_INIT_ALL_ZERO: Zero all variables on the stack. - WITH_INIT_ALL_PATTERN: Initialize variables with well-defined patterns. The exact pattern are a compiler implementation detail and vary by type. They are somewhat documented in the LLVM commit message: https://reviews.llvm.org/rL349442 I've used WITH_INIT_ALL_* to match Microsoft's InitAll feature rather than naming them after the LLVM specific compiler flags. In a range of consumer products, options like these are used in both debug and production builds with debugs builds using patterns (intended to provoke crashes on use of uninitialized values) and production using zeros (deemed more likely to lead to harmless misbehavior or NULL-pointer dereferences). Reviewed by: emaste Obtained from: CheriBSD Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D27131 Notes: svn path=/head/; revision=367577
* Add collation version support to querylocale(3).Thomas Munro2020-11-082-0/+21
| | | | | | | | | | | | | | | | | | | | | | | Provide a way to ask for an opaque version string for a locale_t, so that potential changes in sort order can be detected. Similar to ICU's ucol_getVersion() and Windows' GetNLSVersionEx(), this API is intended to allow databases to detect when text order-based indexes might need to be rebuilt. The CLDR version is extracted from CLDR source data by the Makefile under tools/tools/locale, written into the machine-generated Makefile under shared/colldef, passed to localedef -V, and then written into LC_COLLATE file headers. The initial version is 34.0. tools/tools/locale was recently updated to pull down 35.0, but the output hasn't been committed under share/colldef yet, so that will provide the first observable change when it happens. Other versioning schemes are possible in future, because the format is unspecified. Reviewed by: bapt, 0mp, kib, yuripv (albeit a long time ago) Differential Revision: https://reviews.freebsd.org/D17166 Notes: svn path=/head/; revision=367476
* Remove unnecessary __DECONST().John Baldwin2020-11-031-19/+19
| | | | | | | | | Reviewed by: markj Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D27063 Notes: svn path=/head/; revision=367311
* Add WITH_LLVM_CXXFILT option to install llvm-cxxfilt as c++filtDimitry Andric2020-11-032-0/+4
| | | | | | | | | | | | | | | | | | | | | 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
* beinstall.sh: Use bectl instead of beadm by defaultMateusz Piotrowski2020-10-301-8/+13
| | | | | | | | | | | | | | | | This patch also introduces an environment variable BE_UTILITY, which can be used to specify the utility to use for managing ZFS boot environments (which can be either bectl or beadm). While here, fix some typos in the manual page and remove beadm from section "SEE ALSO". Reviewed by: bcr, kevans, rpokala Approved by: will Differential Revision: https://reviews.freebsd.org/D21111 Notes: svn path=/head/; revision=367159
* Drop "All rights reserved" from all my stuff. This includesEdward Tomasz Napierala2020-10-282-2/+0
| | | | | | | | | | | | Foundation copyrights, approved by emaste@. It does not include files which carry other people's copyrights; if you're one of those people, feel free to make similar change. Reviewed by: emaste, imp, gbe (manpages) Differential Revision: https://reviews.freebsd.org/D26980 Notes: svn path=/head/; revision=367105