Hello community, here is the log from the commit of package libnss_nis for openSUSE:Factory checked in at 2018-01-31 19:49:39 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libnss_nis (Old) and /work/SRC/openSUSE:Factory/.libnss_nis.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libnss_nis" Wed Jan 31 19:49:39 2018 rev:2 rq:569500 version:3.0 Changes: -------- --- /work/SRC/openSUSE:Factory/libnss_nis/libnss_nis.changes 2017-10-06 10:53:13.210139734 +0200 +++ /work/SRC/openSUSE:Factory/.libnss_nis.new/libnss_nis.changes 2018-01-31 19:49:41.275625671 +0100 @@ -1,0 +2,6 @@ +Thu Jan 25 12:13:36 UTC 2018 - [email protected] + +- Update to version 3.0 + - get ride of GLIBC_PRIVATE symbols + +------------------------------------------------------------------- Old: ---- libnss_nis-1.3.tar.bz2 New: ---- libnss_nis-3.0.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libnss_nis.spec ++++++ --- /var/tmp/diff_new_pack.EXFxPG/_old 2018-01-31 19:49:42.223581594 +0100 +++ /var/tmp/diff_new_pack.EXFxPG/_new 2018-01-31 19:49:42.247580477 +0100 @@ -1,7 +1,7 @@ # # spec file for package libnss_nis # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,10 +16,9 @@ # - Name: libnss_nis -Version: 1.3 -Release: 1 +Version: 3.0 +Release: 0 Summary: NSS NIS plugin for glibc License: LGPL-2.1 Group: System/Libraries @@ -30,9 +29,6 @@ Source: %{name}-%{version}.tar.bz2 Source1: baselibs.conf BuildRoot: %{_tmppath}/%{name}-%{version}-build -# We need some private NSS functions -%define __filter_GLIBC_PRIVATE 1 - %description The NSS NIS plugin provides NIS support for get*nam() functions from ++++++ libnss_nis-1.3.tar.bz2 -> libnss_nis-3.0.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libnss_nis-1.3/NEWS new/libnss_nis-3.0/NEWS --- old/libnss_nis-1.3/NEWS 2017-02-23 13:42:33.000000000 +0100 +++ new/libnss_nis-3.0/NEWS 2018-01-25 12:12:07.000000000 +0100 @@ -1,5 +1,11 @@ libnss_nis NEWS -- history of user-visible changes. +Version 3.0 +* Get ride of all GLIBC_PRIVATE symbols + +Version 1.4 +* Make more Linux Distribution independent + Version 1.3 * Fix compiler warnings diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libnss_nis-1.3/configure new/libnss_nis-3.0/configure --- old/libnss_nis-1.3/configure 2017-02-23 13:42:13.000000000 +0100 +++ new/libnss_nis-3.0/configure 2018-01-25 12:09:49.000000000 +0100 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for libnss_nis 1.3. +# Generated by GNU Autoconf 2.69 for libnss_nis 3.0. # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. @@ -587,8 +587,8 @@ # Identity of this package. PACKAGE_NAME='libnss_nis' PACKAGE_TARNAME='libnss_nis' -PACKAGE_VERSION='1.3' -PACKAGE_STRING='libnss_nis 1.3' +PACKAGE_VERSION='3.0' +PACKAGE_STRING='libnss_nis 3.0' PACKAGE_BUGREPORT='' PACKAGE_URL='' @@ -1323,7 +1323,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures libnss_nis 1.3 to adapt to many kinds of systems. +\`configure' configures libnss_nis 3.0 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1393,7 +1393,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of libnss_nis 1.3:";; + short | recursive ) echo "Configuration of libnss_nis 3.0:";; esac cat <<\_ACEOF @@ -1509,7 +1509,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -libnss_nis configure 1.3 +libnss_nis configure 3.0 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -1874,7 +1874,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by libnss_nis $as_me 1.3, which was +It was created by libnss_nis $as_me 3.0, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -2737,7 +2737,7 @@ # Define the identity of the package. PACKAGE='libnss_nis' - VERSION='1.3' + VERSION='3.0' cat >>confdefs.h <<_ACEOF @@ -12692,7 +12692,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by libnss_nis $as_me 1.3, which was +This file was extended by libnss_nis $as_me 3.0, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -12758,7 +12758,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -libnss_nis config.status 1.3 +libnss_nis config.status 3.0 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libnss_nis-1.3/configure.ac new/libnss_nis-3.0/configure.ac --- old/libnss_nis-1.3/configure.ac 2017-02-23 13:41:49.000000000 +0100 +++ new/libnss_nis-3.0/configure.ac 2018-01-25 12:09:41.000000000 +0100 @@ -1,5 +1,5 @@ dnl Process this file with autoconf to produce a configure script. -AC_INIT(libnss_nis, 1.3) +AC_INIT(libnss_nis, 3.0) AM_INIT_AUTOMAKE AC_CONFIG_SRCDIR([src/nss-nis.c]) AM_CONFIG_HEADER(config.h) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libnss_nis-1.3/src/Makefile.am new/libnss_nis-3.0/src/Makefile.am --- old/libnss_nis-1.3/src/Makefile.am 2016-03-15 08:41:01.000000000 +0100 +++ new/libnss_nis-3.0/src/Makefile.am 2017-11-25 08:17:51.000000000 +0100 @@ -15,7 +15,8 @@ lib_LTLIBRARIES = libnss_nis.la -noinst_HEADERS = libc-lock.h libc-symbols.h netgroup.h nss-nis.h +noinst_HEADERS = libc-lock.h libc-symbols.h netgroup.h nss-nis.h \ + mapv4v6addr.h check_PROGRAMS = nss_loader-test nss_loader_test_LDADD = -ldl diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libnss_nis-1.3/src/Makefile.in new/libnss_nis-3.0/src/Makefile.in --- old/libnss_nis-1.3/src/Makefile.in 2017-02-23 13:42:13.000000000 +0100 +++ new/libnss_nis-3.0/src/Makefile.in 2018-01-25 12:09:47.000000000 +0100 @@ -514,7 +514,9 @@ AM_CFLAGS = -D_REENTRANT=1 AM_CPPFLAGS = -I$(srcdir) @TIRPC_CFLAGS@ @LIBNSL_CFLAGS@ lib_LTLIBRARIES = libnss_nis.la -noinst_HEADERS = libc-lock.h libc-symbols.h netgroup.h nss-nis.h +noinst_HEADERS = libc-lock.h libc-symbols.h netgroup.h nss-nis.h \ + mapv4v6addr.h + nss_loader_test_LDADD = -ldl TESTS = $(check_PROGRAMS) libnss_nis_la_LDFLAGS = -version-info 2:0:0 \ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libnss_nis-1.3/src/mapv4v6addr.h new/libnss_nis-3.0/src/mapv4v6addr.h --- old/libnss_nis-1.3/src/mapv4v6addr.h 1970-01-01 01:00:00.000000000 +0100 +++ new/libnss_nis-3.0/src/mapv4v6addr.h 2015-06-27 08:25:01.000000000 +0200 @@ -0,0 +1,69 @@ +/* + * ++Copyright++ 1985, 1988, 1993 + * - + * Copyright (c) 1985, 1988, 1993 + * The Regents of the University of California. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 4. Neither the name of the University nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * - + * Portions Copyright (c) 1993 by Digital Equipment Corporation. + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies, and that + * the name of Digital Equipment Corporation not be used in advertising or + * publicity pertaining to distribution of the document or software without + * specific, written prior permission. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND DIGITAL EQUIPMENT CORP. DISCLAIMS ALL + * WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL DIGITAL EQUIPMENT + * CORPORATION BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL + * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR + * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS + * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS + * SOFTWARE. + * - + * --Copyright-- + */ + +#include <string.h> +#include <arpa/nameser.h> + +static void +map_v4v6_address (const char *src, char *dst) +{ + u_char *p = (u_char *) dst; + int i; + + /* Move the IPv4 part to the right position. */ + memcpy (dst + 12, src, INADDRSZ); + + /* Mark this ipv6 addr as a mapped ipv4. */ + for (i = 0; i < 10; i++) + *p++ = 0x00; + *p++ = 0xff; + *p = 0xff; +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libnss_nis-1.3/src/nis-grp.c new/libnss_nis-3.0/src/nis-grp.c --- old/libnss_nis-1.3/src/nis-grp.c 2017-02-23 13:13:03.000000000 +0100 +++ new/libnss_nis-3.0/src/nis-grp.c 2018-01-25 12:03:53.000000000 +0100 @@ -30,11 +30,31 @@ #include "libc-lock.h" #include "nss-nis.h" -/* Get the declaration of the parser function. */ #define ENTNAME grent #define STRUCTURE group -#define EXTERN_PARSER +struct grent_data {}; + +#define TRAILING_LIST_MEMBER gr_mem +#define TRAILING_LIST_SEPARATOR_P(c) ((c) == ',') #include "files-parse.c" +LINE_PARSER +(, + STRING_FIELD (result->gr_name, ISCOLON, 0); + if (line[0] == '\0' + && (result->gr_name[0] == '+' || result->gr_name[0] == '-')) + { + result->gr_passwd = NULL; + result->gr_gid = 0; + } + else + { + STRING_FIELD (result->gr_passwd, ISCOLON, 0); + if (result->gr_name[0] == '+' || result->gr_name[0] == '-') + INT_FIELD_MAYBE_NULL (result->gr_gid, ISCOLON, 0, 10, , 0) + else + INT_FIELD (result->gr_gid, ISCOLON, 0, 10,) + } + ) /* Protect global state against multiple changers */ __libc_lock_define_initialized (static, lock) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libnss_nis-1.3/src/nis-hosts.c new/libnss_nis-3.0/src/nis-hosts.c --- old/libnss_nis-1.3/src/nis-hosts.c 2015-06-26 13:49:44.000000000 +0200 +++ new/libnss_nis-3.0/src/nis-hosts.c 2017-11-25 08:17:24.000000000 +0100 @@ -36,7 +36,7 @@ #include "nss-nis.h" /* Get implementation for some internal functions. */ -#include <resolv/mapv4v6addr.h> +#include "mapv4v6addr.h" #define ENTNAME hostent #define DATABASE "hosts" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libnss_nis-1.3/src/nis-pwd.c new/libnss_nis-3.0/src/nis-pwd.c --- old/libnss_nis-1.3/src/nis-pwd.c 2017-02-23 13:41:25.000000000 +0100 +++ new/libnss_nis-3.0/src/nis-pwd.c 2018-01-25 12:03:53.000000000 +0100 @@ -30,12 +30,47 @@ #include "libc-lock.h" #include "nss-nis.h" -/* Get the declaration of the parser function. */ #define ENTNAME pwent #define STRUCTURE passwd -#define EXTERN_PARSER +struct pwent_data {}; + #include "files-parse.c" +LINE_PARSER +(, + STRING_FIELD (result->pw_name, ISCOLON, 0); + if (line[0] == '\0' + && (result->pw_name[0] == '+' || result->pw_name[0] == '-')) + { + /* This a special case. We allow lines containing only a `+' sign + since this is used for nss_compat. All other services will + reject this entry later. Initialize all other fields now. */ + result->pw_passwd = NULL; + result->pw_uid = 0; + result->pw_gid = 0; + result->pw_gecos = NULL; + result->pw_dir = NULL; + result->pw_shell = NULL; + } + else + { + STRING_FIELD (result->pw_passwd, ISCOLON, 0); + if (result->pw_name[0] == '+' || result->pw_name[0] == '-') + { + INT_FIELD_MAYBE_NULL (result->pw_uid, ISCOLON, 0, 10, , 0) + INT_FIELD_MAYBE_NULL (result->pw_gid, ISCOLON, 0, 10, , 0) + } + else + { + INT_FIELD (result->pw_uid, ISCOLON, 0, 10,) + INT_FIELD (result->pw_gid, ISCOLON, 0, 10,) + } + STRING_FIELD (result->pw_gecos, ISCOLON, 0); + STRING_FIELD (result->pw_dir, ISCOLON, 0); + result->pw_shell = line; + } + ) + /* Protect global state against multiple changers */ __libc_lock_define_initialized (static, lock) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libnss_nis-1.3/src/nis-spwd.c new/libnss_nis-3.0/src/nis-spwd.c --- old/libnss_nis-1.3/src/nis-spwd.c 2015-06-29 13:20:24.000000000 +0200 +++ new/libnss_nis-3.0/src/nis-spwd.c 2018-01-25 12:03:53.000000000 +0100 @@ -32,11 +32,62 @@ #include "libc-lock.h" #include "nss-nis.h" -/* Get the declaration of the parser function. */ +/* Predicate which always returns false, needed below. */ +#define FALSEP(arg) 0 + #define ENTNAME spent #define STRUCTURE spwd -#define EXTERN_PARSER #include "files-parse.c" +LINE_PARSER +(, + STRING_FIELD (result->sp_namp, ISCOLON, 0); + if (line[0] == '\0' + && (result->sp_namp[0] == '+' || result->sp_namp[0] == '-')) + { + result->sp_pwdp = NULL; + result->sp_lstchg = 0; + result->sp_min = 0; + result->sp_max = 0; + result->sp_warn = -1l; + result->sp_inact = -1l; + result->sp_expire = -1l; + result->sp_flag = ~0ul; + } + else + { + STRING_FIELD (result->sp_pwdp, ISCOLON, 0); + INT_FIELD_MAYBE_NULL (result->sp_lstchg, ISCOLON, 0, 10, (long int) (int), + (long int) -1); + INT_FIELD_MAYBE_NULL (result->sp_min, ISCOLON, 0, 10, (long int) (int), + (long int) -1); + INT_FIELD_MAYBE_NULL (result->sp_max, ISCOLON, 0, 10, (long int) (int), + (long int) -1); + while (isspace (*line)) + ++line; + if (*line == '\0') + { + /* The old form. */ + result->sp_warn = -1l; + result->sp_inact = -1l; + result->sp_expire = -1l; + result->sp_flag = ~0ul; + } + else + { + INT_FIELD_MAYBE_NULL (result->sp_warn, ISCOLON, 0, 10, + (long int) (int), (long int) -1); + INT_FIELD_MAYBE_NULL (result->sp_inact, ISCOLON, 0, 10, + (long int) (int), (long int) -1); + INT_FIELD_MAYBE_NULL (result->sp_expire, ISCOLON, 0, 10, + (long int) (int), (long int) -1); + if (*line != '\0') + INT_FIELD_MAYBE_NULL (result->sp_flag, FALSEP, 0, 10, + (unsigned long int), ~0ul) + else + result->sp_flag = ~0ul; + } + } + ) /* Protect global state against multiple changers */ __libc_lock_define_initialized (static, lock)
