OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
2.6 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../coreutils/coreutils.conf
  5. # Copyright (C) 2006 - 2012 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. # Copyright (C) 1998 - 2003 Clifford Wolf
  8. #
  9. # More information can be found in the files COPYING and README.
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; version 2 of the License. A copy of the
  14. # GNU General Public License can be found in the file COPYING.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. if atstage cross; then
  17. # http://bugs.gentoo.org/show_bug.cgi?id=269256
  18. var_append configcache ' ' 'gl_cv_func_re_compile_pattern_working=yes'
  19. var_append configcache ' ' 'gl_cv_func_rename_trailing_dest_slash_bug=no'
  20. var_append configcache ' ' 'gl_cv_func_rename_trailing_slash_bug=no'
  21. # cannot be tested while cross-compiling
  22. var_append configcache ' ' 'gl_cv_func_fstatat_zero_flag=yes'
  23. fi
  24. # apply the patches defined in the coreutils.desc
  25. for x in $(match_source_file -p patch); do
  26. var_append patchfiles ' ' "$x"
  27. done
  28. # at native stages the configure script is bailing out telling us that running
  29. # configure as root is a bad thing, and we need to set FORCE_UNSAFE_CONFIGURE=1
  30. # to bypass this check.
  31. if atstage native; then
  32. var_insert configprefix ' ' "FORCE_UNSAFE_CONFIGURE=1"
  33. fi
  34. # install libstdbuf.so into /usr/lib/coreutils instead of /usr/libexec/coreutils
  35. var_append extraconfopt ' ' "--libexecdir=$libdir"
  36. # without injecting coreutils won't build
  37. var_append GCC_WRAPPER_INSERT ' ' '-std=gnu99'
  38. # Move programs to the locations specified by the FHS
  39. var_append INSTALL_WRAPPER_FILTER "|" \
  40. "sed -e 's,usr/bin/\
  41. \(cat\|chgrp\|chmod\|chown\|cp\|date\|dd\|df\|echo\
  42. \|false\|hostname\|ln\|ls\|mkdir\|mknod\|mv\|pwd\|rm\
  43. \|rmdir\|stty\|sync\|true\|uname\),bin/\1,' \
  44. -e 's,usr/bin/\(chroot\),usr\/sbin/\1,'"
  45. # As /usr may not be available during the early stages of booting,
  46. # those binaries need to be on the root partition
  47. var_append INSTALL_WRAPPER_FILTER "|" \
  48. "sed -e 's,usr/bin/\
  49. \(cut\|head\|tail\|sleep\|sort\|touch\|readlink\),bin/\1,'"
  50. hook_add postmake 5 'ln -sf install $root/usr/bin/ginstall'
  51. # install hostname
  52. var_append confopt ' ' '--enable-install-program=hostname'
  53. noinstall=
  54. for x in mktemp procps:uptime util-linux:kill; do
  55. if pkginstalled "${x%:*}"; then
  56. var_append noinstall ',' "${x#*:}"
  57. fi
  58. done
  59. [ -z "$noinstall" ] ||
  60. var_append confopt ' ' "--enable-no-install-program=$noinstall"