mirror of
https://git.yoctoproject.org/poky
synced 2026-09-14 21:49:33 +02:00
findutils: Add patch for mkdir issue and use BBCLASSEXTEND for the native version
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
@@ -1,2 +0,0 @@
|
|||||||
require findutils.inc
|
|
||||||
inherit native
|
|
||||||
@@ -2,7 +2,8 @@ DESCRIPTION = "find, locate, and xargs binaries."
|
|||||||
SECTION = "console/utils"
|
SECTION = "console/utils"
|
||||||
LICENSE = "GPL"
|
LICENSE = "GPL"
|
||||||
|
|
||||||
SRC_URI = "${GNU_MIRROR}/findutils/findutils-${PV}.tar.gz"
|
SRC_URI = "${GNU_MIRROR}/findutils/findutils-${PV}.tar.gz \
|
||||||
|
file://mkdir.patch;patch=1"
|
||||||
|
|
||||||
inherit autotools gettext
|
inherit autotools gettext
|
||||||
|
|
||||||
|
|||||||
26
meta/packages/findutils/findutils/mkdir.patch
Normal file
26
meta/packages/findutils/findutils/mkdir.patch
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
Index: findutils-4.2.29/configure.in
|
||||||
|
===================================================================
|
||||||
|
--- findutils-4.2.29.orig/configure.in 2006-11-25 18:06:00.000000000 +0000
|
||||||
|
+++ findutils-4.2.29/configure.in 2009-08-19 18:01:06.000000000 +0100
|
||||||
|
@@ -209,6 +209,8 @@
|
||||||
|
dnl Hence they need to know if they are being compiled into findutils or not.
|
||||||
|
AC_DEFINE([FINDUTILS], 1, [Define if we are compiling GNU findutils])
|
||||||
|
|
||||||
|
+MKINSTALLDIRS="mkdir -p"
|
||||||
|
+AC_SUBST(MKINSTALLDIRS)
|
||||||
|
|
||||||
|
# This is necessary so that .o files in LIBOBJS are also built via
|
||||||
|
# the ANSI2KNR-filtering rules.
|
||||||
|
Index: findutils-4.2.29/po/Makefile.in.in
|
||||||
|
===================================================================
|
||||||
|
--- findutils-4.2.29.orig/po/Makefile.in.in 2009-08-19 18:05:47.000000000 +0100
|
||||||
|
+++ findutils-4.2.29/po/Makefile.in.in 2009-08-19 18:05:58.000000000 +0100
|
||||||
|
@@ -30,7 +30,7 @@
|
||||||
|
INSTALL = @INSTALL@
|
||||||
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
MKINSTALLDIRS = @MKINSTALLDIRS@
|
||||||
|
-mkinstalldirs = $(SHELL) $(MKINSTALLDIRS)
|
||||||
|
+mkinstalldirs = $(MKINSTALLDIRS)
|
||||||
|
|
||||||
|
GMSGFMT = @GMSGFMT@
|
||||||
|
MSGFMT = @MSGFMT@
|
||||||
@@ -1,8 +1,12 @@
|
|||||||
require findutils.inc
|
require findutils.inc
|
||||||
|
|
||||||
|
PR = "r2"
|
||||||
|
|
||||||
do_install_append () {
|
do_install_append () {
|
||||||
mv ${D}${bindir}/find ${D}${bindir}/find.${PN}
|
if [ -e ${D}${bindir}/find ]; then
|
||||||
mv ${D}${bindir}/xargs ${D}${bindir}/xargs.${PN}
|
mv ${D}${bindir}/find ${D}${bindir}/find.${PN}
|
||||||
|
mv ${D}${bindir}/xargs ${D}${bindir}/xargs.${PN}
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_postinst_${PN} () {
|
pkg_postinst_${PN} () {
|
||||||
@@ -12,3 +16,5 @@ pkg_postinst_${PN} () {
|
|||||||
pkg_prerm_${PN} () {
|
pkg_prerm_${PN} () {
|
||||||
for i in find xargs; do update-alternatives --remove $i $i.${PN}; done
|
for i in find xargs; do update-alternatives --remove $i $i.${PN}; done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BBCLASSEXTEND = "native"
|
||||||
Reference in New Issue
Block a user