From: Graham Gower <graham.gower@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [PATCH] util-linux-ng_2.17.bb: Fix for uClibc when DISTRO_FEATURES lacks "largefile".
Date: Mon, 29 Nov 2010 13:29:07 +1030 [thread overview]
Message-ID: <4CF316FB.6010809@gmail.com> (raw)
../shlibs/blkid/src/.libs/libblkid.so: undefined reference to `lseek64'
Signed-off-by: Graham Gower <graham.gower@gmail.com>
---
.../util-linux-ng-2.17/uclibc-nolargefile.patch | 13 +++++++++++++
recipes/util-linux-ng/util-linux-ng_2.17.bb | 3 ++-
2 files changed, 15 insertions(+), 1 deletions(-)
create mode 100644 recipes/util-linux-ng/util-linux-ng-2.17/uclibc-nolargefile.patch
diff --git a/recipes/util-linux-ng/util-linux-ng-2.17/uclibc-nolargefile.patch b/recipes/util-linux-ng/util-linux-ng-2.17/uclibc-nolargefile.patch
new file mode 100644
index 0000000..2c0c1bd
--- /dev/null
+++ b/recipes/util-linux-ng/util-linux-ng-2.17/uclibc-nolargefile.patch
@@ -0,0 +1,13 @@
+Upstream: http://www.spinics.net/lists/util-linux-ng/msg03651.html
+
+--- util-linux-ng-2.17/shlibs/blkid/src/llseek.c.orig 2010-11-29 11:31:49.000000000 +1030
++++ util-linux-ng-2.17/shlibs/blkid/src/llseek.c 2010-11-29 11:52:07.000000000 +1030
+@@ -28,7 +28,7 @@
+
+ #include "blkidP.h"
+
+-#ifdef __linux__
++#if defined(__linux__) && !(defined(__UCLIBC__) && !defined(__USE_FILE_OFFSET64))
+
+ #if defined(HAVE_LSEEK64) && defined(HAVE_LSEEK64_PROTOTYPE) || defined(__UCLIBC__)
+
diff --git a/recipes/util-linux-ng/util-linux-ng_2.17.bb b/recipes/util-linux-ng/util-linux-ng_2.17.bb
index e906abb..8b4b1c9 100644
--- a/recipes/util-linux-ng/util-linux-ng_2.17.bb
+++ b/recipes/util-linux-ng/util-linux-ng_2.17.bb
@@ -1,10 +1,11 @@
require util-linux-ng.inc
-PR = "${INC_PR}.2"
+PR = "${INC_PR}.3"
SRC_URI += "file://uclibc-compile.patch \
file://util-linux-ng-replace-siginterrupt.patch \
file://fdiskbsdlabel.h-nios2.patch \
+ file://uclibc-nolargefile.patch \
"
# fallocate is glibc 2.10, fallocate64 is glibc 2.11
--
1.7.1
reply other threads:[~2010-11-29 3:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=4CF316FB.6010809@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.