On Wed, Apr 22, 2009 at 10:18:22PM -0400, Jack Howarth wrote:
> Daniel,
>    I am in the process of fixing up the python 2.6 support
> for ccpnmr-py which I have assumed maintainership of. The
> package has a Depends line of...
> 
> Depends: python%type_pkg[python], x11, tcltk, freeglut-shlibs, (%n != 
> ccpnmr-py25) python%type_pkg[python]-socket-ssl | (%n != ccpnmr-py25) 
> python%type_pkg[python]-socket, scipy-core-py%type_pkg[python]
> 
> It would appear that we need to create a python26-socket.info file
> like...
> 
> Package: python26-socket
> Version: 2.6.1
> Revision: 1
> Epoch: 1
> Description: Obsolete socket plugin for python
> Maintainer: Daniel Macks <dma...@netspace.org>
> Depends: python26 (>= 1:2.6.1-1), fink-obsolete-packages

That's kinda silly. If something is obsolete, let's not perpetuate it
and create new ones of it:) The separate pythonXX-socket packages are
obsolete as of py25 (been absorbed into pythonXX itself)...let them
die please. Coincidentally, python < 25 is EOL'ed. So if you have a
package that is Type:python(2.5 2.6), Depends:python%type_pkg[python]
is all you need, no socket dep at all. I see there is currently ccpnmr
for 2.3, 2.4, 2.5, 2.6. You could split that into two separate .info,
leaving the old (existing) version for old (2.3, 2.4) python with all
those socket things, and only bother updating the moderner python
(2.5, 2.6) without the socket things.

> ...and recraft the depends line to handle the depreciated socket
> packages for both python25 and python26. If I install the above
> python26-socket package and use a hard coded line of...
> 
>  Depends: python%type_pkg[python], x11, tcltk, freeglut-shlibs, (%n != 
> ccpnmr-py26) python%type_pkg[python]-socket-ssl | (%n != ccpnmr-py26) 
> python%type_pkg[python]-socket, scipy-core-py%type_pkg[python]
> 
> in ccpnmr-py.info, I am able to build a usable ccpnmr-py-2.0.7.1-1 package 
> for python26
> on x86_64 fink. I would appeciate any help on sorting out this socket issue 
> for python26.
> It is unclear to me how I can code a Depends line to achieve...
> 
> Depends: python%type_pkg[python], x11, tcltk, freeglut-shlibs, (%n != 
> ccpnmr-py25 | %n != ccpnmr-py26) python%type_pkg[python]-socket-ssl | (%n != 
> ccpnmr-py25 | %n != ccpnmr-py26) python%type_pkg[python]-socket, 
> scipy-core-py%type_pkg[python]
> 
> ...which isn't accepted by fink.

Conditionals aren't full boolean math, but luckily they're more
string-like also. Maybe something like:

  (%type_pkg[python] << 25) python%type_pkg[python]-socket-ssl |
  (%type_pkg[python] << 25) python%type_pkg[python]-socket

dan

-- 
Daniel Macks
dma...@netspace.org
http://www.netspace.org/~dmacks


------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.devel

Reply via email to