Bug 378270

Summary: cups-config broken because krb5-config is broken
Product: [openSUSE] openSUSE 11.0 Reporter: Dirk Mueller <dmueller>
Component: PrintingAssignee: Klaus Singvogel <kssingvo>
Status: RESOLVED FIXED QA Contact: Johannes Meixner <jsmeix>
Severity: Normal    
Priority: P5 - None CC: kde-maintainers, mc
Version: Alpha 3plus   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Dirk Mueller 2008-04-09 10:18:22 UTC
cups-config --libs returns compile flags (-O2 etc) which are not allowed in LDFLAGS, and break packages depending on it:

-lcups -L/usr/lib -Wl,-rpath -Wl,/usr/lib -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -g -fno-strict-aliasing -fstack-protector -DLDAP_DEPRECATED -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -DDBUS_API_SUBJECT_TO_CHANGE -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lkeyutils -lresolv -ldl -lssl -lcrypto -lz -lpthread -lm -lcrypt

ERROR:kdeprint/cups/Makefile.am: variable 'LDADD' contains unknown flag -O2. These should be in LDFLAGS!
ERROR:kdeprint/cups/Makefile.am: variable 'LIBADD' contains unknown flag -O2. These should be in LDFLAGS!
ERROR:kdeprint/cups/cupsdconf2/Makefile.am: variable 'LIBADD' contains unknown flag -O2. These should be in LDFLAGS!
Comment 1 Klaus Singvogel 2008-04-09 10:29:58 UTC
Thanks.
This was introduced by krb5 support.
krb5-config shows current $CFLAGS in output (and some rpath stuff).

Working on it, new package(s) will be submitted soon. :-)
Comment 2 Klaus Singvogel 2008-04-09 10:41:04 UTC
New packages submitted. Hoping that autobuild will do check-in soon.
Comment 3 Johannes Meixner 2010-04-27 08:05:23 UTC
The krb5.rpm changelog contains:
---------------------------------------------------------------
* Wed Apr 09 2008 mc@suse.de
- modify krb5-config to not output rpath and cflags in --libs
  (bnc#378270)
---------------------------------------------------------------
so that the root cause in krb5-config was fixed.

Therefore the band-aid cups-krb5-config wrapper script
in the cups package is no longer needed and is now
removed for openSUSE 11.3.

For example the current CUPS 1.4.3 from the Printing project
which is built without the cups-krb5-config wrapper script
results on x86_64:
-------------------------------------------------------------------
root@host# cups-config --libs
-lcups -L/usr/lib64 -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err
-lkeyutils -lresolv -ldl -lssl -lcrypto -lz -lpthread -lm -lcrypt
-------------------------------------------------------------------
Comment 4 Bernhard Wiedemann 2016-04-15 09:07:27 UTC
This is an autogenerated message for OBS integration:
This bug (378270) was mentioned in
https://build.opensuse.org/request/show/38923 Factory / cups