findutils: refactor common code to findutils.inc

(From OE-Core rev: 071a959d430402a78ca5b392c8387489da042c08)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Saul Wold 2012-07-26 16:29:45 -07:00 committed by Richard Purdie
parent a4e13edf89
commit 825929cc3c
3 changed files with 10 additions and 30 deletions

View File

@ -6,9 +6,6 @@ HOMEPAGE = "http://www.gnu.org/software/findutils/"
BUGTRACKER = "http://savannah.gnu.org/bugs/?group=findutils"
SECTION = "console/utils"
# GPLv2+ (<< 4.2.32), GPLv3+ (>= 4.2.32)
LICENSE = "GPLv3+"
LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949"
SRC_URI = "${GNU_MIRROR}/findutils/findutils-${PV}.tar.gz"
@ -23,3 +20,5 @@ ALTERNATIVE_PRIORITY = "100"
# because it uses __mempcpy, there are other things (TBD:
# see diffutils.mk in buildroot)
EXTRA_OECONF_libc-uclibc = "--without-included-regex"
BBCLASSEXTEND = "native"

View File

@ -1,33 +1,12 @@
SUMMARY = "find, locate, and xargs binaries."
DESCRIPTION = "The GNU Find Utilities are the basic directory searching utilities of the GNU operating system. \
These programs are typically used in conjunction with other programs to provide modular and powerful directory \
search and file locating capabilities to other commands."
HOMEPAGE = "http://www.gnu.org/software/findutils/"
BUGTRACKER = "http://savannah.gnu.org/bugs/?group=findutils"
SECTION = "console/utils"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
PR = "r3"
SRC_URI = "${GNU_MIRROR}/findutils/findutils-${PV}.tar.gz \
file://gnulib-extension.patch \
file://findutils_fix_for_automake-1.12.patch \
require findutils.inc
SRC_URI += "file://gnulib-extension.patch \
file://findutils_fix_for_automake-1.12.patch \
"
SRC_URI[md5sum] = "a0e31a0f18a49709bf5a449867c8049a"
SRC_URI[sha256sum] = "e0d34b8faca0b3cca0703f6c6b498afbe72f0ba16c35980c10ec9ef7724d6204"
inherit autotools gettext update-alternatives
ALTERNATIVE_LINKS = "${bindir}/find ${bindir}/xargs"
ALTERNATIVE_PRIORITY = "100"
# diffutils assumes non-glibc compilation with uclibc and
# this causes it to generate its own implementations of
# standard functionality. regex.c actually breaks compilation
# because it uses __mempcpy, there are other things (TBD:
# see diffutils.mk in buildroot)
EXTRA_OECONF_libc-uclibc = "--without-included-regex"
BBCLASSEXTEND = "native"

View File

@ -1,5 +1,9 @@
require findutils.inc
# GPLv2+ (<< 4.2.32), GPLv3+ (>= 4.2.32)
LICENSE = "GPLv3+"
LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949"
PR = "r6"
SRC_URI += "file://01-27017.patch \
@ -18,5 +22,3 @@ DEPENDS = "bison-native"
CACHED_CONFIGUREVARS += "${@base_contains('DISTRO_FEATURES', 'libc-posix-clang-wchar', 'gl_cv_func_wcwidth_works=yes', '', d)}"
EXTRA_OECONF += "ac_cv_path_SORT=${bindir}/sort"
BBCLASSEXTEND = "native"