openafs conflicts with krb5-workstation on RHEL6

Alexander 'Leo' Bergolth <[email protected]>
Newsgroups gmane.linux.redhat.rpm.atrpms.devel
Message-ID <[email protected]>
Hi!

In RHEL6, the kpasswd binary (and the corresponding man-page) moved from
/usr/kerberos to /usr.

This leads to a conflict with krb5-workstation:

-------------------- 8< --------------------
  file /usr/bin/kpasswd conflicts between attempted installs of
krb5-workstation-1.9-9.el6.i686 and openafs-1.4.14.1-36.el6.i686
  file /usr/share/man/man1/kpasswd.1.gz conflicts between attempted
installs of krb5-workstation-1.9-9.el6.i686 and openafs-1.4.14.1-36.el6.i686
-------------------- 8< --------------------

Please package openafs's kpasswd and kpasswd.1.gz as afs_kpasswd and
afs_kpasswd.1.gz (like we did with compile_et).

The attached spec-file patch (untested, unfortunately I don't have a
build-system available to test) should (hopefully) do the job. :-)

Thanks!
--leo
-- 
e-mail   ::: Leo.Bergolth (at) wu.ac.at
fax      ::: +43-1-31336-906050
location ::: IT-Services | Vienna University of Economics | Austria
openafs-kpasswd.patch (text/x-patch, 1.1 KB)
--- SPECS/openafs.spec	2011-07-02 19:27:40.000000000 +0200
+++ openafs.spec	2011-10-01 11:54:20.915840426 +0200
@@ -3,7 +3,7 @@
 Summary: OpenAFS distributed filesystem
 Name: openafs
 Version: 1.4.14.1
-Release: 36%{?dist}
+Release: 37%{?dist}
 License: IBM Public License
 Group: Networking/Filesystems
 URL: http://www.openafs.org/
@@ -271,6 +271,13 @@
   %{buildroot}%{_libdir}/libuafs.a \
 %endif
 
+# work around a conflict with krb5-workstation on RHEL6
+mv "%{buildroot}%{_bindir}/kpasswd" "%{buildroot}%{_bindir}/afs_kpasswd"
+for f in "%{buildroot}%{_mandir}"/man1/kpasswd.1*; do
+  base=$(basename "$f")
+  mv $f %{buildroot}%{_mandir}/man1/afs_"$base"
+done
+
 %else
 
 make install_only_libafs DESTDIR=%{buildroot}
@@ -357,7 +364,7 @@
 %{_bindir}/afsmonitor
 %{_bindir}/bos
 %{_bindir}/dpass
-%{_bindir}/kpasswd
+%{_bindir}/afs_kpasswd
 %{_bindir}/kpwvalid
 %{_bindir}/livesys
 %{_bindir}/pts
@@ -380,7 +387,7 @@
 %{_mandir}/man1/afs.*
 %{_mandir}/man1/afsmonitor.*
 %{_mandir}/man1/dpass.*
-%{_mandir}/man1/kpasswd.*
+%{_mandir}/man1/afs_kpasswd.*
 %{_mandir}/man1/pts.*
 %{_mandir}/man1/pts_*
 %{_mandir}/man1/rxdebug.*
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.