[Bug 289680] graphics/zbar: zbar pulls in graphics/ImageMagick7@x11 when x11 is disabled

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 18 Sep 2025 09:35:47 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289680

            Bug ID: 289680
           Summary: graphics/zbar: zbar pulls in graphics/ImageMagick7@x11
                    when x11 is disabled
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: johannes.kunde@gmail.com
                CC: desktop@FreeBSD.org, dev2@heesakkers.info
                CC: desktop@FreeBSD.org, dev2@heesakkers.info

When building graphics/zbar with OPTIONS_FILE_UNSET+=X11 and
OPTIONS_FILE_SET+=IMAGEMAGICK, make pulls in the X11 flavor of
graphics/ImageMagick7@x11, which leads to conflicts during the build process.

This issue was encountered while building deskutils/py-paperless-ngx.
paperless-ngx depends on both graphics/zbar (via graphics/py-pyzbar) and
graphics/ImageMagick7. While paperless-ngx correctly builds
graphics/ImageMagick7@nox11 with the related make knob set, the build of
graphics/zbar triggers the build of graphics/ImageMagick7@x11. This ultimately
results in a conflict, as both graphics/libwmf@x11 and graphics/libwmf@nox11
are installed.

I believe the root cause lies in graphics/zbar, which should build
graphics/ImageMagick7@nox11 (and accordingly graphics/libwmf@nox11) when
OPTIONS_FILE_UNSET+=X11 is set.

-- 
You are receiving this mail because:
You are on the CC list for the bug.