Hi all,
Here is some more info regarding this:
We have two options:
1) Patch all programs that could use kerberos/gssapi as follows:
- Apply the attached patch below to the sasl package
- Execute autoconf
- Now configure is able to detect the kerberos headers and libraries properly.
or
2) Apply the attached patch to kerberos.spec, which will stop the package moving
the header and include files away, thus making it easier for kerberos enabled
applications to
find the libraries and header files, no other changes would then be necesary to
kerberise applications except to re/compile them when kerberos is installed.
Regards,
Stephan Buys
On Wednesday 18 February 2004 07:26, Stephan Buys wrote:
> Hi all,
>
> I wondered if anyone could perhaps assist me with the following:
> I am trying to build some "kerberized" applications (the zfos Kolab packages)
> and I cannot get the OpenPKG sasl package to detect that OpenPKG Kerberos
> is installed, even though it is clearly under {%l_prefix}/include/kerberos/...
>
> I have looked at the configure switches and at the package aclocal.m4 and
> configure.in files to no avail.
>
> Also, the .spec file disables Kerberos support, even though the sasl, etc. packages
> will "automatically" detect Kerberos and use it (which is usefull for sites who need
> to deploy kerberos).
>
> Any tips/ideas?
>
> Kind regards,
--
Stephan Buys
Code Fusion cc.
Tel: +27 11 391 1412
Mobile: +27 83 294 1876
Email: [EMAIL PROTECTED]
--- aclocal.m4.old 2004-02-18 08:44:55.676956064 +0200
+++ aclocal.m4 2004-02-18 09:06:00.383691416 +0200
@@ -2726,10 +2726,10 @@
cmu_saved_CPPFLAGS=$CPPFLAGS
if test -d ${gssapi}; then
- CPPFLAGS="$CPPFLAGS -I$gssapi/include"
+ CPPFLAGS="$CPPFLAGS -I$gssapi/include/kerberos"
# We want to keep -I in our CPPFLAGS, but only if we succeed
cmu_saved_CPPFLAGS=$CPPFLAGS
- LDFLAGS="$LDFLAGS -L$gssapi/lib"
+ LDFLAGS="$LDFLAGS -L$gssapi/lib/kerberos"
if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then
CPPFLAGS="$CPPFLAGS -D$platform"
--- kerberos.spec 2004-02-07 17:41:01.000000000 +0200
+++ kerberos.spec.new 2004-02-18 09:10:54.830928632 +0200
@@ -151,14 +151,14 @@
$RPM_BUILD_ROOT%{l_prefix}/libexec/kerberos/
rmdir $RPM_BUILD_ROOT%{l_prefix}/sbin
- mv \
- $RPM_BUILD_ROOT%{l_prefix}/include/*.h \
- $RPM_BUILD_ROOT%{l_prefix}/include/gssapi \
- $RPM_BUILD_ROOT%{l_prefix}/include/kerberosIV \
- $RPM_BUILD_ROOT%{l_prefix}/include/kerberos/
- mv \
- $RPM_BUILD_ROOT%{l_prefix}/lib/*.a \
- $RPM_BUILD_ROOT%{l_prefix}/lib/kerberos/
+# mv \
+# $RPM_BUILD_ROOT%{l_prefix}/include/*.h \
+# $RPM_BUILD_ROOT%{l_prefix}/include/gssapi \
+# $RPM_BUILD_ROOT%{l_prefix}/include/kerberosIV \
+# $RPM_BUILD_ROOT%{l_prefix}/include/kerberos/
+# mv \
+# $RPM_BUILD_ROOT%{l_prefix}/lib/*.a \
+# $RPM_BUILD_ROOT%{l_prefix}/lib/kerberos/
rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/gnats
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true