Bug 285134 - graphics/embree: Update to 4.3.3
Summary: graphics/embree: Update to 4.3.3
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Alexey Dokuchaev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-03 18:34 UTC by Martin Filla
Modified: 2025-04-28 07:37 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (danfe)


Attachments
0001-embree-update-to-4.3.3.patch (27.62 KB, patch)
2025-03-03 18:34 UTC, Martin Filla
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Filla 2025-03-03 18:34:48 UTC
Created attachment 258257 [details]
0001-embree-update-to-4.3.3.patch

Hi,
This is an update to 4.3.3. I tested in poudriere. I need this update for a new package.
Comment 1 commit-hook freebsd_committer freebsd_triage 2025-04-28 07:28:45 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=38d561356b5e60389e8c673f7a0ef360d31588b6

commit 38d561356b5e60389e8c673f7a0ef360d31588b6
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2025-04-28 07:26:28 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2025-04-28 07:26:28 +0000

    graphics/embree: update Intel Embree to version 4.2.0

    Versions 4.x have default values for ZIP mode and ISPC support
    flipped, change them back in our port to avoid breaking POLA.

    Preserve version 3.13.5 as `graphics/embree3' port and reroute
    consumers to it due to incompatible API of the modern Embree.

    PR:     285134

 graphics/Makefile                                  |   1 +
 graphics/appleseed/Makefile                        |   2 +-
 graphics/blender/Makefile                          |   2 +-
 graphics/embree/Makefile                           |  15 +-
 graphics/embree/distinfo                           |   6 +-
 ...tch-tutorials_embree__info_CMakeLists.txt (new) |  13 +
 graphics/embree/pkg-plist                          | 201 +++++++++------
 graphics/embree3/Makefile (new)                    |  78 ++++++
 graphics/embree3/distinfo (new)                    |   5 +
 graphics/embree3/pkg-descr (new)                   |  12 +
 graphics/embree3/pkg-plist (new)                   | 283 +++++++++++++++++++++
 graphics/openvkl/Makefile                          |   2 +-
 graphics/ospray/Makefile                           |   2 +-
 science/py-fresnel/Makefile                        |   2 +-
 science/ttk/Makefile                               |   2 +-
 15 files changed, 532 insertions(+), 94 deletions(-)
Comment 2 Alexey Dokuchaev freebsd_committer freebsd_triage 2025-04-28 07:37:34 UTC
(In reply to Martin Filla from comment #0)
> I need this update for a new package.
Unfortunately, versions 4.3.x do not compile with ISPC support enabled:

  [...]/work/embree-4.3.3/tutorials/forest/forest_device.ispc:131:3:
        Error: Unable to find any matching overload for call to function
        "rtcSetDeviceMemoryMonitorFunction".
        Passed types: (uniform struct RTCDeviceTy * uniform, unmasked uniform
        bool(void * uniform ptr, uniform int64 bytes, uniform bool post), void
        * uniform)

  rtcSetDeviceMemoryMonitorFunction(g_device, monitorMemoryFunction, NULL);
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

To avoid further delay, I've updated the port to version 4.2.0 which does not exhibit this problem; hopefully it is recent enough for the package you're working on.