Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/libnss-nis/, sys-auth/libnss-nis/files/
Date: Sat, 25 Nov 2017 13:39:53
Message-Id: 1511617188.9c3f917d04edb41031850508426f1feeaf8ee477.floppym@gentoo
1 commit: 9c3f917d04edb41031850508426f1feeaf8ee477
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Sat Nov 25 13:38:45 2017 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 25 13:39:48 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c3f917d
7
8 sys-auth/libnss-nis: bump to 1.4
9
10 Package-Manager: Portage-2.3.15, Repoman-2.3.6_p7
11
12 sys-auth/libnss-nis/Manifest | 2 +-
13 sys-auth/libnss-nis/files/map_v4v6_address.patch | 112 ---------------------
14 ...libnss-nis-1.3.ebuild => libnss-nis-1.4.ebuild} | 9 +-
15 3 files changed, 3 insertions(+), 120 deletions(-)
16
17 diff --git a/sys-auth/libnss-nis/Manifest b/sys-auth/libnss-nis/Manifest
18 index 628e418dc04..31a795de6d2 100644
19 --- a/sys-auth/libnss-nis/Manifest
20 +++ b/sys-auth/libnss-nis/Manifest
21 @@ -1 +1 @@
22 -DIST libnss-nis-1.3.tar.gz 208580 BLAKE2B 81dbef7c34cc01bcb35281b5cd16fe3ba222bcaf38fe58778589fd3452ba3a8521532281909ff6f1758a67eebc2c5942aaf8ffd8b30fb13e0a0c74bb1044e633 SHA512 d5af3223da2202f2f3168f127980bb6b3f3c5939e2efe4d68fe3d13b6068898be7a64494f2c80a31afa77fb411c8d360519e5d26709d6aebca2bfb2d0c09cd26
23 +DIST libnss-nis-1.4.tar.gz 209887 BLAKE2B ca9c2d66080568cc7748b4df4b0318687cf9dac5717c84a8e84d033a3a0aa0d59b3159c55ad2e1513e161b40acea59c3df8cddaea1ff4897a0599777179bd7f2 SHA512 56338a1dd60b756fb40e7e08c0d7d49ce98b47f684e7278aaf1a521a74f02b23cc73908adbd6ff88057f2f0e42301f827f888fc7af82aa57ff9449a05de73b75
24
25 diff --git a/sys-auth/libnss-nis/files/map_v4v6_address.patch b/sys-auth/libnss-nis/files/map_v4v6_address.patch
26 deleted file mode 100644
27 index 85a69d71c5b..00000000000
28 --- a/sys-auth/libnss-nis/files/map_v4v6_address.patch
29 +++ /dev/null
30 @@ -1,112 +0,0 @@
31 -From df903b621d4010c94129455a3f8d91d66f0fcd1f Mon Sep 17 00:00:00 2001
32 -From: Mike Gilbert <floppym@g.o>
33 -Date: Fri, 17 Nov 2017 13:44:10 -0500
34 -Subject: [PATCH] Copy the map_v4v6_address function from glibc
35 -
36 -Fixes: https://github.com/thkukuk/libnss_nis/issues/1
37 ----
38 - src/Makefile.am | 3 ++-
39 - src/map_v4v6_address.h | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++
40 - src/nis-hosts.c | 3 +--
41 - 3 files changed, 71 insertions(+), 3 deletions(-)
42 - create mode 100644 src/map_v4v6_address.h
43 -
44 -diff --git a/src/Makefile.am b/src/Makefile.am
45 -index 9eb3d35..56108aa 100644
46 ---- a/src/Makefile.am
47 -+++ b/src/Makefile.am
48 -@@ -27,4 +27,5 @@ libnss_nis_la_LIBADD = @LIBNSL_LIBS@
49 - libnss_nis_la_SOURCES = nis-alias.c nis-ethers.c nis-grp.c nis-hosts.c \
50 - nis-initgroups.c nis-netgrp.c nis-network.c \
51 - nis-proto.c nis-publickey.c nis-pwd.c nis-rpc.c \
52 -- nis-service.c nis-spwd.c nss-nis.c nss-default.c
53 -+ nis-service.c nis-spwd.c nss-nis.c nss-default.c \
54 -+ map_v4v6_address.h
55 -diff --git a/src/map_v4v6_address.h b/src/map_v4v6_address.h
56 -new file mode 100644
57 -index 0000000..d9a46c9
58 ---- /dev/null
59 -+++ b/src/map_v4v6_address.h
60 -@@ -0,0 +1,68 @@
61 -+/*
62 -+ * ++Copyright++ 1985, 1988, 1993
63 -+ * -
64 -+ * Copyright (c) 1985, 1988, 1993
65 -+ * The Regents of the University of California. All rights reserved.
66 -+ *
67 -+ * Redistribution and use in source and binary forms, with or without
68 -+ * modification, are permitted provided that the following conditions
69 -+ * are met:
70 -+ * 1. Redistributions of source code must retain the above copyright
71 -+ * notice, this list of conditions and the following disclaimer.
72 -+ * 2. Redistributions in binary form must reproduce the above copyright
73 -+ * notice, this list of conditions and the following disclaimer in the
74 -+ * documentation and/or other materials provided with the distribution.
75 -+ * 4. Neither the name of the University nor the names of its contributors
76 -+ * may be used to endorse or promote products derived from this software
77 -+ * without specific prior written permission.
78 -+ *
79 -+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
80 -+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
81 -+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
82 -+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
83 -+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
84 -+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
85 -+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
86 -+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
87 -+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
88 -+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
89 -+ * SUCH DAMAGE.
90 -+ * -
91 -+ * Portions Copyright (c) 1993 by Digital Equipment Corporation.
92 -+ *
93 -+ * Permission to use, copy, modify, and distribute this software for any
94 -+ * purpose with or without fee is hereby granted, provided that the above
95 -+ * copyright notice and this permission notice appear in all copies, and that
96 -+ * the name of Digital Equipment Corporation not be used in advertising or
97 -+ * publicity pertaining to distribution of the document or software without
98 -+ * specific, written prior permission.
99 -+ *
100 -+ * THE SOFTWARE IS PROVIDED "AS IS" AND DIGITAL EQUIPMENT CORP. DISCLAIMS ALL
101 -+ * WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES
102 -+ * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL DIGITAL EQUIPMENT
103 -+ * CORPORATION BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
104 -+ * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
105 -+ * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
106 -+ * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
107 -+ * SOFTWARE.
108 -+ * -
109 -+ * --Copyright--
110 -+ */
111 -+
112 -+static void
113 -+map_v4v6_address (const char *src, char *dst)
114 -+{
115 -+ u_char *p = (u_char *)dst;
116 -+ char tmp[INADDRSZ];
117 -+ int i;
118 -+
119 -+ /* Stash a temporary copy so our caller can update in place. */
120 -+ memcpy(tmp, src, INADDRSZ);
121 -+ /* Mark this ipv6 addr as a mapped ipv4. */
122 -+ for (i = 0; i < 10; i++)
123 -+ *p++ = 0x00;
124 -+ *p++ = 0xff;
125 -+ *p++ = 0xff;
126 -+ /* Retrieve the saved copy and we're done. */
127 -+ memcpy((void*)p, tmp, INADDRSZ);
128 -+}
129 -diff --git a/src/nis-hosts.c b/src/nis-hosts.c
130 -index ef6bb47..53ab965 100644
131 ---- a/src/nis-hosts.c
132 -+++ b/src/nis-hosts.c
133 -@@ -35,8 +35,7 @@
134 - #include "libc-lock.h"
135 - #include "nss-nis.h"
136 -
137 --/* Get implementation for some internal functions. */
138 --#include <resolv/mapv4v6addr.h>
139 -+#include "map_v4v6_address.h"
140 -
141 - #define ENTNAME hostent
142 - #define DATABASE "hosts"
143
144 diff --git a/sys-auth/libnss-nis/libnss-nis-1.3.ebuild b/sys-auth/libnss-nis/libnss-nis-1.4.ebuild
145 similarity index 79%
146 rename from sys-auth/libnss-nis/libnss-nis-1.3.ebuild
147 rename to sys-auth/libnss-nis/libnss-nis-1.4.ebuild
148 index 991a0f7e216..4b6cdff52f8 100644
149 --- a/sys-auth/libnss-nis/libnss-nis-1.3.ebuild
150 +++ b/sys-auth/libnss-nis/libnss-nis-1.4.ebuild
151 @@ -7,12 +7,11 @@ inherit autotools multilib-minimal
152
153 DESCRIPTION="NSS module to provide NIS support"
154 HOMEPAGE="https://github.com/thkukuk/libnss_nis"
155 -SRC_URI="https://github.com/thkukuk/libnss_nis/archive/libnss_nis-${PV}.tar.gz -> ${P}.tar.gz"
156 +SRC_URI="https://github.com/thkukuk/libnss_nis/archive/v${PV}.tar.gz -> ${P}.tar.gz"
157
158 LICENSE="LGPL-2.1+ BSD ISC"
159 SLOT="0"
160 KEYWORDS="~amd64"
161 -IUSE=""
162
163 RDEPEND="
164 net-libs/libnsl:0=[${MULTILIB_USEDEP}]
165 @@ -23,11 +22,7 @@ DEPEND="${RDEPEND}
166 virtual/pkgconfig[${MULTILIB_USEDEP}]
167 "
168
169 -S=${WORKDIR}/libnss_nis-libnss_nis-${PV}
170 -
171 -PATCHES=(
172 - "${FILESDIR}/map_v4v6_address.patch"
173 -)
174 +S=${WORKDIR}/libnss_nis-${PV}
175
176 src_prepare() {
177 default