[MacPorts] #17405: different boost update
#17405: different boost update ----------------------------------+----------------------------------------- Reporter: andrew@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Updates Component: ports | Version: 1.6.0 Keywords: boost | Port: boost ----------------------------------+----------------------------------------- Hi - I have a slightly different patch to boost 1.35.0 to 1.37.0. Mine builds openmpi variants, python 2.6, etc. This is a different (more complete) patch than ticket 17338. -- Ticket URL: <http://trac.macports.org/ticket/17405> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17405: different boost update ----------------------------------+----------------------------------------- Reporter: andrew@… | Owner: sanchom@… Type: enhancement | Status: new Priority: Normal | Milestone: Port Updates Component: ports | Version: 1.6.0 Keywords: | Port: boost ----------------------------------+----------------------------------------- Changes (by macsforever2000@…): * keywords: boost => * owner: macports-tickets@… => sanchom@… * type: defect => enhancement Comment: Assigning to maintainer. -- Ticket URL: <http://trac.macports.org/ticket/17405#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17405: different boost update ----------------------------------+----------------------------------------- Reporter: andrew@… | Owner: sanchom@… Type: enhancement | Status: new Priority: Normal | Milestone: Port Updates Component: ports | Version: 1.6.0 Keywords: | Port: boost ----------------------------------+----------------------------------------- Description changed by macsforever2000@…: Old description:
Hi - I have a slightly different patch to boost 1.35.0 to 1.37.0. Mine builds openmpi variants, python 2.6, etc. This is a different (more complete) patch than ticket 17338.
New description: Hi - I have a slightly different patch to boost 1.35.0 to 1.37.0. Mine builds openmpi variants, python 2.6, etc. This is a different (more complete) patch than ticket #17338. -- -- Ticket URL: <http://trac.macports.org/ticket/17405#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17405: different boost update ----------------------------------+----------------------------------------- Reporter: andrew@… | Owner: sanchom@… Type: enhancement | Status: new Priority: Normal | Milestone: Port Updates Component: ports | Version: 1.6.0 Keywords: | Port: boost ----------------------------------+----------------------------------------- Comment(by andrew@…): Yay! Fun! The mpi module now loads if the python26 variant is used! I'm so happy I could just cry! :-) Not sure about 2.5, though... but here's to hoping... -- Ticket URL: <http://trac.macports.org/ticket/17405#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17405: different boost update ----------------------------------+----------------------------------------- Reporter: andrew@… | Owner: sanchom@… Type: enhancement | Status: new Priority: Normal | Milestone: Port Updates Component: ports | Version: 1.6.0 Keywords: | Port: boost ----------------------------------+----------------------------------------- Comment(by andrew@…): Updating the patch to 1.37 revision 2 to change the python mpi.so module. This puts it in {{{ "${prefix}/Library/Frameworks/Python.framework/Versions/${pyversion}/lib/python${pyversion }/site-packages/boost/" }}} so it can be loaded with {{{ import boost.mpi as mpi }}} in order to avoid namespace conflicts. -- Ticket URL: <http://trac.macports.org/ticket/17405#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17405: different boost update ----------------------------------+----------------------------------------- Reporter: andrew@… | Owner: sanchom@… Type: enhancement | Status: new Priority: Normal | Milestone: Port Updates Component: ports | Version: 1.6.0 Keywords: | Port: boost ----------------------------------+----------------------------------------- Comment(by andrew@…): Okay, okay - I'm really sorry to be constantly updating this - but I'm a python newbie and (sheepish grin) I forgot to add the __init__.py file. '''Now''' the following program works without damn import errors: {{{ #/usr/bin/env python2.6 import boost.mpi as mpi # OR 'from boost import mpi' (both work) print "I am process %d of %d." % (mpi.rank, mpi.size) }}} This is Revision 3. Sorry. I hope this is the last update. -- Ticket URL: <http://trac.macports.org/ticket/17405#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17405: different boost update ----------------------------------+----------------------------------------- Reporter: andrew@… | Owner: sanchom@… Type: enhancement | Status: new Priority: Normal | Milestone: Port Updates Component: ports | Version: 1.6.0 Keywords: | Port: boost ----------------------------------+----------------------------------------- Comment(by andrew@…): Even better - the whole boost-python interface appears to work. Makefile : {{{ YFRM = /opt/local/Library/Frameworks/Python.framework/Versions/2.6 PYINC = -I$(PYFRM)/include/python2.6 -L/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config MACPT = -I/opt/local/include -L/opt/local/lib LIBS = -dynamiclib -lboost_python-xgcc40-mt -lpython2.6 hello.so : hello.cpp $(CXX) $(MACPT) $(PYINC) $? $(LIBS) -o $@ .PHONY : test clean test : test.py ./test.py clean : rm -f hello.so }}} hello.cpp : {{{ char const* greet() { return "hello, world"; } #include <boost/python.hpp> BOOST_PYTHON_MODULE(hello) { using namespace boost::python; def("greet", greet); } }}} test.py : {{{ #!/usr/bin/env python2.6 import sys sys.path.append('.') import hello print hello.greet() }}} -- Ticket URL: <http://trac.macports.org/ticket/17405#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17405: different boost update ----------------------------------+----------------------------------------- Reporter: andrew@… | Owner: sanchom@… Type: enhancement | Status: new Priority: Normal | Milestone: Port Updates Component: ports | Version: 1.6.0 Keywords: | Port: boost ----------------------------------+----------------------------------------- Comment(by mcalhoun@…): boost was upgraded in r43281. Issues remain with python25 (but not python26) remain (see #16378). There are still no variants for other compilers. Perhaps this ticket should be closed. The outstanding issues can then get their own tickets. -- Ticket URL: <http://trac.macports.org/ticket/17405#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17405: different boost update ----------------------------------+----------------------------------------- Reporter: andrew@… | Owner: sanchom@… Type: enhancement | Status: new Priority: Normal | Milestone: Port Updates Component: ports | Version: 1.6.0 Keywords: | Port: boost ----------------------------------+----------------------------------------- Comment(by sanchom@…): Agree. We should close this. If there are issues with the r43281, we should open new tickets to patch against that revision. -- Ticket URL: <http://trac.macports.org/ticket/17405#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17405: different boost update -----------------------------------+---------------------------------------- Reporter: andrew@… | Owner: sanchom@… Type: enhancement | Status: closed Priority: Normal | Milestone: Port Updates Component: ports | Version: 1.6.0 Resolution: fixed | Keywords: Port: boost | -----------------------------------+---------------------------------------- Changes (by mcalhoun@…): * status: new => closed * resolution: => fixed -- Ticket URL: <http://trac.macports.org/ticket/17405#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts