attr_2.4.44.bb: Specify PLATFORM otherwise it uses uname.
authorKhem Raj <raj.khem@gmail.com>
Thu, 8 Jul 2010 20:22:12 +0000 (13:22 -0700)
committerKhem Raj <raj.khem@gmail.com>
Fri, 9 Jul 2010 00:23:57 +0000 (17:23 -0700)
* Using uname to get OS name may not work on non linux build
  systems.

* Cater for largefile feature which is knob'able in uclibc

Signed-off-by: Khem Raj <raj.khem@gmail.com>
recipes/udev/attr_2.4.44.bb

index c2054d1..ffc0cc3 100644 (file)
@@ -1,16 +1,17 @@
 DESCRIPTION = "Commands for Manipulating Filesystem Extended Attributes"
 LICENSE = "GPLv2"
 
-PR = "r3"
+PR = "r4"
 
 SRC_URI = "http://mirror.its.uidaho.edu/pub/savannah/attr/attr-${PV}.src.tar.gz"
 
 inherit gettext autotools lib_package
-
 EXTRA_OECONF = " --enable-gettext=yes \
                  ac_cv_path_XGETTEXT=${STAGING_BINDIR_NATIVE}/xgettext \
                  ac_cv_path_MSGFMT=${STAGING_BINDIR_NATIVE}/msgfmt \
-                 ac_cv_path_MSGMERGE=${STAGING_BINDIR_NATIVE}/msgmerge "
+                 ac_cv_path_MSGMERGE=${STAGING_BINDIR_NATIVE}/msgmerge \
+                PLATFORM="linux" \
+               "
 
 LDFLAGS_append_libc-uclibc += " -lintl"
 
@@ -21,6 +22,10 @@ do_configure_append() {
        echo "#define _(str) str" >> ${S}/include/config.h
 }
 
+do_configure_prepend_libc-uclibc() {
+       eval "${@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}