Created attachment 174359 [details] opencl-2.1.diff The Khronos group has already published new headers to meet OpenCL API 2.1. Atteched, you'll find a svn diff according to the new API and a new file. Some changes were needed: The header cl2.hpp is located at another site/master_site, so the MASTER_SITES has to be adjusted as well the sources for the files downloaded for installation, see diff.
Please confirm this change passes QA (poudriere, portlint, etc) and dont forget to set maintainer-approval to + on attachments for ports you are maintainer of. While I'm here, clean up summary
Created attachment 174623 [details] OpenCL 2.1 API Patch: cl.h changed upstream, adjust distinfo checksum Upstream made slight changes to cl.h, so its chesum doesn't match anymore. The patch adjusts distinfo.
*** Bug 206779 has been marked as a duplicate of this bug. ***
(In reply to Kubilay Kocak from comment #1) In my poudriere environment, the updated port (including new patch for distinfo) built well.
Created attachment 174731 [details] opencl 2.1 update using github macro Grab bug. Use the github macro's. so we can drop a lot of complex code, we also don't have to download every file alone and worry about checksum conflicts. I'm not a fan of 4+ files in PLIST_FILES so move to a plist.
Created attachment 175429 [details] opencl 2.1 patch with cl.hpp updated I think the previous patch lost cl.hpp. This patch includes that and cl2.hpp as well.
Created attachment 175432 [details] opencl 2.1 patch with cl.hpp updated and plist Sorry, that patch missed the plist change, this one has it.
A commit references this bug: Author: kwm Date: Sat Oct 22 11:24:21 UTC 2016 New revision: 424465 URL: https://svnweb.freebsd.org/changeset/ports/424465 Log: Update opencl (headers) to 2.1. * Use github macro's for fetching sources instead of manualy fetching. * Switch to a pkg-plist PR: 212362 Submitted by: maintainer (original patch), kwm@ and swills@ (updated versions) Approved by: maintainer timeout (for updated versions) Changes: head/devel/opencl/Makefile head/devel/opencl/distinfo head/devel/opencl/pkg-descr head/devel/opencl/pkg-plist
Committed thanks! I did change the GH_TAGNAME, this is because it failed to fetch during pre commit poudriere testing. Turns out the old GH_TAGNAME might point to a branch but new stuff might be added there so it not stable. So I added a git commit hash for the headers github repo and a propper tag for the hpp github repo to pin it in place.
A commit references this bug: Author: db Date: Fri Mar 20 13:21:43 UTC 2020 New revision: 528777 URL: https://svnweb.freebsd.org/changeset/ports/528777 Log: reated attachment 212362 [details] Fix emulators/qemu-sbruno build with lld 10.0.0 As reported in bug 244251, with clang and lld 10.0.0 the emulators/qemu-sbruno port fails in the configure stage: ===> Configuring for qemu-user-static-2.11.50.g20191211_3 ERROR: We need to link the QEMU user mode binaries at a specific text address. Unfortunately your linker doesn't support either the -Ttext-segment option or printing the default linker script with --verbose. If you don't want the user mode binaries, pass the --disable-user option to configure. ===> Script "configure" failed unexpectedly. Please report the problem to emulation@FreeBSD.org [maintainer] and attach the "/wrkdirs/usr/ports/emulators/qemu-user-static/work/qemu-bsd-user-d587db6/config.log" including the output of the failure of your make command. Also, it might be a good idea to provide an overview of all packages installed on your system (e.g. a /usr/local/sbin/pkg-static info -g -Ea). *** Error code 1 This is because lld 10.0.0 no longer supports the -Ttext-segment option, and uses --image-base for similar functionality. I am proposing a patch that makes the configure script check for the --image-base option first, then the -Ttext-segment option. PR: ports/212362 Submitted by: dim@FreeBSD.org Approved by: Maintainer Changes: head/emulators/qemu-sbruno/files/patch-configure