[Bug 277216] math/vtk9: fix build with OSMESA and JAVA option

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 22 Feb 2024 01:40:22 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277216

            Bug ID: 277216
           Summary: math/vtk9: fix build with OSMESA and JAVA option
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: yuri@freebsd.org
          Reporter: hiroo.ono+freebsd@gmail.com
          Assignee: yuri@freebsd.org
             Flags: maintainer-feedback?(yuri@freebsd.org)

Created attachment 248675
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=248675&action=edit
Patch to fix build with OSMESA and JAVA option.

The build of vtk9 fails if I choose JAVA or OSMESA option.
1) In the Makefile, a typo exists which make the build fail with JAVA option.
  The patch fixes it.
2) With OSMESA option,
 2-1) USE= gl should only be included with OSMESA option, but currently there
is "gl" entry in the global USES line. there is also USES+=gl line with OSMESA
option. It makes gl doubled (USES= gl gl) and seems to trigger a strange
behavior that lead to build failure.
 2-2) need a little patch to the source to build with OSMESA option.

Tested with poudriere testport on 14-STABLE.

-- 
You are receiving this mail because:
You are the assignee for the bug.