-
-
Notifications
You must be signed in to change notification settings - Fork 15k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure blas produces pkg config files #67629
Conversation
@@ -44,6 +44,19 @@ stdenv.mkDerivation rec { | |||
install ${dashD} -m755 libblas.so.${version} "$out/lib/libblas.so.${version}" | |||
ln -s libblas.so.${version} "$out/lib/libblas.so.3" | |||
ln -s libblas.so.${version} "$out/lib/libblas.so" | |||
# Write pkgconfig aliases. Upstream report: | |||
# https://github.com/xianyi/OpenBLAS/issues/1740 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Upstream isn't relevant here. There might be a relevant issue tracker for blas though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the discussion in that ticket is quite useful even though it is talking about openblas
. I can remove the comment if that is going to stop this being accepted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually find the comment misleading since blas and openblas are from very different sources.
@@ -44,6 +44,19 @@ stdenv.mkDerivation rec { | |||
install ${dashD} -m755 libblas.so.${version} "$out/lib/libblas.so.${version}" | |||
ln -s libblas.so.${version} "$out/lib/libblas.so.3" | |||
ln -s libblas.so.${version} "$out/lib/libblas.so" | |||
# Write pkgconfig aliases. Upstream report: | |||
# https://github.com/xianyi/OpenBLAS/issues/1740 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually find the comment misleading since blas and openblas are from very different sources.
# https://github.com/xianyi/OpenBLAS/issues/1740 | ||
# This is a copy from openblas/default.nix | ||
mkdir $out/lib/pkgconfig | ||
for alias in blas cblas lapack; do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This package only contains blas
. cblas
and lapack
are not part of this package. However openblas
provides those interfaces.
Name: $alias | ||
Version: ${version} | ||
Description: $alias provided by the BLAS package. | ||
Cflags: -I$out/include |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since blas
is a simple Fortran library it does not have includes. This is the complete file listing of nix-build -A blas
:
result/
result/lib
result/lib/libblas.so.3
result/lib/libblas.so.3.8.0
result/lib/libblas.so
result/lib/libblas.a
@GrahamcOfBorg build blas |
Motivation for this change
Some Haskell packages use
PkgConfig-Depends: blas
and currently theblas
package doesn't produce these.Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
I tried to use this but
and
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @
There doesn't seem to be a maintainer (at least I couldn't find one in the
default.nix
)