* [Buildroot] [RFC] python-lxml: add target package variant
@ 2015-01-18 22:17 Yegor Yefremov
2015-01-18 22:22 ` Yann E. MORIN
2015-01-18 22:23 ` Yegor Yefremov
0 siblings, 2 replies; 5+ messages in thread
From: Yegor Yefremov @ 2015-01-18 22:17 UTC (permalink / raw)
To: buildroot
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
package/Config.in | 1 +
package/python-lxml/Config.in | 10 ++++++++++
package/python-lxml/python-lxml.mk | 4 +++-
3 files changed, 14 insertions(+), 1 deletion(-)
create mode 100644 package/python-lxml/Config.in
diff --git a/package/Config.in b/package/Config.in
index 266de13..366e393 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -519,6 +519,7 @@ menu "external python modules"
source "package/python-json-schema-validator/Config.in"
source "package/python-keyring/Config.in"
source "package/python-libconfig/Config.in"
+ source "package/python-lxml/Config.in"
source "package/python-mad/Config.in"
source "package/python-markdown/Config.in"
source "package/python-markupsafe/Config.in"
diff --git a/package/python-lxml/Config.in b/package/python-lxml/Config.in
new file mode 100644
index 0000000..70096e7
--- /dev/null
+++ b/package/python-lxml/Config.in
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_PYTHON_LXML
+ bool "python-lxml"
+ select BR2_PACKAGE_LIBXML2
+ select BR2_PACKAGE_LIBXSLT
+ help
+ The lxml XML toolkit is a Pythonic binding for the C libraries
+ libxml2 and libxslt.
+
+ http://lxml.de/
+
diff --git a/package/python-lxml/python-lxml.mk b/package/python-lxml/python-lxml.mk
index 758ce87..292031b 100644
--- a/package/python-lxml/python-lxml.mk
+++ b/package/python-lxml/python-lxml.mk
@@ -20,6 +20,8 @@ PYTHON_LXML_LICENSE_FILES = \
# So, we use setuptools.
PYTHON_LXML_SETUP_TYPE = setuptools
-PYTHON_LXML_DEPENDENCIES = libxml2 libxslt
+PYTHON_LXML_DEPENDENCIES = libxml2 libxslt host-libxslt
+
+$(eval $(python-package))
$(eval $(host-python-package))
--
2.1.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Buildroot] [RFC] python-lxml: add target package variant
2015-01-18 22:17 [Buildroot] [RFC] python-lxml: add target package variant Yegor Yefremov
@ 2015-01-18 22:22 ` Yann E. MORIN
2015-01-18 22:23 ` Yegor Yefremov
1 sibling, 0 replies; 5+ messages in thread
From: Yann E. MORIN @ 2015-01-18 22:22 UTC (permalink / raw)
To: buildroot
Yegor, All,
On 2015-01-18 23:17 +0100, Yegor Yefremov spake thusly:
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
[--SNIP--]
> diff --git a/package/python-lxml/python-lxml.mk b/package/python-lxml/python-lxml.mk
> index 758ce87..292031b 100644
> --- a/package/python-lxml/python-lxml.mk
> +++ b/package/python-lxml/python-lxml.mk
> @@ -20,6 +20,8 @@ PYTHON_LXML_LICENSE_FILES = \
> # So, we use setuptools.
> PYTHON_LXML_SETUP_TYPE = setuptools
>
> -PYTHON_LXML_DEPENDENCIES = libxml2 libxslt
> +PYTHON_LXML_DEPENDENCIES = libxml2 libxslt host-libxslt
Why does it need the host variant of libxslt?
Anyway, I'll cary it in my branch. Thanks! :-)
Regards,
Yann E. MORIN.
> +
> +$(eval $(python-package))
> $(eval $(host-python-package))
> --
> 2.1.0
>
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [RFC] python-lxml: add target package variant
2015-01-18 22:17 [Buildroot] [RFC] python-lxml: add target package variant Yegor Yefremov
2015-01-18 22:22 ` Yann E. MORIN
@ 2015-01-18 22:23 ` Yegor Yefremov
2015-01-18 22:26 ` Yann E. MORIN
1 sibling, 1 reply; 5+ messages in thread
From: Yegor Yefremov @ 2015-01-18 22:23 UTC (permalink / raw)
To: buildroot
On Sun, Jan 18, 2015 at 11:17 PM, Yegor Yefremov
<yegorslists@googlemail.com> wrote:
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
> ---
> package/Config.in | 1 +
> package/python-lxml/Config.in | 10 ++++++++++
> package/python-lxml/python-lxml.mk | 4 +++-
> 3 files changed, 14 insertions(+), 1 deletion(-)
> create mode 100644 package/python-lxml/Config.in
>
> diff --git a/package/Config.in b/package/Config.in
> index 266de13..366e393 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -519,6 +519,7 @@ menu "external python modules"
> source "package/python-json-schema-validator/Config.in"
> source "package/python-keyring/Config.in"
> source "package/python-libconfig/Config.in"
> + source "package/python-lxml/Config.in"
> source "package/python-mad/Config.in"
> source "package/python-markdown/Config.in"
> source "package/python-markupsafe/Config.in"
> diff --git a/package/python-lxml/Config.in b/package/python-lxml/Config.in
> new file mode 100644
> index 0000000..70096e7
> --- /dev/null
> +++ b/package/python-lxml/Config.in
> @@ -0,0 +1,10 @@
> +config BR2_PACKAGE_PYTHON_LXML
> + bool "python-lxml"
> + select BR2_PACKAGE_LIBXML2
> + select BR2_PACKAGE_LIBXSLT
> + help
> + The lxml XML toolkit is a Pythonic binding for the C libraries
> + libxml2 and libxslt.
> +
> + http://lxml.de/
> +
> diff --git a/package/python-lxml/python-lxml.mk b/package/python-lxml/python-lxml.mk
> index 758ce87..292031b 100644
> --- a/package/python-lxml/python-lxml.mk
> +++ b/package/python-lxml/python-lxml.mk
> @@ -20,6 +20,8 @@ PYTHON_LXML_LICENSE_FILES = \
> # So, we use setuptools.
> PYTHON_LXML_SETUP_TYPE = setuptools
>
> -PYTHON_LXML_DEPENDENCIES = libxml2 libxslt
> +PYTHON_LXML_DEPENDENCIES = libxml2 libxslt host-libxslt
>
> +
> +$(eval $(python-package))
> $(eval $(host-python-package))
After adding host-xslt I don't have compiler errors, but linking:
>>> python-lxml 3.4.1 Building
(cd /home/user/Documents/versioned/buildroot/output/build/python-lxml-3.4.1//;
PATH="/home/user/Documents/versioned/buildroot/output/host/bin:/home/user/Documents/versioned/buildroot/output/host/sbin:/home/user/Documents/versioned/buildroot/output/host/usr/bin:/home/user/Documents/versioned/buildroot/output/host/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
PYTHONPATH="/home/user/Documents/versioned/buildroot/output/target/usr/lib/python2.7/sysconfigdata/:/home/user/Documents/versioned/buildroot/output/target/usr/lib/python2.7/site-packages/"
_python_sysroot=/home/user/Documents/versioned/buildroot/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot
_python_prefix=/usr _python_exec_prefix=/usr
/home/user/Documents/versioned/buildroot/output/host/usr/bin/python
setup.py build )
Building lxml version 3.4.1.
Building without Cython.
Using build configuration of libxslt 1.1.28
Building against libxml2/libxslt in the following directory:
/home/user/Documents/versioned/buildroot/output/host/usr/lib
/home/user/Documents/versioned/buildroot/output/host/usr/lib/python2.7/distutils/dist.py:267:
UserWarning: Unknown distribution option: 'bugtrack_url'
warnings.warn(msg)
running build
running build_py
copying src/lxml/includes/lxml-version.h ->
build/lib.linux-x86_64-2.7/lxml/includes
running build_ext
building 'lxml.etree' extension
/home/user/Documents/versioned/buildroot/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc
-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -Os -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -fPIC
-I/home/user/Documents/versioned/buildroot/output/host/usr/include
-I/home/user/Documents/versioned/buildroot/output/host/usr/include/libxml2
-I/home/user/Documents/versioned/buildroot/output/build/python-lxml-3.4.1/src/lxml/includes
-I/home/user/Documents/versioned/buildroot/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/python2.7
-c src/lxml/lxml.etree.c -o
build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -w
/home/user/Documents/versioned/buildroot/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc
-shared build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o
-L/home/user/Documents/versioned/buildroot/output/host/usr/lib
-L/home/user/Documents/versioned/buildroot/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib
-lxslt -lexslt -lxml2 -lz -lm -lpython2.7 -o
build/lib.linux-x86_64-2.7/lxml/etree.so
/home/user/Documents/versioned/buildroot/output/host/usr/lib/libxslt.so:
file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
error: command '/home/user/Documents/versioned/buildroot/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc'
failed with exit status 1
package/pkg-generic.mk:182: recipe for target
'/home/user/Documents/versioned/buildroot/output/build/python-lxml-3.4.1/.stamp_built'
failed
make: *** [/home/user/Documents/versioned/buildroot/output/build/python-lxml-3.4.1/.stamp_built]
Error 1
The whole stuff tries to link against host variant. Samuel Martin, do
you have any idea?
Yegor
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [RFC] python-lxml: add target package variant
2015-01-18 22:23 ` Yegor Yefremov
@ 2015-01-18 22:26 ` Yann E. MORIN
2015-01-18 22:27 ` Yegor Yefremov
0 siblings, 1 reply; 5+ messages in thread
From: Yann E. MORIN @ 2015-01-18 22:26 UTC (permalink / raw)
To: buildroot
Yegor, All,
On 2015-01-18 23:23 +0100, Yegor Yefremov spake thusly:
> On Sun, Jan 18, 2015 at 11:17 PM, Yegor Yefremov
> <yegorslists@googlemail.com> wrote:
[--SNIP--]
> > -PYTHON_LXML_DEPENDENCIES = libxml2 libxslt
> > +PYTHON_LXML_DEPENDENCIES = libxml2 libxslt host-libxslt
> >
> > +
> > +$(eval $(python-package))
> > $(eval $(host-python-package))
>
> After adding host-xslt I don't have compiler errors, but linking:
>
> >>> python-lxml 3.4.1 Building
[--SNIP--]
> build/lib.linux-x86_64-2.7/lxml/etree.so
> /home/user/Documents/versioned/buildroot/output/host/usr/lib/libxslt.so:
> file not recognized: File format not recognized
> collect2: error: ld returned 1 exit status
> error: command '/home/user/Documents/versioned/buildroot/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc'
> failed with exit status 1
> package/pkg-generic.mk:182: recipe for target
> '/home/user/Documents/versioned/buildroot/output/build/python-lxml-3.4.1/.stamp_built'
> failed
> make: *** [/home/user/Documents/versioned/buildroot/output/build/python-lxml-3.4.1/.stamp_built]
> Error 1
>
> The whole stuff tries to link against host variant. Samuel Martin, do
> you have any idea?
I'll take a look shortly.
In the meantime, I've marked this patch as "Changes requested", too.
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [RFC] python-lxml: add target package variant
2015-01-18 22:26 ` Yann E. MORIN
@ 2015-01-18 22:27 ` Yegor Yefremov
0 siblings, 0 replies; 5+ messages in thread
From: Yegor Yefremov @ 2015-01-18 22:27 UTC (permalink / raw)
To: buildroot
On Sun, Jan 18, 2015 at 11:26 PM, Yann E. MORIN <yann.morin.1998@free.fr> wrote:
> Yegor, All,
>
> On 2015-01-18 23:23 +0100, Yegor Yefremov spake thusly:
>> On Sun, Jan 18, 2015 at 11:17 PM, Yegor Yefremov
>> <yegorslists@googlemail.com> wrote:
> [--SNIP--]
>> > -PYTHON_LXML_DEPENDENCIES = libxml2 libxslt
>> > +PYTHON_LXML_DEPENDENCIES = libxml2 libxslt host-libxslt
>> >
>> > +
>> > +$(eval $(python-package))
>> > $(eval $(host-python-package))
>>
>> After adding host-xslt I don't have compiler errors, but linking:
>>
>> >>> python-lxml 3.4.1 Building
> [--SNIP--]
>> build/lib.linux-x86_64-2.7/lxml/etree.so
>> /home/user/Documents/versioned/buildroot/output/host/usr/lib/libxslt.so:
>> file not recognized: File format not recognized
>> collect2: error: ld returned 1 exit status
>> error: command '/home/user/Documents/versioned/buildroot/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc'
>> failed with exit status 1
>> package/pkg-generic.mk:182: recipe for target
>> '/home/user/Documents/versioned/buildroot/output/build/python-lxml-3.4.1/.stamp_built'
>> failed
>> make: *** [/home/user/Documents/versioned/buildroot/output/build/python-lxml-3.4.1/.stamp_built]
>> Error 1
>>
>> The whole stuff tries to link against host variant. Samuel Martin, do
>> you have any idea?
>
> I'll take a look shortly.
>
> In the meantime, I've marked this patch as "Changes requested", too.
Thanks.
Yegor
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-01-18 22:27 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-18 22:17 [Buildroot] [RFC] python-lxml: add target package variant Yegor Yefremov
2015-01-18 22:22 ` Yann E. MORIN
2015-01-18 22:23 ` Yegor Yefremov
2015-01-18 22:26 ` Yann E. MORIN
2015-01-18 22:27 ` Yegor Yefremov
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.