Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 531168 | Differences between
and this patch

Collapse All | Expand All

(-)a/net-libs/libnfsidmap/ChangeLog (+198 lines)
Line 0 Link Here
1
# ChangeLog for net-libs/libnfsidmap
2
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
3
# $Header: /var/cvsroot/gentoo-x86/net-libs/libnfsidmap/ChangeLog,v 1.45 2014/03/15 16:20:45 vapier Exp $
4
5
*libnfsidmap-0.25-r1 (15 Mar 2014)
6
7
  15 Mar 2014; Mike Frysinger <vapier@gentoo.org> +libnfsidmap-0.25-r1.ebuild:
8
  Set plugins dir to right libdir #504666 by Sergey Popov.
9
10
  18 Jan 2014; Mike Frysinger <vapier@gentoo.org> libnfsidmap-0.24.ebuild,
11
  libnfsidmap-0.25.ebuild:
12
  Add arm64 love.
13
14
  20 Dec 2013; Mike Frysinger <vapier@gentoo.org>
15
  files/libnfsidmap-0.19-getgrouplist.patch:
16
  Fix building with getgrouplist in older versions #494770 by smkbot.
17
18
*libnfsidmap-0.25 (17 Dec 2013)
19
20
  17 Dec 2013; Mike Frysinger <vapier@gentoo.org> +libnfsidmap-0.25.ebuild,
21
  files/libnfsidmap-0.19-getgrouplist.patch:
22
  Version bump #489006 by michal.halenka.
23
24
  21 May 2012; Kacper Kowalik <xarthisius@gentoo.org>
25
  libnfsidmap-0.21-r1.ebuild, libnfsidmap-0.23-r1.ebuild,
26
  libnfsidmap-0.24.ebuild:
27
  Add missing inheritance of eutils.eclass
28
29
  04 Feb 2012; Raúl Porcel <armin76@gentoo.org> libnfsidmap-0.24.ebuild:
30
  alpha/arm/ia64/m68k/s390/sh/sparc stable wrt #400441
31
32
  01 Feb 2012; Samuli Suominen <ssuominen@gentoo.org> libnfsidmap-0.24.ebuild:
33
  ppc/ppc64 stable wrt #400441
34
35
  31 Jan 2012; Jeroen Roovers <jer@gentoo.org> libnfsidmap-0.24.ebuild:
36
  Stable for HPPA (bug #400441).
37
38
  28 Jan 2012; Pawel Hajdan jr <phajdan.jr@gentoo.org> libnfsidmap-0.24.ebuild:
39
  x86 stable wrt bug #400441
40
41
  27 Jan 2012; Agostino Sarubbo <ago@gentoo.org> libnfsidmap-0.24.ebuild:
42
  Stable for amd64, wrt bug #400441
43
44
*libnfsidmap-0.24 (02 Sep 2011)
45
46
  02 Sep 2011; Mike Frysinger <vapier@gentoo.org> +libnfsidmap-0.24.ebuild:
47
  Version bump and USE=static-libs support.
48
49
*libnfsidmap-0.23-r1 (14 Sep 2010)
50
51
  14 Sep 2010; Mike Frysinger <vapier@gentoo.org>
52
  files/libnfsidmap-0.21-headers.patch, +libnfsidmap-0.23-r1.ebuild:
53
  Fix static lib handling and block newer nfs-utils due to man page collision
54
  #337213 by Robin Johnson.
55
56
*libnfsidmap-0.23 (27 Jul 2010)
57
58
  27 Jul 2010; Diego E. Pettenò <flameeyes@gentoo.org>
59
  -libnfsidmap-0.19.ebuild, +libnfsidmap-0.23.ebuild:
60
  Remove old version, add a new one that does not build useless static
61
  archives and does not install .la files.
62
63
  25 Mar 2009; Raúl Porcel <armin76@gentoo.org> libnfsidmap-0.21-r1.ebuild:
64
  arm/ia64/s390/sh/sparc stable wrt #261334
65
66
  18 Mar 2009; Joseph Jezak <josejx@gentoo.org> libnfsidmap-0.21-r1.ebuild:
67
  Marked ppc stable for bug #261334.
68
69
  15 Mar 2009; Markus Meier <maekke@gentoo.org> libnfsidmap-0.21-r1.ebuild:
70
  x86 stable, bug #261334
71
72
  15 Mar 2009; Brent Baude <ranger@gentoo.org> libnfsidmap-0.21-r1.ebuild:
73
  Marking libnfsidmap-0.21-r1 ppc64 for bug 261334
74
75
  11 Mar 2009; Tobias Klausmann <klausman@gentoo.org>
76
  libnfsidmap-0.21-r1.ebuild:
77
  Stable on alpha, bug #261334
78
79
  10 Mar 2009; Dawid Węgliński <cla@gentoo.org>
80
  libnfsidmap-0.21-r1.ebuild:
81
  Stable on amd64 (bug #261334)
82
83
  06 Mar 2009; Jeroen Roovers <jer@gentoo.org> libnfsidmap-0.21-r1.ebuild:
84
  Stable for HPPA (bug #261334).
85
86
  02 Feb 2009; Mike Frysinger <vapier@gentoo.org>
87
  +files/libnfsidmap-0.21-headers.patch, libnfsidmap-0.21-r1.ebuild:
88
  Fix prototype warnings.
89
90
  02 Feb 2009; Torsten Veller <tove@gentoo.org> libnfsidmap-0.21-r1.ebuild:
91
  Back to ~arch until !<net-fs/nfs-utils-0.14 is stabil too (#257148 + dups)
92
93
  01 Feb 2009; Markus Meier <maekke@gentoo.org> libnfsidmap-0.21-r1.ebuild:
94
  amd64/x86 stable, bug #257148
95
96
  01 Feb 2009; Tobias Klausmann <klausman@gentoo.org>
97
  libnfsidmap-0.21-r1.ebuild:
98
  Stable on alpha, bug #257148
99
100
*libnfsidmap-0.21-r1 (26 Oct 2008)
101
102
  26 Oct 2008; Mike Frysinger <vapier@gentoo.org>
103
  +libnfsidmap-0.21-r1.ebuild:
104
  Provide idmapd.conf now #243066.
105
106
*libnfsidmap-0.21 (16 Aug 2008)
107
108
  16 Aug 2008; Mike Frysinger <vapier@gentoo.org> +libnfsidmap-0.21.ebuild:
109
  Version bump.
110
111
  13 Oct 2007; Markus Rothe <corsair@gentoo.org> libnfsidmap-0.19.ebuild:
112
  Stable on ppc64; bug #191296
113
114
  09 Oct 2007; Raúl Porcel <armin76@gentoo.org> libnfsidmap-0.19.ebuild:
115
  sparc stable wrt #191296
116
117
  23 Sep 2007; Wulf C. Krueger <philantrop@gentoo.org>
118
  libnfsidmap-0.19.ebuild:
119
  Marked stable on amd64 as per bug 191296.
120
121
  08 Sep 2007; nixnut <nixnut@gentoo.org> libnfsidmap-0.19.ebuild:
122
  Stable on ppc wrt bug 191296
123
124
  07 Sep 2007; Jeroen Roovers <jer@gentoo.org> libnfsidmap-0.19.ebuild:
125
  Stable for HPPA (bug #191296).
126
127
  06 Sep 2007; Raúl Porcel <armin76@gentoo.org> libnfsidmap-0.19.ebuild:
128
  alpha/ia64/x86 stable wrt #191296
129
130
*libnfsidmap-0.20 (04 Sep 2007)
131
132
  04 Sep 2007; Mike Frysinger <vapier@gentoo.org> +libnfsidmap-0.20.ebuild:
133
  Version bump #190586 by Francisco Javier.
134
135
  25 Mar 2007; Mike Frysinger <vapier@gentoo.org>
136
  +files/libnfsidmap-0.19-getgrouplist.patch, libnfsidmap-0.19.ebuild:
137
  Provide getgrouplist() when need be #169909 by Natanael Copa.
138
139
  31 Jan 2007; Tobias Scherbaum <dertobi123@gentoo.org>
140
  libnfsidmap-0.17.ebuild:
141
  Stable on ppc wrt bug #161640.
142
143
  26 Jan 2007; Alexander H. Færøy <eroyf@gentoo.org>
144
  libnfsidmap-0.17.ebuild:
145
  Stable on MIPS; bug #161640
146
147
*libnfsidmap-0.19 (21 Jan 2007)
148
149
  21 Jan 2007; Mike Frysinger <vapier@gentoo.org> +libnfsidmap-0.19.ebuild:
150
  Version bump #162910 by Erik Logtenberg.
151
152
  16 Jan 2007; Olivier Crête <tester@gentoo.org> libnfsidmap-0.17.ebuild:
153
  Stable on amd64 per bug #161640
154
155
  12 Jan 2007; Markus Rothe <corsair@gentoo.org> libnfsidmap-0.17.ebuild:
156
  Stable on ppc64; bug #161640
157
158
  12 Jan 2007; Christian Faulhammer <opfer@gentoo.org>
159
  libnfsidmap-0.17.ebuild:
160
  stable x86, bug #161640
161
162
  28 Dec 2006; Gustavo Zacarias <gustavoz@gentoo.org>
163
  libnfsidmap-0.17.ebuild:
164
  Stable on sparc
165
166
  04 Dec 2006; Jeroen Roovers <jer@gentoo.org> libnfsidmap-0.17.ebuild:
167
  Stable for HPPA.
168
169
  21 Oct 2006; Aron Griffis <agriffis@gentoo.org> libnfsidmap-0.17.ebuild:
170
  Mark 0.17 stable on alpha/ia64
171
172
*libnfsidmap-0.17 (22 Aug 2006)
173
174
  22 Aug 2006; Mike Frysinger <vapier@gentoo.org> +libnfsidmap-0.17.ebuild:
175
  Version bump #143975 by Erik Logtenberg.
176
177
*libnfsidmap-0.16 (10 Jun 2006)
178
179
  10 Jun 2006; Mike Frysinger <vapier@gentoo.org> :
180
  Version bump / rename.
181
182
*nfsidmap-0.10 (15 Mar 2005)
183
184
  15 Mar 2005; Mike Frysinger <vapier@gentoo.org> +nfsidmap-0.10.ebuild:
185
  Version bump.
186
187
*nfsidmap-0.9 (04 Feb 2005)
188
189
  04 Feb 2005; Aron Griffis <agriffis@gentoo.org> +nfsidmap-0.9.ebuild:
190
  Bump to version 0.9
191
192
  08 Jan 2005; Sven Wegener <swegener@gentoo.org> nfsidmap-0.7.ebuild:
193
  Added inherit flag-o-matic.
194
195
*nfsidmap-0.7 (30 Dec 2004)
196
197
  30 Dec 2004; Mike Frysinger <vapier@gentoo.org> :
198
  Initial import.  Ebuild submitted by Micheal Marineau #70732.
(-)a/net-libs/libnfsidmap/Manifest (+7 lines)
Line 0 Link Here
1
AUX 0001-add_missing_header_musl.patch 278 SHA256 5ad941e71e4523f22da5f30c7855e6657193470917a6ee3b4143f04967b4af09 SHA512 34dd3d7c0723cf95518a6f28b7b522d35a4f653bf6496d3b46fa57602b41f761e60e51ada7334422950fcd8a0cae559caf82bb9c2822c9f688e0d009476c4389 WHIRLPOOL a981aed6d9c84363375c720719a4fa9e87bae5f324bf02b41324ecb107ce4d325e0e0cca9afd0b95994bf97aeea7ab1254ae1610d97ec5e23b6b9505665a2791
2
AUX libnfsidmap-0.19-getgrouplist.patch 3459 SHA256 214f347663610a63f56659da0f50eac95e0c59257c18f09edcdc37984fdc8596 SHA512 a778620b51158b07b7224ca010ba199feba85af7fc087bde65cfb8d2660bd7646c08d303a39d2af525b3a449694a60c3c35fe3b696cb0354b5d74423240a9e8d WHIRLPOOL d44d8f9272884d99f838483742cabbb2d0353b4d45f03988a6addcad54b6ad91059179697618595f7833df47d2e9f17747fc86ce4e94b725c497e19c9238cb2c
3
AUX libnfsidmap-0.21-headers.patch 438 SHA256 755314afbbdc82d2cb2e5f0114a3d6eae0d0978da859f215bb858e44a11296ff SHA512 55cc2dce6df5c215d2ba270324a2dabdd7c798d88dfe1f6ac01a7bfcddc1b9a23bc031fac2006682596f3984f0ce9782c8584e3b8e02a1b491ac978a69aca926 WHIRLPOOL 0ea374b911ba5209b621a363eff287647fdb8d3d98106276f143cb9fd03578c8c477482195876d8f751dcf59b9c1ecf8121f405caae4e0134f23a48cbcc86861
4
DIST libnfsidmap-0.24.tar.gz 328720 SHA256 59501432e683336d7a290da13767e92afb5b86f42ea4254041225fe218e8dd47 SHA512 1283a4af1bcf3c6f941ab294acc0b2b4bd9ca947f2d3c2e866717478ba2e7a2190a5467b71d7e9136c5c83de564c4892f9e3304323ae17e3988af2e40c43982b WHIRLPOOL 7f9e81dec91429c09b24325bdf077d800b608bb87eeeb5d4334fa3dbbd50a4acf482162716c19c5f5175e48bf129dbf4611c1d6be933097753eeaab834192bae
5
EBUILD libnfsidmap-0.24-r99.ebuild 1218 SHA256 a5b98542269544e1650e85a99412f7fbae1c4e9858479ac430b98d9da29f223d SHA512 125171f6e35bf523175188850edbadf74c5a44d7e26946cf9bce0ffcdc538f4222ce46a50f6c226337718bcbf89c8f844ec0238c13296927c75128fabdd4be6b WHIRLPOOL 451bcb135672d6455a4caedcbaaa07e61d534077d6c0ff773708da013c88a343e366a15299b5adabbf5a336358373c38f04997264cad1ad148a03b6c0b636dec
6
MISC ChangeLog 6661 SHA256 3d860d955a6294e60878e87f0f757dff1c396d00a3bfacc79189b8ec144c3d08 SHA512 af86d2dec4c28406856e8c60b84082e12e94605040235936367800b2ef0fcec55680e41bd438fd755bc6b1327773c4535238a210ec565137c61103970c051f5e WHIRLPOOL 17d61973cdd0a152c7cde52a77d350250495f4b4c895e940f058f13df2174799d1fd7403e571a9cef5d100b03b26a054e74b0b787ee8543d947b3b754f1427f3
7
MISC metadata.xml 159 SHA256 562c59615c028ffa088de789b3a792fd4cbbbfe71628ddd6a55d3b176becbc6b SHA512 9645bd7d570c2eefd7f14adf726c056a6295d45263f143e365a3fd2e8e6128392eb5fa1103b3a3bb60a622b4595ac7fe3ec19430184210ff63e86d5f03635704 WHIRLPOOL 1d62390192bf65ac30d67f3c0a872536dd8e6a5a0d8d978e5e8f83f09e44907abf16825066c9976e8be482398385737a024837da3c544eaf912ec2710318e289
(-)a/net-libs/libnfsidmap/files/libnfsidmap-0.19-getgrouplist.patch (+116 lines)
Line 0 Link Here
1
--- cfg.h	2015-01-10 14:25:50.384148769 +0000
Line 0 Link Here
1
http://bugs.gentoo.org/169909
2
3
--- libnfsidmap-0.19/configure.in
4
+++ libnfsidmap-0.19/configure.in
5
@@ -38,7 +38,7 @@
6
 
7
 # Checks for library functions.
8
 AC_FUNC_MALLOC
9
-AC_CHECK_FUNCS([strchr strdup])
10
+AC_CHECK_FUNCS([strchr strdup getgrouplist])
11
 
12
 AC_CONFIG_FILES([Makefile])
13
 AC_OUTPUT(libnfsidmap.pc)
14
--- libnfsidmap-0.19/nss.c
15
+++ libnfsidmap-0.19/nss.c
16
@@ -49,6 +49,8 @@
17
 #include "cfg.h"
18
 #include <syslog.h>
19
 
20
+#include "getgrouplist.c"
21
+
22
 /*
23
  * NSS Translation Methods
24
  *
25
--- libnfsidmap-0.19/getgrouplist.c
26
+++ libnfsidmap-0.19/getgrouplist.c
27
@@ -0,0 +1,88 @@
28
+/*
29
+ *  getgrouplist.c
30
+ *
31
+ *  if system does not provide the non-standard getgrouplist, we will emulate
32
+ *  it via POSIX standard functions
33
+ *
34
+ * Copyright (c) 1991, 1993
35
+ *	The Regents of the University of California.  All rights reserved.
36
+ *
37
+ * Redistribution and use in source and binary forms, with or without
38
+ * modification, are permitted provided that the following conditions
39
+ * are met:
40
+ * 1. Redistributions of source code must retain the above copyright
41
+ *    notice, this list of conditions and the following disclaimer.
42
+ * 2. Redistributions in binary form must reproduce the above copyright
43
+ *    notice, this list of conditions and the following disclaimer in the
44
+ *    documentation and/or other materials provided with the distribution.
45
+ * 4. Neither the name of the University nor the names of its contributors
46
+ *    may be used to endorse or promote products derived from this software
47
+ *    without specific prior written permission.
48
+ *
49
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
50
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
51
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
52
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
53
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
54
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
55
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
56
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
57
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
58
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
59
+ * SUCH DAMAGE.
60
+ */
61
+
62
+#ifdef HAVE_CONFIG_H
63
+#include "config.h"
64
+#endif
65
+#include <sys/types.h>
66
+#include <grp.h>
67
+#include <string.h>
68
+#include <unistd.h>
69
+
70
+#ifndef HAVE_GETGROUPLIST
71
+static
72
+int
73
+getgrouplist(const char *uname, gid_t agroup, gid_t *groups, int *grpcnt)
74
+{
75
+	const struct group *grp;
76
+	int i, maxgroups, ngroups, ret;
77
+
78
+	ret = 0;
79
+	ngroups = 0;
80
+	maxgroups = *grpcnt;
81
+	/*
82
+	 * When installing primary group, duplicate it;
83
+	 * the first element of groups is the effective gid
84
+	 * and will be overwritten when a setgid file is executed.
85
+	 */
86
+	groups[ngroups++] = agroup;
87
+	if (maxgroups > 1)
88
+		groups[ngroups++] = agroup;
89
+	/*
90
+	 * Scan the group file to find additional groups.
91
+	 */
92
+	setgrent();
93
+	while ((grp = getgrent()) != NULL) {
94
+		for (i = 0; i < ngroups; i++) {
95
+			if (grp->gr_gid == groups[i])
96
+				goto skip;
97
+		}
98
+		for (i = 0; grp->gr_mem[i]; i++) {
99
+			if (!strcmp(grp->gr_mem[i], uname)) {
100
+				if (ngroups >= maxgroups) {
101
+					ret = -1;
102
+					break;
103
+				}
104
+				groups[ngroups++] = grp->gr_gid;
105
+				break;
106
+			}
107
+		}
108
+skip:
109
+		;
110
+	}
111
+	endgrent();
112
+	*grpcnt = ngroups;
113
+	return (ret);
114
+}
115
+#endif
(-)a/net-libs/libnfsidmap/files/libnfsidmap-0.21-headers.patch (+22 lines)
Line 0 Link Here
1
for toupper and such
2
3
--- a/nss.c
4
+++ b/nss.c
5
@@ -34,6 +34,7 @@
6
  *  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
7
  */
8
 
9
+#include <ctype.h>
10
 #include <sys/types.h>
11
 #include <errno.h>
12
 #include <unistd.h>
13
--- a/libnfsidmap.c
14
+++ b/libnfsidmap.c
15
@@ -37,6 +37,7 @@
16
  *  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
17
  */
18
 
19
+#include <ctype.h>
20
 #include <sys/types.h>
21
 #include <errno.h>
22
 #include <unistd.h>
(-)a/net-libs/libnfsidmap/libnfsidmap-0.24-r99.ebuild (+48 lines)
Line 0 Link Here
1
# Copyright 1999-2014 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/net-libs/libnfsidmap/libnfsidmap-0.24.ebuild,v 1.8 2014/01/18 04:50:16 vapier Exp $
4
5
EAPI="2"
6
7
inherit autotools eutils
8
9
DESCRIPTION="NFSv4 ID <-> name mapping library"
10
HOMEPAGE="http://www.citi.umich.edu/projects/nfsv4/linux/"
11
SRC_URI="http://www.citi.umich.edu/projects/nfsv4/linux/libnfsidmap/${P}.tar.gz"
12
13
LICENSE="BSD"
14
SLOT="0"
15
KEYWORDS="~amd64 ~arm ~mips ~ppc ~x86"
16
IUSE="ldap static-libs"
17
18
DEPEND="ldap? ( net-nds/openldap )"
19
RDEPEND="${DEPEND}
20
	!<net-fs/nfs-utils-1.2.2
21
	!net-fs/idmapd"
22
23
src_prepare() {
24
	epatch "${FILESDIR}"/${PN}-0.19-getgrouplist.patch #169909
25
	epatch "${FILESDIR}"/${PN}-0.21-headers.patch
26
	epatch "${FILESDIR}"/0001-add_missing_header_musl.patch
27
	epatch_user
28
	eautoreconf
29
}
30
31
src_configure() {
32
	econf \
33
		--disable-dependency-tracking \
34
		$(use_enable static-libs static) \
35
		$(use_enable ldap)
36
}
37
38
src_install() {
39
	emake install DESTDIR="${D}" || die
40
	dodoc AUTHORS ChangeLog NEWS README
41
42
	insinto /etc
43
	doins idmapd.conf || die
44
45
	# remove useless files
46
	rm -f "${D}"/usr/lib*/libnfsidmap/*.{a,la}
47
	use static-libs || rm -f "${D}"/usr/lib*/*.la
48
}
(-)a/net-libs/libnfsidmap/metadata.xml (-1 / +5 lines)
Line 0 Link Here
0
- 
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
3
<pkgmetadata>
4
<herd>net-fs</herd>
5
</pkgmetadata>

Return to bug 531168