]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
redhat: exclude kpasswd from debuginfo processing
authorStephan Wiesand <stephan.wiesand@desy.de>
Tue, 8 Dec 2015 12:13:47 +0000 (13:13 +0100)
committerStephan Wiesand <stephan.wiesand@desy.de>
Mon, 14 Dec 2015 12:44:16 +0000 (07:44 -0500)
While kpasswd was in the separate openafs-kpasswd package to avoid
clashing with the krb5 executable, openafs-debuginfo still conflicted
with krb5-debuginfo. Remove the x-bits from kpasswd in %install to
make debuginfo processing ignore it, and add them back in the %files
list. Make kapasswd a copy rather than a hard link to have it processed
in the usual way.

This is a 1.6-only change. On the master branch, this issue is fixed
by commit 4e3ceaccd9dc2b6e6a20e938d82af1ebaa2c43c8 which however
removes kpasswd altogether and is thus considered inapproriate for the
stable release series.

FIXES 131771

Change-Id: Icd940e3f5da133a98401c7a28ed6ee0c637bf602
Reviewed-on: http://gerrit.openafs.org/12128
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: Stephan Wiesand <stephan.wiesand@desy.de>
Reviewed-by: Marcio Brito Barbosa <mbarbosa@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/packaging/RedHat/openafs.spec.in

index 1bf4b7ab2e321130b8220065ac99668cdfb04ea7..1afcc4d12e952e2f1e962a64a49ec76e56229ddc 100644 (file)
@@ -1062,8 +1062,11 @@ chmod +x $RPM_BUILD_ROOT%{_libdir}/*.so*
 # any user in /usr/bin
 mv $RPM_BUILD_ROOT%{_prefix}/afs/bin/restorevol $RPM_BUILD_ROOT%{_bindir}/restorevol
 
-# Link kpasswd to kapasswd
-ln -f $RPM_BUILD_ROOT%{_bindir}/kpasswd $RPM_BUILD_ROOT%{_bindir}/kapasswd
+# Copy kpasswd to kapasswd
+cp -a $RPM_BUILD_ROOT%{_bindir}/kpasswd $RPM_BUILD_ROOT%{_bindir}/kapasswd
+
+# make kpasswd non-executable to exclude it from debuginfo processing
+chmod 0644 $RPM_BUILD_ROOT%{_bindir}/kpasswd
 
 # Copy root.client config files
 install -m 755 src/packaging/RedHat/openafs.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/openafs
@@ -1729,7 +1732,7 @@ dkms remove -m %{name} -v %{dkms_version} --rpm_safe_upgrade --all ||:
 
 %files kpasswd
 %defattr(-,root,root)
-%{_bindir}/kpasswd
+%attr(0755,root,root) %{_bindir}/kpasswd
 %{_bindir}/kpwvalid
 
 %if %{krb5support}