pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Can we make X11 optional for libvips?



Hauke Fath <hf%spg.tu-darmstadt.de@localhost> writes:

> On Fri, 31 Oct 2025 15:38:13 +0000, atomicules wrote:
>> It seems that we need to make libsvg _and_ poppler optional.
>> 
>> The below builds for me on a NetBSD without X11. I could do a pullup
>> request?
>
> Thanks for the sleuthing, I have a commit ready.
>
> One question, though: Do we want the two knobs for libsvg and poppler 
> in this case, or a single x11 knob that enables dependencies on the two 
> libraries?
>
> Given your application, I would lean towards the latter, otherwise the 
> unsuspecting package builder would have to figure out what exactly she 
> has to disable for a non-x11 build.

I too lean towards x11.  Generally it's better not to have options, and
in this case the problem is not that the dependencies are bloated, but
that the system is deficient in that it lacks x11.  (pkgsrc expects
x11.)  And, if x11 is broadly used as an option, putting -x11 in default
options will help a lot.

I'm not sure this has been addressed, but generally when we accomodate
this sort of request, the default behavior is unchanged, so that there's
be an x11 option which is default on, and people can turn it off.


Home | Main Index | Thread Index | Old Index