mirror of
git://git.yoctoproject.org/poky
synced 2026-10-02 17:03:55 +00:00
Work around gnulib time_t assumption in findutils for x32 time_t is 64bit and long int is 32bit on x32. But gnulib used in findutils assumes time_t values fit into long int. Such assumption is invalid for x32 and should be removed. This patch is a workaround to compile gnulib for x32. (From OE-Core rev: 8a80a3510c65419a6fcd9e38ad3ef4234778b921) Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-Off-By: H.J. Lu <hjl.tools@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
32 lines
858 B
BlitzBasic
32 lines
858 B
BlitzBasic
require findutils.inc
|
|
|
|
PR = "r1"
|
|
|
|
SRC_URI += "file://01-27017.patch \
|
|
file://02-28824.patch \
|
|
file://03-28872.patch \
|
|
file://findutils_fix_for_x32.patch "
|
|
|
|
SRC_URI[md5sum] = "351cc4adb07d54877fa15f75fb77d39f"
|
|
SRC_URI[sha256sum] = "434f32d171cbc0a5e72cfc5372c6fc4cb0e681f8dce566a0de5b6fccd702b62a"
|
|
|
|
# http://savannah.gnu.org/bugs/?27299
|
|
EXTRA_OECONF += "gl_cv_func_wcwidth_works=yes"
|
|
|
|
do_install_append () {
|
|
if [ -e ${D}${bindir}/find ]; then
|
|
mv ${D}${bindir}/find ${D}${bindir}/find.${PN}
|
|
mv ${D}${bindir}/xargs ${D}${bindir}/xargs.${PN}
|
|
fi
|
|
}
|
|
|
|
pkg_postinst_${PN} () {
|
|
for i in find xargs; do update-alternatives --install ${bindir}/$i $i $i.${PN} 100; done
|
|
}
|
|
|
|
pkg_prerm_${PN} () {
|
|
for i in find xargs; do update-alternatives --remove $i $i.${PN}; done
|
|
}
|
|
|
|
BBCLASSEXTEND = "native"
|