FS#44289 - [wine][opencl-headers] OpenCL not found by configure in wine

Attached to Project: Community Packages
Opened by Gustavo Alvarez (sl1pkn07) - Saturday, 21 March 2015, 18:06 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Sunday, 22 March 2015, 05:52 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jelle van der Waa (jelly)
Sven-Hendrik Haase (Svenstaro)
Laurent Carlier (lordheavy)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Wine configure script search the OpenCL headers in 'openCL/opencl.h' path [1]

but in archlinux, that header is stored in 'CL/opencl.h' [2][3]

the solution is:

1) change the headers path in the opencl-headers package
2) sed the wine configure/.ac with:

sed 's|OpenCL/opencl.h|CL/opencl.h|g' -i configure*

[1] https://github.com/wine-mirror/wine/blob/master/configure.ac#L398
[2] https://www.archlinux.org/packages/community/any/opencl-headers/files/
[3] https://projects.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/opencl-headers#n46


greetings
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Sunday, 22 March 2015, 05:52 GMT
Reason for closing:  Fixed
Comment by Gustavo Alvarez (sl1pkn07) - Saturday, 21 March 2015, 18:07 GMT
doh. missing 'or' between 1) and 2)

edit: more info

without sed:

checking OpenCL/opencl.h usability... no
checking OpenCL/opencl.h presence... no
checking for OpenCL/opencl.h... no


with sed:

checking CL/opencl.h usability... yes
checking CL/opencl.h presence... yes
checking for CL/opencl.h... yes

Loading...