Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 188067 - dev-python/pyid3lib fails on amd64 w/ python-2.5
Summary: dev-python/pyid3lib fails on amd64 w/ python-2.5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
: 191678 (view as bug list)
Depends on:
Blocks: python-2.5
  Show dependency tree
 
Reported: 2007-08-08 02:00 UTC by Brian
Modified: 2007-09-09 12:11 UTC (History)
2 users (show)

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


Attachments
emerge --info output. (emerge-info.txt,2.61 KB, text/plain)
2007-08-08 02:01 UTC, Brian
Details
Patch to compile pyid3lib with emerge. (pyid3lib.diff,919 bytes, patch)
2007-08-08 02:03 UTC, Brian
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brian 2007-08-08 02:00:08 UTC
Cannot compile pyid3lib 0.5.1 on Gentoo AMD64. Get deprecated type warnings and errors relating to not being able to use int with Py_ssize_t. In Python 2.5, sequence indices were changed from int to Py_ssize_t. Please see http://www.python.org/dev/peps/pep-0353/ for more information. I based my fix on this information and the helpful checking script linked to from that URL.

Reproducible: Always

Steps to Reproduce:
1. Emerge pyid3lib.

Actual Results:  
Emerge fails with deprecated warnings and compiler typing errors.

Expected Results:  
Emerge to successfully build pyid3lib, at least without errors, but preferably without warnings, as well.

I have a less than optimal patch that allows me to compile pyid3lib on my amd64 machine with no errors or warnings. I have did some simple testing with my program that utilizes the library to manage MP3s using ID3 tagging.

emerge --info output and patch will be attached.
Comment 1 Brian 2007-08-08 02:01:58 UTC
Created attachment 127221 [details]
emerge --info output.
Comment 2 Brian 2007-08-08 02:03:36 UTC
Created attachment 127222 [details, diff]
Patch to compile pyid3lib with emerge.

This patch is not backward compatible with previous Python versions. Please see http://www.python.org/dev/peps/pep-0353/ for proper backward compatibility handling.
Comment 3 Ali Polatel (RETIRED) gentoo-dev 2007-08-08 21:46:42 UTC
(In reply to comment #2)
> This patch is not backward compatible with previous Python versions. Please >see
> http://www.python.org/dev/peps/pep-0353/ for proper backward compatibility
> handling.
> 

I modified your patch a bit for backwards compatibility and added to cvs.
version 0.5.1-r1 in portage fixes this.
I've tested it on an amd64 box with py2.4 and 2.5 and it seems to work fine.
Please reopen the bug if you still have problems.
Thanks for reporting! :)
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-09-08 11:43:23 UTC
*** Bug 191678 has been marked as a duplicate of this bug. ***
Comment 5 Farid 2007-09-09 12:11:32 UTC
(In reply to comment #4)
> *** Bug 191678 has been marked as a duplicate of this bug. ***
> 

pyid3lib-0.5.1-r1 fixes the problem. Thanks!

For some reason /usr/sbin/python-updater tries to pull in the 0.5.1 version and not the r1 version, even though the line "dev-python/pyid3lib ~amd64" is present in /etc/portage/package.keywords.
Emerging pyid3lib normally works as expected though. After emerging it normally python-updater does not complain either, just as expected.
Maybe this behaviour should be fixed in python-updater?