summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/findutils/findutils_4.2.31.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/findutils/findutils_4.2.31.bb')
-rw-r--r--meta/recipes-extended/findutils/findutils_4.2.31.bb22
1 files changed, 5 insertions, 17 deletions
diff --git a/meta/recipes-extended/findutils/findutils_4.2.31.bb b/meta/recipes-extended/findutils/findutils_4.2.31.bb
index bd455a51a8..0c3783614e 100644
--- a/meta/recipes-extended/findutils/findutils_4.2.31.bb
+++ b/meta/recipes-extended/findutils/findutils_4.2.31.bb
@@ -8,7 +8,7 @@ SECTION = "console/utils"
8 8
9LICENSE = "GPLv2+" 9LICENSE = "GPLv2+"
10LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552" 10LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
11PR = "r1" 11PR = "r2"
12 12
13SRC_URI = "${GNU_MIRROR}/findutils/findutils-${PV}.tar.gz \ 13SRC_URI = "${GNU_MIRROR}/findutils/findutils-${PV}.tar.gz \
14 file://gnulib-extension.patch" 14 file://gnulib-extension.patch"
@@ -16,7 +16,10 @@ SRC_URI = "${GNU_MIRROR}/findutils/findutils-${PV}.tar.gz \
16SRC_URI[md5sum] = "a0e31a0f18a49709bf5a449867c8049a" 16SRC_URI[md5sum] = "a0e31a0f18a49709bf5a449867c8049a"
17SRC_URI[sha256sum] = "e0d34b8faca0b3cca0703f6c6b498afbe72f0ba16c35980c10ec9ef7724d6204" 17SRC_URI[sha256sum] = "e0d34b8faca0b3cca0703f6c6b498afbe72f0ba16c35980c10ec9ef7724d6204"
18 18
19inherit autotools gettext 19inherit autotools gettext update-alternatives
20
21ALTERNATIVE_LINKS = "${bindir}/find ${bindir}/xargs"
22ALTERNATIVE_PRIORITY = "100"
20 23
21# diffutils assumes non-glibc compilation with uclibc and 24# diffutils assumes non-glibc compilation with uclibc and
22# this causes it to generate its own implementations of 25# this causes it to generate its own implementations of
@@ -25,19 +28,4 @@ inherit autotools gettext
25# see diffutils.mk in buildroot) 28# see diffutils.mk in buildroot)
26EXTRA_OECONF_libc-uclibc = "--without-included-regex" 29EXTRA_OECONF_libc-uclibc = "--without-included-regex"
27 30
28do_install_append () {
29 if [ -e ${D}${bindir}/find ]; then
30 mv ${D}${bindir}/find ${D}${bindir}/find.${PN}
31 mv ${D}${bindir}/xargs ${D}${bindir}/xargs.${PN}
32 fi
33}
34
35pkg_postinst_${PN} () {
36 for i in find xargs; do update-alternatives --install ${bindir}/$i $i $i.${PN} 100; done
37}
38
39pkg_prerm_${PN} () {
40 for i in find xargs; do update-alternatives --remove $i $i.${PN}; done
41}
42
43BBCLASSEXTEND = "native" 31BBCLASSEXTEND = "native"