[oe-commits] Khem Raj : attr_2.4.44.bb: Specify PLATFORM otherwise it uses uname.

git version control git at git.openembedded.org
Fri Jul 9 00:31:49 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 2b886cb404f8985b8ad08fa8d6763442b2ce27ac
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=2b886cb404f8985b8ad08fa8d6763442b2ce27ac

Author: Khem Raj <raj.khem at gmail.com>
Date:   Thu Jul  8 13:22:12 2010 -0700

attr_2.4.44.bb: Specify PLATFORM otherwise it uses uname.

* 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 at gmail.com>

---

 recipes/udev/attr_2.4.44.bb |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/recipes/udev/attr_2.4.44.bb b/recipes/udev/attr_2.4.44.bb
index c2054d1..ffc0cc3 100644
--- a/recipes/udev/attr_2.4.44.bb
+++ b/recipes/udev/attr_2.4.44.bb
@@ -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}





More information about the Openembedded-commits mailing list