summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Revert r267233 for now. PIE support needs to be reworked.bdrewery2014-08-1938-75/+0
| | | | | | | | | | | | | | | | | | | | | | | | 1. 50+% of NO_PIE use is fixed by adding -fPIC to INTERNALLIB and other build-only utility libraries. 2. Another 40% is fixed by generating _pic.a variants of various libraries. 3. Some of the NO_PIE use is a bit absurd as it is disabling PIE (and ASLR) where it never would work anyhow, such as csu or loader. This suggests there may be better ways of adding support to the tree. Many of these cases can be fixed such that -fPIE will work but there is really no reason to have it in those cases. 4. Some of the uses are working around hacks done to some Makefiles that are really building libraries but have been using bsd.prog.mk because the code is cleaner. Had they been using bsd.lib.mk then NO_PIE would not have been needed. We likely do want to enable PIE by default (opt-out) for non-tree consumers (such as ports). For in-tree though we probably want to only enable PIE (opt-in) for common attack targets such as remote service daemons and setuid utilities. This is also a great performance compromise since ASLR is expected to reduce performance. As such it does not make sense to enable it in all utilities such as ls(1) that have little benefit to having it enabled. Reported by: kib
* Rework privatelib/internallibbapt2014-08-064-4/+3
| | | | | | | | | | | | | | Make sure everything linking to a privatelib and/or an internallib does it directly from the OBJDIR rather than DESTDIR. Add src.libnames.mk so bsd.libnames.mk is not polluted by libraries not existsing in final installation Introduce the LD* variable which is what ld(1) is expecting (via LDADD) to link to internal/privatelib Directly link to the .so in case of private library to avoid having to complexify LDFLAGS. Phabric: https://phabric.freebsd.org/D553 Reviewed by: imp, emaste
* Replace all uses of libncurses and libtermcap with their wide characterbrooks2014-07-174-8/+8
| | | | | | | | | | variants. This allows usable file system images (i.e. those with both a shell and an editor) to be created with only one copy of the curses library. Exp-run: antoine PR: 189842 Discussed with: bapt Sponsored by: DARPA, AFRL
* Make MK_GNUCXX mean "build the libstdc++ and libsupc++ libraries" andimp2014-07-101-6/+1
| | | | | | | nothing more. Force it to be "no" when MK_CXX is "no" to simplify usage. It no longer also means "build g++" since we no longer have a platform where that's interesting now that pc98 no longer needs clang and gcc, but not g++. pc98 now just uses clang after boot2 changes.
* The GNU readline library is now an INTERNALLIB - that is, it isbapt2014-07-094-3/+6
| | | | | | | | | | statically linked into consumers (GDB and variants) in the base system, and the shared library is no longer installed. That also allows ports to be able to use a modern version of readline PR: 162948 Reviewed by: emaste
* Remove ia64.marcel2014-07-0714-1217/+2
| | | | | | | | | | | | | | | | | This includes: o All directories named *ia64* o All files named *ia64* o All ia64-specific code guarded by __ia64__ o All ia64-specific makefile logic o Mention of ia64 in comments and documentation This excludes: o Everything under contrib/ o Everything under crypto/ o sys/xen/interface o sys/sys/elf_common.h Discussed at: BSDcan
* Remove send-pr, the supported interface to submit bugs is now viagavin2014-06-1416-4220/+0
| | | | | | | | | https://bugs.freebsd.org/submit/ Removing send-pr also removes one more piece of non-BSD-licensed software. Hat: bugmeister MFC after: 3 days
* With the move away from GNATS, point end users to a better web pagegavin2014-06-141-1/+1
| | | | | | | detailing how to report bugs. Hat: bugmeister MFC after: 3 days
* In preparation for ASLR [1] support add WITH_PIE to support building with -fPIE.bdrewery2014-06-0838-0/+75
| | | | | | | | | | | | | | | | This is currently an opt-in build flag. Once ASLR support is ready and stable it should changed to opt-out and be enabled by default along with ASLR. Each application Makefile uses opt-out to ensure that ASLR will be enabled by default in new directories when the system is compiled with PIE/ASLR. [2] Mark known build failures as NO_PIE for now. The only known runtime failure was rtld. [1] http://www.bsdcan.org/2014/schedule/events/452.en.html Submitted by: Shawn Webb <lattera@gmail.com> Discussed between: des@ and Shawn Webb [2]
* Add Lb string for libcuse.brueffer2014-06-061-0/+1
|
* Move Nx definition to a separate block.pluknet2014-05-201-0/+2
| | | | Noticed by: ru (a while ago)
* Revert r261296. This removes the WITHOUT_NCURSESW option.brooks2014-05-151-12/+2
| | | | | It was the wrong direction. We will instead remove use of the non-wide-character supporting libncurses.
* Add 9.3 to mdoc.local.gjb2014-05-091-0/+1
| | | | Sponsored by: The FreeBSD Foundation
* Use src.opts.mk in preference to bsd.own.mk except where we need stuffimp2014-05-0613-12/+13
| | | | from the latter.
* Add placeholder Kyuafiles for various top-level hierarchies.jmmv2014-04-212-0/+15
| | | | | | | | | | | | This change adds tests/ directories in the source tree to create various subdirectories in /usr/tests/ and to install placeholder Kyuafiles for them. the relevant hierarchies are: cddl, etc, games, gnu and secure. The reason for this is to simplify the addition of new test programs for utilities or libraries under any of these directories. Doing so on a case by case basis is unnecessary and is quite an obscure process.
* Add FreeBSD 10.1 to the list of recognized releases for Fx.jmmv2014-04-131-0/+1
| | | | This version is already mentioned by 4 manual pages.
* NO_MAN= has been deprecated in favor of MAN= for some time, go aheadimp2014-04-1310-10/+10
| | | | | | and finish the job. ncurses is now the only Makefile in the tree that uses it since it wasn't a simple mechanical change, and will be addressed in a future commit.
* Enable parallel building for gnu/usr.bin and usr.bin/clang too.dim2014-03-271-0/+2
| | | | | MFC after: 2 weeks X-MFC-With: r263778
* Add a new ARM TARGET_ARCH, armv6hf. This is considered experimental.andrew2014-03-234-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | This targets the existing ARMv6 and ARMv7 SoCs that contain a VFP unit. This is an optional coprocessors may not be present in all devices, however it appears to be in all current SoCs we support. armv6hf targets the VFP variant of the ARM EABI and our copy of gcc is too old to support this. Because of this there are a number of WITH/WITHOUT options that are unsupported and must be left as the default value. The options and their required value are: * WITH_ARM_EABI * WITHOUT_GCC * WITHOUT_GNUCXX In addition, without an external toolchain, the following need to be left as their default: * WITH_CLANG * WITH_CLANG_IS_CC As there is a different method of passing float and double values to functions the ABI is incompatible with existing armv6 binaries. To use this a full rebuild of world is required. Because no floating point values are passed into the kernel an armv6 kernel with VFP enabled will work with an armv6hf userland and vice versa.
* Remove IPX support.glebius2014-03-142-2/+0
| | | | | | | | | | | IPX was a network transport protocol in Novell's NetWare network operating system from late 80s and then 90s. The NetWare itself switched to TCP/IP as default transport in 1998. Later, in this century the Novell Open Enterprise Server became successor of Novell NetWare. The last release that claimed to still support IPX was OES 2 in 2007. Routing equipment vendors (e.g. Cisco) discontinued support for IPX in 2011. Thus, IPX won't be supported in FreeBSD 11.0-RELEASE.
* add support for building a cross-gdb for ARM... This isn't hooked upjmg2014-02-121-0/+4
| | | | | | | to xdev yet as I don't know how to make it work properly... It also isn't heavily tested... Reviewed by: silence on -arm
* Add missing libraries here as well, so a warning is not printed when onepjd2014-02-111-0/+2
| | | | | | | tries to view their manual pages. Reported by: rwatson Explained by: pluknet
* Add definition for NetBSD 7.0, which is referenced in several manpages.pluknet2014-02-011-0/+1
| | | | | Discussed with: uqs MFC after: 5 days
* Pull up vendor changes up to 2014-01-29uqs2014-01-311-0/+1
| | | | | | | | - move local overrides into mdoc.local - syncs us with git commit 819839b66c80e8dabe6cb24ea6319c26c9a2be14 Discussed with: ru MFC after: 2 weeks
* Merge from CheriBSD:brooks2014-01-301-2/+12
| | | | | | | | | | | | | commit c1acf022c533c5ae27e0cd556977eafe3f5959eb Author: Brooks Davis <brooks@one-eyed-alien.net> Date: Fri Jan 17 21:46:44 2014 +0000 Add an option WITHOUT_NCURSESW to suppress building and linking to libncursesw. While wide character support it useful we'd like to only need one ncurses library on embedded systems. MFC after: 4 weeks Sponsored by: DARPA, AFRL
* Add libexecinfo.pluknet2014-01-291-0/+1
| | | | MFC after: 3 days
* Add FreeBSD 2.2.9 which aout(4) references.uqs2014-01-281-0/+1
| | | | Discussed with: kib
* When building a cross-kgdb, suppress the registration of themarcel2014-01-131-0/+12
| | | | | | | | | | | standard core target by declaring coreops_suppress_target with initializer. This is also happening for non-cross kgdb, by virtue of having fbsd-threads.c in libgdb and having it do the exact same thing. Since fbsd-threads.c is not included in in libgdb when building a cross debugger, we ended up with more than 1 core file targets (the standard gdb core file target and kgdb's libkvm based core file target) and this behaves the same as not having a core target at all.
* When building a cross kgdb, link against the appropriate cross libkvm.marcel2013-12-282-2/+29
| | | | | Provide an implementation of ps_pglobal_lookup() for use by the cross libkvm.
* gcc: Missing makefile changes for r258501.pfg2013-11-242-3/+4
| | | | pointyhat: me
* Fix cross compilation after r258428.andreast2013-11-212-2/+2
| | | | Reviewed by: pfg
* Reimplement r257525 such that it work with the historic FreeBSD makebrooks2013-11-011-1/+6
| | | | | | | | | implementation. This fixes the toolchain and kernel-toolchain targets when building from older FreeBSD versions where make is fmake. Reported by: luigi Sponsored by: DARPA/AFRL MFC after: 3 days
* Enable the --sysroot=/foo option in ld by always building with a sysrootbrooks2013-10-281-1/+1
| | | | | | | defined. When not building as a cross linker, the sysroot is set to "/". Exp-run by: bdrewery (ports/183206) MFC after: 3 days
* Correct ld(1) manual page for --no-add-needed set as default after r253839rea2013-10-281-19/+19
| | | | | Approved by: dim MFC after: 2 weeks
* Bump OS versions in the toolchain triples to 11.0, and bump thedim2013-10-101-2/+2
| | | | | | __FreeBSD_cc_version predefined macros in clang and gcc. Approved by: re (gjb)
* Turn it all the way up to 11:gjb2013-10-101-1/+2
| | | | | | | | | | | | | - Update FreeBSD version in: - UPDATING - sys/conf/newvers.sh - Add 11.0 FreeBSD version for manual pages - Bump __FreeBSD_version to 1100000 Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
* Revert r256095, r256120 (partial), r256121:gjb2013-10-0962-0/+25597
| | | | | | | | | | | | | | | r256095: - Add gnu/usr.bin/rcs back to the base system. r256120: - Add WITHOUT_RCS back to src.conf.5. r256121: - Remove UPDATING entry regarding gnu/usr.bin/rcs removal. Requested by: many Approved by: re (marius) Discussed with: core
* Good bye RCS. You will be missed.eadler2013-10-0762-25597/+0
| | | | | | | (devel/rcs and devel/rcs57 are available as alternatives) Approved by: core Approved by: re (hrs)
* Remove long-unused GNU ar and ranlibemaste2013-10-015-637/+1
| | | | | | | The libarchive-based replacements have been used since 2009; the GNU ones were kept to support source upgrades from FreeBSD 6. Approved by: re@ (delphij)
* On platforms where clang is the default compiler, don't build gcc or libstdc++.theraven2013-09-061-1/+6
| | | | | | | | | | | | | | | | | | To enable them, set WITH_GCC and WITH_GNUCXX in src.conf. Make clang default to using libc++ on FreeBSD 10. Bumped __FreeBSD_version for the change. GCC is still enabled on PC98, because the PC98 bootloader requires GCC to build (or, at least, hard-codes the use of gcc into its build). Thanks to everyone who helped make the ports tree ready for this (and bapt for coordinating them all). Also to imp for reviewing this and working on the forward-porting of the changes in our gcc so that we're getting to a much better place with regard to external toolchains. Sorry to all of the people who helped who I forgot to mention by name. Reviewed by: bapt, imp, dim, ...
* Remove our hacked GNU patch.pfg2013-09-0319-4809/+0
| | | | | | | | | | | The old (2.1) GNU patch has outlived its days. The major local changes have been moved into the less restrictedly licensed patch(1) we adopted in usr.bin/ . A much newer version of GNU patch is available in the ports tree (devel/patch). Disconnect from the build and remove.
* add support to gcc for AES and PCLMUL intrinsics... This addes thejmg2013-09-033-1/+109
| | | | | | | | -maes option, but not the -mpclmul option as I ran out of bits in the 32 bit flags field... You can -D__PCLMUL__ to get this, but it won't be compatible w/ clang and modern gcc... Reviewed by: -current, -toolchain
* Drop build option switch for the older GNU patch.pfg2013-08-291-6/+0
| | | | | | | | As promised, drop the option to make the older GNU patch the default. GNU patch is still being built but something drastic may happen to it to it before Release.
* Add FreeBSD 9.2 to mdoc.local.gjb2013-08-111-0/+1
|
* Part of r245761 makes "grep -D skip" broken for pipes, i.e.ache2013-08-081-5/+7
| | | | | | | echo xxx | grep -D skip xxx returns nothing. Instead of just removing added S_ISFIFO condition (originally absent in this version of grep), make it work as latest GNU version does: don't skip directories and devices if fd == STDIN_FILENO.
* Make the BSD-licensed patch the default.pfg2013-07-261-3/+3
| | | | | | | | | | | | | | | The BSD-licensed patch(1) command has matured and it's behaviour can be considered equivalent to the older version of GNU patch in the tree. The switch has been extensively tested [1] and only two ports presented regressions, which have since been fixed. For convenience a new WITH_GNU_PATCH option is available, but it will likely be removed in the near future. PR: 176313 Approved by: portmgr
* Properly handle input lines containing NUL characters such that pgets()obrien2013-07-021-1/+1
| | | | | | | accurately fills the read buffer. Callers of pgets() still mis-process the buffer contents if the read line contains NUL characters, but this at least makes pgets() accurate.
* Make it so that 'patch < FUBAR' and 'patch -i FUBAR' operate the same.obrien2013-07-021-2/+7
| | | | | | | The former makes a copy of stdin, but was not accurately putting the content of stdin into a temp file. This lead to the undercounting the number of lines in hunks containing NUL characters when reading from stdin. Thus resulting in "unexpected end of file in patch" errors.
* Fold in frame-unwind patchemaste2013-06-172-35/+2
| | | | | After moving to svn there's no need to avoid pulling files off a vendor branch.
* Update dialog to 1.2-20130523bapt2013-06-171-1/+1
| | | | Level up WARNS
OpenPOWER on IntegriCloud