[Bug 273915] graphics/openshadinglanguage, graphics/opencolorio, graphics/openimageio error in cmake config file

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 18 Sep 2023 02:02:35 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273915

            Bug ID: 273915
           Summary: graphics/openshadinglanguage, graphics/opencolorio,
                    graphics/openimageio error in cmake config file
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: misantroposof@gmail.com
                CC: FreeBSD@ShaneWare.Biz
                CC: FreeBSD@ShaneWare.Biz
             Flags: maintainer-feedback?(FreeBSD@ShaneWare.Biz)

graphics/openshadinglanguage, graphics/opencolorio and graphics/openimageio get
their cmake config files corrupted when building on FreeBSD 14.0-BETA1 and
BETA2. This does not prevent these ports from being built, but it does prevent
ports that depend on these ports from building correctly.

The following is from /usr/local/lib/cmake/OSL/OSLConfig.cmake, and the other
two ports mentioned here get the same or similar enough corruption, in their
corresponding config files:

find_dependency(ZLIB 1.3.#define ZLIB_VERSION "1.3")

which I'm guessing should be

find_dependency(ZLIB 1.3)

and manually editing these files, seems to work around the problem.

I have not been able to determine where this error originates, and consequently
I'm unable to propse a patch, but I'm guessing that somehow the Config.cmake.in
file is parsed incorrectly.

This problem does not occur on 13.2-RELEASE-p2 when building from the exact
same ports tree. I haven't tried 13.2-RELEASE-p3, as that patch came just two
days before 14.0-BETA1, and I had already decided to adopt early.

I have noticed that the zlib version was bumped from 1.2.13 to 1.3 when I moved
to 14.0, and possibly there's something in the zlib source files, or something
in the ports framework has changed that causes some files to be incorrectly
parsed, or these ports themselves need to include checks for which FreeBSD
version is running.

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