tech-pkg archive

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

Re: removing error from USE_X11 without xorg



coypu%sdf.org@localhost writes:

> On Mon, Jul 16, 2018 at 11:16:19AM -0400, Greg Troxel wrote:
>> 
>> coypu%sdf.org@localhost writes:
>> 
>> > Python doesn't use X11. Some python programs might.
>> > For python GUI packages, python needs to know where to look for X11
>> > libraries.
>> >
>> > I don't care if python GUI packages fail to work on a non-X11 setup. But
>> > now I have lots of other packages failing until I adjust settings.
>> >
>> > Setup with no xorg and no interest in ever installing it.
>> 
>> So generally pkgsrc declares dependencies and requires them.  You're
>> saying that you don't want something installed, which in the case of X
>> client-side libs, is quite unusual, admirable in an odd way :-)
>> But, a vast amount of things assume some degree of X presence, so you
>> are a bit tilting at windmills (but we all are, choosing NetBSD).
>> 
>> I don't think it's right to drop pkgsrc insisting on X being there when
>> packages say they need it, to make an edge case work, where it builds
>> anyway and fails if you do something x-ish at runtime.
>> 
>> What if you do
>> 
>> PKG_DEFAULT_OPTIONS+=		-x11
>> 
>> Does that let python build?  And if not, is there some minor bug?
>> 
>> Why isn't that a good solution for you, who are trying to build things
>> from pkgsrc on a system that does not have X?
>> 
>> 
>
>
> No it doesn't because I need a bajillion patches. It'd be nice to make
> defaults work.

pkgsrc has long had baked in a strong requirement to have X somehow,
either installed from base, or to use X11_TYPE=modular, at least for any
package that needs X at all.  I don't see why we should be changing
that.

There's a consistency property about dependencies that everything needed
is forced to be present, and you are basically proposing to turn that
off, which will cause others to have mysterious runtime failures.

If you want to fix python to build with -x11, without breaking the
dependency consistency property, and without tons of changes that cuase
pain for the 99.99% of the people that don't object to X client libs,
that seems like a fine thing to do.

You could of course set X11_TYPE=modular, and then you'd get libX11
built, and sitting there taking up a little bit of space, and all would
be ok I'm pretty sure -- but you seem opposed to that.  I am curious how
many others feel this way.

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index