conda-forge / gsl-feedstock

A conda-smithy repository for gsl.
BSD 3-Clause "New" or "Revised" License
6 stars 18 forks source link

pkgconfig is wrong #63

Open tobiasdiez opened 3 hours ago

tobiasdiez commented 3 hours ago

Solution to issue cannot be found in the documentation.

Issue

The pkgconfig shipped in the recent versions seems to have wrong paths and doesn't use variables such as ${prefix} and ${includedir}. Thus, the gsl headers etc cannot be found afterwards.

On Linux:

prefix=/home/conda/feedstock_root/build_artifacts/gsl_1626369067039/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho
exec_prefix=/home/conda/feedstock_root/build_artifacts/gsl_1626369067039/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho
libdir=/home/conda/feedstock_root/build_artifacts/gsl_1626369067039/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib
includedir=/home/conda/feedstock_root/build_artifacts/gsl_1626369067039/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/include
GSL_CBLAS_LIB=-lgslcblas

Name: GSL
Description: GNU Scientific Library
Version: 2.7
Libs: -L/home/conda/feedstock_root/build_artifacts/gsl_1626369067039/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib -lgsl ${GSL_CBLAS_LIB} -lm -lcblas -lm
Cflags: -I/home/conda/feedstock_root/build_artifacts/gsl_1626369067039/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/include

On Windows:

prefix=/d/bld/gsl_1626369281481/_h_env/Library
exec_prefix=/d/bld/gsl_1626369281481/_h_env/Library
libdir=/d/bld/gsl_1626369281481/_h_env/Library/lib
includedir=/d/bld/gsl_1626369281481/_h_env/Library/include
GSL_CBLAS_LIB=-lgslcblas

Name: GSL
Description: GNU Scientific Library
Version: 2.7
Libs: -L/d/bld/gsl_1626369281481/_h_env/Library/lib -lgsl ${GSL_CBLAS_LIB}  
Cflags: -I/d/bld/gsl_1626369281481/_h_env/Library/include

Installed packages

https://anaconda.org/conda-forge/gsl/files

Environment info

Both on Windows and Linux

traversaro commented 3 hours ago

Hello, can you follow the template and report the output of conda info/conda list (or equivalent mamba/micromamba/pixi commands)?

In particular, how did you installed the package? Those paths are meant to be replaced with the actual paths via the relocatable mechanism of conda, see https://docs.conda.io/projects/conda-build/en/latest/resources/make-relocatable.html . I guess they can be changed to the .pc files actually relocatable without any conda help via ${pcfiledir}, but I guess this needs to be done either upstream or by packing the .pc generation logic.