mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] bash: Updated bash to release 4.3.30
@ 2015-03-03  9:20 carsten.schlote
  2015-03-03  9:34 ` Marc Kleine-Budde
  0 siblings, 1 reply; 5+ messages in thread
From: carsten.schlote @ 2015-03-03  9:20 UTC (permalink / raw)
  To: ptxdist; +Cc: Carsten Schlote

From: Carsten Schlote <schlote@vahanus.net>

systemd seems to use modern bash features like readarray, which is not
provided by version 3.2.48, which is packaged with ptxdist.

So I updated the bash package to a more recent bash version.

Config fragment was updated with actual configure arguments, so that bash
should be configurable similiar as for 3.2 version.

Signed-off-by: Carsten Schlote <schlote@vahanus.net>
---
 rules/bash.in   | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 rules/bash.make | 29 +++++++++++++++++-----
 2 files changed, 96 insertions(+), 7 deletions(-)

diff --git a/rules/bash.in b/rules/bash.in
index 8295ad5..b22a726 100644
--- a/rules/bash.in
+++ b/rules/bash.in
@@ -76,12 +76,48 @@ config BASH_BRACE
 	  to pathname expansion, but the filenames generated
 	  need not exist.
 
+config BASH_CASEMODATTR
+	bool
+	prompt "include case-modifying variable attributes"
+	depends on BASH
+
+config BASH_CASEMODEXP
+	bool
+	prompt "include case-modifying word expansions"
+	depends on BASH
+
+config BASH_CMDTIMING
+	bool
+	prompt "enable the time reserved word and command timing"
+	depends on BASH
+
 config BASH_CONDITIONAL
 	bool
 	default y
 	prompt "Enable the conditional command"
 	depends on BASH
 
+config BASH_CONDITIONAL_REGEX
+	bool
+	prompt "enable extended regular expression matching in conditional commands"
+	depends on BASH && BASH_CONDITIONAL
+
+config BASH_COPROCESSES
+	bool
+	default y
+	prompt "enable coprocess support and the coproc reserved word"
+	depends on BASH
+
+config BASH_DEBUGGER
+	bool
+	prompt "enable support for bash debugger"
+	depends on BASH
+
+config BASH_DIREXPDEFLT
+	bool
+	prompt "enable the direxpand shell option by default"
+	depends on BASH
+
 config BASH_DIRSTACK
 	bool
 	prompt "Enable builtins pushd/popd/dirs"
@@ -94,15 +130,36 @@ config BASH_DIRSTACK
 	   added to the list with the pushd command;
 	   the popd command removes entries from the list.
 
+config BASH_DISABLED_BUILDINS
+	bool
+	prompt "allow disabled builtins to still be invoked"
+	depends on BASH
+
+config BASH_DPARAN_ARITH
+	bool
+	default y
+	prompt "include ((...)) command"
+	depends on BASH
+
 config BASH_EXTPATTERN
 	bool
-#	default y
 	prompt "Include ksh-style extended pattern matching"
 	depends on BASH
 
+config BASH_EXTPATTERN_DEFLT
+	bool
+	prompt "force extended pattern matching to be enabled by default"
+	depends on BASH
+
+config BASH_GLOB_ASCIIRANGE_DEFLT
+	bool
+	prompt "force bracket range expressions in pattern matching to use the C locale by default"
+	depends on BASH
+
 config BASH_HELP
 	bool
 	prompt "Include the help builtin"
+	depends on BASH
 	help
 	  This builtin supports minimal help features inside bash
 
@@ -110,6 +167,7 @@ config BASH_CMDHISTORY
 	bool
 	prompt "Turn on command history"
 	default y
+	depends on BASH
 	help
 	  This enables command history features. The shell
 	  buffers commands in a ringbuffer, which can be listed,
@@ -120,10 +178,16 @@ config BASH_JOBS
 	bool
 	prompt "Enable job control features"
 	default y
+	depends on BASH
 	help
 	  This enables support for background jobs in bash.
 	  You can list the actual managed jobs by the "jobs" command.
 
+config BASH_MULTIBYTE
+	bool
+	prompt "enable multibyte characters if OS supports them"
+	default y
+
 config BASH_PROCSUBST
 	bool
 	prompt "Enable process substitution"
@@ -179,6 +243,14 @@ config BASH_SELECT
 	  Include the select builtin, which allows the generation of
 	  simple menus.
 
+config BASH_SEP_HELPFILES
+	bool
+	prompt "use external files for help builtin documentation"
+
+config BASH_SINGLE_HELPLINE
+	bool
+	prompt "store help documentation as a single string to ease translation"
+
 endif
 
 config BASH_GPROF
diff --git a/rules/bash.make b/rules/bash.make
index 18d59ea..238eb75 100644
--- a/rules/bash.make
+++ b/rules/bash.make
@@ -15,8 +15,8 @@ PACKAGES-$(PTXCONF_BASH) += bash
 #
 # Paths and names
 #
-BASH_VERSION	:= 3.2.48
-BASH_MD5	:= 338dcf975a93640bb3eaa843ca42e3f8
+BASH_VERSION	:= 4.3.30
+BASH_MD5	:= a27b3ee9be83bd3ba448c0ff52b28447
 BASH		:= bash-$(BASH_VERSION)
 BASH_SUFFIX	:= tar.gz
 BASH_URL	:= $(call ptx/mirror, GNU, bash/$(BASH).$(BASH_SUFFIX))
@@ -37,28 +37,45 @@ BASH_AUTOCONF	:= \
 	$(CROSS_AUTOCONF_ROOT) \
 	$(GLOBAL_LARGE_FILE_OPTION) \
 	--without-bash-malloc \
-	--disable-net-redirections \
 	--$(call ptx/endis, PTXCONF_BASH_SHLIKE)-minimal-config \
 	--$(call ptx/endis, PTXCONF_BASH_ALIASES)-alias \
 	--$(call ptx/endis, PTXCONF_BASH_ARITHMETIC_FOR)-arith-for-command \
 	--$(call ptx/endis, PTXCONF_BASH_ARRAY)-array-variables \
 	--$(call ptx/endis, PTXCONF_BASH_HISTORY)-bang-history \
 	--$(call ptx/endis, PTXCONF_BASH_BRACE)-brace-expansion \
+	--$(call ptx/endis, PTXCONF_BASH_CASEMODATTR)-casemod-attributes \
+	--$(call ptx/endis, PTXCONF_BASH_CASEMODEXP)-casemod-expansions \
+	--$(call ptx/endis, PTXCONF_BASH_CMDTIMING)-command-timing \
 	--$(call ptx/endis, PTXCONF_BASH_CONDITIONAL)-cond-command \
+	--$(call ptx/endis, PTXCONF_BASH_CONDITIONAL_REGEX)-cond-regexp \
+	--$(call ptx/endis, PTXCONF_BASH_COPROCESSES)-coprocesses \
+	--$(call ptx/endis, PTXCONF_BASH_DEBUGGER)-debugger \
+	--$(call ptx/endis, PTXCONF_BASH_DIREXPDEFLT)-direxpand-default \
 	--$(call ptx/endis, PTXCONF_BASH_DIRSTACK)-directory-stack \
+	--$(call ptx/endis, PTXCONF_BASH_DISABLED_BUILDINS)-disabled-builtins \
+	--$(call ptx/endis, PTXCONF_BASH_DPARAN_ARITH)-dparen-arithmetic \
 	--$(call ptx/endis, PTXCONF_BASH_EXTPATTERN)-extended-glob \
+	--$(call ptx/endis, PTXCONF_BASH_EXTPATTERN_DEFLT)-extended-glob-default \
+	--$(call ptx/endis, PTXCONF_BASH_GLOB_ASCIIRANGE_DEFLT)-glob-asciiranges-default \
 	--$(call ptx/endis, PTXCONF_BASH_HELP)-help-builtin \
 	--$(call ptx/endis, PTXCONF_BASH_CMDHISTORY)-history \
 	--$(call ptx/endis, PTXCONF_BASH_JOBS)-job-control \
+	--$(call ptx/endis, PTXCONF_BASH_MULTIBYTE)-multibyte \
+ 	--disable-net-redirections \
 	--$(call ptx/endis, PTXCONF_BASH_PROCSUBST)-process-substitution \
 	--$(call ptx/endis, PTXCONF_BASH_COMPLETION)-progcomp \
 	--$(call ptx/endis, PTXCONF_BASH_ESC)-prompt-string-decoding \
 	--$(call ptx/endis, PTXCONF_BASH_EDIT)-readline \
 	--$(call ptx/endis, PTXCONF_BASH_RESTRICTED)-restricted \
 	--$(call ptx/endis, PTXCONF_BASH_SELECT)-select \
-	--$(call ptx/endis, PTXCONF_BASH_GPROF)-profiling \
-	--$(call ptx/endis, PTXCONF_BASH_STATIC)-static-link \
-	--$(call ptx/endis, PTXCONF_BASH_CURSES)-curses
+	--$(call ptx/endis, PTXCONF_BASH_SEP_HELPFILES)-separate-helpfiles \
+	--$(call ptx/endis, PTXCONF_BASH_SINGLE_HELPLINE)-single-help-strings \
+ 	--$(call ptx/endis, PTXCONF_BASH_GPROF)-profiling \
+	--$(call ptx/endis, PTXCONF_BASH_STATIC)-static-link
+
+ifdef PTXCONF_BASH_CURSES
+BASH_AUTOCONF += --with-curses
+endif
 
 ifdef PTXCONF_BASH_JOBS
 BASH_ENV	+= bash_cv_job_control_missing=present
-- 
2.3.1


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ptxdist] [PATCH] bash: Updated bash to release 4.3.30
  2015-03-03  9:20 [ptxdist] [PATCH] bash: Updated bash to release 4.3.30 carsten.schlote
@ 2015-03-03  9:34 ` Marc Kleine-Budde
  2015-03-03 10:00   ` Carsten Schlote
  0 siblings, 1 reply; 5+ messages in thread
From: Marc Kleine-Budde @ 2015-03-03  9:34 UTC (permalink / raw)
  To: ptxdist; +Cc: Carsten Schlote


[-- Attachment #1.1: Type: text/plain, Size: 1555 bytes --]

On 03/03/2015 10:20 AM, carsten.schlote@gmx.net wrote:
> From: Carsten Schlote <schlote@vahanus.net>
> 
> systemd seems to use modern bash features like readarray, which is not
> provided by version 3.2.48, which is packaged with ptxdist.
> 
> So I updated the bash package to a more recent bash version.
> 
> Config fragment was updated with actual configure arguments, so that bash
> should be configurable similiar as for 3.2 version.
> 
> Signed-off-by: Carsten Schlote <schlote@vahanus.net>
> ---
>  rules/bash.in   | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
>  rules/bash.make | 29 +++++++++++++++++-----
>  2 files changed, 96 insertions(+), 7 deletions(-)
> 
> diff --git a/rules/bash.in b/rules/bash.in
> index 8295ad5..b22a726 100644
> --- a/rules/bash.in
> +++ b/rules/bash.in
> @@ -76,12 +76,48 @@ config BASH_BRACE
>  	  to pathname expansion, but the filenames generated
>  	  need not exist.
>  
> +config BASH_CASEMODATTR
> +	bool
> +	prompt "include case-modifying variable attributes"
> +	depends on BASH
        ^^^^^^^^^^^^^^^

Not needed, as the whole block is enclosed in an if BASH...endif
Otherwise looks good to me, however I'll let Michael look over this and
pick it up after his holidays.

Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ptxdist] [PATCH] bash: Updated bash to release 4.3.30
  2015-03-03  9:34 ` Marc Kleine-Budde
@ 2015-03-03 10:00   ` Carsten Schlote
  2015-03-03 10:29     ` Bruno Thomsen
  0 siblings, 1 reply; 5+ messages in thread
From: Carsten Schlote @ 2015-03-03 10:00 UTC (permalink / raw)
  To: ptxdist


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
On 03.03.2015 10:34, Marc Kleine-Budde wrote:
> +    depends on BASH
>         ^^^^^^^^^^^^^^^
>
> Not needed, as the whole block is enclosed in an if BASH...endif
> Otherwise looks good to me, however I'll let Michael look over this and
> pick it up after his holidays.
Maybe Michael could also have a look on the old patches for bash 3.2. I
don't know, if they are still needed or not.

I already collected some similar patches for systemd while trying to get
a full blown setup for some recent Atom platform with EFI firmware. It
works pretty nice, as it boots within 7 seconds with a rootfs on NFS and
the usual services running in the background.

Carsten

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
 
iEYEARECAAYFAlT1hkMACgkQapolUx0+VoE9IwCcDHCx2yCl6YkJ+3pkKjnttBK8
8JUAn3HHsoxD1s44TH7hklbGNIGM74PG
=6ZGa
-----END PGP SIGNATURE-----



-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ptxdist] [PATCH] bash: Updated bash to release 4.3.30
  2015-03-03 10:00   ` Carsten Schlote
@ 2015-03-03 10:29     ` Bruno Thomsen
  2015-03-03 10:54       ` Carsten Schlote
  0 siblings, 1 reply; 5+ messages in thread
From: Bruno Thomsen @ 2015-03-03 10:29 UTC (permalink / raw)
  To: ptxdist

> > Not needed, as the whole block is enclosed in an if BASH...endif 
> > Otherwise looks good to me, however I'll let Michael look over this 
> > and pick it up after his holidays.
> Maybe Michael could also have a look on the old patches for bash 3.2. I don't know, if they are still needed or not.

The patch series for Bash 3.2 was added by me to fix the Shellshock vulnerability.
All the fixes are included in Bash 4.3.30, so just delete the old patch series in v2.

/Bruno

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ptxdist] [PATCH] bash: Updated bash to release 4.3.30
  2015-03-03 10:29     ` Bruno Thomsen
@ 2015-03-03 10:54       ` Carsten Schlote
  0 siblings, 0 replies; 5+ messages in thread
From: Carsten Schlote @ 2015-03-03 10:54 UTC (permalink / raw)
  To: ptxdist

On 03.03.2015 11:29, Bruno Thomsen wrote:
>>> Not needed, as the whole block is enclosed in an if BASH...endif 
>>> Otherwise looks good to me, however I'll let Michael look over this 
>>> and pick it up after his holidays.
>> Maybe Michael could also have a look on the old patches for bash 3.2. I don't know, if they are still needed or not.
> The patch series for Bash 3.2 was added by me to fix the Shellshock vulnerability.
> All the fixes are included in Bash 4.3.30, so just delete the old patch series in v2.
>
> /Bruno
>
Hi Bruno,
thanks for the feedback and info.
Carsten

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-03-03 10:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-03  9:20 [ptxdist] [PATCH] bash: Updated bash to release 4.3.30 carsten.schlote
2015-03-03  9:34 ` Marc Kleine-Budde
2015-03-03 10:00   ` Carsten Schlote
2015-03-03 10:29     ` Bruno Thomsen
2015-03-03 10:54       ` Carsten Schlote

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox