Opened 20 years ago

Closed 20 years ago

#2508 closed defect (fixed)

subversion port needs to accept python24 for the python variant.

Reported by: rzigweid-dports@… Owned by: danielluke (Daniel J. Luke)
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port:

Description

My current solution to this problem was to rename the python variant to python23 and create a nearly identical python24 variant. I don't like this solution at all, but I am unaware of any other way to tackle the problem, especially given the way the python ports are set up and no apparent 'provides' type functionality.

I think that this is very likely to be an issue with many ports depending upon python >= 2.3. If there's a better way, please let me know. I hate submitting bugs without potential solutions/patchfiles.

Change History (5)

comment:1 Changed 20 years ago by danielluke (Daniel J. Luke)

I can add a python24 variant to the portfile, but it seems like a dumb solution.

I'll see if I can find an example of someone else solving this problem in another port and/or ask around and see if there's a better solution.

comment:2 Changed 20 years ago by rzigweid-dports@…

Yup, I agree. I think it's a dumb solution too, but I couldn't think of anything else. To my knowledge, I'm unaware of anything like a 'provides' for ports (ala dpkg in debian). IMHO The python packages BEG for this. There are currently 4 python language packages. This problem is only going to get worse with time. I can see a 'need' to have multiple versions available on some packages on occasion. But doing the packages like this is going to cause exactly this kind of problem throughout ports.

That said, I'll stop talking about it here, because I don't think this is the place for this kind of a metaissue.

comment:3 Changed 20 years ago by danielluke (Daniel J. Luke)

Status: newassigned

Right, I think I have a fix for subversion (as it's just installing a short .pth file in a place where python will find it) but the meta-issue should probably be discussed on a dp mailing list.

comment:4 Changed 20 years ago by danielluke (Daniel J. Luke)

Owner: changed from darwinports-bugs@… to dluke@…
Status: assignednew

comment:5 Changed 20 years ago by danielluke (Daniel J. Luke)

Resolution: fixed
Status: newclosed

For subversion, I changed the dependency to just look for a ${prefix}/bin/python and then to glob ${prefix}/lib/python* to find the directory to put the .pth file in.

This should work for most cases. (I suppose someone having both python23 and python24 installed could have problems).

The +python variant should now work for whichever version of python is installed.

Note: See TracTickets for help on using tickets.