Hello community,
here is the log from the commit of package libdaemon
checked in at Fri Jul 13 18:12:12 CEST 2007.
--------
--- libdaemon/libdaemon.changes 2007-07-03 19:59:04.000000000 +0200
+++ /mounts/work_src_done/STABLE/libdaemon/libdaemon.changes 2007-07-11 20:08:49.000000000 +0200
@@ -1,0 +2,6 @@
+Wed Jul 11 20:08:26 CEST 2007 - seife@suse.de
+
+- Update to version 0.12
+ + make daemon_close_all() actually work properly
+
+-------------------------------------------------------------------
Old:
----
libdaemon-0.11.tar.bz2
New:
----
libdaemon-0.12.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ libdaemon.spec ++++++
--- /var/tmp/diff_new_pack.Z14363/_old 2007-07-13 18:11:30.000000000 +0200
+++ /var/tmp/diff_new_pack.Z14363/_new 2007-07-13 18:11:30.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package libdaemon (Version 0.11)
+# spec file for package libdaemon (Version 0.12)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -13,7 +13,7 @@
Name: libdaemon
BuildRequires: doxygen lynx
URL: http://0pointer.de/lennart/projects/libdaemon/
-Version: 0.11
+Version: 0.12
Release: 1
Summary: Lightweight C library That Eases the Writing of UNIX Daemons
License: LGPL v2 or later
@@ -116,6 +116,9 @@
/usr/include/libdaemon
%changelog
+* Wed Jul 11 2007 - seife@suse.de
+- Update to version 0.12
+ + make daemon_close_all() actually work properly
* Tue Jul 03 2007 - maw@suse.de
- Update to version 0.11
+ automatically detect whether lynx is installed
++++++ libdaemon-0.11.tar.bz2 -> libdaemon-0.12.tar.bz2 ++++++
++++ 1797 lines of diff (skipped)
++++ retrying with extended exclude list
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libdaemon-0.11/configure.ac new/libdaemon-0.12/configure.ac
--- old/libdaemon-0.11/configure.ac 2007-06-11 17:46:06.000000000 +0200
+++ new/libdaemon-0.12/configure.ac 2007-07-10 19:58:34.000000000 +0200
@@ -1,7 +1,7 @@
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
-# $Id: configure.ac 122 2007-06-11 15:46:06Z lennart $
+# $Id: configure.ac 128 2007-07-10 16:55:39Z lennart $
# This file is part of libdaemon.
#
@@ -21,7 +21,7 @@
# USA
AC_PREREQ(2.59)
-AC_INIT([libdaemon],[0.11],[mzqnrzba (at) 0pointer (dot) de])
+AC_INIT([libdaemon],[0.12],[mzqnrzba (at) 0pointer (dot) de])
AC_CONFIG_SRCDIR([libdaemon/dfork.c])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([foreign 1.9 -Wall])
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libdaemon-0.11/doc/README new/libdaemon-0.12/doc/README
--- old/libdaemon-0.11/doc/README 2007-06-22 17:09:14.000000000 +0200
+++ new/libdaemon-0.12/doc/README 2007-07-10 20:15:36.000000000 +0200
@@ -1,6 +1,6 @@
- libdaemon 0.11
+ libdaemon 0.12
- Copyright 2003-2005 Lennart Poettering
* [1]License
* [2]News
@@ -31,9 +31,14 @@
News
+ Tue Jul 10 2007:
+
+ [10]Version 0.12 released; changes include: make daemon_close_all()
+ actually work properly.
+
Fri Jun 22 2007:
- [10]Version 0.11 released; changes include: automatically detect
+ [11]Version 0.11 released; changes include: automatically detect
whether lynx is installed; properly set errno on every error condition;
add new function daemon_close_all() to close all open file descriptors
except a given set; add daemon_logv(), which is identical to
@@ -42,54 +47,54 @@
Thu Nov 24 2005:
- [11]Version 0.10 released; changes include: make logging compatible
+ [12]Version 0.10 released; changes include: make logging compatible
with daemons running in a chroot() environment
Fri Nov 18 2005:
- [12]Version 0.9 released; changes include: portability (FreeBSD,
+ [13]Version 0.9 released; changes include: portability (FreeBSD,
NetBSD, OpenBSD, Darwin, Solaris, Cygwin); some minor header file
cleanups; fix access mode of PID files; other cleanups; license change
from GPL to LGPL
Sat Jun 4 2005:
- [13]Version 0.8 released; changes include: proper PID file locking
+ [14]Version 0.8 released; changes include: proper PID file locking
Sat Dec 18 2004:
- [14]Version 0.7 released; changes include: minor cleanups; C++
+ [15]Version 0.7 released; changes include: minor cleanups; C++
compatibility; gcc 2.95 compatiblity
Wed Apr 7 2004:
- [15]Version 0.6 released; changes include: backgrounding fixes, minor
+ [16]Version 0.6 released; changes include: backgrounding fixes, minor
other stuff
Tue Feb 10 2004:
- [16]Version 0.5 released; changes include: signal handling fix, forking
+ [17]Version 0.5 released; changes include: signal handling fix, forking
fix
Sat Jan 10 2004:
- [17]Version 0.4 released; changes include: new module dexec.c; added
+ [18]Version 0.4 released; changes include: new module dexec.c; added
pkg-config support.
Mon Oct 20 2003:
- [18]Version 0.3 released; changes include: documentation update, build
+ [19]Version 0.3 released; changes include: documentation update, build
fixes, RPM spec file added, added new function int
daemon_pid_file_kill_wait().
Thu July 10 2003:
- [19]Version 0.2 released; changes include: ugly umask error fix,
+ [20]Version 0.2 released; changes include: ugly umask error fix,
documentation update
Mon July 7 2003:
- [20]Version 0.1 released
+ [21]Version 0.1 released
Overview
@@ -108,16 +113,16 @@
APIs like these are used in most daemon software available. It is not
that simple to get it done right and code duplication is not a goal.
- libdaemon is currently used by [21]ifplugd, [22]Avahi, [23]ivam2,
- [24]Nautilus-Share and [25]aeswepd.
+ libdaemon is currently used by [22]ifplugd, [23]Avahi, [24]ivam2,
+ [25]Nautilus-Share and [26]aeswepd.
Current Status
- Version 0.11 is feature complete.
+ Version 0.12 is feature complete.
Documentation
- An extensive API reference is [26]available
+ An extensive API reference is [27]available
Requirements
@@ -146,23 +151,23 @@
Download
The newest release is always available from
- [27]http://0pointer.de/lennart/projects/libdaemon/
+ [28]http://0pointer.de/lennart/projects/libdaemon/
- Get libdaemon's development sources from the [28]Subversion
- [29]repository ([30]viewcvs):
+ Get libdaemon's development sources from the [29]Subversion
+ [30]repository ([31]viewcvs):
svn checkout svn://svn.0pointer.de/libdaemon/trunk libdaemon
You may find an up to date Debian package of libdaemon on the
- [31]Debian package repository.
+ [32]Debian package repository.
If you want to be notified whenever I release a new version of this
- software use the subscription feature of [32]Freshmeat.
+ software use the subscription feature of [33]Freshmeat.
__________________________________________________________________
- Lennart Poettering , June 2007
+ Lennart Poettering , July 2007
- $Id: README.html.in 124 2007-06-22 15:07:50Z lennart $
+ $Id: README.html.in 129 2007-07-10 17:48:11Z lennart $
References
@@ -175,26 +180,27 @@
7. README#installation
8. README#acks
9. README#download
- 10. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.11.tar.gz
- 11. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.10.tar.gz
- 12. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.9.tar.gz
- 13. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.8.tar.gz
- 14. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.7.tar.gz
- 15. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.6.tar.gz
- 16. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.5.tar.gz
- 17. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.4.tar.gz
- 18. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.3.tar.gz
- 19. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.2.tar.gz
- 20. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.1.tar.gz
- 21. http://0pointer.de/lennart/projects/ifplugd/
- 22. http://freedesktop.org/Software/Avahi
- 23. http://0pointer.de/lennart/projects/ivam2/
- 24. http://gentoo.ovibes.net/nautilus-share/mediawiki-1.4.4/index.php/Accueil
- 25. http://0pointer.de/lennart/projects/aeswepd/
- 26. reference/html/index.html
- 27. http://0pointer.de/lennart/projects/libdaemon/
- 28. http://subversion.tigris.org/
- 29. svn://svn.0pointer.de/libdaemon
- 30. http://0pointer.de/cgi-bin/viewcvs.cgi/?root=libdaemon
- 31. http://packages.debian.org/libdaemon0
- 32. http://freshmeat.net/projects/libdaemon/
+ 10. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.12.tar.gz
+ 11. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.11.tar.gz
+ 12. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.10.tar.gz
+ 13. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.9.tar.gz
+ 14. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.8.tar.gz
+ 15. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.7.tar.gz
+ 16. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.6.tar.gz
+ 17. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.5.tar.gz
+ 18. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.4.tar.gz
+ 19. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.3.tar.gz
+ 20. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.2.tar.gz
+ 21. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.1.tar.gz
+ 22. http://0pointer.de/lennart/projects/ifplugd/
+ 23. http://freedesktop.org/Software/Avahi
+ 24. http://0pointer.de/lennart/projects/ivam2/
+ 25. http://gentoo.ovibes.net/nautilus-share/mediawiki-1.4.4/index.php/Accueil
+ 26. http://0pointer.de/lennart/projects/aeswepd/
+ 27. reference/html/index.html
+ 28. http://0pointer.de/lennart/projects/libdaemon/
+ 29. http://subversion.tigris.org/
+ 30. svn://svn.0pointer.de/libdaemon
+ 31. http://0pointer.de/cgi-bin/viewcvs.cgi/?root=libdaemon
+ 32. http://packages.debian.org/libdaemon0
+ 33. http://freshmeat.net/projects/libdaemon/
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libdaemon-0.11/doc/README.html new/libdaemon-0.12/doc/README.html
--- old/libdaemon-0.11/doc/README.html 2007-06-22 17:08:28.000000000 +0200
+++ new/libdaemon-0.12/doc/README.html 2007-07-10 20:15:23.000000000 +0200
@@ -3,14 +3,14 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
-<title>libdaemon 0.11</title>
+<title>libdaemon 0.12</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
-<h1><a name="top">libdaemon 0.11</a></h1>
+<h1><a name="top">libdaemon 0.12</a></h1>
-<p><i>Copyright 2003-2005 Lennart Poettering <mzqnrzba (at) 0pointer (dot) de></i></p>
+<p><i>Copyright 2003-2007 Lennart Poettering <mzqnrzba (at) 0pointer (dot) de></i></p>
<ul class="toc">
<li><a href="#license">License</a></li>
@@ -42,6 +42,9 @@
<h2><a name="news">News</a></h2>
+<div class="news-date">Tue Jul 10 2007: </div>
+<p class="news-text"><a href="http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.12.tar.gz">Version 0.12</a> released; changes include: make <tt>daemon_close_all()</tt> actually work properly.</p>
+
<div class="news-date">Fri Jun 22 2007: </div>
<p class="news-text"><a href="http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.11.tar.gz">Version 0.11</a> released; changes include: automatically detect whether lynx is installed; properly set <tt>errno</tt> on every error condition; add new function <tt>daemon_close_all()</tt> to close all open file descriptors except a given set; add <tt>daemon_logv()</tt>, which is identical to <tt>daemon_log()</tt>, but takes a <tt>va_list</tt> argument; add <tt>daemon_execv()</tt> in similar style; other fixes</p>
@@ -111,7 +114,7 @@
<h2><a name="status">Current Status</a></h2>
-<p>Version 0.11 is feature complete.</p>
+<p>Version 0.12 is feature complete.</p>
<h2><a name="documentation">Documentation</a></h2>
@@ -155,8 +158,8 @@
<p>If you want to be notified whenever I release a new version of this software use the subscription feature of <a href="http://freshmeat.net/projects/libdaemon/">Freshmeat</a>.</p>
<hr/>
-<address class="grey">Lennart Poettering <mzqnrzba (at) 0pointer (dot) de>, June 2007</address>
-<div class="grey"><i>$Id: README.html.in 124 2007-06-22 15:07:50Z lennart $</i></div>
+<address class="grey">Lennart Poettering <mzqnrzba (at) 0pointer (dot) de>, July 2007</address>
+<div class="grey"><i>$Id: README.html.in 129 2007-07-10 17:48:11Z lennart $</i></div>
</body>
</html>
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libdaemon-0.11/doc/README.html.in new/libdaemon-0.12/doc/README.html.in
--- old/libdaemon-0.11/doc/README.html.in 2007-06-22 17:07:50.000000000 +0200
+++ new/libdaemon-0.12/doc/README.html.in 2007-07-10 19:58:34.000000000 +0200
@@ -10,7 +10,7 @@
<body>
<h1><a name="top">libdaemon @PACKAGE_VERSION@</a></h1>
-<p><i>Copyright 2003-2005 Lennart Poettering <@PACKAGE_BUGREPORT@></i></p>
+<p><i>Copyright 2003-2007 Lennart Poettering <@PACKAGE_BUGREPORT@></i></p>
<ul class="toc">
<li><a href="#license">License</a></li>
@@ -42,6 +42,9 @@
<h2><a name="news">News</a></h2>
+<div class="news-date">Tue Jul 10 2007: </div>
+<p class="news-text"><a href="@PACKAGE_URL@libdaemon-0.12.tar.gz">Version 0.12</a> released; changes include: make <tt>daemon_close_all()</tt> actually work properly.</p>
+
<div class="news-date">Fri Jun 22 2007: </div>
<p class="news-text"><a href="@PACKAGE_URL@libdaemon-0.11.tar.gz">Version 0.11</a> released; changes include: automatically detect whether lynx is installed; properly set <tt>errno</tt> on every error condition; add new function <tt>daemon_close_all()</tt> to close all open file descriptors except a given set; add <tt>daemon_logv()</tt>, which is identical to <tt>daemon_log()</tt>, but takes a <tt>va_list</tt> argument; add <tt>daemon_execv()</tt> in similar style; other fixes</p>
@@ -155,8 +158,8 @@
<p>If you want to be notified whenever I release a new version of this software use the subscription feature of <a href="http://freshmeat.net/projects/libdaemon/">Freshmeat</a>.</p>
<hr/>
-<address class="grey">Lennart Poettering <@PACKAGE_BUGREPORT@>, June 2007</address>
-<div class="grey"><i>$Id: README.html.in 124 2007-06-22 15:07:50Z lennart $</i></div>
+<address class="grey">Lennart Poettering <@PACKAGE_BUGREPORT@>, July 2007</address>
+<div class="grey"><i>$Id: README.html.in 129 2007-07-10 17:48:11Z lennart $</i></div>
</body>
</html>
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libdaemon-0.11/libdaemon/dfork.c new/libdaemon-0.12/libdaemon/dfork.c
--- old/libdaemon-0.11/libdaemon/dfork.c 2007-06-11 17:36:11.000000000 +0200
+++ new/libdaemon-0.12/libdaemon/dfork.c 2007-07-10 19:58:34.000000000 +0200
@@ -1,4 +1,4 @@
-/* $Id: dfork.c 118 2007-06-11 15:36:10Z lennart $ */
+/* $Id: dfork.c 127 2007-07-10 16:53:50Z lennart $ */
/*
* This file is part of libdaemon.
@@ -354,14 +354,15 @@
int daemon_close_all(int except_fd, ...) {
va_list original_ap, ap;
- int n, i, r;
+ int n = 0, i, r;
int *p;
va_start(original_ap, except_fd);
va_copy(ap, original_ap);
- for (n = 0; va_arg(ap, int) >= 0; n++)
- ;
+ if (except_fd >= 0)
+ for (n = 1; va_arg(ap, int) >= 0; n++)
+ ;
va_end(ap);
@@ -371,9 +372,12 @@
}
i = 0;
- while ((p[i++] = va_arg(original_ap, int)) >= 0)
- ;
-
+ if (except_fd >= 0) {
+ p[i++] = except_fd;
+
+ while ((p[i++] = va_arg(original_ap, int)) >= 0)
+ ;
+ }
p[i] = -1;
r = daemon_close_allv(p);
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libdaemon-0.11/libdaemon/Makefile.am new/libdaemon-0.12/libdaemon/Makefile.am
--- old/libdaemon-0.11/libdaemon/Makefile.am 2007-06-11 17:46:06.000000000 +0200
+++ new/libdaemon-0.12/libdaemon/Makefile.am 2007-07-10 19:58:34.000000000 +0200
@@ -1,4 +1,4 @@
-# $Id: Makefile.am 122 2007-06-11 15:46:06Z lennart $
+# $Id: Makefile.am 128 2007-07-10 16:55:39Z lennart $
#
# This file is part of libdaemon.
#
@@ -38,4 +38,4 @@
daemon.h \
$(pkg_include_HEADERS)
-libdaemon_la_LDFLAGS = -version-info 3:0:3
+libdaemon_la_LDFLAGS = -version-info 3:1:3
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libdaemon-0.11/libdaemon.spec new/libdaemon-0.12/libdaemon.spec
--- old/libdaemon-0.11/libdaemon.spec 2007-06-22 17:08:29.000000000 +0200
+++ new/libdaemon-0.12/libdaemon.spec 2007-07-10 20:15:23.000000000 +0200
@@ -2,7 +2,7 @@
Summary: lightweight C library which eases the writing of UNIX daemons.
Name: libdaemon
-Version: 0.11
+Version: 0.12
Release: 1
URL: http://www.stud.uni-hamburg.de/users/lennart/projects/libdaemon
Source: %{name}-%{version}.tar.gz
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libdaemon-0.11/missing new/libdaemon-0.12/missing
--- old/libdaemon-0.11/missing 2004-01-10 19:55:03.000000000 +0100
+++ new/libdaemon-0.12/missing 2005-08-25 00:47:20.000000000 +0200
@@ -1,6 +1,10 @@
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
-# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
+
+scriptversion=2005-06-08.21
+
+# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
+# Free Software Foundation, Inc.
# Originally by Fran,cois Pinard , 1996.
# This program is free software; you can redistribute it and/or modify
@@ -15,8 +19,8 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-# 02111-1307, USA.
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
@@ -38,18 +42,24 @@
configure_ac=configure.in
fi
+msg="missing on your system"
+
case "$1" in
--run)
# Try to run requested program, and just exit if it succeeds.
run=
shift
"$@" && exit 0
+ # Exit code 63 means version mismatch. This often happens
+ # when the user try to use an ancient version of a tool on
+ # a file that requires a minimum version. In this case we
+ # we should proceed has if the program had been absent, or
+ # if --run hadn't been passed.
+ if test $? = 63; then
+ run=:
+ msg="probably too old"
+ fi
;;
-esac
-
-# If it does not exist, or fails to run (possibly an outdated version),
-# try to emulate it.
-case "$1" in
-h|--h|--he|--hel|--help)
echo "\
@@ -74,11 +84,15 @@
lex create \`lex.yy.c', if possible, from existing .c
makeinfo touch the output file
tar try tar, gnutar, gtar, then tar without non-portable flags
- yacc create \`y.tab.[ch]', if possible, from existing .[ch]"
+ yacc create \`y.tab.[ch]', if possible, from existing .[ch]
+
+Send bug reports to ."
+ exit $?
;;
-v|--v|--ve|--ver|--vers|--versi|--versio|--version)
- echo "missing 0.4 - GNU automake"
+ echo "missing $scriptversion (GNU Automake)"
+ exit $?
;;
-*)
@@ -87,14 +101,44 @@
exit 1
;;
- aclocal*)
+esac
+
+# Now exit if we have it, but it failed. Also exit now if we
+# don't have it and --version was passed (most likely to detect
+# the program).
+case "$1" in
+ lex|yacc)
+ # Not GNU programs, they don't have --version.
+ ;;
+
+ tar)
+ if test -n "$run"; then
+ echo 1>&2 "ERROR: \`tar' requires --run"
+ exit 1
+ elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
+ exit 1
+ fi
+ ;;
+
+ *)
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
# We have it, but it failed.
exit 1
+ elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
+ # Could not run --version or --help. This is probably someone
+ # running `$TOOL --version' or `$TOOL --help' to check whether
+ # $TOOL exists and not knowing $TOOL uses missing.
+ exit 1
fi
+ ;;
+esac
+# If it does not exist, or fails to run (possibly an outdated version),
+# try to emulate it.
+case "$1" in
+ aclocal*)
echo 1>&2 "\
-WARNING: \`$1' is missing on your system. You should only need it if
+WARNING: \`$1' is $msg. You should only need it if
you modified \`acinclude.m4' or \`${configure_ac}'. You might want
to install the \`Automake' and \`Perl' packages. Grab them from
any GNU archive site."
@@ -102,13 +146,8 @@
;;
autoconf)
- if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
- # We have it, but it failed.
- exit 1
- fi
-
echo 1>&2 "\
-WARNING: \`$1' is missing on your system. You should only need it if
+WARNING: \`$1' is $msg. You should only need it if
you modified \`${configure_ac}'. You might want to install the
\`Autoconf' and \`GNU m4' packages. Grab them from any GNU
archive site."
@@ -116,13 +155,8 @@
;;
autoheader)
- if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
- # We have it, but it failed.
- exit 1
- fi
-
echo 1>&2 "\
-WARNING: \`$1' is missing on your system. You should only need it if
+WARNING: \`$1' is $msg. You should only need it if
you modified \`acconfig.h' or \`${configure_ac}'. You might want
to install the \`Autoconf' and \`GNU m4' packages. Grab them
from any GNU archive site."
@@ -140,13 +174,8 @@
;;
automake*)
- if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
- # We have it, but it failed.
- exit 1
- fi
-
echo 1>&2 "\
-WARNING: \`$1' is missing on your system. You should only need it if
+WARNING: \`$1' is $msg. You should only need it if
you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
You might want to install the \`Automake' and \`Perl' packages.
Grab them from any GNU archive site."
@@ -156,14 +185,9 @@
;;
autom4te)
- if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
- # We have it, but it failed.
- exit 1
- fi
-
echo 1>&2 "\
-WARNING: \`$1' is needed, and you do not seem to have it handy on your
- system. You might have modified some files without having the
+WARNING: \`$1' is needed, but is $msg.
+ You might have modified some files without having the
proper tools for further handling them.
You can get \`$1' as part of \`Autoconf' from any GNU
archive site."
@@ -185,7 +209,7 @@
bison|yacc)
echo 1>&2 "\
-WARNING: \`$1' is missing on your system. You should only need it if
+WARNING: \`$1' $msg. You should only need it if
you modified a \`.y' file. You may need the \`Bison' package
in order for those modifications to take effect. You can get
\`Bison' from any GNU archive site."
@@ -215,7 +239,7 @@
lex|flex)
echo 1>&2 "\
-WARNING: \`$1' is missing on your system. You should only need it if
+WARNING: \`$1' is $msg. You should only need it if
you modified a \`.l' file. You may need the \`Flex' package
in order for those modifications to take effect. You can get
\`Flex' from any GNU archive site."
@@ -237,13 +261,8 @@
;;
help2man)
- if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
- # We have it, but it failed.
- exit 1
- fi
-
echo 1>&2 "\
-WARNING: \`$1' is missing on your system. You should only need it if
+WARNING: \`$1' is $msg. You should only need it if
you modified a dependency of a manual page. You may need the
\`Help2man' package in order for those modifications to take
effect. You can get \`Help2man' from any GNU archive site."
@@ -262,32 +281,30 @@
;;
makeinfo)
- if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then
- # We have makeinfo, but it failed.
- exit 1
- fi
-
echo 1>&2 "\
-WARNING: \`$1' is missing on your system. You should only need it if
+WARNING: \`$1' is $msg. You should only need it if
you modified a \`.texi' or \`.texinfo' file, or any other file
indirectly affecting the aspect of the manual. The spurious
call might also be the consequence of using a buggy \`make' (AIX,
DU, IRIX). You might want to install the \`Texinfo' package or
the \`GNU make' package. Grab either from any GNU archive site."
+ # The file to touch is that specified with -o ...
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
if test -z "$file"; then
- file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
- file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
- fi
+ # ... or it is the one specified with @setfilename ...
+ infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
+ file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
+ # ... or it is derived from the source name (dir/f.texi becomes f.info)
+ test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
+ fi
+ # If the file does not exist, the user really needs makeinfo;
+ # let's fail without touching anything.
+ test -f $file || exit 1
touch $file
;;
tar)
shift
- if test -n "$run"; then
- echo 1>&2 "ERROR: \`tar' requires --run"
- exit 1
- fi
# We have already tried tar in the generic part.
# Look for gnutar/gtar before invocation to avoid ugly error
@@ -323,8 +340,8 @@
*)
echo 1>&2 "\
-WARNING: \`$1' is needed, and you do not seem to have it handy on your
- system. You might have modified some files without having the
+WARNING: \`$1' is needed, and is $msg.
+ You might have modified some files without having the
proper tools for further handling them. Check the \`README' file,
it often tells you about the needed prerequisites for installing
this package. You may also peek at any GNU archive site, in case
@@ -334,3 +351,10 @@
esac
exit 0
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-end: "$"
+# End:
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libdaemon-0.11/README new/libdaemon-0.12/README
--- old/libdaemon-0.11/README 2007-06-22 17:09:14.000000000 +0200
+++ new/libdaemon-0.12/README 2007-07-10 20:15:36.000000000 +0200
@@ -1,6 +1,6 @@
- libdaemon 0.11
+ libdaemon 0.12
- Copyright 2003-2005 Lennart Poettering
* [1]License
* [2]News
@@ -31,9 +31,14 @@
News
+ Tue Jul 10 2007:
+
+ [10]Version 0.12 released; changes include: make daemon_close_all()
+ actually work properly.
+
Fri Jun 22 2007:
- [10]Version 0.11 released; changes include: automatically detect
+ [11]Version 0.11 released; changes include: automatically detect
whether lynx is installed; properly set errno on every error condition;
add new function daemon_close_all() to close all open file descriptors
except a given set; add daemon_logv(), which is identical to
@@ -42,54 +47,54 @@
Thu Nov 24 2005:
- [11]Version 0.10 released; changes include: make logging compatible
+ [12]Version 0.10 released; changes include: make logging compatible
with daemons running in a chroot() environment
Fri Nov 18 2005:
- [12]Version 0.9 released; changes include: portability (FreeBSD,
+ [13]Version 0.9 released; changes include: portability (FreeBSD,
NetBSD, OpenBSD, Darwin, Solaris, Cygwin); some minor header file
cleanups; fix access mode of PID files; other cleanups; license change
from GPL to LGPL
Sat Jun 4 2005:
- [13]Version 0.8 released; changes include: proper PID file locking
+ [14]Version 0.8 released; changes include: proper PID file locking
Sat Dec 18 2004:
- [14]Version 0.7 released; changes include: minor cleanups; C++
+ [15]Version 0.7 released; changes include: minor cleanups; C++
compatibility; gcc 2.95 compatiblity
Wed Apr 7 2004:
- [15]Version 0.6 released; changes include: backgrounding fixes, minor
+ [16]Version 0.6 released; changes include: backgrounding fixes, minor
other stuff
Tue Feb 10 2004:
- [16]Version 0.5 released; changes include: signal handling fix, forking
+ [17]Version 0.5 released; changes include: signal handling fix, forking
fix
Sat Jan 10 2004:
- [17]Version 0.4 released; changes include: new module dexec.c; added
+ [18]Version 0.4 released; changes include: new module dexec.c; added
pkg-config support.
Mon Oct 20 2003:
- [18]Version 0.3 released; changes include: documentation update, build
+ [19]Version 0.3 released; changes include: documentation update, build
fixes, RPM spec file added, added new function int
daemon_pid_file_kill_wait().
Thu July 10 2003:
- [19]Version 0.2 released; changes include: ugly umask error fix,
+ [20]Version 0.2 released; changes include: ugly umask error fix,
documentation update
Mon July 7 2003:
- [20]Version 0.1 released
+ [21]Version 0.1 released
Overview
@@ -108,16 +113,16 @@
APIs like these are used in most daemon software available. It is not
that simple to get it done right and code duplication is not a goal.
- libdaemon is currently used by [21]ifplugd, [22]Avahi, [23]ivam2,
- [24]Nautilus-Share and [25]aeswepd.
+ libdaemon is currently used by [22]ifplugd, [23]Avahi, [24]ivam2,
+ [25]Nautilus-Share and [26]aeswepd.
Current Status
- Version 0.11 is feature complete.
+ Version 0.12 is feature complete.
Documentation
- An extensive API reference is [26]available
+ An extensive API reference is [27]available
Requirements
@@ -146,23 +151,23 @@
Download
The newest release is always available from
- [27]http://0pointer.de/lennart/projects/libdaemon/
+ [28]http://0pointer.de/lennart/projects/libdaemon/
- Get libdaemon's development sources from the [28]Subversion
- [29]repository ([30]viewcvs):
+ Get libdaemon's development sources from the [29]Subversion
+ [30]repository ([31]viewcvs):
svn checkout svn://svn.0pointer.de/libdaemon/trunk libdaemon
You may find an up to date Debian package of libdaemon on the
- [31]Debian package repository.
+ [32]Debian package repository.
If you want to be notified whenever I release a new version of this
- software use the subscription feature of [32]Freshmeat.
+ software use the subscription feature of [33]Freshmeat.
__________________________________________________________________
- Lennart Poettering , June 2007
+ Lennart Poettering , July 2007
- $Id: README.html.in 124 2007-06-22 15:07:50Z lennart $
+ $Id: README.html.in 129 2007-07-10 17:48:11Z lennart $
References
@@ -175,26 +180,27 @@
7. README#installation
8. README#acks
9. README#download
- 10. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.11.tar.gz
- 11. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.10.tar.gz
- 12. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.9.tar.gz
- 13. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.8.tar.gz
- 14. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.7.tar.gz
- 15. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.6.tar.gz
- 16. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.5.tar.gz
- 17. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.4.tar.gz
- 18. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.3.tar.gz
- 19. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.2.tar.gz
- 20. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.1.tar.gz
- 21. http://0pointer.de/lennart/projects/ifplugd/
- 22. http://freedesktop.org/Software/Avahi
- 23. http://0pointer.de/lennart/projects/ivam2/
- 24. http://gentoo.ovibes.net/nautilus-share/mediawiki-1.4.4/index.php/Accueil
- 25. http://0pointer.de/lennart/projects/aeswepd/
- 26. reference/html/index.html
- 27. http://0pointer.de/lennart/projects/libdaemon/
- 28. http://subversion.tigris.org/
- 29. svn://svn.0pointer.de/libdaemon
- 30. http://0pointer.de/cgi-bin/viewcvs.cgi/?root=libdaemon
- 31. http://packages.debian.org/libdaemon0
- 32. http://freshmeat.net/projects/libdaemon/
+ 10. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.12.tar.gz
+ 11. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.11.tar.gz
+ 12. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.10.tar.gz
+ 13. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.9.tar.gz
+ 14. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.8.tar.gz
+ 15. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.7.tar.gz
+ 16. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.6.tar.gz
+ 17. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.5.tar.gz
+ 18. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.4.tar.gz
+ 19. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.3.tar.gz
+ 20. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.2.tar.gz
+ 21. http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.1.tar.gz
+ 22. http://0pointer.de/lennart/projects/ifplugd/
+ 23. http://freedesktop.org/Software/Avahi
+ 24. http://0pointer.de/lennart/projects/ivam2/
+ 25. http://gentoo.ovibes.net/nautilus-share/mediawiki-1.4.4/index.php/Accueil
+ 26. http://0pointer.de/lennart/projects/aeswepd/
+ 27. reference/html/index.html
+ 28. http://0pointer.de/lennart/projects/libdaemon/
+ 29. http://subversion.tigris.org/
+ 30. svn://svn.0pointer.de/libdaemon
+ 31. http://0pointer.de/cgi-bin/viewcvs.cgi/?root=libdaemon
+ 32. http://packages.debian.org/libdaemon0
+ 33. http://freshmeat.net/projects/libdaemon/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org