The Free Software Foundation's core utilities:
basename, cat, chgrp, chmod, chown, chroot, cksum, comm, cp, csplit,
cut, date, dd, df, dir, dircolors, dirname, du, echo, env, expand, expr,
factor, false, fmt, fold, groups, head, hostid, hostname, id, install,
join, kill, link, ln, logname, ls, md5sum, mkdir, mkfifo, mknod, mv, nice,
nl, nohup, od, paste, pathchk, pinky, pr, printenv, printf, ptx, pwd,
readlink, rm, rmdir, seq, sha1sum, shred, sleep, sort, split, stat, stty,
su, sum, sync, tac, tail, tee, test, touch, tr, true, tsort, tty, uname,
unexpand, uniq, unlink, uptime, users, vdir, wc, who, whoami, yes
Similar utilities to most of these exist in the FreeBSD base system,
but many of the GNU versions have added functionality that is
useful.
Note that this port will install these utilities with a `g' prefix,
for example gdate, gexpr, and gtest, but the texinfo documentation
will refer to them without the `g' prefix.
GNU su does not support a wheel group. This port installs it
without the suid bit, unless you define WITH_SUID while building.
===> The following configuration options are available for coreutils-9.12:
GMP=off: GMP (multiple precision arithmetic) support
NLS=on: Native Language Support
===> Use 'make config' to modify these settings
sysutils/coreutils: fix build on powerpc64le/CURRENT
Clang crashes with the default -mcpu, but builds with -O0:
Assertion failed: (Subtarget->hasP9Vector() && "XSCMPUQP requires Power9
Vector"), function SelectCC, file
/usr/src/contrib/llvm-project/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp, line
4271.
sysutils/coreutils: Fix GMP option
Toggle is libgmp not gmp, while at adjust layout in Makefile
PR: 281075
Approved by: portmgr (maintainer timeout, 2+ weeks)
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
Fix CONFLICTS entries of multiple ports
There have been lots of missing CONFLICTS_INSTALL entries, either
because conflicting ports were added without updating existing ports,
due to name changes of generated packages, due to mis-understanding
the format and semantics of the conflicts entries, or just due to
typoes in package names.
This patch is the result of a comparison of all files contained in
the official packages with each other. This comparison was based on
packages built with default options and may therefore have missed
further conflicts with optionally installed files.
Where possible, version numbers in conflicts entries have been
generalized, some times taking advantage of the fact that a port
(Only the first 15 lines of the commit message are shown above )
devel/idutils: Resolve conflict with coreutils
pkg-static: idutils-4.6_2 conflicts with coreutils-8.28 (installs files into the
same place). Problematic file: /usr/local/bin/gid
For lack of a better solution resolve this by prefixing gid with a g.
It is now installed as ggid.
linux-gid and sh-utils no longer seem to exist in the tree, so drop
CONFLICTS completely.
PR: 224985
Submitted by: Trond.Endrestol@ximalas.info
Approved by: peterj (maintainer timeout, 3 years)
Drop workaround for qemu-user-static hang after r517350
GSlice as used by qemu-user still aborts due to low RLIMIT_VMEM in an
emulated application but no longer hangs. While the behavior differs
from real hardware it matches the one from before r456518 that was
hardcoded as gl_cv_func_printf_enomem=no workaround.
PR: 224740
- Update GNU coreutils to the latest version 8.31
- Enable tests via our framework (set the TEST_TARGET)
- Remove MAKE_JOBS_UNSAFE which was added in r306718 (due to "help2man:
can't get '--help' info from man/stty.td/stty") as it looks like this
very error had been fixed long time ago, per their ChangeLog:
2015-03-06 Padraig Brady <P@draigBrady.com>
build: fix make dependencies for test.1
In certain parallel build situations this would give the error:
help2man: can't get `--help' info from man/test.td/[
Makefile:14189: recipe for target 'man/test.1' failed
That said, the port should have been jobs-safe for about four years
now, but for some strange reason nobody had noticed that.
Approved by: maintainer
Install texinfo files (GNU info) into ${PREFIX}/share/info
After a discussion on the mailing list on moving manpages to
${PREFIX}/share/man for consistency with base where it is
installed in usr/share/man, it appeared the same should happen
to GNU info files which were installed under share in base and
not in ports.
Now texinfo is not in base on any of the supported version of FreeBSD
it is possible to proceed to this move and it is easier to do than
the manpage change.
Other benefit than consistency are less patching: all build tools but
cmake are expecting info files to be under share/info and cmake (patched here)
was having an exception for BSD so the patch makes FreeBSD case less
specific for them
Bump revision of all impacted ports
PR: 232907
exp-run by: antoine
Differential Revision: https://reviews.freebsd.org/D17816
sysutils/coreutils: 8.23 -> 8.25
- cp now correctly copies files with a hole at the end of the file,
and extents allocated beyond the apparent size of the file.
That combination resulted in the trailing hole not being reproduced.
- cut --fields no longer outputs extraneous characters on some uClibc
configs.
- install -D again copies relative file names when absolute file names
are also specified along with an absolute destination directory name.
- ls no longer prematurely wraps lines when printing short file names.
- mv no longer causes data loss due to removing a source directory specified
multiple times, when that directory is also specified as the destination.
- shred again uses defined patterns for all iteration counts.
- sort --debug -b now correctly marks the matching extents for keys
that specify an offset for the first field.
- tail -F now works with initially non existent files on a remote file system.
Please note: usability issue for 'ls' is discussed in
http://lists.gnu.org/archive/html/coreutils/2016-02/msg00000.html
PR: 206512
Submitted by: w.schwarzenfeld@aon.at
Approved by: jharris@widomaker.com (maintainer)
Remove OSVERSION checks that do not make sense any more.
For example (${OSVERSION} >= 900000 && ${OSVERSION} < 900021) is always true,
as is (${OSVERSION} > 900002 || ${OSVERSION} < 900000 && ${OSVERSION} > 800107).
Regarding patches, when an EXTRA_PATCHES is no longer needed, I remove it, when
it is always needed, I renamed it, in one case, I merged two patches.
Differential Revision: https://reviews.freebsd.org/D2209
Convert GMAKE to MAKE_CMD
Please note that lots of invocation of MAKE_CMD here are wrong as they do not
properly respect MAKE_ENV and friends
With hat: portmgr
Support LIBS like LDFLAGS.
- Add LIBS="${LIBS}" to MAKE_ENV and CONFIGURE_ENV.
- Add an option helper for LIBS.
- Adjust all ports that already use LIBS. Also remove references to
PTHREAD_CFLAGS and PTHREAD_LIBS while here.
- Some ports did not support having a LIBS environment variable and
required additional patches.
Somewhat simplified a linker command line looks like:
${CC} ${src_LDFLAGS} ${LDFLAGS} ${src_LIBS} ${LIBS}
where src_LDFLAGS and src_LIBS are controlled by upstream and LDFLAGS and
LIBS can be controlled by us. If possible -L and -l flags need to be
(Only the first 15 lines of the commit message are shown above )
- update to 8.22
- support staging, strip libraries
- trim master_site
- use option helpers
- shift away from inclusion of bsd.port.pre.mk as bsd.port.options.mk
can test OSVERSION (less expensive)
- patch of Makefile was merged upstream so removed patch
PR: 185599
Submitted by: jgh@ (myself)
Approved by: maintainer timeout, jharris@widomaker.com ( 15 days )
- Fix reinstall/upgrade trying to use gmkdir since it
was detected during build [1]
- Mark MAKE_JOBS_UNSAFE:
help2man: can't get '--help' info from man/stty.td/stty
gmake[2]: *** [man/stty.1] Error 127
gmake[2]: *** Waiting for unfinished jobs....
PR: ports/173218 [1]
Submitted by: Jason Harris <jharris@widomaker.com> (maintainer) [1]
Feature safe: yes
- Rename gstat to gnustat; otherwise it collides with base gstat (for geom) [1]
- Correct REINPLACE for permissions; \+ is a special character in a BRE
PR: ports/160060
Submitted by: Veniamin Gvozdikov <g.veniamin@googlemail.com>
Reviewed by: Jason Hellenthal, wxs, eadler
Approved by: Jason Harris <jharris@widomaker.com> (maintainer)
- Introduce a new USE_XZ knob that handles lzma/xz compressed distfiles
- Convert a bunch of ports to use it
PR: ports/146329
Submitted by: mm
With hat: portmgr
Some utils link with gmp library if exists.
Add optional dependency on math/gmp and disable gmp support
properly when it's not needed.
PR: ports/146027
Reported by: Craig Leres <leres at ee.lbl.gov>
Fixup for my previous commit/patch.
- OSVERSION check should be against 800039 or higher, as that's when
the sgtty changes were committed.
http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/sys/param.h.diff?r1=1.355;r2=1.356;f=h
- Fix stty.c patch. Previous version would result in termios bits
being overridden by #include <sys/ioctl_compat.h>, causing coreutils'
stty to modify bits different than /bin/stty. This version removes
tab1/tab2 delay support, since tab1/tab2 delays aren't available in HEAD
outside of the binary compatibility interface. Also fixes stty --help
usage to indicate only tab0 and tab3 are available.
Fix-up for 8.0-CURRENT. src/stty.c fails to compile due to TAB1 and TAB2
termios bits being undefined. They've been moved to sys/ioctl_compat.h which
requires _KERNEL be defined. Somewhat of an ugly hack; possible alternative
would be to remove use of TAB1 and TAB2 in src/stty.c altogether.
Reported by: jsa @ EFnet
Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.
Specifically, newer autoconf (> 2.13) has different semantic of the
configure target. In short, one should use --build=CONFIGURE_TARGET
instead of CONFIGURE_TARGET directly. Otherwise, you will get a warning
and the old semantic may be removed in later autoconf releases.
To workaround this issue, many ports hack the CONFIGURE_TARGET variable
so that it contains the ``--build='' prefix.
To solve this issue, under the fact that some ports still have
configure script generated by the old autoconf, we use runtime detection
in the do-configure target so that the proper argument can be used.
Changes to Mk/*:
- Add runtime detection magic in bsd.port.mk
(Only the first 15 lines of the commit message are shown above )
Minor enhancement to sysutils/coreutils
Cleanup conflicts in this port (fileutils, sh-utils and
textutils don't exist anymore)
Provide a regression-test target to determine the convenience
of updating this port. Add commented USE_BISON line as it
is recommended but not required, maybe future versions will
need it.
Update the WWW.
No functional change.
PR: ports/124623
Submitted by: "Pedro F. Giffuni" <pfgshield-freebsd@yahoo.com>
Approved by: maintainer timeout
Bump portrevision due to upgrade of devel/gettext.
The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).
PR: ports/124340
Submitted by: edwin@
Approved by: portmgr (pav)
Work around the assumption that openat() implies the existence of
fdopendir(). FreeBSD 8 has the former, but not the latter.
PR: 122433
Approved by: maintainer
- Set --mandir and --infodir in CONFIGURE_ARGS if the configure script
supports them. This is determined by running ``configure --help'' in
do-configure target and set the shell variable _LATE_CONFIGURE_ARGS
which is then passed to CONFIGURE_ARGS.
- Remove --mandir and --infodir in ports' Makefile where applicable
Few ports use REINPLACE_CMD to achieve the same effect, remove them too.
- Correct some manual pages location from PREFIX/man to MANPREFIX/man
- Define INFO_PATH where necessary
- Document that .info files are installed in a subdirectory relative to
PREFIX/INFO_PATH and slightly change add-plist-info to use INFO_PATH and
subdirectory detection.
PR: ports/111470
Approved by: portmgr
Discussed with: stas (Mk/*), gerald (info related stuffs)
Tested by: pointyhat exp run
From the PR:
- Update to GNU coreutils 6.9
- Eliminate configure warning
- Sort plist
While I am here:
- Remove unsupported checksum algorithm SHA1 and RMD160
PR: ports/111489
Submitted by: "Eric P. Scott" <eps+pbug0704 AT ana.com>
Approved by: Jason Harris <jharris AT widomaker.com> (maintainer)
Remove USE_GPG from all effected ports. This knob is a no-op and the way it
was supposed to work is useless, because if we can't trust the distfile from
the remote machine, we can't trust the signature from the same machine either.
Our MD5 and SHA256 are good for checking both the sanity and the
trustiness of distfiles.
Approved by: portmgr (erwin), erwin (mentor)
Fix PLIST: It was not removing some locale dirs that are not listed on
BSD.local.dist
PR: ports/101477
Submitted by: Stanislav Sedov <ssedov@mbsd.msk.ru>
Approved by: maintainer timeout (16 days)
Clean up handling of locale directories at deinstall-time:
* Don't remove "system directories" (which were created by BSD.*.dist)
* Silently try to remove locale directories which we might have created
Add coreutils, port of basic GNU file, shell and text manipulation utilities.
This port replaces fileutils, shellutils and textutils, which were distributed
as three individual sets, but now have been combined into coreutils.
For more details, see http://www.gnu.org/software/coreutils/
PR: ports/59422
Submitted by: Jason Harris <jharris@widomaker.com>