Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: net-fs/samba/, net-fs/samba/files/
Date: Sun, 29 May 2016 16:47:01
Message-Id: 1464540513.60b3cbdc727bb17462427d669c0d4f877cafc767.blueness@gentoo
1 commit: 60b3cbdc727bb17462427d669c0d4f877cafc767
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 29 16:48:33 2016 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Sun May 29 16:48:33 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=60b3cbdc
7
8 net-fs/samba: use alpine patch for getpwent_r() and getgrent_r()
9
10 net-fs/samba/Manifest | 6 +-
11 .../files/samba-4.3.9-remove-getpwent_r.patch | 161 +++++++++------------
12 .../files/samba-4.3.9-remove-rep_strtoull.patch | 22 ++-
13 net-fs/samba/metadata.xml | 6 -
14 4 files changed, 94 insertions(+), 101 deletions(-)
15
16 diff --git a/net-fs/samba/Manifest b/net-fs/samba/Manifest
17 index 9f1b416..6c09bf8 100644
18 --- a/net-fs/samba/Manifest
19 +++ b/net-fs/samba/Manifest
20 @@ -3,8 +3,8 @@ AUX 4.3/samba4.initd-r1 1110 SHA256 44b53a5d5f516cb944a308613579b3e8e27166519612
21 AUX nmbd.service 224 SHA256 a5e25c11714206c4fb129333dd45152c5753716c6445cbe78c28275df1a1cb77 SHA512 098dfb270c5a5c29f59b4fd8d51b17931771e25e481124832f1a086677825527e2afa7276e8614e5007fbf044d253ce2eaf3a7caf7461ad5d90d0b1c7f157f9d WHIRLPOOL 2f7c342a60c09d5e40e968a026aa17d8c2fe3fd032331c7bb26599bb0f8ec8a77c2a3e329498ed16b1602451fd85a8ef076c436e8a092740cfbd01a82ca52e30
22 AUX samba-4.2.3-heimdal_compilefix.patch 819 SHA256 6cf93d127aa900c1e9a4fb8a3bdff6054d78a7adb798c6f409feffc13c714ee9 SHA512 0f6ddbf58e5d5b83e3fb9738dd10c2ab0f1ed96fb62f9b4389a40729b3fe2d4af1a5c5bd2d44fa7d568136072b787b6358aeca3026f1acec4f5a6869e74f2536 WHIRLPOOL 882a52598013a40165d87616eaa016139fa89ff218dc43a6e6518123ccc18ca84e4ba275731e10ec762b22f26576eac56ad6b257cfae2e1cbc45f518a0d37007
23 AUX samba-4.2.7-pam.patch 1273 SHA256 e1abd99fcf4ff721dafa64c77a60b07962e3e818eaf5d10fecead61a2af81e07 SHA512 5f900ebfdfb15af38814864f7ec8cd52d3525098d6f2017ab2f29d301e6a0e622d2ab37976fbd97180cbfe23c7853e91ab7966655eb46ebd9bdd2951205e46bc WHIRLPOOL 91e1fc2e49944d1ded93d902fc50437763388a12b8c2eab70e2dcd8124860746c71fa8b4c26e7b43e5ebc2c0fc94c4c005a2c1eb8b9af68e77c9c6cc1d92927c
24 -AUX samba-4.3.9-remove-getpwent_r.patch 2509 SHA256 67cb2991602fb8e7ac24c8ff74840a310c95fac79554792195fd6974d7a5acc6 SHA512 833d7633b1946b7e4a0157cdf781fbba429a9b98e641f48de779fb4a4daccbc10cb9cb4bb09d9e050a27a91e749317dad3bec53a5102ba7787fc222037211c73 WHIRLPOOL c64797ba00e4f57a5c8d5e4a61583f33eee5505b12ba8dee34487a3d2549d8565388d955ee1d73362421c3dee3d4badb9b9afd8b512308c7745371eeaf8c9d57
25 -AUX samba-4.3.9-remove-rep_strtoull.patch 1391 SHA256 668841dc9f9b18ac7bc9b186bf2f800382fe1073101c8ea45630706e9821540e SHA512 7c4d666673dcc2958773b95edd357f984cfb260be1e9d270d8fd4f7e42ef16697af9e3cc58d534cbc67e37cd4b4fe4bb9e8b24be41201d3fb225eb0eec093c9a WHIRLPOOL 0a7c6e7619a12b8468da9a6449914916232d8ce2cbc66779dc7a590acaf62f8a1196c08b846dbc20c58d6dd145eea36a7d087eaf0a596fbfb82d20d4b22ada0a
26 +AUX samba-4.3.9-remove-getpwent_r.patch 2680 SHA256 7956274b412a268339abb63f8e1bd63b5049cd4ab7c6270235d9d0b9bcf6c81a SHA512 0d4fd9862191554dc9c724cec0b94fd19afbfd0c4ed619e4c620c075e849cb3f3d44db1e5f119d890da23a3dd0068d9873703f3d86c47b91310521f37356208b WHIRLPOOL a42c91049872ca29dfeb80755b7f99fc3ad81b59395fb2d9a77210f18de402a4ef3a0409edfe9339b3b3e7ee7d3c85fed55f90ce50392c5e3ec2fce8c9f3f498
27 +AUX samba-4.3.9-remove-rep_strtoull.patch 2088 SHA256 a5a6493252f99d89b9c108a51073e777096e82e22f57c3444dc2cd7df36fe152 SHA512 9f264e300e453466e9be86d44dc90eea69ace58c4c1a4f9d6374bffe99dae3f56b529c19509efa39cffebb7e3aaf1edf1a1828d36e3d412d0b9de7d70e71e3e0 WHIRLPOOL a33481e663bcddcf7bc0a936d8e67d84850009cbdccf6c14949a244f939d0ea159502915a2ec2f2ee6e357d2dc4a0856a11796e44f22bbde71ff002597337aa4
28 AUX samba.conf 61 SHA256 e4fc68bc14a44e3c452e767d996ff693d131da317eb513de10d752dd96cb6f12 SHA512 4a75185762c90d110c399215fbfc939d30804b558ffdb11cc68dee6f87a94c86cadbcd63935884db1266cf40fe24fefb75f9067fe4751ad9838d7a43e8973b9e WHIRLPOOL ad21bc3738c2ec721ad3be746c66719385390835c7f4da881fc0cc1c982bb6821a56300157b1169d1a35264e44dab1a0c29cd9919455a02a8f4c53c665a4bed3
29 AUX samba.service 199 SHA256 0ae738fa2a15b476dbca016dfa4e1cf4b8c4a575e13edf518eb70b615c02a059 SHA512 eb277917f15de958f4a0404b66c6d2cc82ae4319b85f2f442489988d523bf92e2a9d23a6051ee693cd4bcfbc67947e8028c59906ad3e537578daf5caee8a6f16 WHIRLPOOL 1132081b63b1e0e1a9342d59493ebfe1d918133a4091e48c42dae7845dcaa24a0b8e7a1183d5a41b0173c3f6dbc17838a9b7a6297fc8ea0775ab150a22ae3151
30 AUX smbd.service 250 SHA256 e1f5da902cd97891852f6463b2c7eddbc61e7fbd3e3c281028a806319627fc68 SHA512 a54e3c337f7c27766a81f68ad6d8f4eb6ddb1d1aec3303f274e419a49114755bc5dd711701d5e64954ae7153a8be4a7063371af286696c0b81d543b9276703c3 WHIRLPOOL 18b6a57603a41303d207249fdb46cb4f6e887f8b9bd4921dca6b4f28a59951368d6abead2dc9d3be2c09cb2c9f295087ef5f20d121a309791b9031e3fad28b13
31 @@ -14,4 +14,4 @@ AUX winbindd.service 240 SHA256 755036bc419cce90200ac3c04986fbb7cf718c128c2a1288
32 DIST samba-4.3.9.tar.gz 20570849 SHA256 1f22c61a7f24c5357a9ef4d10833a2cd161f40f3db03bcbe586d7cd3a56139f3 SHA512 bc90c88d8defd3acec7c671e8ceacec31e3111540aabee7ec6f11cdeaf61bbd993525e2b765e3b50801c8079e1168cf496b3e5e6a56118d6493ae5da60d34c41 WHIRLPOOL e33efba4bfbaab5278ec62cbadb5f14fe2220d4b4ad1e57a4d26233d8b6bdf4318ad86d839b2638a490a195c04aabb02dafff67bb1e2999fab4f116b3c6367cc
33 DIST samba-disable-python-patches-4.3.9.tar.xz 6116 SHA256 83206112e04c375e170e86ea6b29d6dc2c172b55ba9fb89130be14708d758cf5 SHA512 ca8b62337afd1cc6059b9aefc0a3972d18ba90fba3f043d9730f6967e1b80c40bc918b0445b8ae8a1f3df74d3551f90c721df3c0514edccb881ed0b4fc54e1b5 WHIRLPOOL 3aebd6758e5e7dc2920b1e8f8825d2b7b7efac7c5f2d91d5ed6fed75597bfdced1b27d9e2a00385af5df19e5462a4e014df6a7274c0b25a660702268235ef746
34 EBUILD samba-4.3.9-r99.ebuild 6784 SHA256 0ced519f1d177f9c82c5c2dca1ebfcdb124d32fb24c1f7f1b8c36af92bb29090 SHA512 4e3723d82ff7e819eb65e0dd32081479cd3e2f75a64977bc7d337aa9d424234cf77a20988415145254c398faa7dd5ce854628ff27a94fc810599271dc1f546df WHIRLPOOL 1565704f0e0b05d0c8a71fb437e03b62789e74f6d4350ef93dc2f5d54060726fef1af818ce920b90c54fd5abe99a1d54ea950e997e51c4d89fa8958bf72c3b0f
35 -MISC metadata.xml 1714 SHA256 94b726fc2c6f741402a9a6139fd507a9b7b56d0920ae83a095e0e5c416250f3d SHA512 ccf8143ca9c586a5313f8e4d82ae9114ad9685def8b12729804ebd5279ce53e58685cf21257a7fe11f0a40227df5b3987550d4d8f3fde1752310eec3da27ba4f WHIRLPOOL 7c35b3a07535c0e3e9e716a394f06535c343a44dcd4ec49c28460ef337e9d920fc91210f083bf6ca098774369bec065e280ef11f296372242ea94b72b70a9fc2
36 +MISC metadata.xml 1340 SHA256 7e1194c34c9027273c83730261a6216ebed071fd6d43035fb53d1f4181db4686 SHA512 1c339824f2fcbe5573041699a973fd31355cae24c8d6c8e7779b82da3aef96fba3ed4f8a08e2867ef6a7b77e025253e0f762eadb2b96331e7c57cf3b25a64da4 WHIRLPOOL 5163bf739900fa9fe9b05ddcee07829911cf9b704d42bf246e38111aa90a09f5435fbd4d8058f29e171fa91e64110bb49834af1677ea55b1d2f2789a20740e58
37
38 diff --git a/net-fs/samba/files/samba-4.3.9-remove-getpwent_r.patch b/net-fs/samba/files/samba-4.3.9-remove-getpwent_r.patch
39 index 0b42cbf..99ebeda 100644
40 --- a/net-fs/samba/files/samba-4.3.9-remove-getpwent_r.patch
41 +++ b/net-fs/samba/files/samba-4.3.9-remove-getpwent_r.patch
42 @@ -1,101 +1,80 @@
43 -diff -Naur samba-4.3.9.orig/source4/torture/local/nss_tests.c samba-4.3.9/source4/torture/local/nss_tests.c
44 ---- samba-4.3.9.orig/source4/torture/local/nss_tests.c 2015-12-01 08:42:55.000000000 +0000
45 -+++ samba-4.3.9/source4/torture/local/nss_tests.c 2016-05-29 00:52:30.412002243 +0000
46 -@@ -337,48 +337,6 @@
47 +diff --git a/source4/torture/local/nss_tests.c b/source4/torture/local/nss_tests.c
48 +index 2cd6122..04f13c6 100644
49 +--- a/source4/torture/local/nss_tests.c
50 ++++ b/source4/torture/local/nss_tests.c
51 +@@ -247,7 +247,6 @@ static bool test_getgrnam_r(struct torture_context *tctx,
52 + return true;
53 + }
54 +
55 +-
56 + static bool test_getgrgid(struct torture_context *tctx,
57 + gid_t gid,
58 + struct group *grp_p)
59 +@@ -333,6 +332,7 @@ static bool test_enum_passwd(struct torture_context *tctx,
60 + return true;
61 + }
62 +
63 ++#if HAVE_GETPWENT_R
64 + static bool test_enum_r_passwd(struct torture_context *tctx,
65 struct passwd **pwd_array_p,
66 size_t *num_pwd_p)
67 - {
68 -- struct passwd pwd, *pwdp;
69 -- struct passwd *pwd_array = NULL;
70 -- size_t num_pwd = 0;
71 -- char buffer[4096];
72 -- int ret;
73 --
74 -- torture_comment(tctx, "Testing setpwent\n");
75 -- setpwent();
76 --
77 -- while (1) {
78 -- torture_comment(tctx, "Testing getpwent_r\n");
79 --
80 --#ifdef SOLARIS_GETPWENT_R
81 -- ret = getpwent_r(&pwd, buffer, sizeof(buffer));
82 --#else /* SOLARIS_GETPWENT_R */
83 -- ret = getpwent_r(&pwd, buffer, sizeof(buffer), &pwdp);
84 --#endif /* SOLARIS_GETPWENT_R */
85 -- if (ret != 0) {
86 -- if (ret != ENOENT) {
87 -- torture_comment(tctx, "got %d return code\n", ret);
88 -- }
89 -- break;
90 -- }
91 -- print_passwd(&pwd);
92 -- if (pwd_array_p && num_pwd_p) {
93 -- pwd_array = talloc_realloc(tctx, pwd_array, struct passwd, num_pwd+1);
94 -- torture_assert(tctx, pwd_array, "out of memory");
95 -- copy_passwd(tctx, &pwd, &pwd_array[num_pwd]);
96 -- num_pwd++;
97 -- }
98 -- }
99 --
100 -- torture_comment(tctx, "Testing endpwent\n");
101 -- endpwent();
102 --
103 -- if (pwd_array_p) {
104 -- *pwd_array_p = pwd_array;
105 -- }
106 -- if (num_pwd_p) {
107 -- *num_pwd_p = num_pwd;
108 -- }
109 --
110 +@@ -381,6 +381,7 @@ static bool test_enum_r_passwd(struct torture_context *tctx,
111 +
112 + return true;
113 + }
114 ++#endif
115 +
116 + static bool torture_assert_passwd_equal(struct torture_context *tctx,
117 + const struct passwd *p1,
118 +@@ -432,7 +433,7 @@ static bool test_passwd_r(struct torture_context *tctx)
119 + struct passwd *pwd, pwd1, pwd2;
120 + size_t num_pwd;
121 +
122 +- torture_assert(tctx, test_enum_r_passwd(tctx, &pwd, &num_pwd),
123 ++ torture_assert(tctx, test_enum_passwd(tctx, &pwd, &num_pwd),
124 + "failed to enumerate passwd");
125 +
126 + for (i=0; i < num_pwd; i++) {
127 +@@ -460,7 +461,7 @@ static bool test_passwd_r_cross(struct torture_context *tctx)
128 + struct passwd *pwd, pwd1, pwd2, pwd3, pwd4;
129 + size_t num_pwd;
130 +
131 +- torture_assert(tctx, test_enum_r_passwd(tctx, &pwd, &num_pwd),
132 ++ torture_assert(tctx, test_enum_passwd(tctx, &pwd, &num_pwd),
133 + "failed to enumerate passwd");
134 +
135 + for (i=0; i < num_pwd; i++) {
136 +@@ -531,6 +532,7 @@ static bool test_enum_group(struct torture_context *tctx,
137 return true;
138 }
139
140 -@@ -535,48 +493,6 @@
141 ++#if HAVE_GETGRENT_R
142 + static bool test_enum_r_group(struct torture_context *tctx,
143 struct group **grp_array_p,
144 size_t *num_grp_p)
145 - {
146 -- struct group grp, *grpp;
147 -- struct group *grp_array = NULL;
148 -- size_t num_grp = 0;
149 -- char buffer[4096];
150 -- int ret;
151 --
152 -- torture_comment(tctx, "Testing setgrent\n");
153 -- setgrent();
154 --
155 -- while (1) {
156 -- torture_comment(tctx, "Testing getgrent_r\n");
157 --
158 --#ifdef SOLARIS_GETGRENT_R
159 -- ret = getgrent_r(&grp, buffer, sizeof(buffer));
160 --#else /* SOLARIS_GETGRENT_R */
161 -- ret = getgrent_r(&grp, buffer, sizeof(buffer), &grpp);
162 --#endif /* SOLARIS_GETGRENT_R */
163 -- if (ret != 0) {
164 -- if (ret != ENOENT) {
165 -- torture_comment(tctx, "got %d return code\n", ret);
166 -- }
167 -- break;
168 -- }
169 -- print_group(&grp);
170 -- if (grp_array_p && num_grp_p) {
171 -- grp_array = talloc_realloc(tctx, grp_array, struct group, num_grp+1);
172 -- torture_assert(tctx, grp_array, "out of memory");
173 -- copy_group(tctx, &grp, &grp_array[num_grp]);
174 -- num_grp++;
175 -- }
176 -- }
177 --
178 -- torture_comment(tctx, "Testing endgrent\n");
179 -- endgrent();
180 --
181 -- if (grp_array_p) {
182 -- *grp_array_p = grp_array;
183 -- }
184 -- if (num_grp_p) {
185 -- *num_grp_p = num_grp;
186 -- }
187 --
188 +@@ -579,6 +581,7 @@ static bool test_enum_r_group(struct torture_context *tctx,
189 +
190 return true;
191 }
192 ++#endif
193 +
194 + static bool torture_assert_group_equal(struct torture_context *tctx,
195 + const struct group *g1,
196 +@@ -635,7 +638,7 @@ static bool test_group_r(struct torture_context *tctx)
197 + struct group *grp, grp1, grp2;
198 + size_t num_grp;
199 +
200 +- torture_assert(tctx, test_enum_r_group(tctx, &grp, &num_grp),
201 ++ torture_assert(tctx, test_enum_group(tctx, &grp, &num_grp),
202 + "failed to enumerate group");
203 +
204 + for (i=0; i < num_grp; i++) {
205 +@@ -663,7 +666,7 @@ static bool test_group_r_cross(struct torture_context *tctx)
206 + struct group *grp, grp1, grp2, grp3, grp4;
207 + size_t num_grp;
208 +
209 +- torture_assert(tctx, test_enum_r_group(tctx, &grp, &num_grp),
210 ++ torture_assert(tctx, test_enum_group(tctx, &grp, &num_grp),
211 + "failed to enumerate group");
212
213 + for (i=0; i < num_grp; i++) {
214
215 diff --git a/net-fs/samba/files/samba-4.3.9-remove-rep_strtoull.patch b/net-fs/samba/files/samba-4.3.9-remove-rep_strtoull.patch
216 index 36efd57..9c41454 100644
217 --- a/net-fs/samba/files/samba-4.3.9-remove-rep_strtoull.patch
218 +++ b/net-fs/samba/files/samba-4.3.9-remove-rep_strtoull.patch
219 @@ -1,6 +1,6 @@
220 diff -Naur samba-4.3.9.orig/lib/replace/replace.c samba-4.3.9/lib/replace/replace.c
221 --- samba-4.3.9.orig/lib/replace/replace.c 2015-09-08 13:45:25.000000000 +0000
222 -+++ samba-4.3.9/lib/replace/replace.c 2016-05-29 00:50:43.794008282 +0000
223 ++++ samba-4.3.9/lib/replace/replace.c 2016-05-29 06:47:07.529796925 +0000
224 @@ -558,43 +558,6 @@
225 #endif /* HAVE_STRTOLL */
226
227 @@ -45,3 +45,23 @@ diff -Naur samba-4.3.9.orig/lib/replace/replace.c samba-4.3.9/lib/replace/replac
228 #ifndef HAVE_SETENV
229 int rep_setenv(const char *name, const char *value, int overwrite)
230 {
231 +diff -Naur samba-4.3.9.orig/lib/replace/replace.h samba-4.3.9/lib/replace/replace.h
232 +--- samba-4.3.9.orig/lib/replace/replace.h 2015-09-08 13:45:25.000000000 +0000
233 ++++ samba-4.3.9/lib/replace/replace.h 2016-05-29 06:47:28.886795715 +0000
234 +@@ -371,16 +371,6 @@
235 + #endif
236 + #endif
237 +
238 +-#ifndef HAVE_STRTOULL
239 +-#define strtoull rep_strtoull
240 +-unsigned long long int rep_strtoull(const char *str, char **endptr, int base);
241 +-#else
242 +-#ifdef HAVE_BSD_STRTOLL /* yes, it's not HAVE_BSD_STRTOULL */
243 +-#define strtoull rep_strtoull
244 +-unsigned long long int rep_strtoull(const char *str, char **endptr, int base);
245 +-#endif
246 +-#endif
247 +-
248 + #ifndef HAVE_FTRUNCATE
249 + #define ftruncate rep_ftruncate
250 + int rep_ftruncate(int,off_t);
251
252 diff --git a/net-fs/samba/metadata.xml b/net-fs/samba/metadata.xml
253 index 73d475c..0028eef 100644
254 --- a/net-fs/samba/metadata.xml
255 +++ b/net-fs/samba/metadata.xml
256 @@ -11,20 +11,14 @@
257 <use>
258 <flag name="addc">Enable Active Directory Domain Controller support</flag>
259 <flag name="ads">Enable Active Directory support</flag>
260 - <flag name="swat">Enables support for swat configuration gui</flag>
261 <flag name="winbind">Enables support for the winbind auth daemon</flag>
262 <flag name="client">Enables the client part</flag>
263 <flag name="server">Enables the server part</flag>
264 - <flag name="netapi">Enable building of netapi bits</flag>
265 <flag name="addns">Enable AD DNS integration</flag>
266 <flag name="aio">Enable asynchronous IO support</flag>
267 <flag name="cluster">Enable support for clustering</flag>
268 <flag name="dmapi">Enable support for DMAPI. This currently works only in combination with XFS.</flag>
269 - <flag name="ldb">Enable the ldb tools</flag>
270 <flag name="quota">Enables support for user quotas</flag>
271 - <flag name="smbclient">Enable smbclient tool</flag>
272 - <flag name="smbsharemodes">Enable special smb share modes (?) </flag>
273 - <flag name="smbtav2">Enable Samba Traffic Analyzer version 2 </flag>
274 <flag name="system-mitkrb5">Use <pkg>app-crypt/mit-krb5</pkg> instead of
275 <pkg>app-crypt/heimdal</pkg>.</flag>
276 <flag name="iprint">Enabling iPrint technology by Novell</flag>