Fix runstatedir configuration

Why couldn't systemd just leave it alone?

Partially reverts ec1ab43ca2 .
This commit is contained in:
Robbie Harwood 2020-12-16 11:12:22 -05:00
parent ed80b08062
commit 58924baeb4

View File

@ -18,7 +18,7 @@ Summary: The Kerberos network authentication system
Name: krb5 Name: krb5
Version: 1.18.3 Version: 1.18.3
# for prerelease, should be e.g., 0.% {prerelease}.1% { ?dist } (without spaces) # for prerelease, should be e.g., 0.% {prerelease}.1% { ?dist } (without spaces)
Release: 4%{?dist} Release: 5%{?dist}
# rharwood has trust path to signing key and verifies on check-in # rharwood has trust path to signing key and verifies on check-in
Source0: https://web.mit.edu/kerberos/dist/krb5/1.18/krb5-%{version}%{prerelease}.tar.gz Source0: https://web.mit.edu/kerberos/dist/krb5/1.18/krb5-%{version}%{prerelease}.tar.gz
@ -254,6 +254,9 @@ sed -i -e s,7778,`expr "$PORT" + 1`,g $cfg
source %{_libdir}/tclConfig.sh source %{_libdir}/tclConfig.sh
pushd src pushd src
# Set this so that configure will have a value - upstream defaults it from
# localstatedir, which is wrong for us.
export runstatedir=/run
# Work out the CFLAGS and CPPFLAGS which we intend to use. # Work out the CFLAGS and CPPFLAGS which we intend to use.
INCLUDES=-I%{_includedir}/et INCLUDES=-I%{_includedir}/et
CFLAGS="`echo $RPM_OPT_FLAGS $DEFINES $INCLUDES -fPIC -fno-strict-aliasing -fstack-protector-all`" CFLAGS="`echo $RPM_OPT_FLAGS $DEFINES $INCLUDES -fPIC -fno-strict-aliasing -fstack-protector-all`"
@ -289,6 +292,14 @@ CPPFLAGS="`echo $DEFINES $INCLUDES`"
make make
popd popd
# Sanity check the KDC_RUN_DIR.
configured_dir=`grep KDC_RUN_DIR src/include/osconf.h | awk '{print $NF}'`
configured_dir=`eval echo $configured_dir`
if test "$configured_dir" != /run/krb5kdc ; then
echo Failed to configure KDC_RUN_DIR.
exit 1
fi
# Build the docs. # Build the docs.
make -C src/doc paths.py version.py make -C src/doc paths.py version.py
cp src/doc/paths.py doc/ cp src/doc/paths.py doc/
@ -628,6 +639,10 @@ exit 0
%{_libdir}/libkadm5srv_mit.so.* %{_libdir}/libkadm5srv_mit.so.*
%changelog %changelog
* Wed Dec 16 2020 Robbie Harwood <rharwood@redhat.com> - 1.18.3-5
- Fix runstatedir configuration
- Why couldn't systemd just leave it alone?
* Tue Nov 24 2020 Robbie Harwood <rharwood@redhat.com> - 1.18.3-4 * Tue Nov 24 2020 Robbie Harwood <rharwood@redhat.com> - 1.18.3-4
- Document -k option in kvno(1) synopsis - Document -k option in kvno(1) synopsis