Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 178727 (wxpython-2.8) - dev-python/wxpython-2.8 version bump
Summary: dev-python/wxpython-2.8 version bump
Status: RESOLVED FIXED
Alias: wxpython-2.8
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Highest enhancement with 1 vote (vote)
Assignee: Gentoo wxWidgets project
URL:
Whiteboard:
Keywords:
: 176199 (view as bug list)
Depends on: 145884 201158 201165 201247 201314 201317 204347
Blocks: 144066 182249
  Show dependency tree
 
Reported: 2007-05-16 08:32 UTC by Erich Blume
Modified: 2008-01-05 00:28 UTC (History)
9 users (show)

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


Attachments
ebuild for wxPython-2.8.3.0 (wxpython-2.8.3.0.ebuild,3.00 KB, text/plain)
2007-05-16 08:34 UTC, Erich Blume
Details
scripts-multiver-2.6.1.0 patch (scripts-multiver-2.6.1.0.diff,3.29 KB, text/plain)
2007-05-16 08:35 UTC, Erich Blume
Details
wxpython-2.8.3.0.ebuild (wxpython-2.8.3.0.ebuild,3.01 KB, text/plain)
2007-05-16 19:49 UTC, Erich Blume
Details
wxwidgets.eclass (wxwidgets.eclass,4.63 KB, text/plain)
2007-05-16 19:51 UTC, Erich Blume
Details
Updated wxpython ebuild to match wxGTK ebuild in portage (wxpython-2.8.7.1.ebuild,2.79 KB, text/plain)
2007-12-19 21:04 UTC, dynamotwain
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erich Blume 2007-05-16 08:32:50 UTC
I need wxPython for a few applications (most notably OpenRPG), and I need wxPython-2.8. I noticed that bug #145884 provides an ebuild for wxGTK 2.8, so I took their lead and created the attached ebuild for wxPython-2.8.3.0. I should mention that wxPython-2.8.4.0 is already out, but trying to make that ebuild causes an error as it depends upon a concurrent version of wxGTK (since wxPython is actually just wxGTK + Python bindings). I assume that there *is* a wxGTK-2.8.4, but I'm not going to go so far as to try and create an ebuild for that.

This is my first ebuild ever, and it probably has several gaping flaws - please find them!

Reproducible: Always

Steps to Reproduce:
Comment 1 Erich Blume 2007-05-16 08:34:18 UTC
Created attachment 119423 [details]
ebuild for wxPython-2.8.3.0

Please review and improve - contributor's first ebuild!
Comment 2 Erich Blume 2007-05-16 08:35:54 UTC
Created attachment 119425 [details]
scripts-multiver-2.6.1.0 patch

An old patch required by the ebuild, presumably outdated and should be removed, but I don't know these things.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-05-16 08:39:21 UTC
*** Bug 176199 has been marked as a duplicate of this bug. ***
Comment 4 Erich Blume 2007-05-16 08:50:30 UTC
Ok, as an update: please do NOT use the ebuild I provided. Clearly it does not
work. I thought I had tested it, but rather had tested wxPython-2.6, having
forgotten to unmask 2.8. Woops!

I'm working on it, but I keep getting this error, and I don't know why:

!!! set-wxconfig: Error:  Can't find normal or debug version:
!!! set-wxconfig:         /usr/bin/wxgtk2u-2.4-config not found
!!! set-wxconfig:         /usr/bin/wxgtk2ud-2.4-config not found
!!! You need to emerge wxGTK with unicode in your USE

The error makes sense, the ebuild is asking for an old version of wxGTK, but I
don't know where the ebuild is doing that asking.
Comment 5 Erich Blume 2007-05-16 09:17:04 UTC
Ok, I've tracked down the issue to this bit of the ebuild:

src_compile() { 
    local mypyconf
    export WX_GTK_VER="2.8"

    if use unicode; then
>>>>     need-wxwidgets unicode || die "Please re-emerge wxGTK with unicode " \
        "in USE"
    else
        need-wxwidgets gtk2
    fi

    ...
}

the helper function "need-wxwidgets unicode", which I presume is being pulled in via "inherit wxwidgets", is looking for a 2.4 config something or other.

I'm way too tired to keep working, and honestly I think I've hit a wall for my knowledge. Could someone who knows these things please take over?
Comment 6 Erich Blume 2007-05-16 19:49:27 UTC
Created attachment 119465 [details]
wxpython-2.8.3.0.ebuild

Working (for me) 2.8.3.0 ebuild.
Comment 7 Erich Blume 2007-05-16 19:51:11 UTC
Created attachment 119467 [details]
wxwidgets.eclass

replacement for wxwidgets eclass that adds support for wxpython-2.8. The update here was REALLY hacked together, and probably will break all over the place for special cases. Please look at it closely. Works for me, though.
Comment 8 Erich Blume 2007-05-16 19:54:44 UTC
Ok - it should now work.Please test it, inspect it, let me know what you think.
Comment 9 Mart Raudsepp gentoo-dev 2007-05-17 08:14:47 UTC
For your information - we are working on redoing the eclass and handling of many things as far as concurrent installations of wxWidgets go, and I have in my INBOX eclass and ebuilds from Ryan Hill (dirtyepic - co-maintainer of wx stuff in gentoo) to review, test and put in.
Work on your own versions will probably not be used in the tree, but can be useful to you meanwhile and possibly to others.
More details on what all we need to fix before we are willing to put in a new SLOT (2.8) can be found from http://thread.gmane.org/gmane.linux.gentoo.devel/44736/focus=44737 as stated on bug 145884 comment #16. We are done with 1) and 2); 3), 4) and 5) are well underway; 5a), 5b) and 6) are the ones we will have to spend most of the time on still.
Comment 10 Mart Raudsepp gentoo-dev 2007-05-17 08:50:14 UTC
(In reply to comment #9)
> I have in my INBOX eclass and ebuilds from Ryan Hill

bug 178824 has this stuff too now
Comment 11 Erich Blume 2007-05-17 16:31:23 UTC
Great, thanks! Do you think it is worthwhile to rewrite the wxpython-2.8.3.0.ebuild in the mean time to use the new eclass, or will you guys be providing one shortly?

Also, and I'm sure you have better things to do, can you critique my ebuild? I'd like to get better at it.
Comment 12 Mart Raudsepp gentoo-dev 2007-05-17 20:09:48 UTC
(In reply to comment #11)
> Great, thanks! Do you think it is worthwhile to rewrite the
> wxpython-2.8.3.0.ebuild in the mean time to use the new eclass, or will you
> guys be providing one shortly?

There are no changes in this regard. Just having export WX_GTK_VER="2.8" in there should be sufficient once wxwidgets.eclass is updated to accept that value. The new eclass in there is wxlib.eclass, used ONLY by wxGTK ebuild.

> Also, and I'm sure you have better things to do, can you critique my ebuild?
> I'd like to get better at it.

New versions should have all arches as ~arch - you can use ekeyword ~all <ebuild name> to get that modified quickly. But that's something for which you don't need to do a new attachement - all maintainers would run that quick command anyhow. Just FYI.
Otherwise I don't have much anything to say without testing it really. It seems to be more or less a copy from an older version, so criticizing it is more or less criticizing myself for not having fixed some stuff in the ebuild that's in tree ;)
Comment 13 Bill Dandreta 2007-05-19 16:34:21 UTC
(In reply to comment #7)
> Created an attachment (id=119467) [edit]
> wxwidgets.eclass
> 
> replacement for wxwidgets eclass that adds support for wxpython-2.8. The update
> here was REALLY hacked together, and probably will break all over the place for
> special cases. Please look at it closely. Works for me, though.
> 

I tried installing wxpython using:

wxpython-2.8.3.0.ebuild
wxGTK-2.8.3.0.ebuild
socketfix.patch
wxwidgets.eclass

wxGTK installs OK but wxpython gives these errors:

creating build-gtk2.unicode/temp.linux-x86_64-2.4/src/gtk
x86_64-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -march=athlon64 -O2 -pipe -fPIC -DSWIG_TYPE_TABLE=_wxPython_table -DSWIG_PYTHON_OUTPUT_TUPLE -DWXP_USE_THREAD=1 -UNDEBUG -Iinclude -Isrc -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/python2.4 -c src/helpers.cpp -o build-gtk2.unicode/temp.linux-x86_64-2.4/src/helpers.o
In file included from src/helpers.cpp:16:
include/wx/wxPython/wxPython_int.h:19:19: error: wx/wx.h: No such file or directory
include/wx/wxPython/wxPython_int.h:21:25: error: wx/busyinfo.h: No such file or directory
include/wx/wxPython/wxPython_int.h:22:22: error: wx/caret.h: No such file or directory
include/wx/wxPython/wxPython_int.h:23:25: error: wx/choicebk.h: No such file or directory
include/wx/wxPython/wxPython_int.h:24:24: error: wx/clipbrd.h: No such file or directory
include/wx/wxPython/wxPython_int.h:25:25: error: wx/colordlg.h: No such file or directory
...
src/helpers.cpp:2920: error: expected ',' or ';' before '{' token
src/helpers.cpp:2942: error: 'int wxPyImageHandler::GetImageCount' is not a static member of 'class wxPyImageHandler'
src/helpers.cpp:2942: error: 'wxInputStream' was not declared in this scope
src/helpers.cpp:2942: error: 'stream' was not declared in this scope
src/helpers.cpp:2942: error: expected ',' or ';' before '{' token
error: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1

!!! ERROR: dev-python/wxpython-2.8.3.0 failed.

I had wxpython-2.6 installed. I removed it but get the same errors.

Bill
Comment 14 Alin Năstac (RETIRED) gentoo-dev 2007-05-23 11:37:17 UTC
I need this version for bumping app-mobilephone/bitpim. 
Comment 15 Aniruddha 2007-05-31 08:02:29 UTC
Can I use this ebuild? I need wxpython 2.8 for taskcoach.When is 2.8 expected to hit portage unstable?
Comment 16 Erich Blume 2007-05-31 17:01:24 UTC
By all means, go ahead and use it. Just beware of the fact that an official ebuild is on the way. Since this install is slotted, it really shouldn't have any negative effect on your system at all - the old version of wxpython will stay on your system.
Comment 17 Aniruddha 2007-05-31 22:46:57 UTC
(In reply to comment #16)
> By all means, go ahead and use it. Just beware of the fact that an official
> ebuild is on the way. Since this install is slotted, it really shouldn't have
> any negative effect on your system at all - the old version of wxpython will
> stay on your system.
> 

Thanks for the answer! Good to hear an official ebuild is on the way. Do you happen to know when it's expected to hit portage?
Comment 18 Alin Năstac (RETIRED) gentoo-dev 2007-06-01 09:30:07 UTC
Please don't close bugs until they are actually fixed.
Comment 19 Aniruddha 2007-06-22 21:36:20 UTC
wxpython fails:

>>> Compiling source in /var/tmp/portage/dev-python/wxpython-2.8.3.0/work/wxPyth                                                                     on-src-2.8.3.0/wxPython/ ...
!!! set-wxconfig: Error:  Can't find normal or debug version:
!!! set-wxconfig:         /usr/bin/wxgtk2u-2.4-config not found
!!! set-wxconfig:         /usr/bin/wxgtk2ud-2.4-config not found
!!! You need to emerge wxGTK with unicode in your USE
!!! This ebuild is from an overlay: '/usr/local/portage'


I have the unicode USEflag enabled though:
# emerge -av wxGTK

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] x11-libs/wxGTK-2.8.4.0  USE="X doc gif joystick opengl sdl unicode -debug -gnome -odbc -stl" 0 kB [3]
Comment 20 Alin Năstac (RETIRED) gentoo-dev 2007-06-30 08:17:05 UTC
Are there any devs left still interested in maintaining this package?
Should we start removing reverse dependencies from the tree? The list of those is quite impressive (see http://www.gentoo-portage.com/dev-python/wxpython/RDep#ptabs).
Comment 21 Mart Raudsepp gentoo-dev 2007-06-30 10:25:01 UTC
Please have patience... We are working on fixing the mess accumulated from years of no good maintenance happening to the package before adding a new SLOT
Comment 22 Berk Birand 2007-07-06 15:48:24 UTC
Can I get a status update on this ebuild? I also need wxpython-2.8 for a package, and currently the highest version is 2.6. Are there any developers actively working on this?
Comment 23 Laurento Frittella (mrfree) 2007-07-06 16:40:50 UTC
(In reply to comment #22)
> Can I get a status update on this ebuild?

Sure! :)

http://psykil.livejournal.com/312826.html

this news appears on planet.gentoo.org today
Comment 24 Peter Waller 2007-09-12 19:54:50 UTC
Any updates?
Comment 25 Mart Raudsepp gentoo-dev 2007-09-17 13:01:31 UTC
No. We need wxGTK-2.8 in the tree first. See bug 145884 for that.
Comment 26 Luke-Jr 2007-09-23 02:47:16 UTC
FYI: available in my overlay (layman -ka luke-jr)
Comment 27 Steve Arnold archtester gentoo-dev 2007-12-05 05:08:51 UTC
See bug #182249 for an updated wxpython 2.8.6.1 ebuild (I couldn't find dirtyepic's).
Comment 28 Steve Arnold archtester gentoo-dev 2007-12-05 05:09:42 UTC
Sorry, make that luke-jr's...  Long week, don't ask...
Comment 29 dynamotwain 2007-12-19 21:04:00 UTC
Created attachment 138914 [details]
Updated wxpython ebuild to match wxGTK ebuild in portage
Comment 30 Ryan Hill (RETIRED) gentoo-dev 2007-12-19 23:55:30 UTC
wxpython-2.8 is in my overlay (layman -a dirtyepic).  i haven't added it since installing it breaks many wxpython-2.6 packages.  i've fixed about half of them and will finish the rest hopefully this weekend.
Comment 31 Ryan Hill (RETIRED) gentoo-dev 2007-12-24 02:03:01 UTC
k, i moved the ebuild into portage.  still masked til i get around to finishing my audit.
Comment 32 Ryan Hill (RETIRED) gentoo-dev 2008-01-05 00:28:06 UTC
Done.