Import buildroot 2016.02.01
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
Upstream-Status: Pending
|
||||
|
||||
coreutils: fix for dummy-man usage
|
||||
|
||||
The options should be before the final argument, otherwise, the following error
|
||||
would appear when compiling.
|
||||
|
||||
"dummy-man: too many non-option arguments"
|
||||
|
||||
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
|
||||
[Gustavo: update for 8.24]
|
||||
|
||||
diff -Nura coreutils-8.24.orig/man/local.mk coreutils-8.24/man/local.mk
|
||||
--- coreutils-8.24.orig/man/local.mk 2015-07-04 11:23:47.190503631 -0300
|
||||
+++ coreutils-8.24/man/local.mk 2015-07-04 11:24:25.046741090 -0300
|
||||
@@ -186,8 +186,8 @@
|
||||
&& $(run_help2man) \
|
||||
--source='$(PACKAGE_STRING)' \
|
||||
--include=$(srcdir)/man/$$name.x \
|
||||
- --output=$$t/$$name.1 \
|
||||
--info-page='\(aq(coreutils) '$$name' invocation\(aq' \
|
||||
+ --output=$$t/$$name.1 \
|
||||
$$t/$$argv$(EXEEXT) \
|
||||
&& sed \
|
||||
-e 's|$*\.td/||g' \
|
||||
19
firmware/buildroot/package/coreutils/Config.in
Normal file
19
firmware/buildroot/package/coreutils/Config.in
Normal file
@@ -0,0 +1,19 @@
|
||||
config BR2_PACKAGE_COREUTILS
|
||||
bool "coreutils"
|
||||
depends on BR2_USE_WCHAR
|
||||
depends on BR2_USE_MMU # fork()
|
||||
help
|
||||
All of the basic file/text/shell utilities. These are the
|
||||
core utilities which are expected to exist on every system.
|
||||
BusyBox implements many of the most common.
|
||||
|
||||
Things like:
|
||||
- chmod, cp, dd, dir, ls, etc...
|
||||
- sort, tr, head, tail, wc, etc...
|
||||
- whoami, who, etc...
|
||||
|
||||
http://www.gnu.org/software/coreutils/
|
||||
|
||||
comment "coreutils needs a toolchain w/ wchar"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_USE_WCHAR
|
||||
2
firmware/buildroot/package/coreutils/coreutils.hash
Normal file
2
firmware/buildroot/package/coreutils/coreutils.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
sha256 31e67c057a5b32a582f26408c789e11c2e8d676593324849dcf5779296cdce87 coreutils-8.25.tar.xz
|
||||
128
firmware/buildroot/package/coreutils/coreutils.mk
Normal file
128
firmware/buildroot/package/coreutils/coreutils.mk
Normal file
@@ -0,0 +1,128 @@
|
||||
################################################################################
|
||||
#
|
||||
# coreutils
|
||||
#
|
||||
################################################################################
|
||||
|
||||
COREUTILS_VERSION = 8.25
|
||||
COREUTILS_SITE = $(BR2_GNU_MIRROR)/coreutils
|
||||
COREUTILS_SOURCE = coreutils-$(COREUTILS_VERSION).tar.xz
|
||||
COREUTILS_LICENSE = GPLv3+
|
||||
COREUTILS_LICENSE_FILES = COPYING
|
||||
|
||||
# coreutils-01-fix-for-dummy-man-usage.patch triggers autoreconf on build
|
||||
COREUTILS_AUTORECONF = YES
|
||||
COREUTILS_GETTEXTIZE = YES
|
||||
|
||||
COREUTILS_CONF_OPTS = --disable-rpath --enable-single-binary=shebangs \
|
||||
$(if $(BR2_TOOLCHAIN_USES_MUSL),--with-included-regex)
|
||||
COREUTILS_CONF_ENV = ac_cv_c_restrict=no \
|
||||
ac_cv_func_chown_works=yes \
|
||||
ac_cv_func_euidaccess=no \
|
||||
ac_cv_func_fstatat=yes \
|
||||
ac_cv_func_getdelim=yes \
|
||||
ac_cv_func_getgroups=yes \
|
||||
ac_cv_func_getgroups_works=yes \
|
||||
ac_cv_func_getloadavg=no \
|
||||
ac_cv_func_lstat_dereferences_slashed_symlink=yes \
|
||||
ac_cv_func_lstat_empty_string_bug=no \
|
||||
ac_cv_func_strerror_r_char_p=no \
|
||||
ac_cv_func_strnlen_working=yes \
|
||||
ac_cv_func_strtod=yes \
|
||||
ac_cv_func_working_mktime=yes \
|
||||
ac_cv_have_decl_strerror_r=yes \
|
||||
ac_cv_have_decl_strnlen=yes \
|
||||
ac_cv_lib_getloadavg_getloadavg=no \
|
||||
ac_cv_lib_util_getloadavg=no \
|
||||
ac_fsusage_space=yes \
|
||||
ac_use_included_regex=no \
|
||||
am_cv_func_working_getline=yes \
|
||||
fu_cv_sys_stat_statfs2_bsize=yes \
|
||||
gl_cv_func_getcwd_null=yes \
|
||||
gl_cv_func_getcwd_path_max=yes \
|
||||
gl_cv_func_gettimeofday_clobber=no \
|
||||
gl_cv_func_fstatat_zero_flag=no \
|
||||
gl_cv_func_link_follows_symlink=no \
|
||||
gl_cv_func_re_compile_pattern_working=yes \
|
||||
gl_cv_func_svid_putenv=yes \
|
||||
gl_cv_func_tzset_clobber=no \
|
||||
gl_cv_func_working_mkstemp=yes \
|
||||
gl_cv_func_working_utimes=yes \
|
||||
gl_getline_needs_run_time_check=no \
|
||||
gl_cv_have_proc_uptime=yes \
|
||||
utils_cv_localtime_cache=no \
|
||||
PERL=missing \
|
||||
MAKEINFO=true
|
||||
|
||||
COREUTILS_BIN_PROGS = cat chgrp chmod chown cp date dd df dir echo false \
|
||||
ln ls mkdir mknod mv pwd rm rmdir vdir sleep stty sync touch true \
|
||||
uname join
|
||||
|
||||
# If both coreutils and busybox are selected, make certain coreutils
|
||||
# wins the fight over who gets to have their utils actually installed.
|
||||
ifeq ($(BR2_PACKAGE_BUSYBOX),y)
|
||||
COREUTILS_DEPENDENCIES = busybox
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ACL),y)
|
||||
COREUTILS_DEPENDENCIES += acl
|
||||
else
|
||||
COREUTILS_CONF_OPTS += --disable-acl
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ATTR),y)
|
||||
COREUTILS_DEPENDENCIES += attr
|
||||
else
|
||||
COREUTILS_CONF_OPTS += --disable-xattr
|
||||
endif
|
||||
|
||||
# It otherwise fails to link properly, not mandatory though
|
||||
ifeq ($(BR2_PACKAGE_GETTEXT),y)
|
||||
COREUTILS_CONF_OPTS += --with-libintl-prefix=$(STAGING_DIR)/usr
|
||||
COREUTILS_DEPENDENCIES += gettext
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_GMP),y)
|
||||
COREUTILS_DEPENDENCIES += gmp
|
||||
else
|
||||
COREUTILS_CONF_OPTS += --without-gmp
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBCAP),y)
|
||||
COREUTILS_DEPENDENCIES += libcap
|
||||
else
|
||||
COREUTILS_CONF_OPTS += --disable-libcap
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
COREUTILS_CONF_OPTS += --with-openssl=yes
|
||||
COREUTILS_DEPENDENCIES += openssl
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_ROOTFS_MERGED_USR),)
|
||||
define COREUTILS_CLEANUP_BIN
|
||||
# some things go in root rather than usr
|
||||
for f in $(COREUTILS_BIN_PROGS); do \
|
||||
mv -f $(TARGET_DIR)/usr/bin/$$f $(TARGET_DIR)/bin/$$f || exit 1; \
|
||||
done
|
||||
endef
|
||||
COREUTILS_POST_INSTALL_TARGET_HOOKS += COREUTILS_CLEANUP_BIN
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
COREUTILS_CONF_OPTS += --enable-no-install-program=stdbuf
|
||||
endif
|
||||
|
||||
define COREUTILS_CLEANUP
|
||||
# link for archaic shells
|
||||
ln -fs test $(TARGET_DIR)/usr/bin/[
|
||||
# gnu thinks chroot is in bin, debian thinks it's in sbin
|
||||
mv -f $(TARGET_DIR)/usr/bin/chroot $(TARGET_DIR)/usr/sbin/chroot
|
||||
endef
|
||||
|
||||
COREUTILS_POST_INSTALL_TARGET_HOOKS += COREUTILS_CLEANUP
|
||||
|
||||
# If both coreutils and busybox are selected, the corresponding applets
|
||||
# may need to be reinstated by the clean targets.
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user