mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
bash: remove package 'bash', add busybox shell, move inits and configs (we will see if this works :-)
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
18a28114d4
commit
32ba6fe666
@ -1,38 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
################################################################################
|
|
||||||
# This file is part of OpenELEC - http://www.openelec.tv
|
|
||||||
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv)
|
|
||||||
#
|
|
||||||
# This Program is free software; you can redistribute it and/or modify
|
|
||||||
# it under the terms of the GNU General Public License as published by
|
|
||||||
# the Free Software Foundation; either version 2, or (at your option)
|
|
||||||
# any later version.
|
|
||||||
#
|
|
||||||
# This Program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
|
||||||
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
||||||
# http://www.gnu.org/copyleft/gpl.html
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
. config/options $1
|
|
||||||
|
|
||||||
cd $PKG_BUILD
|
|
||||||
./configure --host=$TARGET_NAME \
|
|
||||||
--build=$HOST_NAME \
|
|
||||||
--prefix=/usr \
|
|
||||||
--bindir=/bin \
|
|
||||||
--with-gnu-ld \
|
|
||||||
--disable-job-control \
|
|
||||||
--without-bash-malloc \
|
|
||||||
--without-installed-readline \
|
|
||||||
--disable-nls \
|
|
||||||
--disable-rpath \
|
|
||||||
--with-gnu-ld \
|
|
||||||
|
|
||||||
make
|
|
@ -1,27 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
################################################################################
|
|
||||||
# This file is part of OpenELEC - http://www.openelec.tv
|
|
||||||
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv)
|
|
||||||
#
|
|
||||||
# This Program is free software; you can redistribute it and/or modify
|
|
||||||
# it under the terms of the GNU General Public License as published by
|
|
||||||
# the Free Software Foundation; either version 2, or (at your option)
|
|
||||||
# any later version.
|
|
||||||
#
|
|
||||||
# This Program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
|
||||||
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
||||||
# http://www.gnu.org/copyleft/gpl.html
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
. config/options $1
|
|
||||||
|
|
||||||
mkdir -p $INSTALL/bin
|
|
||||||
cp $PKG_BUILD/bash $INSTALL/bin
|
|
||||||
ln -sf bash $INSTALL/bin/sh
|
|
@ -1,36 +0,0 @@
|
|||||||
################################################################################
|
|
||||||
# This file is part of OpenELEC - http://www.openelec.tv
|
|
||||||
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv)
|
|
||||||
#
|
|
||||||
# This Program is free software; you can redistribute it and/or modify
|
|
||||||
# it under the terms of the GNU General Public License as published by
|
|
||||||
# the Free Software Foundation; either version 2, or (at your option)
|
|
||||||
# any later version.
|
|
||||||
#
|
|
||||||
# This Program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
|
||||||
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
||||||
# http://www.gnu.org/copyleft/gpl.html
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
PKG_NAME="bash"
|
|
||||||
PKG_VERSION="4.2"
|
|
||||||
PKG_REV="1"
|
|
||||||
PKG_ARCH="any"
|
|
||||||
PKG_LICENSE="GPL"
|
|
||||||
PKG_SITE="http://http://www.gnu.org/software/bash"
|
|
||||||
PKG_URL="http://ftp.gnu.org/gnu/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.gz"
|
|
||||||
PKG_DEPENDS=""
|
|
||||||
PKG_BUILD_DEPENDS="toolchain"
|
|
||||||
PKG_PRIORITY="required"
|
|
||||||
PKG_SECTION="system"
|
|
||||||
PKG_SHORTDESC="bash: Bourne Again Shell"
|
|
||||||
PKG_LONGDESC="Bash is the shell, or command language interpreter, that will appear in the GNU operating system. Bash is an sh-compatible shell that incorporates useful features from the Korn shell (ksh) and C shell (csh). It is intended to conform to the IEEE POSIX P1003.2/ISO 9945.2 Shell and Tools standard. It offers functional improvements over sh for both programming and interactive use. In addition, most sh scripts can be run by Bash without modification."
|
|
||||||
PKG_IS_ADDON="no"
|
|
||||||
|
|
||||||
PKG_AUTORECONF="no"
|
|
@ -1,15 +0,0 @@
|
|||||||
diff -Naur bash-4.2/execute_cmd.c bash-4.2.patch/execute_cmd.c
|
|
||||||
--- bash-4.2/execute_cmd.c 2011-02-09 23:32:25.000000000 +0100
|
|
||||||
+++ bash-4.2.patch/execute_cmd.c 2011-02-16 14:30:36.517222120 +0100
|
|
||||||
@@ -2202,7 +2202,11 @@
|
|
||||||
/* If the `lastpipe' option is set with shopt, and job control is not
|
|
||||||
enabled, execute the last element of non-async pipelines in the
|
|
||||||
current shell environment. */
|
|
||||||
+#if defined (JOB_CONTROL)
|
|
||||||
if (lastpipe_opt && job_control == 0 && asynchronous == 0 && pipe_out == NO_PIPE && prev > 0)
|
|
||||||
+#else
|
|
||||||
+ if (lastpipe_opt && asynchronous == 0 && pipe_out == NO_PIPE && prev > 0)
|
|
||||||
+#endif /* JOB_CONTROL */
|
|
||||||
{
|
|
||||||
lstdin = move_to_high_fd (0, 0, 255);
|
|
||||||
if (lstdin > 0)
|
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Automatically generated make config: don't edit
|
# Automatically generated make config: don't edit
|
||||||
# Busybox version: 1.18.3
|
# Busybox version: 1.18.3
|
||||||
# Wed Feb 9 14:13:22 2011
|
# Wed Feb 16 15:46:17 2011
|
||||||
#
|
#
|
||||||
CONFIG_HAVE_DOT_CONFIG=y
|
CONFIG_HAVE_DOT_CONFIG=y
|
||||||
|
|
||||||
@ -918,19 +918,19 @@ CONFIG_SV_DEFAULT_SERVICE_DIR=""
|
|||||||
#
|
#
|
||||||
# Shells
|
# Shells
|
||||||
#
|
#
|
||||||
# CONFIG_ASH is not set
|
CONFIG_ASH=y
|
||||||
# CONFIG_ASH_BASH_COMPAT is not set
|
CONFIG_ASH_BASH_COMPAT=y
|
||||||
# CONFIG_ASH_JOB_CONTROL is not set
|
CONFIG_ASH_JOB_CONTROL=y
|
||||||
# CONFIG_ASH_ALIAS is not set
|
CONFIG_ASH_ALIAS=y
|
||||||
# CONFIG_ASH_GETOPTS is not set
|
CONFIG_ASH_GETOPTS=y
|
||||||
# CONFIG_ASH_BUILTIN_ECHO is not set
|
CONFIG_ASH_BUILTIN_ECHO=y
|
||||||
# CONFIG_ASH_BUILTIN_PRINTF is not set
|
CONFIG_ASH_BUILTIN_PRINTF=y
|
||||||
# CONFIG_ASH_BUILTIN_TEST is not set
|
CONFIG_ASH_BUILTIN_TEST=y
|
||||||
# CONFIG_ASH_CMDCMD is not set
|
CONFIG_ASH_CMDCMD=y
|
||||||
# CONFIG_ASH_MAIL is not set
|
# CONFIG_ASH_MAIL is not set
|
||||||
# CONFIG_ASH_OPTIMIZE_FOR_SIZE is not set
|
CONFIG_ASH_OPTIMIZE_FOR_SIZE=y
|
||||||
# CONFIG_ASH_RANDOM_SUPPORT is not set
|
CONFIG_ASH_RANDOM_SUPPORT=y
|
||||||
# CONFIG_ASH_EXPAND_PRMT is not set
|
CONFIG_ASH_EXPAND_PRMT=y
|
||||||
# CONFIG_CTTYHACK is not set
|
# CONFIG_CTTYHACK is not set
|
||||||
# CONFIG_HUSH is not set
|
# CONFIG_HUSH is not set
|
||||||
# CONFIG_HUSH_BASH_COMPAT is not set
|
# CONFIG_HUSH_BASH_COMPAT is not set
|
||||||
@ -949,15 +949,15 @@ CONFIG_SV_DEFAULT_SERVICE_DIR=""
|
|||||||
# CONFIG_HUSH_EXPORT_N is not set
|
# CONFIG_HUSH_EXPORT_N is not set
|
||||||
# CONFIG_HUSH_MODE_X is not set
|
# CONFIG_HUSH_MODE_X is not set
|
||||||
# CONFIG_MSH is not set
|
# CONFIG_MSH is not set
|
||||||
# CONFIG_FEATURE_SH_IS_ASH is not set
|
CONFIG_FEATURE_SH_IS_ASH=y
|
||||||
# CONFIG_FEATURE_SH_IS_HUSH is not set
|
# CONFIG_FEATURE_SH_IS_HUSH is not set
|
||||||
CONFIG_FEATURE_SH_IS_NONE=y
|
# CONFIG_FEATURE_SH_IS_NONE is not set
|
||||||
# CONFIG_FEATURE_BASH_IS_ASH is not set
|
CONFIG_FEATURE_BASH_IS_ASH=y
|
||||||
# CONFIG_FEATURE_BASH_IS_HUSH is not set
|
# CONFIG_FEATURE_BASH_IS_HUSH is not set
|
||||||
CONFIG_FEATURE_BASH_IS_NONE=y
|
# CONFIG_FEATURE_BASH_IS_NONE is not set
|
||||||
# CONFIG_SH_MATH_SUPPORT is not set
|
CONFIG_SH_MATH_SUPPORT=y
|
||||||
# CONFIG_SH_MATH_SUPPORT_64 is not set
|
CONFIG_SH_MATH_SUPPORT_64=y
|
||||||
# CONFIG_FEATURE_SH_EXTRA_QUIET is not set
|
CONFIG_FEATURE_SH_EXTRA_QUIET=y
|
||||||
# CONFIG_FEATURE_SH_STANDALONE is not set
|
# CONFIG_FEATURE_SH_STANDALONE is not set
|
||||||
# CONFIG_FEATURE_SH_NOFORK is not set
|
# CONFIG_FEATURE_SH_NOFORK is not set
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ PKG_ARCH="any"
|
|||||||
PKG_LICENSE="GPL"
|
PKG_LICENSE="GPL"
|
||||||
PKG_SITE="http://www.busybox.net"
|
PKG_SITE="http://www.busybox.net"
|
||||||
PKG_URL="http://busybox.net/downloads/$PKG_NAME-$PKG_VERSION.tar.bz2"
|
PKG_URL="http://busybox.net/downloads/$PKG_NAME-$PKG_VERSION.tar.bz2"
|
||||||
PKG_DEPENDS="grep bash hdparm"
|
PKG_DEPENDS="grep hdparm"
|
||||||
PKG_BUILD_DEPENDS="toolchain busybox-hosttools"
|
PKG_BUILD_DEPENDS="toolchain busybox-hosttools"
|
||||||
PKG_PRIORITY="required"
|
PKG_PRIORITY="required"
|
||||||
PKG_SECTION="system"
|
PKG_SECTION="system"
|
||||||
|
@ -25,7 +25,7 @@ PKG_ARCH="any"
|
|||||||
PKG_LICENSE="GPL"
|
PKG_LICENSE="GPL"
|
||||||
PKG_SITE="http://www.openelec.tv/"
|
PKG_SITE="http://www.openelec.tv/"
|
||||||
PKG_URL=""
|
PKG_URL=""
|
||||||
PKG_DEPENDS="busybox bash dialog parted e2fsprogs syslinux flashrom"
|
PKG_DEPENDS="busybox dialog parted e2fsprogs syslinux flashrom"
|
||||||
PKG_BUILD_DEPENDS="toolchain"
|
PKG_BUILD_DEPENDS="toolchain"
|
||||||
PKG_PRIORITY="optional"
|
PKG_PRIORITY="optional"
|
||||||
PKG_SECTION="tools"
|
PKG_SECTION="tools"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user