Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #10875 (closed defect: fixed)

Opened 2 years ago

Last modified 19 months ago

BUG: python24 builds without including the _locale module

Reported by: dominik@… Owned by: mww@…
Priority: High Milestone: Port Bugs
Component: ports Version: 1.3.2
Keywords: python _locale Cc: dominik@…, jann@…
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

patch-dom-setup.py (0.5 KB) - added by dominik@… 2 years ago.
patch of the setup.py

Change History

Changed 2 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 2 years ago by dominik@…

patch of the setup.py

Changed 2 years ago by dominik@…

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

Changed 21 months ago by eridius@…

  • milestone set to Available Ports

Changed 21 months ago by pipping@…

  • milestone changed from Available Ports to Port Bugs

Changed 19 months ago by vinc17@…

  • summary changed from BUG: python24 builds whithout including the _locale module on i386 to BUG: python24 builds without including the _locale module

Same problem on PowerPC -> summary update.

Changed 19 months ago by jann@…

  • cc jann@… added
  • status changed from new to closed
  • resolution set to fixed

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

Note: See TracTickets for help on using tickets.