Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 501762 - sci-mathematics/octave-3.8.0 has a broken dependency check
Summary: sci-mathematics/octave-3.8.0 has a broken dependency check
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mark Wright
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-19 11:13 UTC by Helmut Jarausch
Modified: 2014-02-20 08:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2014-02-19 11:13:39 UTC
Trying to install  sci-mathematics/octave-3.8.0 fails on my system with the
messages
 * Checking dependencies are built with the same blas lib = libpthread
 * *******************************************************************************
 * /usr/lib64/libqrupdate.so must be rebuilt with libpthread
 * 
 * To check the libaries /usr/lib64/libqrupdate.so is currently built with:
 * 
 * scanelf -n /usr/lib64/libqrupdate.so
 * 
 * To find the package that needs to be rebuilt:
 * 
 * equery belongs /usr/lib64/libqrupdate.so


pkg-config --libs-only-l "blas" | sed -e 's@.*-l@lib@' | cut -d' ' -f 1
gives
libpthread

but
scanelf -n /usr/lib64/libqrupdate.so   gives
ET_DYN libblas.so.0,liblapack.so.0,libgfortran.so.3,libm.so.6 /usr/lib64/libqrupdate.so 

which doesn't show libpthread thus triggering the bug.

eselect blas list  shows
  [1]   atlas
  [2]   atlas-threads *
  [3]   reference

So, what check is really meant?
Comment 1 Mark Wright gentoo-dev 2014-02-19 23:52:44 UTC
Thanks for reporting, I will try it with atlas to see if I can reproduce the problem.
Comment 2 Mark Wright gentoo-dev 2014-02-20 00:29:09 UTC
Like I believe you that the check is broken on your machine, but I tried it with
atlas on my machine and the check works.

So please send me the outputs of (with "eselect blas show" still showing that
[2]   atlas-threads *
is selected):

pkg-config --libs-only-l "blas"
ls -al /usr/lib64/pkgconfig/blas*
cat /usr/lib64/pkgconfig/blas.pc
Comment 3 Mark Wright gentoo-dev 2014-02-20 01:01:23 UTC
Thinking about it some more I think I see the problem, and a candidate fix
to change the sed to:

local blaslib=$( \
pkg-config --libs-only-l blas | \
sed -e 's@-l\([^ \t]*\)@lib\1@' | \
cut -d' ' -f 1)

Committed in revision: 1.3 with this hopeful commit message:

Fix bug 501762, pkg-pretend check that dependencies are built with the same blas library as currently selected with "eselect blas show" was incorrect when "pkg-config --libs-only-l blas" listed more than 1 library, thanks to Helmut Jarausch for reporting.

It would be neat if you could please re-test and let us know if it works or not.
Comment 4 Helmut Jarausch 2014-02-20 08:13:43 UTC
(In reply to Mark Wright from comment #3)
> Thinking about it some more I think I see the problem, and a candidate fix
> to change the sed to:
> 
> local blaslib=$( \
> pkg-config --libs-only-l blas | \
> sed -e 's@-l\([^ \t]*\)@lib\1@' | \
> cut -d' ' -f 1)
> 
> Committed in revision: 1.3 with this hopeful commit message:
> 
> Fix bug 501762, pkg-pretend check that dependencies are built with the same
> blas library as currently selected with "eselect blas show" was incorrect
> when "pkg-config --libs-only-l blas" listed more than 1 library, thanks to
> Helmut Jarausch for reporting.
> 
> It would be neat if you could please re-test and let us know if it works or
> not.

Many thanks, this solves the problem. (though I haven't seen an
octave-3.8.0-r1, yet)
Helmut