From 892ab7c8f21d76f00add948c7dd1028be099fa86 Mon Sep 17 00:00:00 2001 From: Honza Horak Date: Fri, 15 Aug 2014 10:49:36 +0200 Subject: [PATCH] link with systemd.so --- ypbind-systemdso.patch | 16 ++++++++++++++++ ypbind.spec | 7 ++++++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 ypbind-systemdso.patch diff --git a/ypbind-systemdso.patch b/ypbind-systemdso.patch new file mode 100644 index 0000000..ab8f0c6 --- /dev/null +++ b/ypbind-systemdso.patch @@ -0,0 +1,16 @@ +diff -up ypbind-mt-1.37.2/configure.in.systemdso ypbind-mt-1.37.2/configure.in +--- ypbind-mt-1.37.2/configure.in.systemdso 2014-08-15 10:47:04.183182884 +0200 ++++ ypbind-mt-1.37.2/configure.in 2014-08-15 10:47:37.182232398 +0200 +@@ -105,10 +105,10 @@ AM_CONDITIONAL(ENABLE_REGENERATE_MAN, te + + USE_SD_NOTIFY=0 + AC_SUBST(USE_SD_NOTIFY) +-AC_CHECK_LIB(systemd-daemon,sd_notify,LIBSYSTEMD_DAEMON="-lsystemd-daemon", ++AC_CHECK_LIB(systemd,sd_notify,LIBSYSTEMD_DAEMON="-lsystemd", + LIBSYSTEMD_DAEMON="") + if test -z "$LIBSYSTEMD_DAEMON" ; then +- AC_CHECK_LIB(systemd,sd_notify,LIBSYSTEMD_DAEMON="-lsystemd", ++ AC_CHECK_LIB(systemd-daemon,sd_notify,LIBSYSTEMD_DAEMON="-lsystemd-daemon", + LIBSYSTEMD_DAEMON="") + fi + if test -n "$LIBSYSTEMD_DAEMON" ; then diff --git a/ypbind.spec b/ypbind.spec index 11f4e19..9fe100e 100644 --- a/ypbind.spec +++ b/ypbind.spec @@ -2,7 +2,7 @@ Summary: The NIS daemon which binds NIS clients to an NIS domain Name: ypbind Epoch: 3 Version: 1.37.2 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2 Group: System Environment/Daemons Source0: http://www.linux-nis.org/download/ypbind-mt/ypbind-mt-%{version}.tar.bz2 @@ -17,6 +17,7 @@ Source5: ypbind-post-waitbind Patch1: ypbind-1.11-gettextdomain.patch # Not sent to upstream. Patch2: ypbind-helpman.patch +Patch3: ypbind-systemdso.patch # This is for /bin/systemctl Requires(post): systemd Requires(preun): systemd @@ -48,6 +49,7 @@ also need to install the ypserv package to a machine on your network. %setup -q -n ypbind-mt-%{version} %patch1 -p1 -b .gettextdomain %patch2 -p1 -b .helpman +%patch3 -p1 -b .systemdso autoconf @@ -96,6 +98,9 @@ install -m 755 %{SOURCE5} $RPM_BUILD_ROOT%{_libexecdir}/ypbind-post-waitbind %doc README NEWS COPYING %changelog +* Fri Aug 15 2014 Honza Horak - 3:1.37.2-2 +- link with systemd.so + * Fri Aug 15 2014 Honza Horak - 3:1.37.2-1 - Update to 1.37.2