commit nss-myhostname for openSUSE:Factory

2012-11-28 Thread h_root
Hello community,

here is the log from the commit of package nss-myhostname for openSUSE:Factory 
checked in at 2012-11-28 11:14:35

Comparing /work/SRC/openSUSE:Factory/nss-myhostname (Old)
 and  /work/SRC/openSUSE:Factory/.nss-myhostname.new (New)


Package is nss-myhostname, Maintainer is 

Changes:

--- /work/SRC/openSUSE:Factory/nss-myhostname/nss-myhostname.changes
2012-03-30 14:20:02.0 +0200
+++ /work/SRC/openSUSE:Factory/.nss-myhostname.new/nss-myhostname.changes   
2012-11-28 11:14:47.0 +0100
@@ -1,0 +2,6 @@
+Mon Nov 26 09:48:51 UTC 2012 - lnus...@suse.de
+
+- avoid assertion if invalid address family is passed to gethostbyaddr_r
+  (bnc#791101)
+
+---

New:

  0001-avoid-assertion-if-invalid-address-familily-is-passed.diff



Other differences:
--
++ nss-myhostname.spec ++
--- /var/tmp/diff_new_pack.VUsnxG/_old  2012-11-28 11:14:48.0 +0100
+++ /var/tmp/diff_new_pack.VUsnxG/_new  2012-11-28 11:14:48.0 +0100
@@ -28,7 +28,8 @@
 Url:http://0pointer.de/lennart/projects/nss-myhostname/
 Source: 
http://0pointer.de/lennart/projects/nss-myhostname/nss-myhostname-%{version}.tar.gz
 Source1:nss-myhostname-config
-Patch0: 0001-optionally-warn-if-nss-myhostname-is-called.diff
+Patch0: 0001-avoid-assertion-if-invalid-address-familily-is-passed.diff
+Patch1: 0001-optionally-warn-if-nss-myhostname-is-called.diff
 PreReq: sed
 
 %description
@@ -55,6 +56,7 @@
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 autoreconf

++ 0001-avoid-assertion-if-invalid-address-familily-is-passed.diff ++
From 744bb07b800cb15f5a175a0be720b478bc429e0a Mon Sep 17 00:00:00 2001
From: Ludwig Nussel ludwig.nus...@suse.de
Date: Mon, 26 Nov 2012 09:49:42 +0100
Subject: [PATCH nss-myhostname] avoid assertion if invalid address familily
 is passed to gethostbyaddr_r (bnc#791101)

---
 nss-myhostname.c |   11 ++-
 1 Datei geändert, 6 Zeilen hinzugefügt(+), 5 Zeilen entfernt(-)

Index: nss-myhostname-0.3/nss-myhostname.c
===
--- nss-myhostname-0.3.orig/nss-myhostname.c
+++ nss-myhostname-0.3/nss-myhostname.c
@@ -381,6 +381,12 @@ enum nss_status _nss_myhostname_gethostb
 struct address *addresses = NULL, *a;
 unsigned n_addresses = 0, n;
 
+if (af != AF_INET  af != AF_INET6) {
+*errnop = EAFNOSUPPORT;
+*h_errnop = NO_DATA;
+return NSS_STATUS_UNAVAIL;
+}
+
 if (len != PROTO_ADDRESS_SIZE(af)) {
 *errnop = EINVAL;
 *h_errnop = NO_RECOVERY;
@@ -396,11 +402,6 @@ enum nss_status _nss_myhostname_gethostb
 
 if (memcmp(addr, LOCALADDRESS_IPV6, 16) == 0)
 goto found;
-
-} else {
-*errnop = EAFNOSUPPORT;
-*h_errnop = NO_DATA;
-return NSS_STATUS_UNAVAIL;
 }
 
 netlink_acquire_addresses(addresses, n_addresses);
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit nss-myhostname for openSUSE:Factory

2012-03-30 Thread h_root
Hello community,

here is the log from the commit of package nss-myhostname for openSUSE:Factory 
checked in at 2012-03-30 14:20:01

Comparing /work/SRC/openSUSE:Factory/nss-myhostname (Old)
 and  /work/SRC/openSUSE:Factory/.nss-myhostname.new (New)


Package is nss-myhostname, Maintainer is 

Changes:

--- /work/SRC/openSUSE:Factory/nss-myhostname/nss-myhostname.changes
2011-09-23 02:14:48.0 +0200
+++ /work/SRC/openSUSE:Factory/.nss-myhostname.new/nss-myhostname.changes   
2012-03-30 14:20:02.0 +0200
@@ -1,0 +2,15 @@
+Thu Mar 29 13:21:33 UTC 2012 - a...@suse.de
+
+- Use addFilter for rpmlintrc.
+
+---
+Tue Mar 27 13:37:18 UTC 2012 - a...@suse.de
+
+- Add autoconf as build require.
+
+---
+Fri Dec  2 16:01:53 UTC 2011 - co...@suse.com
+
+- add automake as buildrequire to avoid implicit dependency
+
+---



Other differences:
--
++ nss-myhostname.spec ++
--- /var/tmp/diff_new_pack.s1zFYe/_old  2012-03-30 14:20:03.0 +0200
+++ /var/tmp/diff_new_pack.s1zFYe/_new  2012-03-30 14:20:03.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package nss-myhostname
 #
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -14,17 +14,18 @@
 
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
-
 # icecream 0
 
 
 Name:   nss-myhostname
 Summary:Plugin for local system host name resolution
+License:LGPL-2.1+
+Group:  System/Libraries
 Version:0.3
-Release:1
-License:LGPLv2+
+Release:0
+BuildRequires:  autoconf
+BuildRequires:  automake
 Url:http://0pointer.de/lennart/projects/nss-myhostname/
-Group:  System/Libraries
 Source: 
http://0pointer.de/lennart/projects/nss-myhostname/nss-myhostname-%{version}.tar.gz
 Source1:nss-myhostname-config
 Patch0: 0001-optionally-warn-if-nss-myhostname-is-called.diff

++ nss-myhostname.rpmlintrc ++
--- /var/tmp/diff_new_pack.s1zFYe/_old  2012-03-30 14:20:03.0 +0200
+++ /var/tmp/diff_new_pack.s1zFYe/_new  2012-03-30 14:20:03.0 +0200
@@ -1,2 +1,2 @@
 # TODO: clarify if shlib policy applies to nss plugins
-setBadness(shlib-policy-name-error, 0)
+addFilter (shlib-policy-name-error)

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit nss-myhostname for openSUSE:Factory

2011-06-01 Thread h_root

Hello community,

here is the log from the commit of package nss-myhostname for openSUSE:Factory
checked in at Wed Jun 1 11:35:07 CEST 2011.




New Changes file:

--- /dev/null   2010-08-26 16:28:41.0 +0200
+++ /mounts/work_src_done/STABLE/nss-myhostname/nss-myhostname.changes  
2011-05-20 16:24:39.0 +0200
@@ -0,0 +1,5 @@
+---
+Fri May 20 14:15:05 UTC 2011 - lnus...@suse.de
+
+- new package version 0.3 based on Fedora's
+

calling whatdependson for head-i586


New:

  0001-optionally-warn-if-nss-myhostname-is-called.diff
  baselibs.conf
  nss-myhostname-0.3.tar.gz
  nss-myhostname-config
  nss-myhostname.changes
  nss-myhostname.rpmlintrc
  nss-myhostname.spec



Other differences:
--
++ nss-myhostname.spec ++
#
# spec file for package nss-myhostname
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An Open Source License is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# icecream 0


Name:   nss-myhostname
Summary:Plugin for local system host name resolution
Version:0.3
Release:1
License:LGPLv2+
Url:http://0pointer.de/lennart/projects/nss-myhostname/
Group:  System/Libraries
Source: 
http://0pointer.de/lennart/projects/nss-myhostname/nss-myhostname-%{version}.tar.gz
Source1:nss-myhostname-config
Patch0: 0001-optionally-warn-if-nss-myhostname-is-called.diff
PreReq: sed

%description
nss-myhostname is a plugin for the GNU Name Service Switch (NSS)
functionality of the GNU C Library (glibc) providing host name
resolution for the locally configured system hostname as returned by
gethostname(2). Various software relies on an always resolvable local
host name. When using dynamic hostnames this is usually achieved by
patching /etc/hosts at the same time as changing the host name. This
however is not ideal since it requires a writable /etc file system and
is fragile because the file might be edited by the administrator at
the same time. nss-myhostname simply returns all locally
configured public IP addresses, or -- if none are configured --
the IPv4 address 127.0.0.2 (wich is on the local loopback) and the
IPv6 address ::1 (which is the local host) for whatever system
hostname is configured locally. Patching /etc/hosts is thus no
longer necessary.

Note that nss-myhostname only provides a workaround for broken
software. If nss-myhostname is trigged by an application a message
is logged to /var/log/messages. Please check whether that's worth
a bug report then.

%prep
%setup -q
%patch0 -p1

%build
autoreconf
%configure --libdir=/%{_lib} --with-warning
make %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} install
install -D -m 755 %SOURCE1 %{buildroot}%{_sbindir}/nss-myhostname-config
rm -rf %{buildroot}/usr/share/doc/nss-myhostname

%clean
rm -rf $RPM_BUILD_ROOT

%preun
if [ $1 -eq 0 -a -f /etc/nsswitch.conf ] ; then
%{_sbindir}/nss-myhostname-config --disable
fi

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-, root, root)
%doc README
%doc LICENSE
%{_sbindir}/nss-myhostname-config
/%{_lib}/*

%changelog
++ 0001-optionally-warn-if-nss-myhostname-is-called.diff ++
From 84a26d4ad7e43bd1c6675b8bd59e856b7e938f71 Mon Sep 17 00:00:00 2001
From: Ludwig Nussel ludwig.nus...@suse.de
Date: Fri, 20 May 2011 15:38:46 +0200
Subject: [PATCH nss-myhostname] optionally warn if nss-myhostname is called

---
 configure.ac |9 +
 nss-myhostname.c |   28 +++-
 2 files changed, 36 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 38cd58f..e8c1503 100644
--- a/configure.ac
+++ b/configure.ac
@@ -72,6 +72,15 @@ AC_CHECK_FUNCS([gethostbyaddr gethostbyname gettimeofday 
inet_ntoa memset select
 # LYNX documentation generation
 ZP_LYNX_DOC
 
+AC_MSG_CHECKING([log warning messages])
+AC_ARG_WITH(warning, AS_HELP_STRING([--with-warning], [log warning to syslog 
when nss-myhostname is called (default=no)]),[],[with_warning=no])
+AC_MSG_RESULT([$with_warning])
+
+if test x$with_warning != xno; then
+   AC_CHECK_HEADERS([syslog.h])
+   AC_DEFINE([LOG_WARNING],[1],[whether to log warning message])
+fi
+
 AC_CONFIG_FILES([Makefile doc/Makefile doc/README.html ])
 
 AC_OUTPUT
diff --git