Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 580076 - app-eselect/eselect-opencl-1.1.0-r4: uncatched cp: cannot stat '...' during install
Summary: app-eselect/eselect-opencl-1.1.0-r4: uncatched cp: cannot stat '...' during i...
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: 2016-04-15 13:24 UTC by Michał Górny
Modified: 2020-09-12 21:14 UTC (History)
2 users (show)

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


Attachments
Build log (app-eselect:eselect-opencl-1.1.0-r4:20160415-132013.log,9.93 KB, text/x-log)
2016-04-15 13:24 UTC, Michał Górny
Details
additional build log (file_580076.txt,4.43 KB, text/plain)
2016-04-20 00:16 UTC, zlg (RETIRED)
Details
eselect-opencl-1.1.0-r5.ebuild (file_580076.txt,1.56 KB, patch)
2019-05-05 17:21 UTC, delete me
Details | Diff

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 2016-04-15 13:24:17 UTC
Created attachment 430612 [details]
Build log

>>> Install eselect-opencl-1.1.0-r4 into /tmp/portage/app-eselect/eselect-opencl-1.1.0-r4/image/ category app-eselect
cp: cannot stat '/tmp/portage/app-eselect/eselect-opencl-1.1.0-r4/work/OpenCL-Headers-opencl10/cl_egl.h': No such file or directory
cp: cannot stat '/tmp/portage/app-eselect/eselect-opencl-1.1.0-r4/work/OpenCL-Headers-opencl11/cl_egl.h': No such file or directory
>>> Completed installing eselect-opencl-1.1.0-r4 into /tmp/portage/app-eselect/eselect-opencl-1.1.0-r4/image/


I wouldn't expect install with such errors to be considered successful.
Comment 1 zlg (RETIRED) gentoo-dev 2016-04-20 00:16:24 UTC
Created attachment 431298 [details]
additional build log

I ran into the same issue when updating @world. I've attached a copy of my build log as well.
Comment 2 delete me 2019-05-05 17:21:53 UTC
Created attachment 575338 [details, diff]
eselect-opencl-1.1.0-r5.ebuild

Attached patch appears to solve the problem. Here's what I did:

* upgraded from EAPI 5 -> 7
* updated the copyright notice to 2019
* removed version specifier from app-admin/eselect version in DEPEND since 1.2.4 is no longer in tree
* added conditional to check for (and skip) the missing file. Separating the 'headers' array into tiers of features may make maintenance of this ebuild easier going forward
* forwarded all `cp` output to /dev/null; might be able to change it to `|| die` since we're catching the CL version in the prior bullet point. All other files should copy fine.

Kind of surprised it's taken over two years for somebody to do something about this. OpenCL must not get attention on Gentoo.