Opened 18 years ago

Closed 17 years ago

Last modified 16 years ago

#10875 closed defect (fixed)

BUG: python24 builds without including the _locale module

Reported by: dominik@… Owned by: mww@…
Priority: High Milestone:
Component: ports Version: 1.3.2
Keywords: python _locale Cc: dominik@…, roederja
Port:

Description

It appears that python (since 2.3 in fact) builds without including the _locale module (at least perhaps other modules don't build either) which cause troubles with other ports like, for instance, Trac that doesn't run because it depends on the locale module. The build on a PPC machine doesn't miss this module, though. The error can be triggered with the following code:

[lapin]~> python
Python 2.4.3 (#1, Oct 14 2006, 19:34:10) 
[GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>> locale.getpreferredencoding()
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/locale.py", line 399, in getpreferredencoding
    import _locale
ImportError: No module named _locale
>>> 

Attachments (1)

patch-dom-setup.py (522 bytes) - added by dominik@… 18 years ago.
patch of the setup.py

Download all attachments as: .zip

Change History (9)

comment:1 Changed 18 years ago by dominik@…

It appears that the problem doesn't arise for everyone on an i386 plateform. The python build process fails on my machine on the _locale.so production and the setup.py script renames it to _locale_failed.so:

*** WARNING: renaming "_locale" since importing it failed: Failure linking new module: build/lib.darwin-8.8.1-i386-2.4/_locale.so: Symbol not found: _libintl_bindtextdomain

However libintl was installed by gettext port and looks ok.

Changed 18 years ago by dominik@…

Attachment: patch-dom-setup.py added

patch of the setup.py

comment:2 Changed 18 years ago by dominik@…

The provided patch fixes the flawing test in the setup.py that was missing libintl. This fixes the ticket.

comment:3 Changed 18 years ago by kballard (Lily Ballard)

Milestone: Available Ports

comment:4 Changed 18 years ago by pipping@…

Milestone: Available PortsPort Bugs

comment:5 Changed 18 years ago by vinc17@…

Summary: BUG: python24 builds whithout including the _locale module on i386BUG: python24 builds without including the _locale module

Same problem on PowerPC -> summary update.

comment:6 Changed 17 years ago by roederja

Cc: jann@… added
Resolution: fixed
Status: newclosed

Should be fixed in r25391. Please re-open if not

comment:7 Changed 16 years ago by remy.blank@…

I know I'm late to the party, but would it be possible to fix the same issue in python23?

comment:8 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.