Skip to content

Commit 86f82a1

Browse files
committed
add required scallop configure options and related wrapper script
These should be used externally to build with the options required by scallop otherwise it's unsupported when used for pkgcraft.
1 parent 684ce17 commit 86f82a1

2 files changed

Lines changed: 35 additions & 0 deletions

File tree

configure-scallop

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Configure bash using the required scallop options.
4+
5+
# change working directory to bash repo
6+
cd "$(dirname "${BASH_SOURCE[0]}")"
7+
8+
# load required configure options
9+
declare -a myconf
10+
while IFS= read -r line; do
11+
[[ -z ${line} || ${line} =~ ^# ]] && continue
12+
myconf+=( ${line} )
13+
done < configure-scallop-options
14+
15+
# configure using defined options
16+
./configure "${myconf[@]}"

configure-scallop-options

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# configure options required by scallop
2+
3+
--disable-readline
4+
--disable-history
5+
--disable-bang-history
6+
--disable-progcomp
7+
--without-bash-malloc
8+
--disable-mem-scramble
9+
--disable-net-redirections
10+
--disable-nls
11+
12+
# job control is required for $PIPESTATUS
13+
--enable-job-control
14+
15+
# enable restricted shell
16+
--enable-restricted
17+
18+
# enable scallop library
19+
--enable-library

0 commit comments

Comments
 (0)