* [Buildroot] [PATCH] nfs-utils: Fix autobuilders issues
@ 2016-02-02 13:34 Maxime Hadjinlian
2016-02-25 21:52 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Maxime Hadjinlian @ 2016-02-02 13:34 UTC (permalink / raw)
To: buildroot
This patch fixes
http://autobuild.buildroot.net/results/948/948f81d7ed2c080a675ee9fec754f6fda1fd905f/
The patches has been sent upstream:
http://article.gmane.org/gmane.linux.nfs/76139
Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
---
...4-mountd-Add-check-for-struct-file_handle.patch | 46 ++++++++++++++++++++++
1 file changed, 46 insertions(+)
create mode 100644 package/nfs-utils/0004-mountd-Add-check-for-struct-file_handle.patch
diff --git a/package/nfs-utils/0004-mountd-Add-check-for-struct-file_handle.patch b/package/nfs-utils/0004-mountd-Add-check-for-struct-file_handle.patch
new file mode 100644
index 0000000..7aca266
--- /dev/null
+++ b/package/nfs-utils/0004-mountd-Add-check-for-struct-file_handle.patch
@@ -0,0 +1,46 @@
+From 3c23b3ea7f5069e8fd4d5758704cd968504f1079 Mon Sep 17 00:00:00 2001
+From: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
+Date: Tue, 2 Feb 2016 10:07:22 +0100
+Subject: [PATCH] mountd: Add check for 'struct file_handle'
+
+The code to check if name_to_handle_at() is implemented generates only a
+warning but with some toolchain it doesn't fail to link (the function must be
+implemented somewhere).
+However the "struct file_handle" type is not available.
+
+So, this patch adds a check for this struct.
+
+Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
+---
+ configure.ac | 1 +
+ utils/mountd/cache.c | 2 +-
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 25d2ba4..913a86f 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -425,6 +425,7 @@ AC_TYPE_PID_T
+ AC_TYPE_SIZE_T
+ AC_HEADER_TIME
+ AC_STRUCT_TM
++AC_CHECK_TYPES([struct file_handle])
+
+ dnl *************************************************************
+ dnl Check for functions
+diff --git a/utils/mountd/cache.c b/utils/mountd/cache.c
+index 7847446..dc64f6d 100644
+--- a/utils/mountd/cache.c
++++ b/utils/mountd/cache.c
+@@ -424,7 +424,7 @@ static int same_path(char *child, char *parent, int len)
+ if (count_slashes(p) != count_slashes(parent))
+ return 0;
+
+-#if HAVE_NAME_TO_HANDLE_AT
++#if defined(HAVE_NAME_TO_HANDLE_AT) && defined(HAVE_STRUCT_FILE_HANDLE)
+ struct {
+ struct file_handle fh;
+ unsigned char handle[128];
+--
+2.7.0
+
--
2.7.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] nfs-utils: Fix autobuilders issues
2016-02-02 13:34 [Buildroot] [PATCH] nfs-utils: Fix autobuilders issues Maxime Hadjinlian
@ 2016-02-25 21:52 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-02-25 21:52 UTC (permalink / raw)
To: buildroot
Dear Maxime Hadjinlian,
On Tue, 2 Feb 2016 14:34:19 +0100, Maxime Hadjinlian wrote:
> This patch fixes
> http://autobuild.buildroot.net/results/948/948f81d7ed2c080a675ee9fec754f6fda1fd905f/
>
> The patches has been sent upstream:
> http://article.gmane.org/gmane.linux.nfs/76139
>
> Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
> ---
> ...4-mountd-Add-check-for-struct-file_handle.patch | 46 ++++++++++++++++++++++
> 1 file changed, 46 insertions(+)
> create mode 100644 package/nfs-utils/0004-mountd-Add-check-for-struct-file_handle.patch
I've slightly improved the commit title ("Fix autobuilder issues" is
somewhat vague), and I've applied to master. Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-02-25 21:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-02 13:34 [Buildroot] [PATCH] nfs-utils: Fix autobuilders issues Maxime Hadjinlian
2016-02-25 21:52 ` Thomas Petazzoni
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.