Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#185 closed defect (fixed)

Python and long dll/pyd names

Reported by: Silvan Scherrer Owned by:
Priority: major Milestone:
Component: python Version:
Severity: high Keywords:
Cc:

Description

Right now Python in import cuts names to 8.3 on OS/2.
See http://trac.netlabs.org/rpm/browser/python/trunk/Python/import.c#L1516 for reference.
This mostly works, but unfortunately in PyQt4 we have QtScript and QtScriptTools, which are both truncated to the same name. To solve such a situation a symlink would work. And we also need to redo the changes from above link.

Change History (5)

comment:1 by Yuri Dario, 9 years ago

This solved generating a 8.3 name for the pyd and a long name symlink.
The 8.3 name is generated using a simple hash of the long name.

python: generate both 8.3 and long names for pyd dynamic libraries. fixes ticket#185.
Committed revision r775.

comment:2 by Yuri Dario, 9 years ago

Also the 8.3 file name hack needs to be removed from import.c; also the case_ok() code now uses the opendir() approach to avoid resolving symlinks (and thus breaking name compare).

remove 8.3 file name truncation, use opendir() to avoid resolving symlinks. ticket#185.
Committed revision r779.

comment:3 by Yuri Dario, 9 years ago

python: fix file deletion. ticket#185.
Committed revision r780.

comment:4 by Yuri Dario, 9 years ago

Resolution: fixed
Status: newclosed

comment:5 by Yuri Dario, 9 years ago

spec: python, Build python with --enable-unicode[=ucs[24]] ticket#182; Python and long dll/pyd names ticket#185.
Committed revision r782.

Note: See TracTickets for help on using tickets.