[17211] in Kerberos_V5_Development
[PATCH] Make krb5-config suppress CFLAGS output and omit extra
daemon@ATHENA.MIT.EDU (=?ISO-8859-1?Q?St=E9phane?= Gaudre)
Mon Sep 26 10:49:15 2011
From: =?ISO-8859-1?Q?St=E9phane?= Gaudreault <stephane@archlinux.org>
To: krbdev@mit.edu
Date: Mon, 26 Sep 2011 09:33:52 -0400
Message-ID: <2536608.ODG4j3ejgY@assurancetourix>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="nextPart2770731.Lm8KvxJc49"
Content-Transfer-Encoding: 7Bit
Errors-To: krbdev-bounces@mit.edu
--nextPart2770731.Lm8KvxJc49
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="iso-8859-1"
Please apply this minor patch (derived from Fedora) to fix two issues w=
ith=20
krb5-config:
1) Make krb5-config suppress CFLAGS output when called with --libs
In unpatched krb5, the output of "krb5-config --libs" contains the curr=
ent
value of the CFLAGS. Example
# CFLAGS=3D"SOME CRAP" krb5-config --libs
This cause CFLAGS to be copied into the LDFLAGS of other applications t=
hat=20
call krb5-config in their building process.
2) Omit extra libraries because their interfaces are not exposed to
applications by libkrb5.
For example, if we build CUPS against unpatched krb5
# cups-config --libs
-lcups -march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe -I/usr/include/dbus-1=
.0
-I/usr/lib/dbus-1.0/include -DDBUS_API_SUBJECT_TO_CHANGE
-Wl,--hash-style=3Dgnu -Wl,--as-needed -lgssapi_krb5 -lkrb5 -lk5crypto
-lcom_err -lkeyutils -lresolv -ldl -lz -lm -lcrypt
This contain more dependencies than needed. These unneeded dependencies=
comes=20
from krb5-config. With the patched krb5 we get :
# cups-config --libs
-lcups -Wl,--hash-style=3Dgnu -Wl,--as-needed -lgssapi_krb5 -lkrb5
-lk5crypto -lcom_err -lz -lm -lcrypt
With patched krb5-config, setting do_deps to 1 indicates that the calle=
r wants=20
the whole list.
The patch is also available via
http://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=3Dpack=
ages/krb5
Regards,
St=E9phane Gaudreault
--nextPart2770731.Lm8KvxJc49
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
krbdev mailing list krbdev@mit.edu
https://mailman.mit.edu/mailman/listinfo/krbdev
--nextPart2770731.Lm8KvxJc49--