Skip to contentSkip to conversation

python-libconfig: fix build with python2

PATCH New Fabrice Fontaine 2 participants 2 messages Jun 26, 2018 – Jul 1, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python-libconfig: fix build with python2

Since boost 1.67, libboost_python is now named libboost_python27 when python2 is enabled

Fixes:
- http://autobuild.buildroot.net/results/a1feb4c4b70b3c939ae1127417130ea33a91159b

---
 .../0001-Determine-boost_python-name-depending-on-current-Pyt.patch | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
package/python-libconfig/0001-Determine-boost_python-name-depending-on-current-Pyt.patch +3 -3
index 53000cd678..478bac76f6 100644
@@ -4,8 +4,8 @@ Date: Thu, 27 Jul 2017 09:46:07 +0200
 Subject: [PATCH] Determine boost_python name depending on current Python
  version
 
-Python2 requires boost_python and Python3 requires boost_python36 (since
-boost 1.67).
+Python2 requires boost_python27 and Python3 requires boost_python36
+(since boost 1.67).
 
 Signed-off-by: Yegor Yefremov <[email protected]>
 Signed-off-by: Fabrice Fontaine <[email protected]>
@@ -23,7 +23,7 @@ index fdf5c27..4b38569 100644
  
 +boostlib = "boost_python36"
 +if sys.version_info < (3, 0):
-+    boostlib = "boost_python"
++    boostlib = "boost_python27"
 +
  setup(
      name				= 'pylibconfig',
Signature · 1 line
2.14.1
#1 lore raw

PATCH 1/1 python-libconfig: fix build with python2

Hello,

Quoted 10 lines · Fabrice Fontaine

Since boost 1.67, libboost_python is now named libboost_python27 when python2 is enabled

Fixes:
- http://autobuild.buildroot.net/results/a1feb4c4b70b3c939ae1127417130ea33a91159b

---
 .../0001-Determine-boost_python-name-depending-on-current-Pyt.patch | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com