Bug 675316

Summary: flann-1.6.7-4.fc15.src.rpm fails building on ppc64
Product: [Fedora] Fedora Reporter: Adrian Reber <adrian>
Component: flannAssignee: Rich Mattes <richmattes>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: richmattes
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: 2011-02-04 21:41:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Adrian Reber 2011-02-04 21:16:03 UTC
Somehow the cmake scripts are installing the libraries in /usr/lib instead of /usr/lib64 on ppc64.

Although it seems correctly defined

/usr/bin/cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib64 -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_MATLAB_BINDINGS=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_PYTHON_BINDINGS=true ..

It is installed in the wrong directory:

-- Installing: /builddir/build/BUILDROOT/flann-1.6.7-4.fc15.ppc64/usr/lib/pkgconfig/flann.pc
-- Installing: /builddir/build/BUILDROOT/flann-1.6.7-4.fc15.ppc64/usr/lib/libflann_cpp.so.1.6.7
-- Installing: /builddir/build/BUILDROOT/flann-1.6.7-4.fc15.ppc64/usr/lib/libflann_cpp.so.1.6
-- Installing: /builddir/build/BUILDROOT/flann-1.6.7-4.fc15.ppc64/usr/lib/libflann_cpp.so
-- Installing: /builddir/build/BUILDROOT/flann-1.6.7-4.fc15.ppc64/usr/lib/libflann_cpp_s.a
-- Installing: /builddir/build/BUILDROOT/flann-1.6.7-4.fc15.ppc64/usr/lib/libflann.so.1.6.7
-- Installing: /builddir/build/BUILDROOT/flann-1.6.7-4.fc15.ppc64/usr/lib/libflann.so.1.6
-- Installing: /builddir/build/BUILDROOT/flann-1.6.7-4.fc15.ppc64/usr/lib/libflann.so
-- Installing: /builddir/build/BUILDROOT/flann-1.6.7-4.fc15.ppc64/usr/lib/libflann_s.a


RPM build errors:
    File not found by glob: /builddir/build/BUILDROOT/flann-1.6.7-4.fc15.ppc64/usr/lib64/*.so.*
Child returncode was: 1


http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=127910

Comment 1 Rich Mattes 2011-02-04 21:41:01 UTC
Fixed in flann-1.6.7-5.  Is the ppc secondary arch targeting any releases prior to f15?  If so, let me know and I will apply this patch to the the other branches.

Comment 2 Adrian Reber 2011-02-04 22:00:04 UTC
Thanks a lot. Now it works. f15 is enough.

http://ppc.koji.fedoraproject.org/koji/buildinfo?buildID=27116