--- /dev/null
+--- acl-2.2.49/chacl/chacl.c.orig 2010-12-21 14:00:42.563984943 +1030
++++ acl-2.2.49/chacl/chacl.c 2010-12-21 14:01:15.614983219 +1030
+@@ -315,6 +315,12 @@
+ return(failed);
+ }
+
++#ifndef __USE_LARGEFILE64
++/* XXX: hack! */
++#define dirent64 dirent
++#define readdir64 readdir
++#endif
++
+ static int
+ walk_dir(acl_t acl, acl_t dacl, const char *fname)
+ {
DESCRIPTION = "Commands for Manipulating POSIX Access Control Lists"
LICENSE = "GPLv2"
-PR = "r2"
+PR = "r3"
DEPENDS = "attr"
-SRC_URI = "http://mirror.its.uidaho.edu/pub/savannah/acl/acl-${PV}.src.tar.gz"
+SRC_URI = "http://mirror.its.uidaho.edu/pub/savannah/acl/acl-${PV}.src.tar.gz \
+ file://nolargefile.patch"
inherit autotools lib_package
echo "#define _(str) str" >> ${S}/include/config.h
}
+do_configure_prepend() {
+ ${@base_contains('DISTRO_FEATURES', 'largefile', '', 'sed -i -e "s/-D_FILE_OFFSET_BITS=64//" ${S}/include/builddefs.in', d)}
+}
+
do_install() {
export PKG_BIN_DIR=${D}${bindir}
export PKG_SBIN_DIR=${D}${sbindir}