Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 231250
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Python Gentoo Team <python@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Randall Wald <rdwald@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
pygame-1.7.1-r1-check2.5.patch Simple fix patch Marcus Schwartz 2008-07-14 16:48 0000 751 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 231250 depends on: Show dependency tree
Bug 231250 blocks:
Votes: 10    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-07-09 01:33 0000
pygame-1.7.1-r1 differs from pygame-1.7.1 in the the former patches src/image.c
in a few places to use the Py_ssize_t type rather than the int type. However,
it seems that at least on my system, Py_ssize_t is not defined; when compiling,
I get the following error:

src/image.c: In function ‘image_tostring’:
src/image.c:295: error: ‘Py_ssize_t’ undeclared (first use in this
function)
src/image.c:295: error: (Each undeclared identifier is reported only once
src/image.c:295: error: for each function it appears in.)
src/image.c:295: error: expected ‘;’ before ‘len’
src/image.c:325: error: ‘len’ undeclared (first use in this function)
src/image.c:335: error: expected ‘)’ before ‘surf’
src/image.c:411: error: expected ‘)’ before ‘surf’
src/image.c: In function ‘image_fromstring’:
src/image.c:610: error: ‘Py_ssize_t’ undeclared (first use in this
function)
src/image.c:610: error: expected ‘;’ before ‘len’
src/image.c:619: error: ‘len’ undeclared (first use in this function)
src/image.c: In function ‘image_frombuffer’:
src/image.c:735: error: ‘Py_ssize_t’ undeclared (first use in this
function)
src/image.c:735: error: expected ‘;’ before ‘len’
src/image.c:745: error: ‘len’ undeclared (first use in this function)
error: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1

Since this change was quite deliberate, I'm sure Py_ssize_t exists on some
peoples' systems; which package (or possibly, which version of a package) am I
missing? Also, the fact that I installed and then later uninstalled python-2.5
might not be helping. (I ran python-updater both after install and after
uninstall; I also deleted /usr/lib64/python-2.5 after the final run of
python-updater.)

------- Comment #1 From pat 2008-07-09 12:54:00 0000 -------
Same error here, I don't (and did not) use python 2.5.

------- Comment #2 From Carsten Lohrke 2008-07-09 17:36:14 0000 -------
I'm not quite sure, does python-updater support downgrading at all? But you're
right, the unconditional use of Py_ssize_t renders pygame incompatible to
Python 2.4. 

Raising severity, given that it just went stable on amd64.


@Santiago: Why did you mark it stable? You obviously didn't test with Python
2.4 and also violated the double pair of eyes principle, by not letting an
independent arch maintainer go for it.

------- Comment #3 From kavol@email.cz 2008-07-10 21:24:39 0000 -------
I've just run into this too ... :-(

------- Comment #4 From Javier Tarifa 2008-07-12 12:44:53 0000 -------
Same problem here. I don't understand how it was marked stable.

------- Comment #5 From rubik's cube 2008-07-13 12:51:20 0000 -------
Since the patch is called pygame-1.7.1-python2.5.patch, wouldn't it be a nice
and logical idea to apply it only if python's version is 2.5?  Question: Is
there a way for revdep-rebuild to detect this kind of dependency?

------- Comment #6 From Marcus Schwartz 2008-07-14 16:48:08 0000 -------
Created an attachment (id=160367) [details]
Simple fix

------- Comment #7 From Santiago M. Mola 2008-07-14 21:34:57 0000 -------
I've just removed 1.7.1-r1 from the tree. Sorry for the inconvenience.

amd64 users: pygame-1.7 will work mostly fine with Python 2.5. pygame-1.8
doesn't present any problem at all.

rest of arches are not affected.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug