Bug 290615 - graphics/openexr: packaging failure of WITH_DEBUG=yes build
Summary: graphics/openexr: packaging failure of WITH_DEBUG=yes build
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: Matthias Andree
URL: https://github.com/AcademySoftwareFou...
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-27 22:36 UTC by Martin Filla
Modified: 2025-10-31 22:20 UTC (History)
0 users

See Also:
mandree: maintainer-feedback+
mandree: merge-quarterly+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Filla 2025-10-27 22:36:49 UTC
Hi,
i have problem with your port compile code.

/bin/mv  /usr/ports/graphics/openexr/work/stage/usr/local/share/doc/OpenEXR/examples/ /usr/ports/graphics/openexr/work/stage/usr/local/share/examples/openexr
====> Compressing man pages (compress-man)
====> Running Q/A tests (stage-qa)
===>  Installing for openexr-3.4.1_1
===>  Checking if openexr is already installed
===>   Registering installation for openexr-3.4.1_1 as automatic
pkg-static: Unable to access file /usr/ports/graphics/openexr/work/stage/usr/local/lib/libIex-3_4.so:No such file or directory
pkg-static: Unable to access file /usr/ports/graphics/openexr/work/stage/usr/local/lib/libIex-3_4.so.33:No such file or directory
pkg-static: Unable to access file /usr/ports/graphics/openexr/work/stage/usr/local/lib/libIex-3_4.so.33.3.4.1:No such file or directory
pkg-static: Unable to access file /usr/ports/graphics/openexr/work/stage/usr/local/lib/libIex.so:No such file or directory
pkg-static: Unable to access file /usr/ports/graphics/openexr/work/stage/usr/local/lib/libIlmThread-3_4.so:No such file or directory
pkg-static: Unable to access file /usr/ports/graphics/openexr/work/stage/usr/local/lib/libIlmThread-3_4.so.33:No such file or directory
pkg-static: Unable to access file /usr/ports/graphics/openexr/work/stage/usr/local/lib/libIlmThread-3_4.so.33.3.4.1:No such file or directory
pkg-static: Unable to access file /usr/ports/graphics/openexr/work/stage/usr/local/lib/libIlmThread.so:No such file or directory
pkg-static: Unable to access file /usr/ports/graphics/openexr/work/stage/usr/local/lib/libOpenEXR-3_4.so:No such file or directory
pkg-static: Unable to access file /usr/ports/graphics/openexr/work/stage/usr/local/lib/libOpenEXR-3_4.so.33:No such file or directory
pkg-static: Unable to access file /usr/ports/graphics/openexr/work/stage/usr/local/lib/libOpenEXR-3_4.so.33.3.4.1:No such file or directory
pkg-static: Unable to access file /usr/ports/graphics/openexr/work/stage/usr/local/lib/libOpenEXR.so:No such file or directory
pkg-static: Unable to access file /usr/ports/graphics/openexr/work/stage/usr/local/lib/libOpenEXRCore-3_4.so:No such file or directory
pkg-static: Unable to access file /usr/ports/graphics/openexr/work/stage/usr/local/lib/libOpenEXRCore-3_4.so.33:No such file or directory
pkg-static: Unable to access file /usr/ports/graphics/openexr/work/stage/usr/local/lib/libOpenEXRCore-3_4.so.33.3.4.1:No such file or directory
pkg-static: Unable to access file /usr/ports/graphics/openexr/work/stage/usr/local/lib/libOpenEXRCore.so:No such file or directory
pkg-static: Unable to access file /usr/ports/graphics/openexr/work/stage/usr/local/lib/libOpenEXRUtil-3_4.so:No such file or directory
pkg-static: Unable to access file /usr/ports/graphics/openexr/work/stage/usr/local/lib/libOpenEXRUtil-3_4.so.33:No such file or directory
pkg-static: Unable to access file /usr/ports/graphics/openexr/work/stage/usr/local/lib/libOpenEXRUtil-3_4.so.33.3.4.1:No such file or directory
pkg-static: Unable to access file /usr/ports/graphics/openexr/work/stage/usr/local/lib/libOpenEXRUtil.so:No such file or directory
*** Error code 1
Comment 1 Matthias Andree freebsd_committer freebsd_triage 2025-10-28 00:39:05 UTC
make clean && make check-plist package 
works for me.  Provide a reliable reproducer including all system details, modified relevant configuration files, exact ports tree revision, else I can't help you.
Comment 2 Martin Filla 2025-10-28 04:16:18 UTC
(In reply to Matthias Andree from comment #1)
Hi,
I did make clean && make check-plist package and there are issues in plist.
uname -a = FreeBSD hades 14.3-RELEASE-p3 FreeBSD 14.3-RELEASE-p3 GENERIC amd64
commit = 8e9751449f89 - (HEAD -> main, origin/main, origin/HEAD)
FreeBSD clang version 19.1.7 (https://github.com/llvm/llvm-project.git llvmorg-19.1.7-0-gcd708029e0b2)

/bin/mv  /usr/ports/graphics/openexr/work/stage/usr/local/share/doc/OpenEXR/examples/ /usr/ports/graphics/openexr/work/stage/usr/local/share/examples/openexr
====> Compressing man pages (compress-man)
====> Running Q/A tests (stage-qa)
====> Checking for pkg-plist issues (check-plist)
===> Parsing plist
===> Checking for items in STAGEDIR missing from pkg-plist
Error: Orphaned: lib/libIex-%%MAJORVER%%_d.so
Error: Orphaned: lib/libIex-%%MAJORVER%%_d.so.33
Error: Orphaned: lib/libIex-%%MAJORVER%%_d.so.33.%%REL%%
Error: Orphaned: lib/libIex_d.so
Error: Orphaned: lib/libIlmThread-%%MAJORVER%%_d.so
Error: Orphaned: lib/libIlmThread-%%MAJORVER%%_d.so.33
Error: Orphaned: lib/libIlmThread-%%MAJORVER%%_d.so.33.%%REL%%
Error: Orphaned: lib/libIlmThread_d.so
Error: Orphaned: lib/libOpenEXR-%%MAJORVER%%_d.so
Error: Orphaned: lib/libOpenEXR-%%MAJORVER%%_d.so.33
Error: Orphaned: lib/libOpenEXR-%%MAJORVER%%_d.so.33.%%REL%%
Error: Orphaned: lib/libOpenEXRCore-%%MAJORVER%%_d.so
Error: Orphaned: lib/libOpenEXRCore-%%MAJORVER%%_d.so.33
Error: Orphaned: lib/libOpenEXRCore-%%MAJORVER%%_d.so.33.%%REL%%
Error: Orphaned: lib/libOpenEXRCore_d.so
Error: Orphaned: lib/libOpenEXRUtil-%%MAJORVER%%_d.so
Error: Orphaned: lib/libOpenEXRUtil-%%MAJORVER%%_d.so.33
Error: Orphaned: lib/libOpenEXRUtil-%%MAJORVER%%_d.so.33.%%REL%%
Error: Orphaned: lib/libOpenEXRUtil_d.so
Error: Orphaned: lib/libOpenEXR_d.so
===> Checking for items in pkg-plist which are not in STAGEDIR
Error: Missing: lib/libIex-%%MAJORVER%%.so
Error: Missing: lib/libIex-%%MAJORVER%%.so.33
Error: Missing: lib/libIex-%%MAJORVER%%.so.33.%%REL%%
Error: Missing: lib/libIex.so
Error: Missing: lib/libIlmThread-%%MAJORVER%%.so
Error: Missing: lib/libIlmThread-%%MAJORVER%%.so.33
Error: Missing: lib/libIlmThread-%%MAJORVER%%.so.33.%%REL%%
Error: Missing: lib/libIlmThread.so
Error: Missing: lib/libOpenEXR-%%MAJORVER%%.so
Error: Missing: lib/libOpenEXR-%%MAJORVER%%.so.33
Error: Missing: lib/libOpenEXR-%%MAJORVER%%.so.33.%%REL%%
Error: Missing: lib/libOpenEXR.so
Error: Missing: lib/libOpenEXRCore-%%MAJORVER%%.so
Error: Missing: lib/libOpenEXRCore-%%MAJORVER%%.so.33
Error: Missing: lib/libOpenEXRCore-%%MAJORVER%%.so.33.%%REL%%
Error: Missing: lib/libOpenEXRCore.so
Error: Missing: lib/libOpenEXRUtil-%%MAJORVER%%.so
Error: Missing: lib/libOpenEXRUtil-%%MAJORVER%%.so.33
Error: Missing: lib/libOpenEXRUtil-%%MAJORVER%%.so.33.%%REL%%
Error: Missing: lib/libOpenEXRUtil.so
Comment 3 Matthias Andree freebsd_committer freebsd_triage 2025-10-28 06:49:50 UTC
You have something in environment variables or /etc/make.conf or similar or on the command line that breaks the build and that you are not reporting.
Comment 4 Martin Filla 2025-10-28 06:55:11 UTC
(In reply to Matthias Andree from comment #3)
In poudriere is built ok, but if i want to compile a new version from ports, is a problem.
Comment 5 Matthias Andree freebsd_committer freebsd_triage 2025-10-28 08:02:45 UTC
Let me know if the latest push fixes it in spite of your incomplete report.
Comment 6 commit-hook freebsd_committer freebsd_triage 2025-10-28 08:03:12 UTC
A commit in branch main references this bug:

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

commit fc6615ea1d1b9219382e56dd9a17864115a2bfaa
Author:     Matthias Andree <mandree@FreeBSD.org>
AuthorDate: 2025-10-28 08:00:34 +0000
Commit:     Matthias Andree <mandree@FreeBSD.org>
CommitDate: 2025-10-28 08:02:00 +0000

    graphics/openexr: avoid _d suffix WITH_DEBUG

    Apparently broken with upstream commit
    https://github.com/AcademySoftwareFoundation/openexr/commit/848f84ae7504adcd89ec0da182499d5cd4e3b245

    Might fix
    PR:             290615
    MFH:            2025Q4

    No PORTREVISION bump because packaging fails if the issue strikes.

 graphics/openexr/files/patch-cmake_OpenEXRSetup.cmake (new) | 12 ++++++++++++
 1 file changed, 12 insertions(+)
Comment 7 Martin Filla 2025-10-28 08:10:11 UTC
(In reply to Matthias Andree from comment #5)
It is fixed now. Thank you.
Comment 8 commit-hook freebsd_committer freebsd_triage 2025-10-28 18:19:52 UTC
A commit in branch 2025Q4 references this bug:

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

commit cc03c97868849608338490a8cd441b3f641ceea4
Author:     Matthias Andree <mandree@FreeBSD.org>
AuthorDate: 2025-10-28 08:00:34 +0000
Commit:     Matthias Andree <mandree@FreeBSD.org>
CommitDate: 2025-10-28 17:58:14 +0000

    graphics/openexr: avoid _d suffix WITH_DEBUG

    Apparently broken with upstream commit
    https://github.com/AcademySoftwareFoundation/openexr/commit/848f84ae7504adcd89ec0da182499d5cd4e3b245

    Might fix
    PR:             290615
    MFH:            2025Q4

    No PORTREVISION bump because packaging fails if the issue strikes.

    (cherry picked from commit fc6615ea1d1b9219382e56dd9a17864115a2bfaa)

 graphics/openexr/files/patch-cmake_OpenEXRSetup.cmake (new) | 12 ++++++++++++
 1 file changed, 12 insertions(+)
Comment 9 Matthias Andree freebsd_committer freebsd_triage 2025-10-28 18:25:26 UTC
Martin,

thanks for the report, next time please remember to check for WITH_DEBUG=yes set in our /etc/make.conf, .profile or .shrc or wherever and include that info in your report.

Bug report with a different fix proposal filed upstream as https://github.com/AcademySoftwareFoundation/openexr/issues/1981#issuecomment-3457859378 (the commit changing the previously - in most 3.3.x - working lines to the broken 3.4.0+ didn't reference the original bug report and so the issue had remained open surviving the merge).  If they accept my proposal, our patch will break and can be removed.

MFH done, 3.4.0 was also affected.
Comment 10 commit-hook freebsd_committer freebsd_triage 2025-10-31 22:20:12 UTC
A commit in branch main references this bug:

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

commit c0f85663f34f29c0e9013f9c35ced11620a408c5
Author:     Matthias Andree <mandree@FreeBSD.org>
AuthorDate: 2025-10-31 22:10:04 +0000
Commit:     Matthias Andree <mandree@FreeBSD.org>
CommitDate: 2025-10-31 22:18:16 +0000

    graphics/openexr: use official WITH_DEBUG=yes fix

    We've developed an officially accepted solution with upstream and
    upstream reporter of the issue that prompted the change that broke our
    DEBUG builds, so let's switch to the official change to minimize
    differences from upstream.

    https://github.com/AcademySoftwareFoundation/openexr/issues/1981
    https://github.com/AcademySoftwareFoundation/openexr/pull/2166/commits/efa3b861ab0ab515ec7923ce02500acf667eabb0

    PR:             290615

    Note I am not updating to v3.4.2 because it does not contain changes
    for FreeBSD - it contains a fix for Windows, and the other Imath change
    is unnecessary for us because our ports system handles the requisite.

 graphics/openexr/files/patch-cmake_OpenEXRSetup.cmake | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)