[yp-tools] Do not compile ypmatch with ypclnt.c, use glibc's implementation instead of it

Karel Klíč kklic at fedoraproject.org
Tue Nov 23 12:59:45 UTC 2010


commit ec87306b29b381ed73c72af856f8216964433734
Author: Karel Klic <kklic at redhat.com>
Date:   Tue Nov 23 13:59:42 2010 +0100

    Do not compile ypmatch with ypclnt.c, use glibc's implementation instead of it

 yp-tools-2.12-noypclnt.patch |   11 +++++++++++
 yp-tools.spec                |   13 ++++++++++++-
 2 files changed, 23 insertions(+), 1 deletions(-)
---
diff --git a/yp-tools-2.12-noypclnt.patch b/yp-tools-2.12-noypclnt.patch
new file mode 100644
index 0000000..77fa1d3
--- /dev/null
+++ b/yp-tools-2.12-noypclnt.patch
@@ -0,0 +1,11 @@
+diff -up yp-tools-2.12/src/Makefile.am.noypclnt yp-tools-2.12/src/Makefile.am
+--- yp-tools-2.12/src/Makefile.am.noypclnt	2010-11-23 13:32:54.328891585 +0100
++++ yp-tools-2.12/src/Makefile.am	2010-11-23 13:33:02.167767691 +0100
+@@ -21,7 +21,6 @@ yppasswd_SOURCES = yppasswd.c yppasswd_x
+ yppasswd_LDADD = ${LDADD} @LIBCRYPT@ @LIBCRACK@
+ yppasswd_CFLAGS = -DPASSWD_PROG=\"${PASSWD_PROG}\" \
+ 	-DCHFN_PROG=\"${CHFN_PROG}\" -DCHSH_PROG=\"${CHSH_PROG}\"
+-ypmatch_SOURCES = ypmatch.c ypclnt.c
+ 
+ install-exec-hook:
+ 	ln -f ${DESTDIR}${bindir}/yppasswd ${DESTDIR}${bindir}/ypchsh
diff --git a/yp-tools.spec b/yp-tools.spec
index c61a4b0..6c6c51e 100644
--- a/yp-tools.spec
+++ b/yp-tools.spec
@@ -1,13 +1,18 @@
 Summary: NIS (or YP) client programs
 Name: yp-tools
 Version: 2.12
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: GPLv2
 Group: System Environment/Base
 Source: ftp://ftp.kernel.org/pub/linux/utils/net/NIS/yp-tools-%{version}.tar.bz2
+# Not sent to upstream
 Patch0: yp-tools-2.11-shadow.patch
+# Not sent to upstream
+Patch1: yp-tools-2.12-noypclnt.patch
 Url: http://www.linux-nis.org/nis/yp-tools/index.html
 Requires: ypbind
+# We need autoreconf for Patch1.
+BuildRequires: autoconf, automake
 
 %description
 The Network Information Service (NIS) is a system which provides
@@ -32,8 +37,10 @@ you'll need to install the ypserv package on one machine on the network.
 %prep
 %setup -q
 %patch0 -p1 -b .shadow
+%patch1 -p1 -b .noypclnt
 
 %build
+autoreconf
 %configure --disable-domainname
 make
 
@@ -53,6 +60,10 @@ make DESTDIR="$RPM_BUILD_ROOT" INSTALL_PROGRAM=install install
 /var/yp/nicknames
 
 %changelog
+* Tue Nov 23 2010 Karel Klic <kklic at redhat.com> - 2.12-2
+- Added patch that removes ypclnt.c from being compiled into
+  ypmatch (rhbz#546149)
+
 * Fri Nov 19 2010 Karel Klic <kklic at redhat.com> - 2.12-1
 - New upstream version
 


More information about the scm-commits mailing list