Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jan 2024 17:26:49 +0700
From:      Eugene Grosbein <eugen@grosbein.net>
To:        Baptiste Daroussin <bapt@freebsd.org>
Cc:        Alexey Dokuchaev <danfe@freebsd.org>, Gleb Popov <arrowd@freebsd.org>, ports-committers@freebsd.org, dev-commits-ports-all@freebsd.org, dev-commits-ports-main@freebsd.org
Subject:   Re: git: a5ade24bb0d7 - main - misc/mc: drop needless run-time dependencies on Aspell and Xlib
Message-ID:  <ec32d6ce-311f-91d4-d191-640633c866a3@grosbein.net>
In-Reply-To: <zcwge5xaah4avcqcn6efhb6j3eqsiaqxw5hbcmosalg7rfwi3b@vos5rhgllezf>
References:  <202401151039.40FAdAJM021552@gitrepo.freebsd.org> <CALH631=Ty1%2B=YTo4R_BAC6XiOcAHjg%2BQEM8qqWEDiB-_rye4Cw@mail.gmail.com> <ZaX_7f_9KaiMAckf@FreeBSD.org> <4dd7ec4b-a9eb-08a4-fa51-5ed37067c519@grosbein.net> <zcwge5xaah4avcqcn6efhb6j3eqsiaqxw5hbcmosalg7rfwi3b@vos5rhgllezf>

next in thread | previous in thread | raw e-mail | index | archive | help
16.01.2024 15:31, Baptiste Daroussin wrote:

> On Tue, Jan 16, 2024 at 03:19:27PM +0700, Eugene Grosbein wrote:

>>>>> The branch main has been updated by danfe:
>>>>>
>>>>> +X11_BUILD_DEPENDS=     ${LOCALBASE}/include/X11/Xlib.h:x11/libX11
>>>>
>>>> There is a little sense to have optionalized BUILD_DEPENDS on such a
>>>> tiny dependency as libX11.
>>>
>>> There is also `post-install-X11-on' target at the bottom of the Makefile.
>>> I believe that there still is demand to be able to build the port without
>>> any X11 support whatsoever.
>>
>> Yes, there is.
>>
> You are aware that xorg has been modulariszed around 20 years ago ~10+ years ago for freebsd
> because as usual we were late to the battle, since that libx11 does not bring in
> the whole xorg anymore?

I am.

> Now libx11 only depends on libxcb, libXdmcp libXau and xorgproto
> libbX11-1.8.7,1                 5.57MiB
> libxcb-1.15_1                  4.94MiB
> libXdmcp-1.1.3                 63.1KiB
> libXau-1.0.9                   37.7KiB
> xorgproto-2023.2               1.38MiB
> 
> Note that if someone looks closedly enough he can probably shave off xorgproto
> as a dependency.
> 
> if you look at the build dependency, you will add xtrans and xorg-macros and
> xcb-proto and python39 the only big thing being python3.9 which you probably
> have anyway for other reasons.

Not always. There are cases when I need to include misc/mc into nanobsd-based
FreeBSD system installed and upgraded via r/o image that needs to be as small as possible
to fit two code partitions (A/B) into small flash storage (CompactFlash etc.)

So I need only essential dependencies. Decrease this bloat as much as possible. No python, too.
Sometimes I'm forced to hack ports Makefiles to drop non-essential dependencies
like python out of misc/mc port that disables some its "VFS" support I never use anyway.

And I am happy that I do not need to hack it much more to get rid of all that X stuff.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ec32d6ce-311f-91d4-d191-640633c866a3>