Re: Extraneous dependencies in bind920

Miroslav Lachman <[email protected]>
Newsgroups gmane.os.freebsd.devel.ports
Message-ID <[email protected]>
On 15/03/2026 18:11, bob prohaska wrote:
> On Fri, Mar 13, 2026 at 07:33:46PM +0100, Miroslav Lachman wrote:
>>>>
>>>>      OPTIONS_UNSET= X11 GUI CUPS DOCS EXAMPLES NLS
>>>
>>> Placed in /usr/local/etc/poudriere.conf ?
>>
>> It should be in /usr/local/etc/poudriere.d/make.conf or <setname>-make.conf
>> or <tree>-make.conf or...
>>
> At the moment I have
> # cat /usr/local/etc/poudriere.d/make.conf
> 
>   OPTIONS_UNSET= X11 GUI CUPS DOCS EXAMPLES NLS
> 
> but poudriere is reporting
> # tail *.log
> [10:11:33] [04] [00:00:00] Building x11/libXrender | libXrender-0.9.12
> [10:26:37] [04] [00:15:04] Finished x11/libXrender | libXrender-0.9.12: Success
> [10:27:41] [01] [00:16:08] Finished x11/libXext | libXext-1.3.6,1: Success
> [10:38:32] [03] [00:26:59] Finished x11-toolkits/libXt | libXt-1.3.0,1: Success
> [10:38:36] [01] [00:00:00] Building x11-toolkits/libXmu | libXmu-1.1.4,1
> [10:38:36] [03] [00:00:00] Building x11/libXpm | libXpm-3.5.17_1
> [10:54:08] [03] [00:15:32] Finished x11/libXpm | libXpm-3.5.17_1: Success
> [10:54:53] [01] [00:16:17] Finished x11-toolkits/libXmu | libXmu-1.1.4,1: Success
> [10:54:56] [01] [00:00:00] Building x11-toolkits/libXaw | libXaw-1.0.16,2
> [11:22:54] [01] [00:27:58] Finished x11-toolkits/libXaw | libXaw-1.0.16,2: Success
> 
> Could the leading blank be causing poudriere to ignore the directive?
> Did I manage to slip in another typo?

The blank should be OK. You can take a look in build log of some package 
what options it has detected.

Are you building only bind920 or is it some larger package set? I know 
there are some packages pulling X11 libraries unconditionally because 
the are needed / are not optional. And some packages have X11 as a user 
selectable option, but must be set to ON because consumer of this 
dependency expect support of X11 from it.

Even with the OPTIONS_UNSET = X11 GUI CUPS DOCS EXAMPLES NLS I still see 
these libraries being built.

libX11-1.8.12,1.pkg
libXau-1.0.12.pkg
libXdmcp-1.1.5.pkg
libXext-1.3.6,1.pkg
libXrandr-1.5.4.pkg
libXrender-0.9.12.pkg

Most of the packages are built really without dependency on X11, but I 
know there is something pulling it unconditionally. I don't remember now 
what it was. Maybe something around Cairo, Poppler (for headless work 
with PDF) or something like this.

I tried to track it down now on one of our machines, there is a huge 
chain of library dependencies to work with some multimedia content from 
the webapp, and something around x265 / libheif needs vulkan-loader 
which has the following options set:

Options        :
         WAYLAND        : off
         XCB            : on
         XLIB           : on

So it does not uses X11 option, it has XCB and XLIB which pulls libX?? 
libraries. And I know there are some others on different machines.

The "funny" thing is, all these X libraries are used to fulfill the 
needs of ... "ImageMagick7-nox11-7.1.2.11". ImageMagick itself is built 
as nox11 because of the OPTIONS_UNSET shown above, but as ImageMagick 
has HEIF SET, then there is the chain of libX as I wrote above.

Can't speak about bind920, we don't build it in our Poudriere.

WAYLAND is the next candidate to be added to our OPTIONS_UNSET as more 
and more packages have it as an option.

Best regards
Miroslav Lachman
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.