Bug 1066424

Summary: oyranos-config returns invalid LDFLAGS and consequently the cinepaint build fails
Product: [Fedora] Fedora Reporter: Jaromír Cápík <jcapik>
Component: oyranosAssignee: Christopher Meng <i>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: urgent    
Version: rawhideCC: i, ovasik
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-18 12:08:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jaromír Cápík 2014-02-18 11:37:39 UTC
Description of problem:
I get the following when calling 'oyranos-config --ldflags' in Rawhide/f21

--------------
-L/usr/lib64 -loyranos -loyranos_config -loyranos_modules -loyranos_object -loyranos_core -lelektra  -L/usr/lib64     -L -lelektra
--------------

and the following when calling it in f20

--------------
-L/usr/lib64 -loyranos -loyranos_object -loyranos_core -lelektra  -L/usr/lib64  -lxml2   -lyajl
--------------

You can notice a single '-L' not accompanied with any directory in case of Rawhide. This leads to the following cinepaint build error:

--------------
/bin/sh ../../libtool --tag=CXX   --mode=link g++ -DLOCALEDIR=\""/usr/share/locale"\"  -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches  -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables  -lstdc++ -lm -lX11 -o pdf pdf.o pdf_dialog.o ../../lib/libcinepaint.la -lstdc++ -lm -lX11  -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype  -lstdc++ -lm -lX11 ../../lib/fl_i18n/libcinepaint_fl_i18n.la -Wl,-z,relro -lfltk_images -lfltk -DHAVE_OY -L/usr/lib -loyranos -loyranos_config -loyranos_modules -loyranos_object -loyranos_core -lelektra  -L/usr/lib     -L -lelektra -lc 
libtool: link: require no space between `-L' and `-lelektra'
make[2]: *** [pdf] Error 1
make[2]: Leaving directory `/builddir/build/BUILD/cinepaint-1.0-4/plug-ins/pdf'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/builddir/build/BUILD/cinepaint-1.0-4/plug-ins'
make: *** [install-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.V4MA5w (%install)
--------------

Version-Release number of selected component (if applicable):
oyranos-0.9.5-0.0.20140123git.fc21

How reproducible:
always

Steps to Reproduce:
oyranos-config --ldflags

Actual results:
-L/usr/lib64 -loyranos -loyranos_config -loyranos_modules -loyranos_object -loyranos_core -lelektra  -L/usr/lib64     -L -lelektra

Expected results:
The single '-L' should not be there for sure. The list of LDFLAGS needs to be re-checked.

Comment 1 Michael Schwendt 2014-02-18 12:08:32 UTC
Yeah, Christopher apparently prefers working on more review requests.

*** This bug has been marked as a duplicate of bug 1057030 ***