Summary: | app-text/crwx-ng-0.3.1-r1 - [perl-5.40] [icu-75.1] -- Configuring incomplete, errors occurred! | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Andrey Grozin <grozin> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | grozin, valexlin, wxwidgets |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge-info.txt
app-text:crwx-ng-0.3.1-r1:20240619-091618.log emerge-history.txt.xz environment etc.clang.tar.xz etc.portage.tar.xz qlist-info.txt.xz temp.tar.xz |
Description
Toralf Förster
![]() Created attachment 896079 [details]
emerge-info.txt
Created attachment 896080 [details]
app-text:crwx-ng-0.3.1-r1:20240619-091618.log
Created attachment 896081 [details]
emerge-history.txt.xz
Created attachment 896082 [details]
environment
Created attachment 896083 [details]
etc.clang.tar.xz
Created attachment 896084 [details]
etc.portage.tar.xz
Created attachment 896085 [details]
qlist-info.txt.xz
Created attachment 896086 [details]
temp.tar.xz
--- crwx-ng-0.3.1-r1.ebuild 2024-06-20 08:20:37.191473961 +0400 +++ crwx-ng-0.3.1-r2.ebuild 2024-06-20 08:23:02.569865117 +0400 @@ -20,6 +20,7 @@ RDEPEND="${CDEPEND} virtual/ttf-fonts" -pkg_prepare() { +src_configure() { setup-wxwidgets + cmake_src_configure } Sorry, I cannot understand what's happening here (and hence I don't know if the proposed fix fixed the problem). The relevant pieces of crwx-ng-0.3.1-r1.ebuild are WX_GTK_VER="3.2-gtk3" inherit wxwidgets BDEPEND="x11-libs/wxGTK:${WX_GTK_VER}[X]" pkg_prepare() { setup-wxwidgets } Here BDEPEND requires that x11-libs/wxGTK:3.2-gtk3[X] is installed on the computer which emerges this ebuild. However, the build log contains Could NOT find wxWidgets: Found unsuitable version "3.0.5", but required is at least "3.2" (found -L/usr/lib64;-pthread;;;-lwx_baseu-3.0-gtk3;-lwx_gtk3u_core-3.0-gtk3;-lwx_gtk3u_html-3.0-gtk3) How can this happen?? On my system the corresponding line is Found wxWidgets: -L/usr/lib64;-pthread;;;-lwx_baseu-3.2-gtk3;-lwx_gtk3u_core-3.2-gtk3;-lwx_gtk3u_html-3.2-gtk3 (found suitable version "3.2.2", minimum required is "3.2") And this must happen always, because of BDEPEND (3.0.5 is not in the slot 3.2-gtk3, whether it is present or absent is irrelevant, but something from the slot 3.2-gtk3 must be installed). I've checked a few ebuilds inheriting wxwidgets. They mostly look the same: WX_GTK_VER="3.2-gtk3" inherit wxwidgets DEPEND="x11-libs/wxGTK:${WX_GTK_VER}[X]" pkg_prepare() { setup-wxwidgets } setup-wxwidgets is called from pkg_prepare (though media-sound/audacity ebuilds call it from src_configure). What's the right thing to do - to call it from pkg_prepare (as most ebuilds do) or from src_configure (as audacity)? Maybe, x11-libs/wxGTK:${WX_GTK_VER} should be in DEPEND, not BDEPEND? I was never able to understand the difference between DEPEND and BDEPEND (probably, becase I never did cross-compilation). Most likely this happens when two versions of wxGTK are installed on the system: 3.0.5 and 3.2.2, but version 3.0.5 is selected ( eselect wxwidgets list ). For this case, use the setup-wxwidgets() function and calling it in src_prepare() previously worked. But it seems that something has changed in portage, in <portage>/eclass/wxwidgets.eclass it is written that the setup-wxwidgets() function should be called in src_configure(). It works this way. (In reply to Aleksey Chernov from comment #11) > Most likely this happens when two versions of wxGTK are installed on the > system: 3.0.5 and 3.2.2, but version 3.0.5 is selected ( eselect wxwidgets > list ). > > For this case, use the setup-wxwidgets() function and calling it in > src_prepare() previously worked. > > But it seems that something has changed in portage, in > <portage>/eclass/wxwidgets.eclass it is written that the setup-wxwidgets() > function should be called in src_configure(). > > It works this way. OK, Alexey, then I'll commit your fix. I cannot test it, because I have 3.2 only, no 3.0: bilbo ~ # eselect wxwidgets list Available wxWidgets profiles: [1] gtk3-unicode-3.2-gtk3 * Should all the other ebuilds in the tree inheriting wxwidgets be updated similarly? (i.e., call setup-wxwidgets not from pkg_prepare but from src_configure). There are maaaany of them. I am especially interested about sci-mathematics/wxmaxima which I maintain. It is currently written in the more standard way: WX_GTK_VER="3.2-gtk3" inherit wxwidgets DEPEND="x11-libs/wxGTK:${WX_GTK_VER}[X]" pkg_prepare() { setup-wxwidgets } Can somebody who has both 3.0-gtk3 and 3.2-gtk3 installed and 3.0-gtk3 eselected check if wxmaxima emerges successfully? (I haven't got such bug reports about it, and on my system, with 3.2-gtk3, it, of course, emerges fine.) (In reply to Andrey Grozin from comment #12) > (In reply to Aleksey Chernov from comment #11) > > Most likely this happens when two versions of wxGTK are installed on the > > system: 3.0.5 and 3.2.2, but version 3.0.5 is selected ( eselect wxwidgets > > list ). > > > > For this case, use the setup-wxwidgets() function and calling it in > > src_prepare() previously worked. > > > > But it seems that something has changed in portage, in > > <portage>/eclass/wxwidgets.eclass it is written that the setup-wxwidgets() > > function should be called in src_configure(). > > > > It works this way. > OK, Alexey, then I'll commit your fix. I cannot test it, because I have 3.2 > only, no 3.0: > > bilbo ~ # eselect wxwidgets list > Available wxWidgets profiles: > [1] gtk3-unicode-3.2-gtk3 * > > Should all the other ebuilds in the tree inheriting wxwidgets be updated > similarly? (i.e., call setup-wxwidgets not from pkg_prepare but from > src_configure). There are maaaany of them. I am especially interested about > sci-mathematics/wxmaxima which I maintain. It is currently written in the > more standard way: > > WX_GTK_VER="3.2-gtk3" > inherit wxwidgets > DEPEND="x11-libs/wxGTK:${WX_GTK_VER}[X]" > pkg_prepare() { > setup-wxwidgets > } > > Can somebody who has both 3.0-gtk3 and 3.2-gtk3 installed and 3.0-gtk3 > eselected check if wxmaxima emerges successfully? (I haven't got such bug > reports about it, and on my system, with 3.2-gtk3, it, of course, emerges > fine.) wxmaxima compiled successfully without modification. # eselect wxwidgets list Available wxWidgets profiles: [1] gtk3-unicode-3.0-gtk3 * [2] gtk3-unicode-3.2-gtk3 Typo, instead of pkg_prepare() there should be src_prepare() :) Consider my previous message to be erroneous :) --- crwx-ng-0.3.1-r1.ebuild 2024-02-14 19:10:49.000000000 +0400 +++ crwx-ng-0.3.1-r2.ebuild 2024-06-20 13:45:05.221127611 +0400 @@ -20,6 +20,7 @@ RDEPEND="${CDEPEND} virtual/ttf-fonts" -pkg_prepare() { +src_prepare() { setup-wxwidgets + cmake_src_prepare } It works this way. What is better to use src_prepare() or src_configure() I don’t know, maybe it can be done as in most cases? wxwidgets@gentoo.org, could you please answer a few questions? 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? 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? 3. Where should x11-libs/wxGTK:${WX_GTK_VER}[something] appear - in what subset of DEPEND, BDEPEND, RDEPEND? The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f39aa2ea5adf27ac458c20060a6af47124155bb commit 2f39aa2ea5adf27ac458c20060a6af47124155bb Author: Andrey Grozin <grozin@gentoo.org> AuthorDate: 2024-07-03 05:35:48 +0000 Commit: Andrey Grozin <grozin@gentoo.org> CommitDate: 2024-07-03 05:36:29 +0000 app-text/crwx-ng: move setup-wxwidgets to src_configure Closes: https://bugs.gentoo.org/934543 Signed-off-by: Andrey Grozin <grozin@gentoo.org> app-text/crwx-ng/crwx-ng-0.3.1-r2.ebuild | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) |