On 7/3/24 12:19 AM, Andrey Grozin wrote:
> Hello *,
> 
> 1. From which phase function should setup-wxwidgets be called?
> The current statistics of the packages in the tree is:
> src_configure 66
> src_prepare   16
> pkg_setup      6
> pkg_prepare    1
> Does this mean that one of these groups is right, and the other 3 ones
> are wrong and should be fixed?


Well, the eclass docs *literally* state the answer:

https://devmanual.gentoo.org/eclass-reference/wxwidgets.eclass/

"""
Call this in your ebuild to set up the environment for wxGTK in
src_configure.
"""

So I would imagine that packages calling it elsewhere should switch to
doing it in src_configure...


> 2. Suppose a user has 2 slots installed, 3.0-gtk3 and 3.2-gtk3. [S]he
> can eselect one of them. The slot used during emerging a package should
> depend only on WX_GTK_VER in the ebuild, and must not depend on which
> slot is currently eselected. Does wxwidgets.eclass guarantee this?


According to the eclass implementation, it sets a variable that the
wxwidgets eselect wrapper then respects as an override to ignore
whatever has been eselected, and use the overridden version.

I would, anyways, assume that the eclass does what it's supposed to:

"""
More specifically, this eclass controls the configuration chosen by the
${ESYSROOT}/usr/bin/wx-config wrapper.
"""


-- 
Eli Schwartz

Attachment: OpenPGP_0x84818A6819AF4A9B.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to