Browse Source

Dimitar Zhekov <jimmy@is-vn.bg>:

bash:
- do not copy doc to docdir - auto-doc does that,
  and does it better (I compared the file lists)
  bash.conf: do not unpack bash-doc if no auto-doc, unneeded
- support the with-installed-readline option
  (ROCKCFG_PKG_BASH_INST_RLL) by (1) passing the confopt and
  (2) not linking bash to -lhistory if stage >= 2 (-lhistory
  is required for stage <= 1 because of "--disable-readline"
  and doesn't make any difference with the bash builtin
  readline because it's statically linked).
- dont-link-history.diff: what the name suggests, see .conf
bootdisk/config.in: lock with-installed-readline to 0.

For this option to work, readline-shared must be applied,
or the build will fail if ROCKCFG_PKG_BASH_INST_RLL=1.


git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@1493 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Dimitar Zhekov 21 years ago
parent
commit
b876962818
6 changed files with 36 additions and 5 deletions
  1. +4
    -0
      Documentation/Developers/CHANGELOG-RENE
  2. +7
    -3
      package/base/bash/bash.conf
  3. +8
    -2
      package/base/bash/config.hlp
  4. +1
    -0
      package/base/bash/config.in
  5. +15
    -0
      package/base/bash/dont-link-history.diff
  6. +1
    -0
      target/bootdisk/config.in

+ 4
- 0
Documentation/Developers/CHANGELOG-RENE

@ -1,4 +1,8 @@
*) 2003-09-26 (2.0.0-rc1 - 2.0.0-rc2)
- Dimitar Zhekov: bash use installed readline option
*) 2003-09-24 (2.0.0-rc1 - 2.0.0-rc2)
- Alejandro Mery: fixed python patch

+ 7
- 3
package/base/bash/bash.conf

@ -28,9 +28,10 @@ pkg_bash_postmake() {
mv -v $root/usr/bin/bash $root/bin/bash
ln -sfv bash $root/bin/sh
echo "Installing bash documentation ..."
tar $taropt $archdir/bash-doc-$pkg_bash_docver.tar.bz2
cp -rv doc/* $docdir
if [ "$ROCKCFG_CREATE_DOCS" != 0 ] ; then
echo "Unpacking bash documentation ..."
tar $taropt $archdir/bash-doc-$pkg_bash_docver.tar.bz2
fi
}
premake="cat /dev/null > lib/malloc/malloc.c"
@ -38,6 +39,9 @@ confopt="$confopt --without-gnu-malloc"
if [ $stagelevel -le 1 ] ; then
confopt="$confopt --disable-readline"
elif [ "$ROCKCFG_PKG_BASH_INST_RLL" = 1 ] ; then
preconf="patch -p0 < $confdir/dont-link-history.diff"
confopt="$confopt --with-installed-readline"
fi
[ "$ROCKCFG_PKG_BASH_PROGCOMP" = 0 ] && confopt="$confopt --disable-progcomp"
[ "$ROCKCFG_PKG_BASH_HELP_CMD" = 0 ] && confopt="$confopt --disable-help-builtin"

+ 8
- 2
package/base/bash/config.hlp

@ -33,5 +33,11 @@ ROCKCFG_PKG_BASH_HELP_CMD
Bourne Again Shell has builtin help for all internal commands. You
can disable this feature and reduce the size of bash by about 50KB,
but if your target contains no bash documentation, as for example
bootdisk, you will have no help for the shell commands. If you are
not terribly low of disk space, leave the builtin help enabled.
bootdisk, you will not have any help for the shell commands. If you
are not terribly low of disk space, leave the builtin help enabled.
ROCKCFG_PKG_BASH_INST_RLL
Build bash with the (already) installed readline library, not with
the one included in bash. Note that bash will be linked against the
shared readline library (if any), which will be moved from /usr/lib
to /lib. Don't change this option after readline has been build.

+ 1
- 0
package/base/bash/config.in

@ -24,5 +24,6 @@
menu_begin MENU_PKG_BASH 'Bash Options'
bool 'Enable programmable completion' ROCKCFG_PKG_BASH_PROGCOMP 1
bool 'Enable help builtin command' ROCKCFG_PKG_BASH_HELP_CMD 1
bool 'Build with installed readline' ROCKCFG_PKG_BASH_INST_RLL 0
menu_end

+ 15
- 0
package/base/bash/dont-link-history.diff

@ -0,0 +1,15 @@
--- ./Makefile.in.orig 2002-05-31 20:44:23.000000000 +0300
+++ ./Makefile.in 2003-09-22 14:53:13.000000000 +0300
@@ -340,10 +340,10 @@
$(BASHINCDIR)/shtty.h $(BASHINCDIR)/typemax.h \
$(BASHINCDIR)/ocache.h
-LIBRARIES = $(SHLIB_LIB) $(READLINE_LIB) $(HISTORY_LIB) $(TERMCAP_LIB) $(GLOB_LIB) \
+LIBRARIES = $(SHLIB_LIB) $(READLINE_LIB) $(TERMCAP_LIB) $(GLOB_LIB) \
$(TILDE_LIB) $(MALLOC_LIB) $(LOCAL_LIBS)
-LIBDEP = $(SHLIB_DEP) $(READLINE_DEP) $(HISTORY_DEP) $(TERMCAP_DEP) $(GLOB_DEP) \
+LIBDEP = $(SHLIB_DEP) $(READLINE_DEP) $(TERMCAP_DEP) $(GLOB_DEP) \
$(TILDE_DEP) $(MALLOC_DEP)
LIBRARY_LDFLAGS = $(READLINE_LDFLAGS) $(HISTORY_LDFLAGS) $(GLOB_LDFLAGS) \

+ 1
- 0
target/bootdisk/config.in

@ -77,6 +77,7 @@ ROCKCFGSET_DIETLIBC_iproute2=1
ROCKCFGSET_PKG_TERMCAP_USEIT=1
ROCKCFGSET_PKG_GCC3_NO_JAVA=1
ROCKCFGSET_PKG_BASH_PROGCOMP=0
ROCKCFGSET_PKG_BASH_INST_RLL=0
ROCKCFGSET_DO_REBUILD_STAGE=0
ROCKCFGSET_CREATE_DOCS=0

Loading…
Cancel
Save