All of lore.kernel.org
 help / color / mirror / Atom feed
From: Graham Gower <graham.gower@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [PATCH] acl_2.2.49.bb: Fix build when DISTRO_FEATURES lacks largefile.
Date: Tue, 21 Dec 2010 15:24:49 +1030	[thread overview]
Message-ID: <4D103319.4080002@gmail.com> (raw)


Signed-off-by: Graham Gower <graham.gower@gmail.com>
---
 recipes/udev/acl-2.2.49/nolargefile.patch |   15 +++++++++++++++
 recipes/udev/acl_2.2.49.bb                |    9 +++++++--
 2 files changed, 22 insertions(+), 2 deletions(-)
 create mode 100644 recipes/udev/acl-2.2.49/nolargefile.patch

diff --git a/recipes/udev/acl-2.2.49/nolargefile.patch b/recipes/udev/acl-2.2.49/nolargefile.patch
new file mode 100644
index 0000000..272b97e
--- /dev/null
+++ b/recipes/udev/acl-2.2.49/nolargefile.patch
@@ -0,0 +1,15 @@
+--- 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)
+ {
diff --git a/recipes/udev/acl_2.2.49.bb b/recipes/udev/acl_2.2.49.bb
index 027a8c6..5a37c57 100644
--- a/recipes/udev/acl_2.2.49.bb
+++ b/recipes/udev/acl_2.2.49.bb
@@ -1,11 +1,12 @@
 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
 
@@ -21,6 +22,10 @@ do_configure_append() {
     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}
-- 
1.7.1




             reply	other threads:[~2010-12-21  4:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-21  4:54 Graham Gower [this message]
2010-12-21  5:51 ` [PATCH] acl_2.2.49.bb: Fix build when DISTRO_FEATURES lacks largefile Khem Raj
2010-12-21  6:04   ` Graham Gower
2010-12-21  6:13     ` Graham Gower

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D103319.4080002@gmail.com \
    --to=graham.gower@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.