[MacPorts] #20076: boost @1.39.0_2 +python25 - Activation fails

MacPorts noreply at macports.org
Thu Jun 25 06:11:24 PDT 2009


#20076: boost @1.39.0_2 +python25 - Activation fails
-----------------------------------------------+----------------------------
 Reporter:  hugo.strand@…                      |       Owner:  macports-tickets@…                   
     Type:  defect                             |      Status:  new                                  
 Priority:  Normal                             |   Milestone:                                       
Component:  ports                              |     Version:  1.7.1                                
 Keywords:  boost python2.5 python activation  |        Port:  boost                                
-----------------------------------------------+----------------------------
 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.

-- 
Ticket URL: <http://trac.macports.org/ticket/20076>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list