2014-08-08 17:43:37 +00:00
|
|
|
#
|
2015-05-22 05:16:26 +00:00
|
|
|
# Copyright (C) 2007-2015 OpenWrt.org
|
2014-08-08 17:43:37 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=bash
|
2023-01-20 03:43:58 +00:00
|
|
|
PKG_VERSION:=5.2.15
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 16:32:27 +00:00
|
|
|
PKG_RELEASE:=1
|
2014-08-08 17:43:37 +00:00
|
|
|
|
2018-04-01 10:02:15 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2014-08-08 17:43:37 +00:00
|
|
|
PKG_SOURCE_URL:=@GNU/bash
|
2023-01-20 03:43:58 +00:00
|
|
|
PKG_HASH:=13720965b5f4fc3a0d4b61dd37e7565c741da9a5be24edc2ae00182fc1b3588c
|
2014-08-08 17:43:37 +00:00
|
|
|
|
2020-12-08 09:21:07 +00:00
|
|
|
PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>
|
2019-09-02 13:15:08 +00:00
|
|
|
PKG_LICENSE:=GPL-3.0-or-later
|
2014-08-08 23:24:34 +00:00
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2019-09-12 12:13:21 +00:00
|
|
|
PKG_CPE_ID:=cpe:/a:gnu:bash
|
2014-08-08 23:24:34 +00:00
|
|
|
|
2018-04-01 10:02:15 +00:00
|
|
|
PKG_INSTALL:=1
|
2020-12-08 09:21:07 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2018-04-01 10:02:15 +00:00
|
|
|
|
2014-08-08 17:43:37 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/bash
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2016-10-23 15:50:14 +00:00
|
|
|
SUBMENU:=Shells
|
2014-08-08 17:43:37 +00:00
|
|
|
TITLE:=The GNU Bourne Again SHell
|
2018-04-01 10:02:15 +00:00
|
|
|
DEPENDS:=+libncurses +libreadline
|
2014-08-08 17:43:37 +00:00
|
|
|
URL:=http://www.gnu.org/software/bash/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/bash/description
|
2014-08-08 19:51:58 +00:00
|
|
|
Bash is an sh-compatible command language interpreter that executes
|
|
|
|
commands read from the standard input or from a file. Bash also
|
|
|
|
incorporates useful features from the Korn and C shells (ksh and csh).
|
2014-08-08 17:43:37 +00:00
|
|
|
endef
|
|
|
|
|
2020-04-28 20:31:03 +00:00
|
|
|
define Package/bash/conffiles
|
|
|
|
/etc/bash.bashrc
|
|
|
|
/etc/bash.bash_logout
|
2021-11-11 08:21:08 +00:00
|
|
|
/etc/profile.d/sys_bashrc.sh
|
2020-04-28 20:31:03 +00:00
|
|
|
endef
|
|
|
|
|
2018-04-01 10:02:15 +00:00
|
|
|
# Bash detects and enables certain features by runtest simple piece of code
|
|
|
|
# which is not viable when doing cross compilation and default to no in many
|
|
|
|
# cases. Grep for 'cross.compil' in aclocal.m4 and config-bot.h for details
|
|
|
|
#
|
|
|
|
# bash_cv_job_control_missing: Job control is needed for bash to be used as the
|
|
|
|
# default shell
|
|
|
|
#
|
|
|
|
# bash_cv_getcwd_malloc: The replacement by bash does not work well with
|
|
|
|
# overlayfs. See "bash getcwd errors when running under OverlayFS"
|
|
|
|
# http://permalink.gmane.org/gmane.linux.embedded.yocto.general/25204
|
|
|
|
#
|
|
|
|
# bash_cv_dev_fd: The test is done on build system but OpenWrt currently does
|
|
|
|
# not have /dev/fd, it provides /proc/self/fd/ instead
|
|
|
|
#
|
|
|
|
# bash_cv_sys_named_pipes: Required for process substituion
|
|
|
|
CONFIGURE_VARS += \
|
|
|
|
ac_cv_rl_prefix="$(STAGING_DIR)/usr" \
|
2019-01-12 23:14:23 +00:00
|
|
|
ac_cv_rl_version="8.0" \
|
2018-04-01 10:02:15 +00:00
|
|
|
bash_cv_getcwd_malloc=yes \
|
|
|
|
bash_cv_job_control_missing=present \
|
|
|
|
bash_cv_dev_fd=whacky \
|
|
|
|
bash_cv_sys_named_pipes=present \
|
|
|
|
|
|
|
|
# The following are some other tests that cannot run when cross-compiling
|
|
|
|
CONFIGURE_VARS += \
|
|
|
|
bash_cv_func_sigsetjmp=present \
|
|
|
|
bash_cv_printf_a_format=yes \
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--with-curses \
|
|
|
|
--without-bash-malloc \
|
|
|
|
--bindir=/bin \
|
|
|
|
--disable-rpath \
|
2019-01-12 23:14:23 +00:00
|
|
|
--enable-direxpand-default \
|
|
|
|
--enable-job-control \
|
|
|
|
--enable-readline
|
2014-08-08 17:43:37 +00:00
|
|
|
|
|
|
|
define Package/bash/postinst
|
|
|
|
#!/bin/sh
|
2018-05-09 12:14:32 +00:00
|
|
|
grep -q bash "$${IPKG_INSTROOT}/etc/shells" || {
|
|
|
|
echo /bin/bash >> "$${IPKG_INSTROOT}/etc/shells"
|
|
|
|
echo /bin/rbash >> "$${IPKG_INSTROOT}/etc/shells"
|
|
|
|
}
|
2014-08-08 17:43:37 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/bash/install
|
|
|
|
$(INSTALL_DIR) $(1)/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/bash $(1)/bin/
|
2018-05-09 12:15:08 +00:00
|
|
|
$(LN) bash $(1)/bin/rbash
|
2020-04-28 20:31:03 +00:00
|
|
|
$(CP) ./files/* $(1)/
|
2014-08-08 17:43:37 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,bash))
|