Gentoo Archives: gentoo-commits

From: Alexey Shvetsov <alexxy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sys-cluster/lustre/, sys-cluster/lustre/files/
Date: Sun, 31 Mar 2013 11:29:02
Message-Id: 1364729321.a140ebab5df4d5b6ad839cf8b46ee294cbee450c.alexxy@gentoo
1 commit: a140ebab5df4d5b6ad839cf8b46ee294cbee450c
2 Author: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 31 11:28:41 2013 +0000
4 Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 31 11:28:41 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=a140ebab
7
8 Add patch to fix as-needed issue
9
10 Package-Manager: portage-2.2.0_alpha170
11 RepoMan-Options: --force
12
13 ---
14 sys-cluster/lustre/ChangeLog | 12 ++++
15 ...ld-make-AC-check-for-linux-arch-sandbox-f.patch | 2 +-
16 ...cfs-use-sock_alloc_file-instead-of-sock_m.patch | 2 +-
17 ...pat-posix_acl_-to-from-_xattr-take-user_n.patch | 2 +-
18 ...004-LU-2800-llite-introduce-local-getname.patch | 2 +-
19 ...ld-check-header-files-in-generated-uapi-d.patch | 2 +-
20 ...50-kernel-3.8-upstream-removes-vmtruncate.patch | 2 +-
21 ...-2850-kernel-3.8-upstream-kills-daemonize.patch | 2 +-
22 .../files/0008-LU-2987-llite-rcu-free-inode.patch | 2 +-
23 ...ubuntu-Fix-build-failures-on-Ubuntu-12.04.patch | 58 ++++++++++++++++++++
24 sys-cluster/lustre/lustre-9999.ebuild | 1 +
25 11 files changed, 79 insertions(+), 8 deletions(-)
26
27 diff --git a/sys-cluster/lustre/ChangeLog b/sys-cluster/lustre/ChangeLog
28 index 16471dd..4452f88 100644
29 --- a/sys-cluster/lustre/ChangeLog
30 +++ b/sys-cluster/lustre/ChangeLog
31 @@ -3,6 +3,18 @@
32 # $Header: $
33
34 31 Mar 2013; Alexey Shvetsov <alexxy@g.o>
35 + +files/0009-LU-3011-ubuntu-Fix-build-failures-on-Ubuntu-12.04.patch,
36 + files/0001-LU-2982-build-make-AC-check-for-linux-arch-sandbox-f.patch,
37 + files/0002-LU-2800-libcfs-use-sock_alloc_file-instead-of-sock_m.patch,
38 + files/0003-LU-2850-compat-posix_acl_-to-from-_xattr-take-user_n.patch,
39 + files/0004-LU-2800-llite-introduce-local-getname.patch,
40 + files/0005-LU-2850-build-check-header-files-in-generated-uapi-d.patch,
41 + files/0006-LU-2850-kernel-3.8-upstream-removes-vmtruncate.patch,
42 + files/0007-LU-2850-kernel-3.8-upstream-kills-daemonize.patch,
43 + files/0008-LU-2987-llite-rcu-free-inode.patch, lustre-9999.ebuild:
44 + Add patch to fix as-needed issue
45 +
46 + 31 Mar 2013; Alexey Shvetsov <alexxy@g.o>
47 +files/0001-LU-2982-build-make-AC-check-for-linux-arch-sandbox-f.patch,
48 +files/0002-LU-2800-libcfs-use-sock_alloc_file-instead-of-sock_m.patch,
49 +files/0003-LU-2850-compat-posix_acl_-to-from-_xattr-take-user_n.patch,
50
51 diff --git a/sys-cluster/lustre/files/0001-LU-2982-build-make-AC-check-for-linux-arch-sandbox-f.patch b/sys-cluster/lustre/files/0001-LU-2982-build-make-AC-check-for-linux-arch-sandbox-f.patch
52 index 3f372ac..487c99b 100644
53 --- a/sys-cluster/lustre/files/0001-LU-2982-build-make-AC-check-for-linux-arch-sandbox-f.patch
54 +++ b/sys-cluster/lustre/files/0001-LU-2982-build-make-AC-check-for-linux-arch-sandbox-f.patch
55 @@ -1,7 +1,7 @@
56 From d0169772fa2ebda3ed5c619d5e5cd6339973b0a0 Mon Sep 17 00:00:00 2001
57 From: Alexey Shvetsov <alexxy@g.o>
58 Date: Mon, 18 Mar 2013 16:22:27 +0400
59 -Subject: [PATCH 1/8] LU-2982 build: make AC check for linux arch sandbox
60 +Subject: [PATCH 1/9] LU-2982 build: make AC check for linux arch sandbox
61 friendly
62
63 this commit makes AC check for linux kernel arch sandbox friendly
64
65 diff --git a/sys-cluster/lustre/files/0002-LU-2800-libcfs-use-sock_alloc_file-instead-of-sock_m.patch b/sys-cluster/lustre/files/0002-LU-2800-libcfs-use-sock_alloc_file-instead-of-sock_m.patch
66 index fe43064..68450f5 100644
67 --- a/sys-cluster/lustre/files/0002-LU-2800-libcfs-use-sock_alloc_file-instead-of-sock_m.patch
68 +++ b/sys-cluster/lustre/files/0002-LU-2800-libcfs-use-sock_alloc_file-instead-of-sock_m.patch
69 @@ -1,7 +1,7 @@
70 From 8258deb14e38559bf5ef37bd50a0918cdf473c00 Mon Sep 17 00:00:00 2001
71 From: Jeff Mahoney <jeffm@××××.com>
72 Date: Wed, 13 Feb 2013 02:45:16 -0500
73 -Subject: [PATCH 2/8] LU-2800 libcfs: use sock_alloc_file instead of
74 +Subject: [PATCH 2/9] LU-2800 libcfs: use sock_alloc_file instead of
75 sock_map_fd
76
77 v2.6.27 added a second argument to sock_map_fd. Earlier versions are
78
79 diff --git a/sys-cluster/lustre/files/0003-LU-2850-compat-posix_acl_-to-from-_xattr-take-user_n.patch b/sys-cluster/lustre/files/0003-LU-2850-compat-posix_acl_-to-from-_xattr-take-user_n.patch
80 index 9f05db0..5f96a81 100644
81 --- a/sys-cluster/lustre/files/0003-LU-2850-compat-posix_acl_-to-from-_xattr-take-user_n.patch
82 +++ b/sys-cluster/lustre/files/0003-LU-2850-compat-posix_acl_-to-from-_xattr-take-user_n.patch
83 @@ -1,7 +1,7 @@
84 From 3050d2c9cccb51ce521bdbecd471cb6ce18f77b8 Mon Sep 17 00:00:00 2001
85 From: Jeff Mahoney <jeffm@××××.com>
86 Date: Wed, 20 Mar 2013 17:33:17 -0400
87 -Subject: [PATCH 3/8] LU-2850 compat: posix_acl_{to,from}_xattr take
88 +Subject: [PATCH 3/9] LU-2850 compat: posix_acl_{to,from}_xattr take
89 user_namespace
90
91 Commit 5f3a4a28 (v3.7) added a struct user_namespace argument to
92
93 diff --git a/sys-cluster/lustre/files/0004-LU-2800-llite-introduce-local-getname.patch b/sys-cluster/lustre/files/0004-LU-2800-llite-introduce-local-getname.patch
94 index e194dfd..7218853 100644
95 --- a/sys-cluster/lustre/files/0004-LU-2800-llite-introduce-local-getname.patch
96 +++ b/sys-cluster/lustre/files/0004-LU-2800-llite-introduce-local-getname.patch
97 @@ -1,7 +1,7 @@
98 From 4f1bc5cb857ebba89b84d27ed5ed6531b8a59058 Mon Sep 17 00:00:00 2001
99 From: Jeff Mahoney <jeffm@××××.com>
100 Date: Tue, 19 Mar 2013 21:18:32 -0400
101 -Subject: [PATCH 4/8] LU-2800 llite: introduce local getname()
102 +Subject: [PATCH 4/9] LU-2800 llite: introduce local getname()
103
104 Commit 8e377d15 (v3.7) unexported getname and putname. Although
105 getname was re-exported, putname was not. All we really need is
106
107 diff --git a/sys-cluster/lustre/files/0005-LU-2850-build-check-header-files-in-generated-uapi-d.patch b/sys-cluster/lustre/files/0005-LU-2850-build-check-header-files-in-generated-uapi-d.patch
108 index a802215..0c36aa6 100644
109 --- a/sys-cluster/lustre/files/0005-LU-2850-build-check-header-files-in-generated-uapi-d.patch
110 +++ b/sys-cluster/lustre/files/0005-LU-2850-build-check-header-files-in-generated-uapi-d.patch
111 @@ -1,7 +1,7 @@
112 From 60c775330c663b7ecd32f314ab156ad0ba0ea072 Mon Sep 17 00:00:00 2001
113 From: Peng Tao <tao.peng@×××.com>
114 Date: Wed, 27 Feb 2013 18:29:34 +0800
115 -Subject: [PATCH 5/8] LU-2850 build: check header files in generated uapi dir
116 +Subject: [PATCH 5/9] LU-2850 build: check header files in generated uapi dir
117
118 Upstream moved UAPI headers into generated/uapi directory since
119 v3.7. We need to check/include necessary header files there.
120
121 diff --git a/sys-cluster/lustre/files/0006-LU-2850-kernel-3.8-upstream-removes-vmtruncate.patch b/sys-cluster/lustre/files/0006-LU-2850-kernel-3.8-upstream-removes-vmtruncate.patch
122 index 380597d..d9444a7 100644
123 --- a/sys-cluster/lustre/files/0006-LU-2850-kernel-3.8-upstream-removes-vmtruncate.patch
124 +++ b/sys-cluster/lustre/files/0006-LU-2850-kernel-3.8-upstream-removes-vmtruncate.patch
125 @@ -1,7 +1,7 @@
126 From 19491f9e67e43ae10ae1f71e38730606e2c518a8 Mon Sep 17 00:00:00 2001
127 From: Alexey Shvetsov <alexxy@g.o>
128 Date: Wed, 27 Mar 2013 08:49:01 +0400
129 -Subject: [PATCH 6/8] LU-2850 kernel: 3.8 upstream removes vmtruncate()
130 +Subject: [PATCH 6/9] LU-2850 kernel: 3.8 upstream removes vmtruncate()
131
132 vmtruncate() is removed since upstream commit b9f61c3.
133 We can open code is for llite though.
134
135 diff --git a/sys-cluster/lustre/files/0007-LU-2850-kernel-3.8-upstream-kills-daemonize.patch b/sys-cluster/lustre/files/0007-LU-2850-kernel-3.8-upstream-kills-daemonize.patch
136 index b6d2434..2092458 100644
137 --- a/sys-cluster/lustre/files/0007-LU-2850-kernel-3.8-upstream-kills-daemonize.patch
138 +++ b/sys-cluster/lustre/files/0007-LU-2850-kernel-3.8-upstream-kills-daemonize.patch
139 @@ -1,7 +1,7 @@
140 From fc013881dd3b551e8fb8a5f6722a359c56c7bf63 Mon Sep 17 00:00:00 2001
141 From: Peng Tao <tao.peng@×××.com>
142 Date: Mon, 18 Mar 2013 10:47:57 +0800
143 -Subject: [PATCH 7/8] LU-2850 kernel: 3.8 upstream kills daemonize()
144 +Subject: [PATCH 7/9] LU-2850 kernel: 3.8 upstream kills daemonize()
145
146 kernel_thread() is a low level kernel function.
147 Instead of calling kernel_thread() and relying on daemonize()
148
149 diff --git a/sys-cluster/lustre/files/0008-LU-2987-llite-rcu-free-inode.patch b/sys-cluster/lustre/files/0008-LU-2987-llite-rcu-free-inode.patch
150 index 35d281d..3960fe0 100644
151 --- a/sys-cluster/lustre/files/0008-LU-2987-llite-rcu-free-inode.patch
152 +++ b/sys-cluster/lustre/files/0008-LU-2987-llite-rcu-free-inode.patch
153 @@ -1,7 +1,7 @@
154 From 77ae599340fc509002f2875257c2e024fb1b44fb Mon Sep 17 00:00:00 2001
155 From: Peng Tao <tao.peng@×××.com>
156 Date: Tue, 19 Mar 2013 14:04:47 +0800
157 -Subject: [PATCH 8/8] LU-2987 llite: rcu-free inode
158 +Subject: [PATCH 8/9] LU-2987 llite: rcu-free inode
159
160 Since 2.6.38, inode.i_rcu was added and file system .destory_inode
161 should rcu-free inodes.
162
163 diff --git a/sys-cluster/lustre/files/0009-LU-3011-ubuntu-Fix-build-failures-on-Ubuntu-12.04.patch b/sys-cluster/lustre/files/0009-LU-3011-ubuntu-Fix-build-failures-on-Ubuntu-12.04.patch
164 new file mode 100644
165 index 0000000..2542cf4
166 --- /dev/null
167 +++ b/sys-cluster/lustre/files/0009-LU-3011-ubuntu-Fix-build-failures-on-Ubuntu-12.04.patch
168 @@ -0,0 +1,58 @@
169 +From 84010884ffc614cc0d5cf06e5416dadc2693a86a Mon Sep 17 00:00:00 2001
170 +From: Robert Read <robert.read@×××××.com>
171 +Date: Fri, 22 Mar 2013 11:32:13 -0700
172 +Subject: [PATCH 9/9] LU-3011 ubuntu: Fix build failures on Ubuntu 12.04
173 +
174 +Fix "set-but-unused" warning by using the variable,
175 +and move -lreadline to end of link command line.
176 +
177 +Signed-off-by: Robert Read <robert.read.@×××××.com>
178 +Change-Id: I676e319ed81dbb6ba41d039e7b075b02d5122b48
179 +---
180 + libcfs/autoconf/lustre-libcfs.m4 | 1 +
181 + lustre/utils/Makefile.am | 8 ++++----
182 + 2 files changed, 5 insertions(+), 4 deletions(-)
183 +
184 +diff --git a/libcfs/autoconf/lustre-libcfs.m4 b/libcfs/autoconf/lustre-libcfs.m4
185 +index 5789166..72ae7b4 100644
186 +--- a/libcfs/autoconf/lustre-libcfs.m4
187 ++++ b/libcfs/autoconf/lustre-libcfs.m4
188 +@@ -918,6 +918,7 @@ AC_COMPILE_IFELSE([
189 + __u64 *data2 = NULL;
190 +
191 + data1 = data2;
192 ++ data2 = data1;
193 + return 0;
194 + }
195 + ],[
196 +diff --git a/lustre/utils/Makefile.am b/lustre/utils/Makefile.am
197 +index 1309376..bc8d716 100644
198 +--- a/lustre/utils/Makefile.am
199 ++++ b/lustre/utils/Makefile.am
200 +@@ -42,19 +42,19 @@ endif
201 + noinst_LIBRARIES = liblustreapitmp.a
202 +
203 + lctl_SOURCES = lustre_lfsck.c obd.c lustre_cfg.c lctl.c obdctl.h
204 +-lctl_LDADD := $(LIBREADLINE) liblustreapi.a $(LIBPTLCTL) $(PTHREAD_LIBS)
205 ++lctl_LDADD := liblustreapi.a $(LIBPTLCTL) $(PTHREAD_LIBS) $(LIBREADLINE)
206 + lctl_DEPENDENCIES := $(LIBPTLCTL) liblustreapi.a
207 +
208 + lfs_SOURCES = lfs.c obd.c lustre_cfg.c
209 +-lfs_LDADD := $(LIBREADLINE) liblustreapi.a $(LIBPTLCTL) $(PTHREAD_LIBS)
210 ++lfs_LDADD := liblustreapi.a $(LIBPTLCTL) $(PTHREAD_LIBS) $(LIBREADLINE)
211 + lfs_DEPENDENCIES := $(LIBPTLCTL) liblustreapi.a
212 +
213 + loadgen_SOURCES = loadgen.c lustre_cfg.c obd.c
214 +-loadgen_LDADD := $(LIBREADLINE) liblustreapi.a $(LIBPTLCTL) $(PTHREAD_LIBS)
215 ++loadgen_LDADD := liblustreapi.a $(LIBPTLCTL) $(PTHREAD_LIBS) $(LIBREADLINE)
216 + loadgen_DEPENDENCIES := $(LIBPTLCTL) liblustreapi.a
217 +
218 + lustre_rsync_SOURCES = lustre_rsync.c obd.c lustre_cfg.c lustre_rsync.h
219 +-lustre_rsync_LDADD := $(LIBREADLINE) liblustreapi.a $(LIBPTLCTL) $(PTHREAD_LIBS)
220 ++lustre_rsync_LDADD := liblustreapi.a $(LIBPTLCTL) $(PTHREAD_LIBS) $(LIBREADLINE)
221 + lustre_rsync_DEPENDENCIES := $(LIBPTLCTL) liblustreapi.a
222 +
223 + ll_recover_lost_found_objs_SOURCES = ll_recover_lost_found_objs.c
224 +--
225 +1.8.1.5
226 +
227
228 diff --git a/sys-cluster/lustre/lustre-9999.ebuild b/sys-cluster/lustre/lustre-9999.ebuild
229 index 3457fbf..a25e2a5 100644
230 --- a/sys-cluster/lustre/lustre-9999.ebuild
231 +++ b/sys-cluster/lustre/lustre-9999.ebuild
232 @@ -38,6 +38,7 @@ PATCHES=(
233 "${FILESDIR}/0006-LU-2850-kernel-3.8-upstream-removes-vmtruncate.patch"
234 "${FILESDIR}/0007-LU-2850-kernel-3.8-upstream-kills-daemonize.patch"
235 "${FILESDIR}/0008-LU-2987-llite-rcu-free-inode.patch"
236 + "${FILESDIR}/0009-LU-3011-ubuntu-Fix-build-failures-on-Ubuntu-12.04.patch"
237 )
238
239 pkg_setup() {