* [Buildroot] [PATCH v3 1/2] python-libconfig: new package
@ 2014-03-04 16:53 Johan Derycke
2014-03-04 16:53 ` [Buildroot] [PATCH v3 2/2] boost: make build with python an option Johan Derycke
2014-03-04 17:58 ` [Buildroot] [PATCH v3 1/2] python-libconfig: new package Thomas Petazzoni
0 siblings, 2 replies; 6+ messages in thread
From: Johan Derycke @ 2014-03-04 16:53 UTC (permalink / raw)
To: buildroot
Python bindings to the C++ library libconfig
https://github.com/cnangel/python-libconfig
Signed-off-by: Johan Derycke <johan.derycke@barco.com>
---
Changes v2 -> v3:
-Avoid line-wrap using "git send-email"
Changes v1 -> v2:
-Fixed indentations and blank lines
-Added package/Config.in
package/Config.in | 1 +
package/python-libconfig/Config.in | 9 +++++++++
package/python-libconfig/python-libconfig.mk | 17 +++++++++++++++++
3 files changed, 27 insertions(+)
create mode 100644 package/python-libconfig/Config.in
create mode 100644 package/python-libconfig/python-libconfig.mk
diff --git a/package/Config.in b/package/Config.in
index 417c9b8..fb29097 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -442,6 +442,7 @@ source "package/python-id3/Config.in"
source "package/python-ipy/Config.in"
source "package/python-json-schema-validator/Config.in"
source "package/python-keyring/Config.in"
+source "package/python-libconfig/Config.in"
source "package/python-mad/Config.in"
source "package/python-meld3/Config.in"
source "package/python-msgpack/Config.in"
diff --git a/package/python-libconfig/Config.in
b/package/python-libconfig/Config.in
new file mode 100644
index 0000000..170926d
--- /dev/null
+++ b/package/python-libconfig/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_PYTHON_LIBCONFIG
+ bool "python-libconfig"
+ depends on BR2_PACKAGE_PYTHON
+ select BR2_PACKAGE_BOOST_PYTHON
+ select BR2_PACKAGE_LIBCONFIG
+ help
+ Python bindings to the C++ library libconfig
+
+ https://github.com/cnangel/python-libconfig
diff --git a/package/python-libconfig/python-libconfig.mk
b/package/python-libconfig/python-libconfig.mk
new file mode 100644
index 0000000..3f5984b
--- /dev/null
+++ b/package/python-libconfig/python-libconfig.mk
@@ -0,0 +1,17 @@
+################################################################################
+#
+# python-libconfig
+#
+################################################################################
+
+PYTHON_LIBCONFIG_VERSION = b271c3d9dac938ad5cd29b67bd08cc5536a5a391
+PYTHON_LIBCONFIG_SITE = $(call
github,cnangel,python-libconfig,$(PYTHON_LIBCONFIG_VERSION))
+
+PYTHON_LIBCONFIG_LICENSE = BSD
+PYTHON_LIBCONFIG_LICENSE_FILES = README
+
+PYTHON_LIBCONFIG_SETUP_TYPE = setuptools
+
+PYTHON_LIBCONFIG_DEPENDENCIES = libconfig boost
+
+$(eval $(python-package))
--
1.7.10.4
DISCLAIMER:
Unless indicated otherwise, the information contained in this message is
privileged and confidential, and is intended only for the use of the
addressee(s) named above and others who have been specifically authorized
to receive it. If you are not the intended recipient, you are hereby
notified that any dissemination, distribution or copying of this message
and/or attachments is strictly prohibited. The company accepts no
liability for any damage caused by any virus transmitted by this email.
Furthermore, the company does not warrant a proper and complete
transmission of this information, nor does it accept liability for any
delays. If you have received this message in error, please contact the
sender and delete the message. Thank you.
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH v3 2/2] boost: make build with python an option
2014-03-04 16:53 [Buildroot] [PATCH v3 1/2] python-libconfig: new package Johan Derycke
@ 2014-03-04 16:53 ` Johan Derycke
2014-03-04 18:02 ` Thomas Petazzoni
2014-03-04 17:58 ` [Buildroot] [PATCH v3 1/2] python-libconfig: new package Thomas Petazzoni
1 sibling, 1 reply; 6+ messages in thread
From: Johan Derycke @ 2014-03-04 16:53 UTC (permalink / raw)
To: buildroot
Add an option to boost to build the Boost.Python library.
http://www.boost.org/doc/libs/1_55_0/libs/python/doc/index.html
Signed-off-by: Johan Derycke <johan.derycke@barco.com>
---
Changes v2 -> v3:
-Avoid line-wrap using "git send-email"
Changes v1 -> v2:
-Fixed indentations and blank lines
-Removed package/Config.in
-Allow build with python3
package/boost/Config.in | 4 ++++
package/boost/boost.mk | 13 +++++++++++--
2 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/package/boost/Config.in b/package/boost/Config.in
index 68c3909..a74c2d7 100644
--- a/package/boost/Config.in
+++ b/package/boost/Config.in
@@ -60,6 +60,10 @@ config BR2_PACKAGE_BOOST_MPI
config BR2_PACKAGE_BOOST_PROGRAM_OPTIONS
bool "boost-program_options"
+config BR2_PACKAGE_BOOST_PYTHON
+ depends on BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3
+ bool "boost-python"
+
config BR2_PACKAGE_BOOST_RANDOM
bool "boost-random"
diff --git a/package/boost/boost.mk b/package/boost/boost.mk
index 7aab614..53d2b4d 100644
--- a/package/boost/boost.mk
+++ b/package/boost/boost.mk
@@ -26,7 +26,7 @@ HOST_BOOST_FLAGS = --without-icu \
# atomic library compile only with upstream version, wait for next
release
# coroutine breaks on some weak toolchains and it's new for 1.54+
# log breaks with some toolchain combinations and it's new for 1.54+
-BOOST_WITHOUT_FLAGS = atomic coroutine log python
+BOOST_WITHOUT_FLAGS = atomic coroutine log
BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_CHRONO),,chrono)
BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_CONTEXT),,context)
@@ -40,6 +40,7 @@ BOOST_WITHOUT_FLAGS += $(if
$(BR2_PACKAGE_BOOST_LOCALE),,locale)
BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_MATH),,math)
BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_MPI),,mpi)
BOOST_WITHOUT_FLAGS += $(if
$(BR2_PACKAGE_BOOST_PROGRAM_OPTIONS),,program_options)
+BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_PYTHON),,python)
BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_RANDOM),,random)
BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_REGEX),,regex)
BOOST_WITHOUT_FLAGS += $(if
$(BR2_PACKAGE_BOOST_SERIALIZATION),,serialization)
@@ -50,6 +51,8 @@ BOOST_WITHOUT_FLAGS += $(if
$(BR2_PACKAGE_BOOST_THREAD),,thread)
BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_TIMER),,timer)
BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_WAVE),,wave)
+BOOST_TARGET_CXXFLAGS = $(TARGET_CXXFLAGS)
+
ifeq ($(BR2_PACKAGE_ICU),y)
BOOST_FLAGS += --with-icu=$(STAGING_DIR)/usr
BOOST_DEPENDENCIES += icu
@@ -61,6 +64,12 @@ ifeq ($(BR2_PACKAGE_BOOST_IOSTREAMS),y)
BOOST_DEPENDENCIES += bzip2 zlib
endif
+ifeq ($(BR2_PACKAGE_BOOST_PYTHON),y)
+BOOST_FLAGS += --with-python-root=$(HOST_DIR)
+BOOST_TARGET_CXXFLAGS
+= -I$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR)/
+BOOST_DEPENDENCIES += python
+endif
+
HOST_BOOST_OPT += toolset=gcc threading=multi variant=release link=shared
\
runtime-link=shared
@@ -84,7 +93,7 @@ BOOST_FLAGS += $(if
$(BOOST_WITHOUT_FLAGS_COMMASEPERATED), --without-libraries=$
define BOOST_CONFIGURE_CMDS
(cd $(@D) && ./bootstrap.sh $(BOOST_FLAGS))
- echo "using gcc : $(TARGET_CC_VERSION) : $(TARGET_CXX) :
<cxxflags>\"$(TARGET_CXXFLAGS)\" <linkflags>\"$(TARGET_LDFLAGS)\" ;" >
$(@D)/user-config.jam
+ echo "using gcc : $(TARGET_CC_VERSION) : $(TARGET_CXX) :
<cxxflags>\"$(BOOST_TARGET_CXXFLAGS)\" <linkflags>\"$(TARGET_LDFLAGS)\" ;"
> $(@D)/user-config.jam
echo "" >> $(@D)/user-config.jam
endef
--
1.7.10.4
DISCLAIMER:
Unless indicated otherwise, the information contained in this message is
privileged and confidential, and is intended only for the use of the
addressee(s) named above and others who have been specifically authorized
to receive it. If you are not the intended recipient, you are hereby
notified that any dissemination, distribution or copying of this message
and/or attachments is strictly prohibited. The company accepts no
liability for any damage caused by any virus transmitted by this email.
Furthermore, the company does not warrant a proper and complete
transmission of this information, nor does it accept liability for any
delays. If you have received this message in error, please contact the
sender and delete the message. Thank you.
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH v3 2/2] boost: make build with python an option
2014-03-04 16:53 ` [Buildroot] [PATCH v3 2/2] boost: make build with python an option Johan Derycke
@ 2014-03-04 18:02 ` Thomas Petazzoni
0 siblings, 0 replies; 6+ messages in thread
From: Thomas Petazzoni @ 2014-03-04 18:02 UTC (permalink / raw)
To: buildroot
Dear Johan Derycke,
Thanks a lot for your persistence with those patches, really
appreciated!
On Tue, 4 Mar 2014 17:53:47 +0100, Johan Derycke wrote:
> +config BR2_PACKAGE_BOOST_PYTHON
> + depends on BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3
> + bool "boost-python"
Ok, so this means that boost::python is compatible with Python 3, which
seems to match various claims I've seen on the web.
> # coroutine breaks on some weak toolchains and it's new for 1.54+
> # log breaks with some toolchain combinations and it's new for 1.54+
> -BOOST_WITHOUT_FLAGS = atomic coroutine log python
> +BOOST_WITHOUT_FLAGS = atomic coroutine log
>
> BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_CHRONO),,chrono)
> BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_CONTEXT),,context)
> @@ -40,6 +40,7 @@ BOOST_WITHOUT_FLAGS += $(if
> $(BR2_PACKAGE_BOOST_LOCALE),,locale)
> BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_MATH),,math)
> BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_MPI),,mpi)
> BOOST_WITHOUT_FLAGS += $(if
> $(BR2_PACKAGE_BOOST_PROGRAM_OPTIONS),,program_options)
> +BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_PYTHON),,python)
Ok.
> BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_RANDOM),,random)
> BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_REGEX),,regex)
> BOOST_WITHOUT_FLAGS += $(if
> $(BR2_PACKAGE_BOOST_SERIALIZATION),,serialization)
> @@ -50,6 +51,8 @@ BOOST_WITHOUT_FLAGS += $(if
> $(BR2_PACKAGE_BOOST_THREAD),,thread)
> BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_TIMER),,timer)
> BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_WAVE),,wave)
>
> +BOOST_TARGET_CXXFLAGS = $(TARGET_CXXFLAGS)
> +
> ifeq ($(BR2_PACKAGE_ICU),y)
> BOOST_FLAGS += --with-icu=$(STAGING_DIR)/usr
> BOOST_DEPENDENCIES += icu
> @@ -61,6 +64,12 @@ ifeq ($(BR2_PACKAGE_BOOST_IOSTREAMS),y)
> BOOST_DEPENDENCIES += bzip2 zlib
> endif
>
> +ifeq ($(BR2_PACKAGE_BOOST_PYTHON),y)
> +BOOST_FLAGS += --with-python-root=$(HOST_DIR)
Depending on what Boost needs exactly, this might be correct or not. It
is correct to find a Python interpreter that runs on the build machine.
But Boost uses that to ask the Python interpreter various details about
the Python installation (such as the location of Python modules, the
cross-compiler to use, etc.), then it will be wrong. I guess I'll have
to have a look.
> +BOOST_TARGET_CXXFLAGS
> += -I$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR)/
> +BOOST_DEPENDENCIES += python
This isn't going to work with Python 3. It should be:
ifeq ($(BR2_PACKAGE_PYTHON3),y)
BOOST_TARGET_CXXFLAGS += -I$(STAGING_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR)
BOOST_DEPENDENCIES += python3
else
BOOST_TARGET_CXXFLAGS += -I$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR)
BOOST_DEPENDENCIES += python
endif
> +endif
> +
> HOST_BOOST_OPT += toolset=gcc threading=multi variant=release link=shared
> \
> runtime-link=shared
>
> @@ -84,7 +93,7 @@ BOOST_FLAGS += $(if
> $(BOOST_WITHOUT_FLAGS_COMMASEPERATED), --without-libraries=$
>
> define BOOST_CONFIGURE_CMDS
> (cd $(@D) && ./bootstrap.sh $(BOOST_FLAGS))
> - echo "using gcc : $(TARGET_CC_VERSION) : $(TARGET_CXX) :
> <cxxflags>\"$(TARGET_CXXFLAGS)\" <linkflags>\"$(TARGET_LDFLAGS)\" ;" >
> $(@D)/user-config.jam
> + echo "using gcc : $(TARGET_CC_VERSION) : $(TARGET_CXX) :
> <cxxflags>\"$(BOOST_TARGET_CXXFLAGS)\" <linkflags>\"$(TARGET_LDFLAGS)\" ;"
> > $(@D)/user-config.jam
> echo "" >> $(@D)/user-config.jam
> endef
>
Ok.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH v3 1/2] python-libconfig: new package
2014-03-04 16:53 [Buildroot] [PATCH v3 1/2] python-libconfig: new package Johan Derycke
2014-03-04 16:53 ` [Buildroot] [PATCH v3 2/2] boost: make build with python an option Johan Derycke
@ 2014-03-04 17:58 ` Thomas Petazzoni
2014-03-05 14:10 ` Derycke, Johan
1 sibling, 1 reply; 6+ messages in thread
From: Thomas Petazzoni @ 2014-03-04 17:58 UTC (permalink / raw)
To: buildroot
Dear Johan Derycke,
On Tue, 4 Mar 2014 17:53:46 +0100, Johan Derycke wrote:
> Python bindings to the C++ library libconfig
> https://github.com/cnangel/python-libconfig
>
> Signed-off-by: Johan Derycke <johan.derycke@barco.com>
> ---
> Changes v2 -> v3:
> -Avoid line-wrap using "git send-email"
Unfortunately, even though you have used "git send-email" this time,
the patches are still line-wrapped. I strongly suspect that your
company SMTP server, while adding the useless "DISCLAIMER" at the end
of each e-mail, takes the freedom to rewrap the entire e-mail.
Solutions are:
*) Complain to your IT people.
*) Send using another SMTP server.
*) Let us fix up the patches manually. This is OK for small patches,
but is quickly going to be horrible if the patches become large.
> diff --git a/package/python-libconfig/Config.in
> b/package/python-libconfig/Config.in
> new file mode 100644
> index 0000000..170926d
> --- /dev/null
> +++ b/package/python-libconfig/Config.in
> @@ -0,0 +1,9 @@
> +config BR2_PACKAGE_PYTHON_LIBCONFIG
> + bool "python-libconfig"
> + depends on BR2_PACKAGE_PYTHON
Ok, so this package only builds with Python 2, correct?
> + select BR2_PACKAGE_BOOST_PYTHON
I must say it's really horrible to need something as large as Boost
just to have a Python interface to a library as simple as libconfig.
But oh well, that's not your fault.
> + select BR2_PACKAGE_LIBCONFIG
> + help
> + Python bindings to the C++ library libconfig
> +
> + https://github.com/cnangel/python-libconfig
> diff --git a/package/python-libconfig/python-libconfig.mk
> b/package/python-libconfig/python-libconfig.mk
> new file mode 100644
> index 0000000..3f5984b
> --- /dev/null
> +++ b/package/python-libconfig/python-libconfig.mk
> @@ -0,0 +1,17 @@
> +################################################################################
> +#
> +# python-libconfig
> +#
> +################################################################################
> +
> +PYTHON_LIBCONFIG_VERSION = b271c3d9dac938ad5cd29b67bd08cc5536a5a391
> +PYTHON_LIBCONFIG_SITE = $(call
> github,cnangel,python-libconfig,$(PYTHON_LIBCONFIG_VERSION))
> +
> +PYTHON_LIBCONFIG_LICENSE = BSD
> +PYTHON_LIBCONFIG_LICENSE_FILES = README
> +
> +PYTHON_LIBCONFIG_SETUP_TYPE = setuptools
> +
> +PYTHON_LIBCONFIG_DEPENDENCIES = libconfig boost
> +
> +$(eval $(python-package))
This looks good, but since this patch actually depends on the next
patch, they should be inverted in the patch series: the boost patch
first, and then the python-libconfig patch.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 6+ messages in thread* [Buildroot] [PATCH v3 1/2] python-libconfig: new package
2014-03-04 17:58 ` [Buildroot] [PATCH v3 1/2] python-libconfig: new package Thomas Petazzoni
@ 2014-03-05 14:10 ` Derycke, Johan
0 siblings, 0 replies; 6+ messages in thread
From: Derycke, Johan @ 2014-03-05 14:10 UTC (permalink / raw)
To: buildroot
Hi Thomas,
On Tue, 2014-03-04 at 18:58 +0100, Thomas Petazzoni wrote:
> Dear Johan Derycke,
>
> On Tue, 4 Mar 2014 17:53:46 +0100, Johan Derycke wrote:
> > Python bindings to the C++ library libconfig
> > https://github.com/cnangel/python-libconfig
> >
> > Signed-off-by: Johan Derycke <johan.derycke@barco.com>
> > ---
> > Changes v2 -> v3:
> > -Avoid line-wrap using "git send-email"
>
> Unfortunately, even though you have used "git send-email" this time,
> the patches are still line-wrapped. I strongly suspect that your
> company SMTP server, while adding the useless "DISCLAIMER" at the end
> of each e-mail, takes the freedom to rewrap the entire e-mail.
>
> Solutions are:
>
> *) Complain to your IT people.
>
> *) Send using another SMTP server.
>
> *) Let us fix up the patches manually. This is OK for small patches,
> but is quickly going to be horrible if the patches become large.
I will try with gmail smtp next time...
> > diff --git a/package/python-libconfig/Config.in
> > b/package/python-libconfig/Config.in
> > new file mode 100644
> > index 0000000..170926d
> > --- /dev/null
> > +++ b/package/python-libconfig/Config.in
> > @@ -0,0 +1,9 @@
> > +config BR2_PACKAGE_PYTHON_LIBCONFIG
> > + bool "python-libconfig"
> > + depends on BR2_PACKAGE_PYTHON
>
> Ok, so this package only builds with Python 2, correct?
It did not work with python3 because boost:python was wrong for python3.
I was able to run a small python script with "from pylibconfig import
Config" for both python2 and python3. I will re-enable it in v4 patch.
>
> > + select BR2_PACKAGE_BOOST_PYTHON
>
> I must say it's really horrible to need something as large as Boost
> just to have a Python interface to a library as simple as libconfig.
> But oh well, that's not your fault.
>
> > + select BR2_PACKAGE_LIBCONFIG
> > + help
> > + Python bindings to the C++ library libconfig
> > +
> > + https://github.com/cnangel/python-libconfig
> > diff --git a/package/python-libconfig/python-libconfig.mk
> > b/package/python-libconfig/python-libconfig.mk
> > new file mode 100644
> > index 0000000..3f5984b
> > --- /dev/null
> > +++ b/package/python-libconfig/python-libconfig.mk
> > @@ -0,0 +1,17 @@
> > +################################################################################
> > +#
> > +# python-libconfig
> > +#
> > +################################################################################
> > +
> > +PYTHON_LIBCONFIG_VERSION = b271c3d9dac938ad5cd29b67bd08cc5536a5a391
> > +PYTHON_LIBCONFIG_SITE = $(call
> > github,cnangel,python-libconfig,$(PYTHON_LIBCONFIG_VERSION))
> > +
> > +PYTHON_LIBCONFIG_LICENSE = BSD
> > +PYTHON_LIBCONFIG_LICENSE_FILES = README
> > +
> > +PYTHON_LIBCONFIG_SETUP_TYPE = setuptools
> > +
> > +PYTHON_LIBCONFIG_DEPENDENCIES = libconfig boost
> > +
> > +$(eval $(python-package))
>
> This looks good, but since this patch actually depends on the next
> patch, they should be inverted in the patch series: the boost patch
> first, and then the python-libconfig patch.
>
> Thanks!
>
> Thomas
Thanks for the review
Johan
This message is subject to the following terms and conditions: MAIL DISCLAIMER<http://www.barco.com/en/maildisclaimer>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH v3 2/2] boost: make build with python an option
@ 2014-03-04 16:59 Johan Derycke
0 siblings, 0 replies; 6+ messages in thread
From: Johan Derycke @ 2014-03-04 16:59 UTC (permalink / raw)
To: buildroot
Add an option to boost to build the Boost.Python library.
http://www.boost.org/doc/libs/1_55_0/libs/python/doc/index.html
Signed-off-by: Johan Derycke <johan.derycke@barco.com>
---
Changes v2 -> v3:
-Avoid line-wrap using "git send-email"
Changes v1 -> v2:
-Fixed indentations and blank lines
-Removed package/Config.in
-Allow build with python3
package/boost/Config.in | 4 ++++
package/boost/boost.mk | 13 +++++++++++--
2 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/package/boost/Config.in b/package/boost/Config.in
index 68c3909..a74c2d7 100644
--- a/package/boost/Config.in
+++ b/package/boost/Config.in
@@ -60,6 +60,10 @@ config BR2_PACKAGE_BOOST_MPI
config BR2_PACKAGE_BOOST_PROGRAM_OPTIONS
bool "boost-program_options"
+config BR2_PACKAGE_BOOST_PYTHON
+ depends on BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3
+ bool "boost-python"
+
config BR2_PACKAGE_BOOST_RANDOM
bool "boost-random"
diff --git a/package/boost/boost.mk b/package/boost/boost.mk
index 7aab614..53d2b4d 100644
--- a/package/boost/boost.mk
+++ b/package/boost/boost.mk
@@ -26,7 +26,7 @@ HOST_BOOST_FLAGS = --without-icu \
# atomic library compile only with upstream version, wait for next
release
# coroutine breaks on some weak toolchains and it's new for 1.54+
# log breaks with some toolchain combinations and it's new for 1.54+
-BOOST_WITHOUT_FLAGS = atomic coroutine log python
+BOOST_WITHOUT_FLAGS = atomic coroutine log
BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_CHRONO),,chrono)
BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_CONTEXT),,context)
@@ -40,6 +40,7 @@ BOOST_WITHOUT_FLAGS += $(if
$(BR2_PACKAGE_BOOST_LOCALE),,locale)
BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_MATH),,math)
BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_MPI),,mpi)
BOOST_WITHOUT_FLAGS += $(if
$(BR2_PACKAGE_BOOST_PROGRAM_OPTIONS),,program_options)
+BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_PYTHON),,python)
BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_RANDOM),,random)
BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_REGEX),,regex)
BOOST_WITHOUT_FLAGS += $(if
$(BR2_PACKAGE_BOOST_SERIALIZATION),,serialization)
@@ -50,6 +51,8 @@ BOOST_WITHOUT_FLAGS += $(if
$(BR2_PACKAGE_BOOST_THREAD),,thread)
BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_TIMER),,timer)
BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_WAVE),,wave)
+BOOST_TARGET_CXXFLAGS = $(TARGET_CXXFLAGS)
+
ifeq ($(BR2_PACKAGE_ICU),y)
BOOST_FLAGS += --with-icu=$(STAGING_DIR)/usr
BOOST_DEPENDENCIES += icu
@@ -61,6 +64,12 @@ ifeq ($(BR2_PACKAGE_BOOST_IOSTREAMS),y)
BOOST_DEPENDENCIES += bzip2 zlib
endif
+ifeq ($(BR2_PACKAGE_BOOST_PYTHON),y)
+BOOST_FLAGS += --with-python-root=$(HOST_DIR)
+BOOST_TARGET_CXXFLAGS
+= -I$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR)/
+BOOST_DEPENDENCIES += python
+endif
+
HOST_BOOST_OPT += toolset=gcc threading=multi variant=release link=shared
\
runtime-link=shared
@@ -84,7 +93,7 @@ BOOST_FLAGS += $(if
$(BOOST_WITHOUT_FLAGS_COMMASEPERATED), --without-libraries=$
define BOOST_CONFIGURE_CMDS
(cd $(@D) && ./bootstrap.sh $(BOOST_FLAGS))
- echo "using gcc : $(TARGET_CC_VERSION) : $(TARGET_CXX) :
<cxxflags>\"$(TARGET_CXXFLAGS)\" <linkflags>\"$(TARGET_LDFLAGS)\" ;" >
$(@D)/user-config.jam
+ echo "using gcc : $(TARGET_CC_VERSION) : $(TARGET_CXX) :
<cxxflags>\"$(BOOST_TARGET_CXXFLAGS)\" <linkflags>\"$(TARGET_LDFLAGS)\" ;"
> $(@D)/user-config.jam
echo "" >> $(@D)/user-config.jam
endef
--
1.7.10.4
DISCLAIMER:
Unless indicated otherwise, the information contained in this message is
privileged and confidential, and is intended only for the use of the
addressee(s) named above and others who have been specifically authorized
to receive it. If you are not the intended recipient, you are hereby
notified that any dissemination, distribution or copying of this message
and/or attachments is strictly prohibited. The company accepts no
liability for any damage caused by any virus transmitted by this email.
Furthermore, the company does not warrant a proper and complete
transmission of this information, nor does it accept liability for any
delays. If you have received this message in error, please contact the
sender and delete the message. Thank you.
^ permalink raw reply related [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-03-05 14:10 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-04 16:53 [Buildroot] [PATCH v3 1/2] python-libconfig: new package Johan Derycke
2014-03-04 16:53 ` [Buildroot] [PATCH v3 2/2] boost: make build with python an option Johan Derycke
2014-03-04 18:02 ` Thomas Petazzoni
2014-03-04 17:58 ` [Buildroot] [PATCH v3 1/2] python-libconfig: new package Thomas Petazzoni
2014-03-05 14:10 ` Derycke, Johan
-- strict thread matches above, loose matches on Subject: below --
2014-03-04 16:59 [Buildroot] [PATCH v3 2/2] boost: make build with python an option Johan Derycke
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.