Opened 15 years ago

Closed 15 years ago

#20077 closed defect (fixed)

boost @1.39.0_2 +python25 - Activation fails

Reported by: hugo.strand@… Owned by: nox@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: boost python2.5 python activation Cc:
Port: boost

Description

Port activation fails when trying to install Boost (1.39) with Python2.5 support.

Running: sudo port -d install boost +debug +doc +graphml +icu +openmpi +python25

The building and installation works out fine but the activation stage does not complete. All the include and library files are successfully "activated" but when port gets to the "boost python module" I get the error message:

...
DEBUG: Adding file to file_map: /opt/local/Library/Frameworks
/Python.framework/Versions/2.5/lib/python2.5/site-packages/boost/__init__.py for: boost
DEBUG: Not a directory
    while executing
"filemap set file_map $file $port"
    (procedure "receipt_flat::register_file" line 11)
    invoked from within
"${macports::registry.format}::register_file $file $port"
    (procedure "registry::register_file" line 3)
    invoked from within
"registry::register_file $file $name"
    (procedure "portimage::activate" line 65)
    invoked from within
"portimage::activate $portname [composite_version $portversion 
[array get variations]] [array get options]"
Error: port activate failed: Not a directory

But when looking at the boost installation, ports report it as activated.

bash-3.2$ port installed boost
The following ports are currently installed:
  boost @1.39.0_2+debug+doc+graphml+icu+openmpi+python25 (active)

What am I doing wrong here?

Is there a problem with my Python installation or is this caused by the boost Portfile?


Further:

Trying to runt port deactivate, uninstall and clean --all on boost does not remove the files added by the port activation. Thus when trying to install boost a second time ports activation stage complain on already existing files not belonging to any port.

--->  Activating boost
Error: port activate failed: 
Image error: /opt/local/include/boost/accumulators/accumulators.hpp 
already exists and does not belong to a registered port.  
Unable to activate port boost.

Removing the old files manually i.e.,

rm -r /opt/local/include/boost/
rm -r /opt/loca/lib/libboost_*
rm -r /opt/local/share/doc/boost-1_39/

(or using port activate -f boost that renames all old files to *.mp_*.)

This makes it possible to run the activation but as expected it also fails at the same point as above.

Change History (10)

comment:1 Changed 15 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to nox@…

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

Do you have the latest version of python25 installed?

comment:3 in reply to:  2 Changed 15 years ago by hugo.strand@…

Replying to jmr@…:

Do you have the latest version of python25 installed?

Yes, I've got the latest version of python25 installed, and yes I'm using python_select.

But I do think that this is a specific problem with the variants combination of +openmpi +python25. Due to that the activation fails when trying to install the boost.mpi python module, which should only be built with this variant combination.

comment:4 Changed 15 years ago by nox@…

You have the latest version of python25 installed, which is?

comment:5 in reply to:  4 Changed 15 years ago by hugo.strand@…

Replying to nox@…:

You have the latest version of python25 installed, which is?

bash-3.2$ /opt/local/bin/python
Python 2.5.4 (r254:67916, Jun 25 2009, 22:34:16) 
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>

comment:6 Changed 15 years ago by nox@…

we want the output of port installed python25

comment:7 in reply to:  6 Changed 15 years ago by hugo.strand@…

Replying to nox@…:

we want the output of port installed python25

Oh.. sorry

bash-3.2$ port installed python25
The following ports are currently installed:
  python25 @2.5.4_6+darwin_9+macosx (active)

comment:8 Changed 15 years ago by nox@…

So you do have the latest version of python25 installed, but I don't understand the bug there, my opinion is that it's a base/ bug.

comment:9 Changed 15 years ago by blb@…

I believe this is related to #19049.

comment:10 Changed 15 years ago by nox@…

Resolution: fixed
Status: newclosed

Should be fixed by r53512.

Note: See TracTickets for help on using tickets.