Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 699816 - [PATCH] sci-libs/arpack-3.1.5 fails to find liblapack of sci-libs/lapack-reference-3.2.1-r4
Summary: [PATCH] sci-libs/arpack-3.1.5 fails to find liblapack of sci-libs/lapack-refe...
Status: RESOLVED DUPLICATE of bug 698756
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Reported: 2019-11-11 12:30 UTC by John Doe
Modified: 2019-11-13 08:53 UTC (History)
0 users

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

Failing build log of sci-libs/arpack-3.1.5 (arpack-3.1.5_build.log.tar.bz2,2.84 KB, application/x-bzip2)
2019-11-11 12:34 UTC, John Doe
Fix for eselect-lapack-0.2 (eselect-lapack-0.2_do_not_insist_on_so.3_and_write_PKG_CONFIG_PATH.patch,847 bytes, patch)
2019-11-11 12:35 UTC, John Doe
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Doe 2019-11-11 12:30:59 UTC
arpack fails to build because it can't find the lapack library using pkg-config (see attached log).

1. app-eselect/eselect-lapack is unable to select sci-libs/lapack-reference-3.2.1-r4, because it checks for which the package does not install.

2. app-eselect/eselect-lapack does not write the PKG_CONFIG_PATH to /etc/env.d, so pkg-config is unable to find lapack.

The attached patch for eselect-lapack fixes the above issues and allows to select sci-libs/lapack-reference by running:
eselect lapack add lib64 /usr/lib64/lapack/reference lapack-reference
eselect lapack set lapack-reference

This fixes building arpack.

One thing I am not sure about is if the 50 in the filename /etc/env.d/50lapack is allowed or if there is a specific ordering convention which calls for a different number.

Another thought: If there is only one lapack version installed, it should probably add and select itself with eselect-lapack.

Reproducible: Always
Comment 1 John Doe 2019-11-11 12:34:26 UTC
Created attachment 595738 [details]
Failing build log of sci-libs/arpack-3.1.5
Comment 2 John Doe 2019-11-11 12:35:26 UTC
Created attachment 595740 [details, diff]
Fix for eselect-lapack-0.2
Comment 3 Benda Xu gentoo-dev 2019-11-13 08:53:49 UTC
Dear John Doe,

Thank you so much for patch.  I apologize for the confusion.  We have deprecated the lapack-reference packages and moved to sci-libs/lapack-3.8.0.  Let's move to bug 698756 for further discussions.


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