Bug 255592

Summary: graphics/gdal: Uses EXR option, even if disabled, if OpenEXR is present
Product: Ports & Packages Reporter: Rainer Hurling <rhurlin>
Component: Individual Port(s)Assignee: Po-Chuan Hsieh <sunpoet>
Status: Closed FIXED    
Severity: Affects Some People CC: pi, rhurlin
Priority: --- Flags: bugzilla: maintainer-feedback? (sunpoet)
Version: Latest   
Hardware: Any   
OS: Any   
Description Flags
Patch to fix disabling option EXR none

Description Rainer Hurling freebsd_committer 2021-05-04 12:27:45 UTC
Created attachment 224659 [details]
Patch to fix disabling option EXR

In a discussion on ports@ LuMiWa <lumiwa@dismail.de> (02.05.2021, 19:55) presented a breakage in the build of graphics/gdal, if option EXR is disabled, but graphics/openexr is present on the system.

The Makefile uses EXR_CONFIGURE_ON=--with-exr, so this switch is not suppressed if the option is deselected.

If EXR_CONFIGURE_WITH=exr is used instead, --with-exr is not used in the configure script if the option is deselected.

The attached patch contains the corresponding change ;)
Comment 1 commit-hook freebsd_committer 2021-05-04 21:51:10 UTC
A commit in branch main references this bug:

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

commit 23746f91b756086b6c7b798e9ae6531c8c9a4e3c
Author:     Rainer Hurling <rhurlin@FreeBSD.org>
AuthorDate: 2021-05-04 21:44:20 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2021-05-04 21:45:48 +0000

    graphics/gdal: Fix EXR option

    PR:             255592

 graphics/gdal/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 2 Po-Chuan Hsieh freebsd_committer 2021-05-04 21:51:34 UTC
Committed. Thanks!