2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2002-10-23 14:54:42 +02:00
|
|
|
#
|
|
|
|
# coreutils
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-11-13 23:27:58 +01:00
|
|
|
|
2014-03-29 17:49:03 +01:00
|
|
|
COREUTILS_VERSION = 8.22
|
2010-09-30 21:03:31 +02:00
|
|
|
COREUTILS_SITE = $(BR2_GNU_MIRROR)/coreutils
|
2011-11-13 23:27:58 +01:00
|
|
|
COREUTILS_SOURCE = coreutils-$(COREUTILS_VERSION).tar.xz
|
2013-01-21 12:29:42 +01:00
|
|
|
COREUTILS_LICENSE = GPLv3+
|
|
|
|
COREUTILS_LICENSE_FILES = COPYING
|
2002-10-23 14:54:42 +02:00
|
|
|
|
2014-02-11 15:25:21 +01:00
|
|
|
# patching gnulib .m4 file
|
|
|
|
COREUTILS_AUTORECONF = YES
|
2014-07-17 00:00:38 +02:00
|
|
|
COREUTILS_GETTEXTIZE = YES
|
2014-02-11 15:25:21 +01:00
|
|
|
|
2010-09-30 21:03:31 +02:00
|
|
|
# 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
|
2002-10-23 14:54:42 +02:00
|
|
|
|
2014-08-20 23:02:46 +02:00
|
|
|
COREUTILS_BIN_PROGS = cat chgrp chmod chown cp date dd df dir echo false \
|
2010-09-30 21:03:31 +02:00
|
|
|
ln ls mkdir mknod mv pwd rm rmdir vdir sleep stty sync touch true \
|
|
|
|
uname join
|
2002-10-23 14:54:42 +02:00
|
|
|
|
2010-09-30 21:03:32 +02:00
|
|
|
COREUTILS_CONF_ENV = ac_cv_c_restrict=no \
|
2005-08-15 14:52:38 +02:00
|
|
|
ac_cv_func_chown_works=yes \
|
|
|
|
ac_cv_func_euidaccess=no \
|
2011-11-13 23:27:58 +01:00
|
|
|
ac_cv_func_fstatat=yes \
|
2010-09-30 21:03:32 +02:00
|
|
|
ac_cv_func_getdelim=yes \
|
|
|
|
ac_cv_func_getgroups=yes \
|
|
|
|
ac_cv_func_getgroups_works=yes \
|
|
|
|
ac_cv_func_getloadavg=no \
|
2005-08-15 14:52:38 +02:00
|
|
|
ac_cv_func_lstat_dereferences_slashed_symlink=yes \
|
|
|
|
ac_cv_func_lstat_empty_string_bug=no \
|
2005-12-08 07:39:19 +01:00
|
|
|
ac_cv_func_strerror_r_char_p=no \
|
2010-09-30 21:03:32 +02:00
|
|
|
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 \
|
2005-12-08 07:39:19 +01:00
|
|
|
am_cv_func_working_getline=yes \
|
2010-09-30 21:03:32 +02:00
|
|
|
fu_cv_sys_stat_statfs2_bsize=yes \
|
2005-12-08 07:39:19 +01:00
|
|
|
gl_cv_func_getcwd_null=yes \
|
|
|
|
gl_cv_func_getcwd_path_max=yes \
|
2010-09-30 21:03:32 +02:00
|
|
|
gl_cv_func_gettimeofday_clobber=no \
|
2011-11-13 23:27:58 +01:00
|
|
|
gl_cv_func_fstatat_zero_flag=no \
|
2010-09-30 21:03:35 +02:00
|
|
|
gl_cv_func_link_follows_symlink=no \
|
2010-09-30 21:03:32 +02:00
|
|
|
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 \
|
2014-09-10 22:44:04 +02:00
|
|
|
gl_cv_have_proc_uptime=yes \
|
2013-12-02 11:49:25 +01:00
|
|
|
utils_cv_localtime_cache=no \
|
|
|
|
PERL=missing
|
2002-10-23 14:54:42 +02:00
|
|
|
|
2014-08-20 23:02:46 +02:00
|
|
|
COREUTILS_CONF_OPT = --disable-rpath
|
2002-10-23 14:54:42 +02:00
|
|
|
|
2010-09-30 21:03:31 +02:00
|
|
|
define COREUTILS_POST_INSTALL
|
2002-10-23 14:54:42 +02:00
|
|
|
# some things go in root rather than usr
|
2010-09-30 21:03:31 +02:00
|
|
|
for f in $(COREUTILS_BIN_PROGS); do \
|
2002-10-23 14:54:42 +02:00
|
|
|
mv $(TARGET_DIR)/usr/bin/$$f $(TARGET_DIR)/bin/$$f; \
|
|
|
|
done
|
|
|
|
# link for archaic shells
|
|
|
|
ln -fs test $(TARGET_DIR)/usr/bin/[
|
|
|
|
# gnu thinks chroot is in bin, debian thinks it's in sbin
|
|
|
|
mv $(TARGET_DIR)/usr/bin/chroot $(TARGET_DIR)/usr/sbin/chroot
|
2010-09-30 21:03:31 +02:00
|
|
|
endef
|
2002-10-23 14:54:42 +02:00
|
|
|
|
2010-09-30 21:03:31 +02:00
|
|
|
COREUTILS_POST_INSTALL_TARGET_HOOKS += COREUTILS_POST_INSTALL
|
2002-10-23 14:54:42 +02:00
|
|
|
|
2007-09-17 14:30:31 +02:00
|
|
|
# If both coreutils and busybox are selected, the corresponding applets
|
|
|
|
# may need to be reinstated by the clean targets.
|
2002-10-23 14:54:42 +02:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|