Hoist the KDC_RUN_DIR check
This commit is contained in:
parent
35a4aa7b99
commit
d3ac4cf9b0
12
krb5.spec
12
krb5.spec
@ -284,18 +284,22 @@ CPPFLAGS="`echo $DEFINES $INCLUDES`"
|
|||||||
--with-prng-alg=os \
|
--with-prng-alg=os \
|
||||||
--with-lmdb \
|
--with-lmdb \
|
||||||
|| (cat config.log; exit 1)
|
|| (cat config.log; exit 1)
|
||||||
# Build fast, but get better errors if we fail
|
|
||||||
make %{?_smp_mflags} || make -j1
|
|
||||||
popd
|
|
||||||
|
|
||||||
# Sanity check the KDC_RUN_DIR.
|
# Sanity check the KDC_RUN_DIR.
|
||||||
configured_dir=`grep KDC_RUN_DIR src/include/osconf.h | awk '{print $NF}'`
|
pushd include
|
||||||
|
make osconf.h
|
||||||
|
popd
|
||||||
|
configured_dir=`grep KDC_RUN_DIR include/osconf.h | awk '{print $NF}'`
|
||||||
configured_dir=`eval echo $configured_dir`
|
configured_dir=`eval echo $configured_dir`
|
||||||
if test "$configured_dir" != /run/krb5kdc ; then
|
if test "$configured_dir" != /run/krb5kdc ; then
|
||||||
echo Failed to configure KDC_RUN_DIR.
|
echo Failed to configure KDC_RUN_DIR.
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Build fast, but get better errors if we fail
|
||||||
|
make %{?_smp_mflags} || make -j1
|
||||||
|
popd
|
||||||
|
|
||||||
# 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/
|
||||||
|
Loading…
Reference in New Issue
Block a user