Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#14711 closed defect (duplicate)

py25-hashlib fails to build if python25 wasn't installed when 'port' started

Reported by: fenner@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc:
Port:

Description

On a relatively fresh macports installation, which didn't previously have python installed, I naively tried:

llama% sudo port install py25-django-devel
--->  Fetching python25
--->  Attempting to fetch Python-2.5.2.tar.bz2 from http://www.python.org//ftp/python/2.5.2/
--->  Verifying checksum(s) for python25
--->  Extracting python25
--->  Applying patches to python25
--->  Configuring python25
--->  Building python25 with target all
--->  Staging python25 into destroot
--->  Installing python25 2.5.2_1+darwin_9
--->  Activating python25 2.5.2_1+darwin_9
--->  Cleaning python25
--->  Fetching py25-hashlib
--->  Verifying checksum(s) for py25-hashlib
--->  Extracting py25-hashlib
--->  Configuring py25-hashlib
--->  Building py25-hashlib with target build
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-hashlib/work/Python-2.5.2/Modules" && /opt/local/bin/python2.5 setup.py build " returned error 1
Command output: running build
running build_ext
building '_hashlib' extension
creating build
creating build/temp.macosx-10.3-i386-2.5
-DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/local/include -I/opt/local/include/python2.5 -c _hashopenssl.c -o build/temp.macosx-10.3-i386-2.5/_hashopenssl.o
unable to execute -DNDEBUG: No such file or directory
error: command '-DNDEBUG' failed with exit status 1

Error: The following dependencies failed to build: py25-setuptools py25-hashlib py25-zlib
Error: Status 1 encountered during processing.

Running the same command again worked just fine, leading me to believe that this is either a problem with py25-hashlib itself or the macports python infrastructure, when python is not previously installed.

Change History (3)

comment:1 Changed 17 years ago by macports@…

I encountered the same issue, with the same solution, whilst trying to install gnucash from a pre-installed version of MacOS 10.5.2 with a fresh macports download.

comment:2 Changed 17 years ago by jmroot (Joshua Root)

Milestone: Port Bugs
Resolution: duplicate
Status: newclosed

Duplicate of #13930.

comment:3 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.