Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 178824 - wxwidgets enhancements
Summary: wxwidgets enhancements
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo wxWidgets project
URL:
Whiteboard:
Keywords:
Depends on: 145032 175632
Blocks: 106692 112626 115722 142465 145884
  Show dependency tree
 
Reported: 2007-05-17 01:35 UTC by Ryan Hill (RETIRED)
Modified: 2008-04-29 07:14 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
wxlib.eclass (wxlib.eclass,4.09 KB, text/plain)
2007-05-17 01:36 UTC, Ryan Hill (RETIRED)
Details
wxwidgets.eclass (wxwidgets.eclass,2.50 KB, text/plain)
2007-05-17 01:36 UTC, Ryan Hill (RETIRED)
Details
wxGTK-2.6.3.3-r1.ebuild (wxGTK-2.6.3.3-r1.ebuild,4.95 KB, text/plain)
2007-06-17 23:37 UTC, Ryan Hill (RETIRED)
Details
wxGTK-2.6.3.3-dialog_focus.patch (wxGTK-2.6.3.3-dialog_focus.patch,664 bytes, patch)
2007-06-17 23:37 UTC, Ryan Hill (RETIRED)
Details | Diff
wxGTK-2.6.3.3-slider_linesize.patch (wxGTK-2.6.3.3-slider_linesize.patch,1.10 KB, patch)
2007-06-17 23:38 UTC, Ryan Hill (RETIRED)
Details | Diff
wxGTK-2.6.3.3-wxrc_build_fix.patch (wxGTK-2.6.3.3-wxrc_build_fix.patch,1.26 KB, patch)
2007-06-17 23:38 UTC, Ryan Hill (RETIRED)
Details | Diff
wxGTK-2.6.3.3-wxrc_link_fix.patch (wxGTK-2.6.3.3-wxrc_link_fix.patch,1.10 KB, patch)
2007-06-17 23:38 UTC, Ryan Hill (RETIRED)
Details | Diff
wxGTK-2.6.3-unicode-odbc.patch (wxGTK-2.6.3-unicode-odbc.patch,729 bytes, patch)
2007-06-17 23:39 UTC, Ryan Hill (RETIRED)
Details | Diff
wxGTK-2.6.3-versionated.patch (wxGTK-2.6.3-versionated.patch,7.03 KB, patch)
2007-06-17 23:39 UTC, Ryan Hill (RETIRED)
Details | Diff
wxwidgets.eclass (wxwidgets.eclass,6.57 KB, text/plain)
2007-09-15 04:27 UTC, Ryan Hill (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Hill (RETIRED) gentoo-dev 2007-05-17 01:35:43 UTC
these are the new wxlib and wxwidgets eclasses.  they allow us to easily build and use different wxGTK versions and types depending on our needs.  some of the bigger changes:

- install any combination of ansi, unicode, debug and release versions side by side
- automatic USE flag checking
- better error reporting
- they actually work

wxlib.eclass can go into the tree right away as nothing is using it right now.  wxwidgets.eclass needs wxGTK-2.4 to go away first.

with the new wxwidgets.eclass, there is no /usr/bin/wx-config.  instead, each "type" installs it own config script with the naming convention /usr/bin/wx{base,gtk2}[u][d]-${WX_GTK_VER}-config (where u is unicode and d is debug).

this is the biggest hurdle to overcome as most packages default to looking for a script called wx-config.  most packages however can take an alternate name via a configure option or env variable, and we export a few env variables ourselves for ebuilds to use.  the upshot of all this is that packages that use wxGTK MUST use wxwidgets.eclass to be able to find the configure script they need to use.

down the road, the plan is to implement an eselect utility that will create a wx-config symlink to whatever flavor of wxGTK the user wants.  this will allow people developing with wxGTK to quickly switch between debug and release versions.  this is another reason that ebuilds can't be allowed to use it - at any given time it could point to anything (or nothing).

these eclasses are incomplete.  consider them a preview.  while i have been working to get everything in the tree working with them, there's still some things that are broken, so use them at your own risk.
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2007-05-17 01:36:16 UTC
Created attachment 119489 [details]
wxlib.eclass
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2007-05-17 01:36:39 UTC
Created attachment 119490 [details]
wxwidgets.eclass
Comment 3 Ryan Hill (RETIRED) gentoo-dev 2007-05-17 01:57:47 UTC
i should mention the new wxwidgets.eclass won't work with the wxGTK in portage.  i will be posting new wxGTK ebuilds soon, as soon as i polish them up.
Comment 4 Mart Raudsepp gentoo-dev 2007-05-17 08:56:22 UTC
(In reply to comment #0)
> wxlib.eclass can go into the tree right away as nothing is using it right now.

Technically it is used to uninstall (part of the upgrade process as well) older versions of wxGTK that someone might still be using on a machine that is not fully updated often.
 
> with the new wxwidgets.eclass, there is no /usr/bin/wx-config.  instead, each
> "type" installs it own config script with the naming convention
> /usr/bin/wx{base,gtk2}[u][d]-${WX_GTK_VER}-config (where u is unicode and d is
> debug).
> 
> this is the biggest hurdle to overcome as most packages default to looking for
> a script called wx-config.

I wonder if we could maybe make usage of wx-config, that will be coming from the eselect module, to issue a QA warning if getting used during a portage driven usage.

> these eclasses are incomplete.  consider them a preview.  while i have been
> working to get everything in the tree working with them, there's still some
> things that are broken, so use them at your own risk.

I won't be able to review before next weeks second half for sure :(
Comment 5 Ryan Hill (RETIRED) gentoo-dev 2007-06-17 23:37:25 UTC
Created attachment 122368 [details]
wxGTK-2.6.3.3-r1.ebuild
Comment 6 Ryan Hill (RETIRED) gentoo-dev 2007-06-17 23:37:47 UTC
Created attachment 122369 [details, diff]
wxGTK-2.6.3.3-dialog_focus.patch
Comment 7 Ryan Hill (RETIRED) gentoo-dev 2007-06-17 23:38:13 UTC
Created attachment 122371 [details, diff]
wxGTK-2.6.3.3-slider_linesize.patch
Comment 8 Ryan Hill (RETIRED) gentoo-dev 2007-06-17 23:38:30 UTC
Created attachment 122373 [details, diff]
wxGTK-2.6.3.3-wxrc_build_fix.patch
Comment 9 Ryan Hill (RETIRED) gentoo-dev 2007-06-17 23:38:50 UTC
Created attachment 122374 [details, diff]
wxGTK-2.6.3.3-wxrc_link_fix.patch
Comment 10 Ryan Hill (RETIRED) gentoo-dev 2007-06-17 23:39:11 UTC
Created attachment 122376 [details, diff]
wxGTK-2.6.3-unicode-odbc.patch
Comment 11 Ryan Hill (RETIRED) gentoo-dev 2007-06-17 23:39:27 UTC
Created attachment 122378 [details, diff]
wxGTK-2.6.3-versionated.patch
Comment 12 Ryan Hill (RETIRED) gentoo-dev 2007-06-17 23:53:30 UTC
wxlib.eclass changes have been merged into the ebuild and the debug options have been changed like we talked about.

99% of the tree is working with the new system but i'm planning on doing another run to make sure nothing was overlooked.

only the versionated and unicode-odbc patches are new.  i just posted the others so everything is in one place. ;)

Comment 13 Dennis Schridde 2007-06-26 19:12:43 UTC
"with the new wxwidgets.eclass, there is no /usr/bin/wx-config"
I wonder how non Portage driven compiles are expected to work with that change... Will I have to modify configure scripts to workaround the different name?
Comment 14 Mart Raudsepp gentoo-dev 2007-06-27 00:37:39 UTC
(In reply to comment #13)
> "with the new wxwidgets.eclass, there is no /usr/bin/wx-config"
> I wonder how non Portage driven compiles are expected to work with that
> change...

An eselect module would be handling that symlink.

> Will I have to modify configure scripts to workaround the different
> name?

No. Additionally you can also use what the eclass uses - call configure with an appropriate --with-wx-config value, or by setting some env vars (I think WX_CONFIG_NAME and co). But the eselect module would be used for making your choice for the _default_ wx to use in non-portage compilations.
Comment 15 Vlad-Mihai Sima 2007-08-10 22:47:44 UTC
(In reply to comment #12)

> 99% of the tree is working with the new system but i'm planning on doing
> another run to make sure nothing was overlooked.

So, any news on this ?
Comment 16 Ryan Hill (RETIRED) gentoo-dev 2007-09-15 04:27:50 UTC
Created attachment 130971 [details]
wxwidgets.eclass

this is what i'm playing with nowadays
Comment 17 Ryan Hill (RETIRED) gentoo-dev 2007-10-14 02:56:10 UTC
in portage.
Comment 18 JC Francois 2008-04-13 15:08:56 UTC
I am developping an app using wxWidgets and I need release and debug builds to coexist on my system. Although the original description of this bugs states that the wxGTK ebuild will 'install any combination of ansi, unicode, debug and release versions side by side' I am still enable to do it.

I checked wxGTK-2.8.7.1-r1.ebuild in the tree and it does not seem to inherit wxlib.eclass nor implement any coexistence of builds.

Can you please clarify the capabilities of the wxGTK ebuild?

Thanks
Comment 19 Ryan Hill (RETIRED) gentoo-dev 2008-04-28 21:33:24 UTC
concurrent installs of release and debug libraries was a planned feature but unfortunately proved to be very difficult to implement and maintain.  i might revisit the issue in the future, but i'm pretty swamped with work right now.