Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40429 - csv-1.0.ebuild conflicts with python-2.3
Summary: csv-1.0.ebuild conflicts with python-2.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High major
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2004-02-04 19:13 UTC by David Grant
Modified: 2004-02-14 07:42 UTC (History)
0 users

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


Attachments
csv-1.0-r1.ebuild (csv-1.0-r1.ebuild,611 bytes, text/plain)
2004-02-04 19:40 UTC, David Grant
Details
csv-1.0-gentoo.patch (csv-1.0-gentoo.patch,4.43 KB, text/plain)
2004-02-04 19:51 UTC, David Grant
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Grant 2004-02-04 19:13:11 UTC
csv-1.0.ebuild doesn't work with python-2.3 because python-2.3 already has a csv.py module.

I'm working on a patch.
Comment 1 David Grant 2004-02-04 19:40:04 UTC
Created attachment 24979 [details]
csv-1.0-r1.ebuild

new ebuild which fixes bug
Comment 2 David Grant 2004-02-04 19:51:56 UTC
Created attachment 24980 [details]
csv-1.0-gentoo.patch

A patch file which goes in the "files" dir.  The is patched in src_unpack().

This is kind of kludgy.  It basically renames the csv module to a csv2 module. 
This is to avoid conflict with the python 2.3 module csv.py.  I don't really
see another way around this.  Best to rename one of them, and renaming this one
makes some sense, especially since author hasn't worked on this since 2002.  I
should probably let him know though, and forward the patch upstream.
Comment 3 Alastair Tse (RETIRED) gentoo-dev 2004-02-05 02:52:38 UTC
hrmm, this is interesting and needs to get fixed, along with optik/optparse.

we need a good solution for these. i'm inclined to think maybe deprecating them by putting empty ebuilds in if python-2.3 is installed. thats not very clean but at least its a solution
Comment 4 David Grant 2004-02-05 06:13:58 UTC
I emailed my patch to the maintainer.  I told him that 2.3 has a csv.py file.  I recommended he change his package to csv2, as my patch does.  I think we should be fine using my patch in gentoo, and we should also add a warning post config which tells the user that the package has been renamed.  Perhaps putting the warning in pkg_config at the beginning would help as well.
Comment 5 Alastair Tse (RETIRED) gentoo-dev 2004-02-14 07:40:59 UTC
i've had to modify your patch because your patch assumes there's a csv2.c, but the end result is the same. i'm thinking of deprecating this package in the future, but until then, it should work with python-2.3 now.

thanks for your report.
Comment 6 Alastair Tse (RETIRED) gentoo-dev 2004-02-14 07:42:38 UTC
i should actually close this bug as well ..