Commit graph

272 commits

Author SHA1 Message Date
Emanuel Haupt
2c57eb307f shells/bash: Update to 5.1.8 2021-05-07 23:37:15 +02:00
Emanuel Haupt
a0fcd3d707 shells/bash:Prefix '/etc/inputrc' in bundled readline and documentation
Bundled readline now will use LOCALBASE/etc/inputrc as its ultimate
default inputrc file (instead of /etc/inputrc). This puts these ports in
line with what devel/readline has been doing recently (since 20210103).

PR:             255126
Submitted by:   olivier.freebsd@free.fr
2021-04-16 20:07:43 +02:00
Mathieu Arnold
305f148f48
Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
Neel Chauhan
2b01fc5e4f NEW PORT: shells/bashc: GNU Bourne Again shell extended with two-panel file manager
Bash Commander is a fork of GNU Bourne Again Shell. It's main feature is
a visual two-panel mode, much like Midnight Commander and other text-mode
visual shells.

WWW: https://github.com/sergev/bash-commander

Also add bashc to the CONFLICTS section of shells/bash.

PR:		253783, 253784
Submitted by:	Igor Pokrovsky <ip AT unixway DOT org>
2021-03-03 23:09:48 +00:00
Baptiste Daroussin
dd57d39c94 Enforce using libncursesw like the rest of the ports
The whole ports tree has been enforced on libncursesw (widechar) version for a while.
With the exception of a few ports including bash.

This is even more problematic in the case of bash because it links to libreadline which is
linked to libncursesw.so
2021-01-07 13:22:20 +00:00
Emanuel Haupt
890b1d3811 Update to 5.1.4 2020-12-19 21:10:41 +00:00
Emanuel Haupt
1e31e4f21b Patch committed in r557806 makes this parallel build safe again. 2020-12-12 11:34:56 +00:00
Emanuel Haupt
65828d7b4d In some cases bash fails to build parallel make jobs. Provide a patch.
[1] https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c2ebbf4b8bc660beb98cc2d845c73375d6e4f50

PR:		251755
Reported by:	mikael, freebsd@bengrimm.net, jakob@grimstveit.no
Submitted by:	rcarter@pinyon.org
Obtained from:	gentoo [1]
2020-12-12 09:58:19 +00:00
Piotr Kubaj
63b3d200c4 shells/bash: workaround build failure with -j32
Set MAKE_JOBS_UNSAFE=yes:
bashline.c:65:10: fatal error: 'builtins/builtext.h' file not found
2020-12-12 02:33:20 +00:00
Emanuel Haupt
a36bb63f83 Update to 5.1
Release notes:	https://lists.gnu.org/archive/html/info-gnu/2020-12/msg00003.html
2020-12-09 17:12:22 +00:00
Emanuel Haupt
b83961e1e3 Update manual page to refer to ${LOCALBASE}/etc/profile instead of /etc/profile.
See also ports/UPDATING (entry 20200716).

PR:		248805 (based on)
Submitted by:	0mp
2020-08-24 19:03:08 +00:00
Emanuel Haupt
f95000d408 Cleanly decouple bash from base by reading profile from $LOCALBASE/etc/
instead of from /etc.

Document this change in UPDATING and provide a migration strategy.

PR:		247934 (based on)
Submitted by:	Michael Osipov <michael.osipov@siemens.com>
2020-07-16 17:14:53 +00:00
Emanuel Haupt
62b3240624 Bash comes with a bundled version of libreadline and compiled with. Start using
devel/readline by default but provide an option to keep using the bundled one.

PR:		247932 (based on)
Submitted by:	Michael Osipov <michael.osipov@siemens.com>
2020-07-15 06:11:45 +00:00
Emanuel Haupt
42bd830fab Update to 5.0.18
Changelog:	http://ftp.gnu.org/gnu/bash/bash-5.0-patches/bash50-018
2020-07-11 14:22:40 +00:00
Emanuel Haupt
3aa8bfb3a8 Update to 5.0.17 2020-04-24 17:23:01 +00:00
Emanuel Haupt
dcf6847c94 Update to 5.0.16 2020-02-10 19:57:49 +00:00
Emanuel Haupt
bd36ec12f7 Update to 5.0.11 2019-08-30 05:13:23 +00:00
Emanuel Haupt
9a4734de8f Update to 5.0.9 2019-08-17 08:27:28 +00:00
Mathieu Arnold
bc89cd3d2c Convert to UCL & cleanup pkg-message (categories s) 2019-08-14 12:16:12 +00:00
Emanuel Haupt
83f5d1af42 Update to 5.0.7 2019-04-21 18:27:08 +00:00
Emanuel Haupt
17fd02e8f6 Update to 5.0.3 2019-03-20 10:09:57 +00:00
Emanuel Haupt
aa878105d8 Do not attempt to build 'loadables' in the install target when the static build
option is selected.

Loadables will not build statically. The upstream makefile handles this by
ignoring a non-zero exit status by prefixing the build instruction with a minus.
Nevertheless this causes plenty of confusion among our user base.

No PORTREVISION bump as this is a NOOP.
2019-02-21 09:32:08 +00:00
Emanuel Haupt
5ebe8e567a Update to 5.0.2 2019-01-19 17:25:02 +00:00
Emanuel Haupt
c2cb5922fc Properly fix broken man pages by removing unsupported characters.
PR:		234992 (based on)
Reviewed by:	bapt
Reported by:	bapt
2019-01-16 16:14:06 +00:00
Emanuel Haupt
24ef4acdf0 Mandoc'ify man pages to avoid dependency to groff.
PR:		234992 (based on)
Submitted by:	sakisp@gmail.com
2019-01-16 13:59:30 +00:00
Emanuel Haupt
848b794ff2 Update to 5.0
PR:		234827
Exp-run by:	antoine
2019-01-15 21:11:14 +00:00
Baptiste Daroussin
7990f81066 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
2018-11-10 18:12:57 +00:00
Emanuel Haupt
995181be7c - Update to 4.4.23
- Pass -Wl,-export-dynamic to LDFLAGS instead of CFLAGS in order to avoid warning:
  cc: warning: -Wl,-export-dynamic: 'linker' input unused [-Wunused-command-line-argument]
2018-06-02 07:08:16 +00:00
Emanuel Haupt
2e0f57ae91 - Update to patchlevel 19
- Simplify MASTER_SITES [1]

Submitted by:	gerald (via mail) [1]
2018-02-10 08:31:00 +00:00
Kirill Ponomarev
f2bf703bec Set LLD_UNSAFE=yes that the port will continue to link with ld.bfd
if /usr/bin/ld is lld, until the issue can be addressed.

PR:		214864
Approved by:	portmgr (LLD_UNSAFE blanket)
Sponsored by:	The FreeBSD Foundation
2018-01-07 18:54:47 +00:00
Emanuel Haupt
83b393bb52 Provide an option to enable system-wide rc files.
This enables:

  - System-wide .bashrc file for interactive shells
    ${PREFIX}/etc/bash.bashrc

  - System-wide .bash_logout for login shells
    ${PREFIX}/etc/bash.bash_logout

PR:		222973
Submitted by:	ilyushkeane@gmail.com
2017-10-29 11:37:06 +00:00
Emanuel Haupt
70698bb3fa Update WWW, current URL is a permanent redirect. 2017-04-27 19:35:25 +00:00
Emanuel Haupt
a781072372 Make bash use of fdescfs use optional, disabled by default, and forced off when
disabled.

This allows users to avoid mounting an extra FS that we don't enable by default.

Only display pkg-message with fdescfs instructions when option is enabled.

Submitted by:	swills
Differential Revision:	https://reviews.freebsd.org/D10394
2017-04-22 12:39:10 +00:00
Emanuel Haupt
4cb2ee99e3 Default path includes the string %%LOCALBASE%%. This was intended to be replaced
with the real value of LOCALBASE by the port Makefile at some point, but it
isn't at the moment.

Set this value in the Makefile by defining CPPFLAGS accordingly.

PR:             217451
Submitted by:   Dan McGregor <dan.mcgregor@usask.ca>
MFH:            2017Q1 (blanket)
2017-03-01 15:19:06 +00:00
Emanuel Haupt
673874ad03 The late mount option is required for systems with a seperate boot partition
(e.g. systems with an encrypted root partition) where it is impossible for the
fdescfs module to be autoloaded when /boot/kernel isn't available yet. Change
pkg-message accordingly.

Also change 'fdesc' mount point name to 'fdescfs' to simplify things: this way
'mount fdescfs' will work just as fine as 'umount fdescfs'. The less things to
remember - the better it is.

PR:		216985
Submitted by:	John Smith <godevilove@ya.ru>
2017-02-11 13:11:58 +00:00
Emanuel Haupt
6bbacfbe18 Rectify license 2017-02-03 13:24:53 +00:00
Emanuel Haupt
283ff92a46 Update to 4.4.12
Changelog:

Fixes a bug. When -N is used, the input is not supposed to be split
using $IFS, but leading and trailing IFS whitespace was still removed.

MFH:		2017Q1
2017-01-28 04:41:44 +00:00
Emanuel Haupt
93f2d182cb Update to 4.4.11
Changelog:

Under certain circumstances, bash will evaluate arithmetic expressions as
part of reading an expression token even when evaluation is suppressed. This
happens while evaluating a conditional expression and skipping over the
failed branch of the expression.

There is a race condition in add_history() that can be triggered by a fatal
signal arriving between the time the history length is updated and the time
the history list update is completed. A later attempt to reference an
invalid history entry can cause a crash.

Depending on compiler optimizations and behavior, the `read' builtin may not
save partial input when a timeout occurs.

Subshells begun to run command and process substitutions may attempt to
set the terminal's process group to an incorrect value if they receive
a fatal signal.  This depends on the behavior of the process that starts
the shell.

MFH:		2017Q1
2017-01-22 21:06:11 +00:00
Emanuel Haupt
e397b8a6d9 Update to 4.4.7
Changelog:

- Out-of-range negative offsets to popd can cause the shell to crash attempting
  to free an invalid memory block.
- When performing filename completion, bash dequotes the directory name being
  completed, which can result in match failures and potential unwanted
  expansion.

MFH:		2017Q1
2017-01-20 06:30:26 +00:00
Emanuel Haupt
27b2526ee8 Re-use PATCH_SITES for cklatest target instead of hardcoding. 2016-11-21 11:29:05 +00:00
Emanuel Haupt
e8c5a8907b Update to 4.4.5 2016-11-20 07:05:36 +00:00
Emanuel Haupt
ac46fd3765 Update to 4.4
Differential Revision:  https://reviews.freebsd.org/D8085
2016-09-30 17:19:50 +00:00
Emanuel Haupt
14354397ff Update cklatest-host. Old one returns permission denied. 2016-09-10 10:21:05 +00:00
Mathieu Arnold
f7e05824e6 Fix build on FreeBSD 9 WITHOUT=NLS.
Sponsored by:	Absolight
2016-07-04 14:07:14 +00:00
Emanuel Haupt
ab750f3abc Remove stray ICONV patch that breaks unicode support if NLS is disabled.
PR:             210654
Submitted by:   yuri@rawbw.com
2016-06-28 11:56:03 +00:00
Emanuel Haupt
75b1a2a76b [1] Make USES=iconv permanent, instead of being only for NLS=on case.
The reason is that NLS is related to message translations to different
    languages.

    And bash has the general feature that \uNNNN is translated into the unicode
    character using iconv. This is unicode support, and should have nothing to
    do with translations.

    bash also currently has a bug that --disable-nls causes it to fail to find
    iconv. This bug has been reported upstream to bash-devel ML. In the future,
    when bash will fix this, this will make a difference.

    Note that this uses iconv from libc.

[2] Update to 4.3.46

PR:             206903 [1], 210620 [2]
Submitted by:   yuri@rawbw.com [1], pkubaj@anongoth.pl [2]
Discussed with: adamw
2016-06-28 07:28:01 +00:00
Dmitry Marakasov
c86e9d9724 Remove NLS, DOCS, EXAMPLES and IPV6 from OPTIONS_DEFAULT, they are enabled by default anyway and don't need to be listed
Approved by:	portmgr blanket
2016-05-23 20:35:01 +00:00
Dmitry Marakasov
1f8b48b772 - Fix trailing whitespace in pkg-descrs, categories [p-x]*
Approved by:	portmgr blanket
2016-05-19 10:53:05 +00:00
Emanuel Haupt
c43a81c6fc The latest patch (42) has been slightly adjusted. See the following diff:
--- diff begins here ---
--- /usr/distfiles/bash.old/bash43-042	2015-08-13 21:41:06.000000000 +0200
+++ /usr/distfiles/bash/bash43-042	2015-12-01 22:57:39.000000000 +0100
@@ -27,7 +27,7 @@
 + 		lex_rwlen = 0;
   	    }
   	}
-*** ../bash-4.3-patched/parse.y	2015-05-18 19:27:05.000000000 -0400
+*** ../bash-4.3-patched/y.tab.c	2015-05-18 19:27:05.000000000 -0400
 --- y.tab.c	2015-06-29 10:59:27.000000000 -0400
 ***************
 *** 6021,6024 ****
--- diff ends here ---

Notified by:	many
2015-12-06 11:45:53 +00:00
Emanuel Haupt
70ddfde405 Update to 4.3.42 2015-08-14 14:10:19 +00:00