2
1

coreutils.mk 2.6 KB

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