Commit 764086ca authored by Julien Muchembled's avatar Julien Muchembled

boost-lib: fix build with python3

parent a30f9729
Pipeline #9355 failed with stage
......@@ -3,6 +3,7 @@ parts =
boost-lib
extends =
../bzip2/buildout.cfg
../patch/buildout.cfg
../zlib/buildout.cfg
../xz-utils/buildout.cfg
......@@ -12,7 +13,7 @@ shared = true
url = http://downloads.sourceforge.net/sourceforge/boost/boost_1_67_0.tar.bz2
md5sum = ced776cb19428ab8488774e1415535ab
location = @@LOCATION@@
configure-command = ./bootstrap.sh --prefix=${:location} --without-icu
configure-command = ./bootstrap.sh --prefix=${:location} --without-icu $${PYTHON:+--with-python=$PYTHON}
  • @jm when building erp5 sr on slapos 1.0 branch in webrunner, I get:

    20-09-10 12:48:09,937] INFO     Updating python.
    [2020-09-10 12:48:09,937] INFO     While:
    [2020-09-10 12:48:09,937] INFO       Installing.
    [2020-09-10 12:48:09,937] INFO       Getting option boost-lib:configure-command.
    [2020-09-10 12:48:09,937] INFO     Error: The option name in substitution, ${PYTHON:+--with-python=$PYTHON},
    [2020-09-10 12:48:09,937] INFO     has invalid characters.

    Do you know what could be the problem ?

  • @klaus the workaround is to edit .installed.cfg and remove this line, then restart slapos node software.

    We are fixing buildout regarding this problem in slapos.buildout!21 (merged)

  • @jerome thank you, it works.

Please register or sign in to reply
make-binary =
make-options =
make-targets = for a in $MAKEFLAGS; do case $a in -j*) j=$a; break;; esac; done;
......@@ -23,4 +24,8 @@ environment =
ZLIB_INCLUDE=${zlib:location}/include
ZLIB_LIBPATH=${zlib:location}/lib
LZMA_INCLUDE=${xz-utils:location}/include
LZMA_LIBRARY_PATH=${xz-utils:location}/lib
\ No newline at end of file
LZMA_LIBRARY_PATH=${xz-utils:location}/lib
patch-options = -p1
patches =
${:_profile_base_location_}/fix-ftbfs-python-3.3.patch#c85fb479d51354deafd1cc7af78f25d2
patch-binary = ${patch:location}/bin/patch
Description: python3.3 has an extra multiarch include location
Author: Dmitrijs Ledkovs <dmitrij.ledkov@ubuntu.com>
Last-Update: 2012-10-26
Forwarded: no
--- boost1.65.1-1.65.1+dfsg.orig/tools/build/src/tools/python.jam
+++ boost1.65.1-1.65.1+dfsg/tools/build/src/tools/python.jam
@@ -544,7 +544,9 @@
}
else
{
- includes ?= $(prefix)/include/python$(version) ;
+ python_includes = [ shell-cmd "printf `python$(version) -c 'import distutils.sysconfig; print(distutils.sysconfig.get_python_inc());'`" ] ;
+ python_platincludes = [ shell-cmd "printf `python$(version) -c 'import distutils.sysconfig; print(distutils.sysconfig.get_python_inc(plat_specific=1));'`" ] ;
+ includes ?= $(python_includes) $(python_platincludes) ;
local lib = $(exec-prefix)/lib ;
libraries ?= $(lib)/python$(version)/config $(lib) ;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment