Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 175657 - pyqwt-5.0.0.ebuild (update)
Summary: pyqwt-5.0.0.ebuild (update)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Python Gentoo Team
URL: http://pyqwt.sourceforge.net/
Whiteboard:
Keywords:
Depends on:
Blocks: 198154
  Show dependency tree
 
Reported: 2007-04-23 05:15 UTC by Gerard Vermeulen
Modified: 2015-03-08 22:09 UTC (History)
2 users (show)

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


Attachments
pyqwt-5.0.0.ebuild (pyqwt-5.0.0.ebuild,1.34 KB, text/plain)
2007-04-23 05:18 UTC, Gerard Vermeulen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gerard Vermeulen 2007-04-23 05:15:12 UTC
Hi!

Please find attached pyqwt-5.0.0.ebuild.

PyQwt is a set of Python bindings for the Qwt C++ class library and provides widgets for scientific and engineering applications.

Remarks:
- there is an QA Notice: Pre-stripped files found. PyQwt uses the build tools
  from PyQt4 and sip which have the same problem. I know how to fix this.
- the ebuild does not inherit distutils anymore. The setup.py in the package
  is only used for generating a source distribution.  It is useless for
  installing PyQwt.
Comment 1 Gerard Vermeulen 2007-04-23 05:18:09 UTC
Created attachment 117047 [details]
pyqwt-5.0.0.ebuild
Comment 2 Darren Dale 2007-08-02 20:37:51 UTC
pyqwt-5.0.1 is out.
Comment 3 Caleb Tennis (RETIRED) gentoo-dev 2007-11-15 12:42:39 UTC
testing this ebuild now (for 5.0.1).  just curious, is there any reason it's not slotted differently than pyqwt-4 ?
Comment 4 Gerard Vermeulen 2007-11-15 13:31:01 UTC
No, I do not think there is a real reason except that PyQt is not slotted either.
FYI: PyQwt-5 works with PyQt-4 and PyQt-3 (configure with '-3' or '--qt3'), but
PyQwt-4 works only with Qt-3.
Look also at the qwt ebuilds: there exists x11-libs/qwt/qwt-5.0.2-r1.ebuild
which builds against Qt-4 and x11-libs/qwt-qt3/qwt-qt3-5.0.2-r1.ebuild which
builds against Qt-3.

Gerard

Comment 5 Caleb Tennis (RETIRED) gentoo-dev 2007-11-15 13:42:29 UTC
Gotcha, so we really need a pyqwt-qt3 package to replace pyqwt 4.
Comment 6 Gerard Vermeulen 2007-11-15 14:11:12 UTC
If you like. When you do that, then you need to patch
configure/configure.py, something like this:

    if options.qwt_sources:
        # yes, zap all occurrences of a qwt library
        while options.extra_libs.count(qwt):
            options.extra_libs.remove(qwt)
    elif qwt not in options.extra_libs:
        # no, add the qwt library if needed
        # for Gentoo pyqwt-qt3 ebuild
        options.extra_libs.append('qwt-qt3')
        # instead of
        # options.extra_libs.append(qwt)

Gerard
Comment 7 Caleb Tennis (RETIRED) gentoo-dev 2007-11-15 14:14:20 UTC
ok, thanks.

My thought now is to go ahead and slot pyqwt-5 into SLOT=5.  This will allow you (the end user) to keep pyqwt-4 still installed until you can transition to pyqwt-qt3.

Then, we can eventually remove pyqwt-4 and qwt-4 from portage.

Think that will be okay?
Comment 8 Gerard Vermeulen 2007-11-15 14:38:20 UTC
Yes, as far as I understand it will work out that way (I am no Gentoo expert).
However, I think that the package naming and slot policy of Qwt is a bit strange
(qwt5-qt3 is the natural successor of qwt4 since both depend on Qt-3).

Suppose you have to live with it -- Gerard
Comment 9 Caleb Tennis (RETIRED) gentoo-dev 2007-11-15 14:43:43 UTC
I agree it's strange.

The alternative (from qwt perspective) was to use use qt3/qt4 use flags and compile qwt-5 for either qt3 or qt4.  But then problem with that is that you can only have one or the other, but not both at the same time, and packages that depend on qwt then have to check to see which way it was compiled in order to know how they should compile.

So if you were to install qt4-qtruby, for example, it may see that you have qt4 installed, but then do a check for qwt-5 and find that you have it only installed for qt3 and not qt4.  That makes a bit of a mess.

The way it is now is more deterministic, because qwt-5 will always be built for qt4.
Comment 10 Tiziano Müller (RETIRED) gentoo-dev 2008-02-23 13:38:41 UTC
Closing bug since pyqwt-5.0.1 is in the tree.
Thanks.