Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 903985 - dev-libs/opencl-icd-loader-2023.02.06 stablereq (was: dev-libs/opencl-icd-loader doesn't provide OpenCL.pc file)
Summary: dev-libs/opencl-icd-loader-2023.02.06 stablereq (was: dev-libs/opencl-icd-loa...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Stabilization (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Marek Szuba (RETIRED)
URL:
Whiteboard:
Keywords: CC-ARCHES
Depends on:
Blocks:
 
Reported: 2023-04-07 16:52 UTC by Ivan Podmazov
Modified: 2023-04-13 03:03 UTC (History)
2 users (show)

See Also:
Package list:
dev-libs/opencl-icd-loader-2023.02.06 dev-util/opencl-headers-2023.02.06 dev-libs/clhpp-2023.02.06 amd64 x86
Runtime testing required: ---
nattka: sanity-check+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Podmazov 2023-04-07 16:52:24 UTC
The dev-libs/ocl-icd package used to provide OpenCL.pc file for pkg-config.
The new dev-libs/opencl-icd-loader package does not provide the file, which causes failures in Makefiles which relied upon `pkg-config OpenCL`.
Comment 1 Ionen Wolkens gentoo-dev 2023-04-07 16:58:24 UTC
it does though?

$ qfile -v /usr/lib64/pkgconfig/OpenCL.pc
dev-libs/opencl-icd-loader-2023.02.06: /usr/lib64/pkgconfig/OpenCL.pc

$ pkg-config --libs OpenCL
-lOpenCL
Comment 2 Ivan Podmazov 2023-04-07 17:01:28 UTC
Okay, I got it, the newest unstable version DOES provide it, but the stable version does not:

equery files dev-libs/opencl-icd-loader

 * Searching for opencl-icd-loader in dev-libs ...
 * Contents of dev-libs/opencl-icd-loader-2022.09.30:
/usr
/usr/lib64
/usr/lib64/libOpenCL.so -> libOpenCL.so.1
/usr/lib64/libOpenCL.so.1 -> libOpenCL.so.1.2
/usr/lib64/libOpenCL.so.1.2
/usr/share
/usr/share/cmake
/usr/share/cmake/OpenCLICDLoader
/usr/share/cmake/OpenCLICDLoader/OpenCLICDLoaderConfig.cmake
/usr/share/cmake/OpenCLICDLoader/OpenCLICDLoaderConfigVersion.cmake
/usr/share/cmake/OpenCLICDLoader/OpenCLICDLoaderTargets-relwithdebinfo.cmake
/usr/share/cmake/OpenCLICDLoader/OpenCLICDLoaderTargets.cmake
/usr/share/doc
/usr/share/doc/opencl-icd-loader-2022.09.30
/usr/share/doc/opencl-icd-loader-2022.09.30/README.md.bz2
Comment 3 Ionen Wolkens gentoo-dev 2023-04-07 17:12:36 UTC
Ah I see, you're right.

Guess I'll change this to a stable request.
Comment 4 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2023-04-08 08:29:55 UTC
amd64 done
Comment 5 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2023-04-08 09:00:26 UTC
ppc64 done
Comment 6 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2023-04-08 11:13:23 UTC
x86 done

all arches done
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-12 10:34:16 UTC
It might be worth us having virtual/opencl depend on a new enough opencl-icd-loader here.
Comment 8 Larry the Git Cow gentoo-dev 2023-04-13 03:03:43 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e78163871ed2edf0fd5a9a7e3d880a380bddea15

commit e78163871ed2edf0fd5a9a7e3d880a380bddea15
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-04-12 10:35:45 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-04-13 03:01:00 +0000

    virtual/opencl: depend on fixed opencl-icd-loader
    
    Older opencl-icd-loader didn't necessarily install its pkgconfig
    files. In any case, guaranteeing a recent version is rarely a bad
    thing.
    
    Bug: https://bugs.gentoo.org/903985
    Signed-off-by: Sam James <sam@gentoo.org>

 virtual/opencl/{opencl-3-r2.ebuild => opencl-3-r3.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)