Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 668552 - app-eselect/eselect-opencl-1.1.0-r4: uses incorrect path to 'global' header files it installs
Summary: app-eselect/eselect-opencl-1.1.0-r4: uses incorrect path to 'global' header f...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-14 06:35 UTC by Michał Górny
Modified: 2020-09-12 21:15 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-10-14 06:35:44 UTC
The eselect module has:

  setup_includes_symlinks \
    "${DST_PREFIX}/include/CL" \
    "${PREFIX}/${libdir}/OpenCL/vendors/${cl_implem}/include/CL/" \
    "${PREFIX}/${libdir}/OpenCL/global/include/CL/"

However, the last path does not contain headers but CL-<version> subdirectories for which the module does not account.  The result is that once Mesa stopped installing its own set of headers, eselect-opencl does not update stale symlinks and the install is entirely broken.

Apparently the ebuild accounts for new paths, so reinstalling it fixes it.  However, what's the purpose of having eselect module in the first place if it's broken and requires workarounds in ebuilds?
Comment 1 Bernd Feige 2018-10-14 09:57:33 UTC
Here, several packages looking for opencl headers failed to build, including wine and tesseract (with +opencl). I guess that other reports such as https://bugs.gentoo.org/668554 are due to this.
Re-installing eselect-opencl actually fixed it, thanks!