Bug 286610 - science/netcdf Fails to package with SZIP=off
Summary: science/netcdf Fails to package with SZIP=off
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Mateusz Piotrowski
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-05 19:57 UTC by Miroslav Lachman
Modified: 2025-05-09 09:31 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miroslav Lachman 2025-05-05 19:57:04 UTC
I am building netcdf in a Poudriere with disabled option SZIP, but it fails in the package phase with the following error:

===== env: 'PKG_NOTES=build_timestamp ports_top_git_hash ports_top_checkout_unclean port_git_hash port_checkout_unclean built_by' 'PKG_NOTE_build_timestamp=2025-05-05T19:42:07+00:00' 'PKG_NOTE_ports_top_git_hash=444288f10' 'PKG_NOTE_ports_top_checkout_unclean=no' 'PKG_NOTE_port_git_hash=444288f10' 'PKG_NOTE_port_checkout_unclean=no' 'PKG_NOTE_built_by=poudriere-git-3.4.99.20241213' NO_DEPENDS=yes USER=nobody UID=65534 GID=65534
===>  Building packages for netcdf-4.9.3
===>   Building netcdf-4.9.3
pkg-static: Unable to access file /wrkdirs/usr/ports/science/netcdf/work/stage/usr/local/hdf5/lib/plugin/lib__nch5szip.so:No such file or directory
*** Error code 1

I guess the lib__nch5szip.so should be conditional in pkg-plist because it is not built if option SZIP is set to OFF.
Comment 1 commit-hook freebsd_committer freebsd_triage 2025-05-09 09:30:50 UTC
A commit in branch main references this bug:

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

commit 7b45452bd93d9380f9a42abda3304b90e080e08d
Author:     Mateusz Piotrowski <0mp@FreeBSD.org>
AuthorDate: 2025-05-09 09:25:07 +0000
Commit:     Mateusz Piotrowski <0mp@FreeBSD.org>
CommitDate: 2025-05-09 09:30:16 +0000

    science/netcdf: Fix pkg-plist

    Fix "Error: Missing: hdf5/lib/plugin/lib__nch5szip.so"
    when option SZIP is off.

    PR:             286610
    Reported by:    Miroslav Lachman <000.fbsd@quip.cz>
    Approved by:    portmgr blanket

 science/netcdf/pkg-plist | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 2 Mateusz Piotrowski freebsd_committer freebsd_triage 2025-05-09 09:31:04 UTC
Thanks!