Commit graph

234 commits

Author SHA1 Message Date
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
Conrad Meyer
b621c53816 bash: Export symbols for "enable -f"
PR:		201959
Reviewed by:	ehaupt
Approved by:	markj (mentor)
Sponsored by:	EMC / Isilon Storage Division
Differential Revision:	https://reviews.freebsd.org/D3231
2015-07-30 18:50:18 +00:00
Emanuel Haupt
98468372e9 In addition to the previous commit also define USE_MKSTEMP=1 for a different
code section.

Notified by:	naddy
2015-07-10 08:11:23 +00:00
Emanuel Haupt
72451773c8 Scripts like https://github.com/henricj/scripts/blob/master/stir.sh often
generate a bunch of,
   cannot make pipe for process substitution: File exists
errors.

The problem lies with colliding pipe names.

The code in sh_mktmpname() in lib/sh/tmpfile.c uses a combination of things like
the current time, the PID, and an incrementing counter. Since the child PIDs
tend to be sequential (barring kern.randompid=1), there are collisions.

Fix this problem without rewriting upstream code by defining USE_MKTEMP=1 to
use the mktemp(3) code of bash.

FreeBSD's mktemp() is not nearly as bad as the bash default and isn't
brain-damaged like some platforms (which is likely why the bash code tries to
do it's own thing). In FreeBSD, "mktemp(3)" it uses arc4random to pick one of
62 symbols for each "X".

Submitted by:   Henric Jungheim <software@henric.org>
2015-07-09 05:47:32 +00:00
Emanuel Haupt
42a77ab07a Update to 4.3.39 2015-06-01 20:35:09 +00:00
Mathieu Arnold
88bfe4bd43 Cleanup DIST* variables.
When appropriate:
- Try to use DISTVERSION{SUF,PRE}FIX
- Replace PORTNAME-PORTVERSION by DISTNAME
- Convert MASTER_SITES to use macros
- Other light cleanup

With hat:	portmgr
Sponsored by:	Absolight
2015-05-11 18:34:57 +00:00
Emanuel Haupt
c73a7391d6 Ports should not change their pkgname depending on options. Change the way how
the slave port is handled.

PR:		197818
Submitted by:	mat
2015-02-19 15:59:54 +00:00
Emanuel Haupt
f10f721657 Update to 4.3.33 2015-01-15 19:10:54 +00:00
Tijl Coosemans
43271b33ff Bump PORTREVISION on shells that use gettext to force a package rebuild
and reinstall.  This should make the shells link with libintl.so.8 instead
of libintl.so.9 and should give package users a better chance of having a
working shell when something went wrong with the gettext update.
2014-12-02 17:42:22 +00:00
Emanuel Haupt
718c6f6753 Update to 4.3.30 2014-10-06 09:12:33 +00:00
Bryan Drewery
83874e3067 - Update to patchlevel 4.3.29.
This addresses the local crash from CVE-2014-6277. Note that
  the fixes applied in 4.3.25_2 (and upstream 4.3.27) already made
  this non-exploitable remotely.

  This makes 'bashcheck' [1] fully green now. It had a soft warning
  before for CVE-2014-6277.

[1] https://github.com/hannob/bashcheck
2014-10-03 17:57:32 +00:00
Bryan Drewery
e603aaff02 - Update to patchlevel 28 which fixes issues that were mostly addressed
already in r369684.
2014-10-02 00:22:12 +00:00
Bryan Drewery
207cf37bd3 Add RedHat's patch for CVE-2014-7186, commonly known as "redir_stack" overflow,
which has not been shown to be as critical as "shellshock" currently.

Security:	CVE-2014-7186
2014-10-01 03:35:12 +00:00
Bryan Drewery
62f9f87a4d - Update to patchlevel 27 which changes how functions are exported.
This should eliminate the recent vulnerabilities, but keep the
  requirement for --import-functions/IMPORTFUNCTIONS option for now.
- Loosen the --import-functions requirement so it is not needed when running
  an interactive shell. It is already disallowed for privileged/setuid mode.
- Show an error on stderr when an imported function is ignored.
2014-09-28 16:47:00 +00:00
Bryan Drewery
92e9f2e7d5 Update to patchlevel 26. This is a NOP as r369261 already covered it. 2014-09-26 21:29:20 +00:00
Bryan Drewery
8f93c11473 Disable function importing from the environment by default. This can be
enabled by using --import-functions or enabling the IMPORTFUNCTIONS option.

This removes the risk of further parser bugs leading to code execution, as
well as the risk to setuid scripts and poorly written applications that
do not cleanse their environment [1][2].

Also note that there is an unofficial 4.3.26 floating around that has not yet
been officially released.  r369261 covers the change in 4.3.26.

See also:
  http://seclists.org/oss-sec/2014/q3/747 [1]
  http://seclists.org/oss-sec/2014/q3/746 [2]
  http://seclists.org/oss-sec/2014/q3/755 [3]

Obtained from:	NetBSD (based on) [3]
PR:		193932
Reviewed by:	Eric Vangyzen
With hat:	portmgr
2014-09-26 20:33:23 +00:00
Bryan Drewery
627de1b0d7 Fix CVE-2014-3659. The original fix in 25 was not enough.
Obtained from:	http://seclists.org/oss-sec/2014/q3/690 (bash developer)
Security:	CVE-2014-3659
2014-09-25 15:38:56 +00:00
Emanuel Haupt
0fc68c9cab - Update to patch level 25 (4.3.25)
- Provide CPE information [1]

Provided by:    des
Notified by:	Chet Ramey <chet.ramey@case.edu>
2014-09-24 17:05:47 +00:00
Emanuel Haupt
979faff7c1 - Update to 4.3.24
- Don't attempt to remove directories owned by a dependency
2014-08-19 19:31:35 +00:00
Emanuel Haupt
30a7459d83 Update to 4.3.22 2014-08-01 16:14:07 +00:00
Baptiste Daroussin
663ea54e10 Fix build without texinfo in base 2014-06-25 12:22:55 +00:00
Baptiste Daroussin
2bacde9c3b Add an @shell keyword to handle adding and remove a shell path in /etc/shell
Bump port revision of all ports that were doing it wrong prior to the keyword

CR:		D208
Reviewed by:	antoine
With hat:	portmgr
2014-06-11 17:42:36 +00:00
Emanuel Haupt
677578d389 - Update to 4.3.18
- Port is sound enough to parallel build [1]

PR:		189207 [1]
Submitted by:	Jia-Shiun Li <jiashiun@gmail.com> [1]
2014-05-27 12:35:25 +00:00
Baptiste Daroussin
4a4ec28d37 Convert all :U to :tu and :L to :tl
Since FreeBSD 8.4 and FreeBSD 9.1 make(1) do support :tu and :tl as a
replacement for :U and :L (which has been marked as deprecated)

bmake which is the default on FreeBSD 10+ only support by default
:tu/:tl a hack has been added at the time to support :U and :L to ease
migration. This hack is now not necessary anymore

Note that this makes the ports tree incompatible with make(1) from
FreeBSD 8.3 or earlier

With hat:	portmgr
2014-05-05 09:45:36 +00:00
Emanuel Haupt
8dd26c8f51 bash does NOT require procfs mounted. 2014-04-22 17:09:54 +00:00
Emanuel Haupt
2c9bbf1dd0 Add an install message about the fact that fdescfs has to be present.
Discussed on:	ports@, amd64@
2014-04-22 09:20:56 +00:00
Emanuel Haupt
67c1d0f16e Update to 4.3.11 2014-04-17 10:31:37 +00:00
Emanuel Haupt
7bb20d28c7 Update to 4.3.8 2014-04-07 14:43:30 +00:00
Emanuel Haupt
c998374291 Now that we're at patchlevel 0 the current PORTVERSION definition has the effect
that we're at version "4.3.". Set PORTVERSION to 4.3.${PATCHLEVEL} until we have
the first patch released upstream. Also bump PORTREVISION to make sure all port
tools deal with this correctly.

Notified by:	"Matthew D. Fuller" <fullermd@over-yonder.net>
Discussed with:	kwm
2014-03-03 10:33:07 +00:00
Emanuel Haupt
a376a4c368 More indentation fixes, sorry for the noise. 2014-03-03 09:24:36 +00:00
Emanuel Haupt
be2efef113 Fix attribution (overwritten by previous merge)
Notified by:    kwm
2014-03-03 09:08:08 +00:00
Emanuel Haupt
03edf9b7fc - Reset maintainer of shells/bash, shells/bash-static
- Takeover maintainership
- Merge changes from shells/bash-devel this updates the port to 4.3
- Remove the now useless -devel ports
- Document change in ports/MOVED

Approved by:    portmgr (bapt)
2014-03-03 08:55:45 +00:00
Baptiste Daroussin
e04b632220 Fix properties on pkg-plist 2014-01-21 23:40:21 +00:00
Baptiste Daroussin
3454307094 Fix inconsistency in building bash
Ensure the configure script always activate the same features wether or not
fdescfs is mounted: Always consider /dev/fd as absent
Bump portrevision as packages on the cluster are built with fdescfs mounted.

With hat:	portmgr
Reported:	Derek Schrock (skered- via #poudriere)
2013-12-25 17:42:54 +00:00
Mathieu Arnold
56df0506f2 - Support staging
maintainer timeout.
PR:		ports/183196
Submitted by:	mat
2013-11-06 12:18:54 +00:00
Baptiste Daroussin
f6e6105ff8 Add NO_STAGE all over the place in preparation for the staging support (cat: shells) 2013-09-20 22:57:23 +00:00
Martin Wilke
75e6c1ee72 - Update to patchlevel 45
-

Requested by:	many
2013-05-25 13:55:46 +00:00
Baptiste Daroussin
ef5b0dd161 Fix bash-static slave ports with bash being now using new options framework 2013-05-05 08:39:30 +00:00
Baptiste Daroussin
8afe451198 Convert to new options framework
This fixes build with nls not correctly pulling in libintl given USES= gettext was set after pre.mk which is forbidden
2013-05-05 08:10:29 +00:00