2014-02-19 15:13:54 +00:00
|
|
|
SUMMARY = "The basic file, shell and text manipulation utilities"
|
2010-09-27 14:44:05 +00:00
|
|
|
DESCRIPTION = "The GNU Core Utilities provide the basic file, shell and text \
|
|
|
|
manipulation utilities. These are the core utilities which are expected to exist on \
|
|
|
|
every system."
|
|
|
|
|
2010-08-18 04:55:21 +00:00
|
|
|
HOMEPAGE = "http://www.gnu.org/software/coreutils/"
|
|
|
|
BUGTRACKER = "http://debbugs.gnu.org/coreutils"
|
|
|
|
LICENSE = "GPLv2+"
|
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \
|
2012-11-30 15:15:41 +00:00
|
|
|
file://src/ls.c;beginline=4;endline=16;md5=15ed60f67b1db5fedd5dbc37cf8a9543"
|
2013-01-11 05:38:32 +00:00
|
|
|
PR = "r5"
|
2015-10-13 03:43:10 +00:00
|
|
|
DEPENDS = "virtual/libiconv"
|
2010-08-18 04:55:21 +00:00
|
|
|
|
2014-05-01 20:00:28 +00:00
|
|
|
inherit autotools gettext texinfo
|
2010-08-18 04:55:21 +00:00
|
|
|
|
2015-01-31 08:54:07 +00:00
|
|
|
SRC_URI = "${GNU_MIRROR}/coreutils/${BP}.tar.bz2 \
|
2010-08-18 04:55:21 +00:00
|
|
|
file://gnulib_m4.patch \
|
|
|
|
file://futimens.patch \
|
2011-02-04 02:40:40 +00:00
|
|
|
file://coreutils-ls-x.patch \
|
|
|
|
file://coreutils-6.9-cp-i-u.patch \
|
|
|
|
file://coreutils-i18n.patch \
|
|
|
|
file://coreutils-overflow.patch \
|
|
|
|
file://coreutils-fix-install.patch \
|
2012-05-04 18:21:05 +00:00
|
|
|
file://man-touch.patch \
|
|
|
|
file://coreutils_fix_for_automake-1.12.patch \
|
2013-11-26 10:32:34 +00:00
|
|
|
file://coreutils-fix-texinfo.patch \
|
2015-01-31 08:54:07 +00:00
|
|
|
file://fix_for_manpage_building.patch \
|
2015-10-13 20:47:51 +00:00
|
|
|
file://loadavg.patch \
|
2012-05-04 18:21:05 +00:00
|
|
|
"
|
2007-02-07 15:16:21 +00:00
|
|
|
|
2011-12-13 06:11:34 +00:00
|
|
|
SRC_URI[md5sum] = "c9607d8495f16e98906e7ed2d9751a06"
|
|
|
|
SRC_URI[sha256sum] = "89c2895ad157de50e53298b22d91db116ee4e1dd3fdf4019260254e2e31497b0"
|
|
|
|
|
2015-05-12 02:09:13 +00:00
|
|
|
EXTRA_OECONF += "ac_cv_func_getgroups_works=yes \
|
|
|
|
ac_cv_func_strcoll_works=yes"
|
2013-08-16 20:07:27 +00:00
|
|
|
|
|
|
|
# acl is not a default feature
|
|
|
|
#
|
2017-02-27 13:02:50 +00:00
|
|
|
PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'acl', d)}"
|
2013-08-16 20:07:27 +00:00
|
|
|
|
|
|
|
# with, without, depends, rdepends
|
|
|
|
#
|
2016-02-16 07:06:05 +00:00
|
|
|
PACKAGECONFIG[acl] = "ac_cv_header_sys_acl_h=yes ac_cv_header_acl_libacl_h=yes ac_cv_search_acl_get_file=-lacl,ac_cv_header_sys_acl_h=no ac_cv_header_acl_libacl_h=no ac_cv_search_acl_get_file=,acl,"
|
2013-08-16 20:07:27 +00:00
|
|
|
|
|
|
|
|
2007-02-07 15:16:21 +00:00
|
|
|
# [ gets a special treatment and is not included in this
|
2010-08-18 04:55:21 +00:00
|
|
|
bindir_progs = "base64 basename cksum comm csplit cut dir dircolors dirname du \
|
|
|
|
env expand expr factor fmt fold groups head hostid id install \
|
|
|
|
join link logname md5sum mkfifo nice nl nohup od paste pathchk \
|
|
|
|
pinky pr printenv printf ptx readlink seq sha1sum sha224sum sha256sum \
|
2014-01-22 02:39:48 +00:00
|
|
|
sha384sum sha512sum shred shuf sort split sum tac tail tee test \
|
2012-05-15 23:34:39 +00:00
|
|
|
tr tsort tty unexpand uniq unlink users vdir wc who whoami yes uptime"
|
2007-02-07 15:16:21 +00:00
|
|
|
|
|
|
|
# hostname gets a special treatment and is not included in this
|
2010-08-18 04:55:21 +00:00
|
|
|
base_bindir_progs = "cat chgrp chmod chown cp date dd echo false kill ln ls mkdir \
|
2014-01-22 02:39:48 +00:00
|
|
|
mknod mv pwd rm rmdir sleep stty sync touch true uname hostname stat"
|
2007-02-07 15:16:21 +00:00
|
|
|
|
|
|
|
sbindir_progs= "chroot"
|
|
|
|
|
2013-09-15 09:13:12 +00:00
|
|
|
# Let aclocal use the relative path for the m4 file rather than the
|
|
|
|
# absolute since coreutils has a lot of m4 files, otherwise there might
|
|
|
|
# be an "Argument list too long" error when it is built in a long/deep
|
|
|
|
# directory.
|
|
|
|
acpaths = "-I ./m4"
|
|
|
|
|
2010-08-18 04:55:21 +00:00
|
|
|
do_install() {
|
2007-02-07 15:16:21 +00:00
|
|
|
autotools_do_install
|
|
|
|
|
|
|
|
install -d ${D}${base_bindir}
|
2012-05-15 23:34:39 +00:00
|
|
|
[ "${bindir}" != "${base_bindir}" ] && for i in ${base_bindir_progs}; do mv ${D}${bindir}/$i ${D}${base_bindir}/$i; done
|
2007-02-07 15:16:21 +00:00
|
|
|
|
|
|
|
install -d ${D}${sbindir}
|
2012-05-15 23:34:39 +00:00
|
|
|
[ "${bindir}" != "${sbindir}" ] && for i in ${sbindir_progs}; do mv ${D}${bindir}/$i ${D}${sbindir}/$i; done
|
2007-02-07 15:16:21 +00:00
|
|
|
|
|
|
|
# [ requires special handling because [.coreutils will cause the sed stuff
|
|
|
|
# in update-alternatives to fail, therefore use lbracket - the name used
|
|
|
|
# for the actual source file.
|
2012-05-15 23:34:39 +00:00
|
|
|
mv ${D}${bindir}/[ ${D}${bindir}/lbracket.${BPN}
|
2012-12-12 18:31:36 +00:00
|
|
|
|
|
|
|
# Newer versions of coreutils do not include su, to mimic this behavior
|
|
|
|
# we simply remove it.
|
|
|
|
rm -f ${D}${bindir}/su
|
2007-02-07 15:16:21 +00:00
|
|
|
}
|
|
|
|
|
2012-05-15 23:34:39 +00:00
|
|
|
inherit update-alternatives
|
2007-02-07 15:16:21 +00:00
|
|
|
|
2012-05-15 23:34:39 +00:00
|
|
|
ALTERNATIVE_PRIORITY = "100"
|
2007-02-07 15:16:21 +00:00
|
|
|
|
2012-06-11 15:05:12 +00:00
|
|
|
ALTERNATIVE_${PN} = "lbracket ${bindir_progs} ${base_bindir_progs} ${sbindir_progs}"
|
2007-02-07 15:16:21 +00:00
|
|
|
|
2016-02-27 23:05:53 +00:00
|
|
|
ALTERNATIVE_${PN}-doc = "su.1 hostname.1"
|
|
|
|
ALTERNATIVE_LINK_NAME[su.1] = "${mandir}/man1/su.1"
|
|
|
|
ALTERNATIVE_LINK_NAME[hostname.1] = "${mandir}/man1/hostname.1"
|
|
|
|
|
2012-05-15 23:34:39 +00:00
|
|
|
ALTERNATIVE_PRIORITY[uptime] = "10"
|
|
|
|
ALTERNATIVE_PRIORITY[hostname] = "10"
|
2007-02-07 15:16:21 +00:00
|
|
|
|
2012-05-15 23:34:39 +00:00
|
|
|
ALTERNATIVE_LINK_NAME[lbracket] = "${bindir}/["
|
|
|
|
ALTERNATIVE_TARGET[lbracket] = "${bindir}/lbracket.${BPN}"
|
2007-02-07 15:16:21 +00:00
|
|
|
|
2012-05-15 23:34:39 +00:00
|
|
|
python __anonymous() {
|
2016-12-14 21:13:04 +00:00
|
|
|
for prog in d.getVar('base_bindir_progs').split():
|
|
|
|
d.setVarFlag('ALTERNATIVE_LINK_NAME', prog, '%s/%s' % (d.getVar('base_bindir'), prog))
|
2007-02-07 15:16:21 +00:00
|
|
|
|
2016-12-14 21:13:04 +00:00
|
|
|
for prog in d.getVar('sbindir_progs').split():
|
|
|
|
d.setVarFlag('ALTERNATIVE_LINK_NAME', prog, '%s/%s' % (d.getVar('sbindir'), prog))
|
2007-02-07 15:16:21 +00:00
|
|
|
}
|