coreutils.mk 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. ################################################################################
  2. #
  3. # coreutils
  4. #
  5. ################################################################################
  6. COREUTILS_VERSION = 8.21
  7. COREUTILS_SITE = $(BR2_GNU_MIRROR)/coreutils
  8. COREUTILS_SOURCE = coreutils-$(COREUTILS_VERSION).tar.xz
  9. COREUTILS_LICENSE = GPLv3+
  10. COREUTILS_LICENSE_FILES = COPYING
  11. # patching gnulib .m4 file
  12. COREUTILS_AUTORECONF = YES
  13. # If both coreutils and busybox are selected, make certain coreutils
  14. # wins the fight over who gets to have their utils actually installed.
  15. ifeq ($(BR2_PACKAGE_BUSYBOX),y)
  16. COREUTILS_DEPENDENCIES = busybox
  17. endif
  18. COREUTILS_BIN_PROGS = cat chgrp chmod chown cp date dd df dir echo false hostname \
  19. ln ls mkdir mknod mv pwd rm rmdir vdir sleep stty sync touch true \
  20. uname join
  21. COREUTILS_CONF_ENV = ac_cv_c_restrict=no \
  22. ac_cv_func_chown_works=yes \
  23. ac_cv_func_euidaccess=no \
  24. ac_cv_func_fstatat=yes \
  25. ac_cv_func_getdelim=yes \
  26. ac_cv_func_getgroups=yes \
  27. ac_cv_func_getgroups_works=yes \
  28. ac_cv_func_getloadavg=no \
  29. ac_cv_func_lstat_dereferences_slashed_symlink=yes \
  30. ac_cv_func_lstat_empty_string_bug=no \
  31. ac_cv_func_strerror_r_char_p=no \
  32. ac_cv_func_strnlen_working=yes \
  33. ac_cv_func_strtod=yes \
  34. ac_cv_func_working_mktime=yes \
  35. ac_cv_have_decl_strerror_r=yes \
  36. ac_cv_have_decl_strnlen=yes \
  37. ac_cv_lib_getloadavg_getloadavg=no \
  38. ac_cv_lib_util_getloadavg=no \
  39. ac_fsusage_space=yes \
  40. ac_use_included_regex=no \
  41. am_cv_func_working_getline=yes \
  42. fu_cv_sys_stat_statfs2_bsize=yes \
  43. gl_cv_func_getcwd_null=yes \
  44. gl_cv_func_getcwd_path_max=yes \
  45. gl_cv_func_gettimeofday_clobber=no \
  46. gl_cv_func_fstatat_zero_flag=no \
  47. gl_cv_func_link_follows_symlink=no \
  48. gl_cv_func_re_compile_pattern_working=yes \
  49. gl_cv_func_svid_putenv=yes \
  50. gl_cv_func_tzset_clobber=no \
  51. gl_cv_func_working_mkstemp=yes \
  52. gl_cv_func_working_utimes=yes \
  53. gl_getline_needs_run_time_check=no \
  54. utils_cv_localtime_cache=no \
  55. PERL=missing
  56. COREUTILS_CONF_OPT = --disable-rpath \
  57. --disable-dependency-tracking \
  58. --enable-install-program=hostname
  59. define COREUTILS_POST_INSTALL
  60. # some things go in root rather than usr
  61. for f in $(COREUTILS_BIN_PROGS); do \
  62. mv $(TARGET_DIR)/usr/bin/$$f $(TARGET_DIR)/bin/$$f; \
  63. done
  64. # link for archaic shells
  65. ln -fs test $(TARGET_DIR)/usr/bin/[
  66. # gnu thinks chroot is in bin, debian thinks it's in sbin
  67. mv $(TARGET_DIR)/usr/bin/chroot $(TARGET_DIR)/usr/sbin/chroot
  68. endef
  69. COREUTILS_POST_INSTALL_TARGET_HOOKS += COREUTILS_POST_INSTALL
  70. # If both coreutils and busybox are selected, the corresponding applets
  71. # may need to be reinstated by the clean targets.
  72. $(eval $(autotools-package))