[Bug 271124] graphics/libjxl: fails to package with JPEG unset

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 28 Apr 2023 19:00:22 UTC

            Bug ID: 271124
           Summary: graphics/libjxl: fails to package with JPEG unset
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: jbeich@FreeBSD.org
          Reporter: fsbruva@yahoo.com
             Flags: maintainer-feedback?(jbeich@FreeBSD.org)
          Assignee: jbeich@FreeBSD.org

Created attachment 241835
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=241835&action=edit
Proposed patch to add JPEG conditionality

Problem: making the libjxl port with JPEG option unset causes packaging failure

===>  Building package for libjxl-0.8.1
pkg-static: Unable to access file
/wrkdirs/usr/ports/graphics/libjxl/work/stage/usr/local/bin/cjpeg_hdr:No such
file or directory
*** Error code 1

Discussion: The Makefile correctly instructs CMAKE to not search for JPEG based
on the set/unset status of the JPEG option. However, according to
that also disables compilation of the cjpeg_hdr binary.

Proposed solution: The attached patch amends the pkg-plist for the port to be
contingent on the JPEG option. This avoids the above errorwhen JPEG is unset,
and permits the compilation of cjpeg_hdr when the JPEG option is set.

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