boost rebuild boost-build
This commit is contained in:
@@ -8,51 +8,26 @@ from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
#WorkDir = "boost-%s" % get.srcVERSION()
|
||||
|
||||
|
||||
def setup():
|
||||
shelltools.cd("%s" % get.workDIR())
|
||||
shelltools.move("boost_*", "boost-%s" % get.srcVERSION())
|
||||
|
||||
shelltools.cd("boost-%s" % get.srcVERSION())
|
||||
|
||||
shelltools.copytree("../boost-%s" % (get.srcVERSION().replace("_", "~")), "../boost-%s-38" % get.srcVERSION())
|
||||
|
||||
|
||||
|
||||
shelltools.system("./bootstrap.sh --with-toolset=gcc \
|
||||
--with-icu \
|
||||
--with-python=/usr/bin/python2.7 \
|
||||
--with-python=python3 \
|
||||
--prefix=%s/usr" % get.installDIR())
|
||||
|
||||
|
||||
|
||||
shelltools.cd("../boost-%s-38" % get.srcVERSION())
|
||||
shelltools.system("./bootstrap.sh --with-toolset=gcc \
|
||||
--with-icu \
|
||||
--with-python=/usr/bin/python3 \
|
||||
--with-libraries=python \
|
||||
--prefix=%s/usr" % get.installDIR())
|
||||
|
||||
|
||||
shelltools.system('echo "using mpi ;" >> project-config.jam')
|
||||
|
||||
shelltools.cd("tools/build")
|
||||
shelltools.system("./bootstrap.sh --with-toolset --prefix=%s/usr" % get.installDIR())
|
||||
|
||||
shelltools.cd("..")
|
||||
|
||||
|
||||
|
||||
def build():
|
||||
shelltools.system("./b2 \
|
||||
variant=release \
|
||||
debug-symbols=off \
|
||||
threading=multi \
|
||||
runtime-link=shared \
|
||||
link=shared,static \
|
||||
toolset=gcc \
|
||||
python=2.7 \
|
||||
cflags='-fno-strict-aliasing -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations' \
|
||||
cxxflags='-fno-strict-aliasing -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations' \
|
||||
--layout=system")
|
||||
|
||||
shelltools.cd("../boost-%s-38" % get.srcVERSION())
|
||||
shelltools.system("./b2 \
|
||||
shelltools.system("./b2 stage \
|
||||
variant=release \
|
||||
debug-symbols=off \
|
||||
threading=multi \
|
||||
@@ -62,21 +37,28 @@ def build():
|
||||
python=3.8 \
|
||||
cflags='-fno-strict-aliasing -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations' \
|
||||
cxxflags='-fno-strict-aliasing -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations' \
|
||||
--layout=system")
|
||||
shelltools.cd("..")
|
||||
|
||||
--layout=system \
|
||||
--with-mpi")
|
||||
|
||||
def install():
|
||||
pisitools.dobin("b2")
|
||||
pisitools.dobin("tools/build/src/engine/bjam")
|
||||
shelltools.copytree("tools/boostbook/xsl", "%s/usr/share/boostbook/xsl" % get.installDIR())
|
||||
shelltools.copytree("tools/boostbook/dtd", "%s/usr/share/boostbook" % get.installDIR())
|
||||
|
||||
|
||||
shelltools.system("./b2 install threading=multi link=shared")
|
||||
|
||||
shelltools.cd("tools/build")
|
||||
shelltools.system("./b2 install")
|
||||
shelltools.cd("..")
|
||||
|
||||
shelltools.cd("../boost-%s-38" % get.srcVERSION())
|
||||
pisitools.dobin("b2")
|
||||
pisitools.dobin("tools/build/src/engine/bjam")
|
||||
shelltools.copytree("tools/boostbook/xsl", "%s/usr/share/boostbook/xsl" % get.installDIR())
|
||||
shelltools.copytree("tools/boostbook/dtd", "%s/usr/share/boostbook" % get.installDIR())
|
||||
shelltools.system("./b2 install threading=multi link=shared")
|
||||
# some packages need this library as : libboost_python3.so
|
||||
pisitools.dosym("/usr/lib/libboost_python38.so.1.72.0", "/usr/lib/libboost_python3.so")
|
||||
pisitools.dosym("/usr/lib/libboost_python38.so.1.75.0", "/usr/lib/libboost_python3.so")
|
||||
|
||||
shelltools.touch("__init__.py")
|
||||
pisitools.insinto("/usr/lib/python3.8/site-packages/openmpi/boost", "__init__.py")
|
||||
|
||||
pisitools.domove("/usr/lib/boost-python3.8/mpi.so", "/usr/lib/python3.8/site-packages/boost/")
|
||||
|
||||
pisitools.removeDir("/usr/lib/boost-python3.8")
|
||||
|
||||
Reference in New Issue
Block a user