Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 838319

Summary: sci-libs/mkl-2020.4.304: incorrect Cflags in pkg-config file
Product: Gentoo Linux Reporter: Andrew <awkravchuk>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED FIXED    
Severity: normal CC: andrewammerlaan
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Andrew 2022-04-14 10:35:30 UTC
A few *.pc files installed by sci-libs/mkl package have wrong Cflags, setting include dir to just /usr/incude, as opposed to correct one /usr/include/mkl.

Reproducible: Always

Steps to Reproduce:
$ cd /usr/lib64/pkgconfig
$ grep "include" mkl*pc
Actual Results:  
mkl-dynamic-ilp64-iomp.pc:includedir=${prefix}/include/mkl
mkl-dynamic-ilp64-iomp.pc:Cflags: -I${includedir}
mkl-dynamic-ilp64-seq.pc:includedir=${prefix}/include/mkl
mkl-dynamic-ilp64-seq.pc:Cflags: -I${includedir}
mkl-dynamic-lp64-iomp.pc:includedir=${prefix}/include/mkl
mkl-dynamic-lp64-iomp.pc:Cflags: -I${includedir}
mkl-dynamic-lp64-seq.pc:includedir=${prefix}/include
mkl-dynamic-lp64-seq.pc:Cflags: -I${includedir}
mkl-sdl-ilp64.pc:includedir=${prefix}/include/mkl
mkl-sdl-ilp64.pc:Cflags: -I${includedir} -DMKL_ILP64 -m64
mkl-sdl-lp64.pc:includedir=${prefix}/include/mkl
mkl-sdl-lp64.pc:Cflags: -I${includedir} -m64
mkl-static-ilp64-iomp.pc:includedir=${prefix}/include
mkl-static-ilp64-iomp.pc:Cflags: -I${includedir}
mkl-static-ilp64-seq.pc:includedir=${prefix}/include
mkl-static-ilp64-seq.pc:Cflags: -I${includedir}
mkl-static-lp64-iomp.pc:includedir=${prefix}/include
mkl-static-lp64-iomp.pc:Cflags: -I${includedir}
mkl-static-lp64-seq.pc:includedir=${prefix}/include
mkl-static-lp64-seq.pc:Cflags: -I${includedir}

Expected Results:  
Expected includedir to be /usr/include/mkl in all of the files.

This leads to another software depending on MKL fail at build time with messages like "fatal error: mkl.h: No such file or directory".
Comment 1 Andrew Ammerlaan gentoo-dev 2022-12-10 15:46:58 UTC
Should be fixed in version 2022.2.1.16993