Re: [yocto] Bitbake recipe using CMake that requires python-six as part of compiling?

2018-03-06 Thread Burton, Ross
On 6 March 2018 at 22:12, Giordon Stark  wrote:

> Hi Andre,
>
> I tried without
>
> FILES_${PN}_append = "${includedir}/open62541.h"
>
> and got a QA error about a file installed that was not added to a
> package I don't understand the ${PN}-dev here, and I'm not sure how
> packaging works in this context - since it's not clear to me which files
> get installed and which don't... except for when a recipe that depends on
> this breaks because it can't find the header file.
>

The cmake files should also be in the -dev package.   If I were you I'd
remove all FILES_* lines from your recipe and just add:

FILES_${PN}-dev += "${libdir}/cmake"

If you get QA warnings from that then you can use bitbake -e open62541 to
see the data store values.  Search that for the FILES_${PN}-dev assignment,
it's initial value is from bitbake.conf and has ${includedir} in.
Something else must be incorrectly overriding it.

Ross
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Bitbake recipe using CMake that requires python-six as part of compiling?

2018-03-06 Thread Andre McCurdy
On Tue, Mar 6, 2018 at 2:24 PM, Giordon Stark  wrote:
> Is there a good recipe to follow where the normal rules apply for packaging
> and such? I had a hard time finding one that wasn't a rabbit-hole of *.inc
> files.

Start with the default packaging rules in meta/conf/bitbake.conf

Any packaging rules you find in a recipe are by definition workarounds
for oddly installed files or custom rules to handle packaging
requirements which don't fit the standard model - so not an ideal
reference when trying to understand the basics.
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Bitbake recipe using CMake that requires python-six as part of compiling?

2018-03-06 Thread Giordon Stark
Is there a good recipe to follow where the normal rules apply for packaging
and such? I had a hard time finding one that wasn't a rabbit-hole of *.inc
files.

Giordon

On Tue, Mar 6, 2018 at 4:23 PM Andre McCurdy  wrote:

> On Tue, Mar 6, 2018 at 2:12 PM, Giordon Stark  wrote:
> > Hi Andre,
> >
> > I tried without
> >
> > FILES_${PN}_append = "${includedir}/open62541.h"
> >
> > and got a QA error about a file installed that was not added to a
> > package I don't understand the ${PN}-dev here, and I'm not sure how
> > packaging works in this context - since it's not clear to me which files
> get
> > installed and which don't... except for when a recipe that depends on
> this
> > breaks because it can't find the header file.
>
> So you seem to have got yourself into a situation where the normal
> rules don't apply. Good luck!
>
-- 
Giordon Stark
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Bitbake recipe using CMake that requires python-six as part of compiling?

2018-03-06 Thread Andre McCurdy
On Tue, Mar 6, 2018 at 2:12 PM, Giordon Stark  wrote:
> Hi Andre,
>
> I tried without
>
> FILES_${PN}_append = "${includedir}/open62541.h"
>
> and got a QA error about a file installed that was not added to a
> package I don't understand the ${PN}-dev here, and I'm not sure how
> packaging works in this context - since it's not clear to me which files get
> installed and which don't... except for when a recipe that depends on this
> breaks because it can't find the header file.

So you seem to have got yourself into a situation where the normal
rules don't apply. Good luck!
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Bitbake recipe using CMake that requires python-six as part of compiling?

2018-03-06 Thread Giordon Stark
Hi Andre,

I tried without

FILES_${PN}_append = "${includedir}/open62541.h"

and got a QA error about a file installed that was not added to a
package I don't understand the ${PN}-dev here, and I'm not sure how
packaging works in this context - since it's not clear to me which files
get installed and which don't... except for when a recipe that depends on
this breaks because it can't find the header file.

Giordon

On Tue, Mar 6, 2018 at 4:06 PM Andre McCurdy  wrote:

> On Tue, Mar 6, 2018 at 1:03 PM, Giordon Stark  wrote:
> > Yes. The CMakeLists file definitely doesn't install that (annoyingly).
> > Playing around a bit, I created a test recipe, added these lines in my
> > open62541.inc file (original recipe here)
> >
> > do_install_append() {
> >   install -d ${D}${includedir}
> >   install -m 644 ${B}/open62541.h ${D}${includedir}
> > }
> >
> > FILES_${PN}_append = "${includedir}/open62541.h"
>
> This is trying to put the header in the runtime package (ie the
> package containing files which typically end up in the target rootfs).
> Header files should be in the ${PN}-dev package instead.
>
> Since the default packaging rules already cover header files, you
> don't actually need to add anything here in order to have the header
> packaged correctly - just remove that line.
>
> Note that you also tried to use _append without a leading space -
> which is wrong in this context (it's wrong in almost every context).
>
> > and it looks like the test recipe can pick up that header file
> correctly. So
> > I think this is correct-er (at least for code that uses #include
> > ).
> >
>
-- 
Giordon Stark
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Bitbake recipe using CMake that requires python-six as part of compiling?

2018-03-06 Thread Andre McCurdy
On Tue, Mar 6, 2018 at 1:03 PM, Giordon Stark  wrote:
> Yes. The CMakeLists file definitely doesn't install that (annoyingly).
> Playing around a bit, I created a test recipe, added these lines in my
> open62541.inc file (original recipe here)
>
> do_install_append() {
>   install -d ${D}${includedir}
>   install -m 644 ${B}/open62541.h ${D}${includedir}
> }
>
> FILES_${PN}_append = "${includedir}/open62541.h"

This is trying to put the header in the runtime package (ie the
package containing files which typically end up in the target rootfs).
Header files should be in the ${PN}-dev package instead.

Since the default packaging rules already cover header files, you
don't actually need to add anything here in order to have the header
packaged correctly - just remove that line.

Note that you also tried to use _append without a leading space -
which is wrong in this context (it's wrong in almost every context).

> and it looks like the test recipe can pick up that header file correctly. So
> I think this is correct-er (at least for code that uses #include
> ).
>
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Bitbake recipe using CMake that requires python-six as part of compiling?

2018-03-06 Thread Giordon Stark
Yes. The CMakeLists file definitely doesn't install that (annoyingly).
Playing around a bit, I created a test recipe, added these lines in my
open62541.inc file (original recipe here)

do_install_append() {
  install -d ${D}${includedir}
  install -m 644 ${B}/open62541.h ${D}${includedir}
}

FILES_${PN}_append = "${includedir}/open62541.h"

and it looks like the test recipe can pick up that header file correctly.
So I think this is correct-er (at least for code that uses #include
).

Thanks for all the feedback so far,

Giordon

On Tue, Mar 6, 2018 at 3:00 PM Burton, Ross  wrote:

> If the cmakelists file doesn't install that (and it should) then yes
> you'll need to use do_install_append.
>
> Ross
>
> On 6 March 2018 at 20:46, Giordon Stark  wrote:
>
>> Great. So when I have this recipe set up -- how do I make sure, or tell
>> other people who write a recipe depending on this -- how to find a header
>> file built by it?
>>
>> Specifically, I see this header file in a (non-standard?) location which
>> is normally linked by others:
>>
>> |  #include 
>>
>> and this header file is at ${B}/open62541.h
>> (tmp/work/aarch64-poky-linux/open62541/0.3-r0/build/open62541.h). Is
>> this something that I just handle with a `do_install_append()` line? The
>> documentation here
>> https://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html isn't
>> very clear to me.
>>
>> e.g. for another recipe that just adds "open62541" in it's DEPENDS.
>>
>> Giordon
>>
>> On Tue, Mar 6, 2018 at 2:32 PM Burton, Ross 
>> wrote:
>>
>>> On 6 March 2018 at 20:24, Giordon Stark  wrote:
>>>
 You can drop the S assignment as that is the default value.
>

 Didn't realize, neat. I knew I needed to set it for `git` clones since
 it always throws it into a ${WORKDIR}/git folder.

>>>
>>> Yes, for git clones you need to override it.
>>>
>>>

> Github /archive/ tarballs can and do change over time, which gets very
> annoying when you need to go and change the checksums.
>

 Really? Dang...

>>>
>>> Yeah. :/  Took us ages to verify this happens but it definitely does.
>>>
>>>
 My hunch without reading the upstream CMake files is that they don't
> support out-of-tree builds.  If it worked from git then that's another
> reason to switch back.
>

 It seems like this is the case here. I'm ok using git clones for now.
 Thanks.

>>>
>>> It *shouldn't* matter here as the /archive/ tarball should have
>>> identical contents to a clone of the same tag, but it's possible that the
>>> build system looks for a .git/ directory and changes how it builds.  That's
>>> kind of stupid but it wouldn't be the first time I've seen it break builds.
>>>
>>> Ross
>>>
>> --
>> Giordon Stark
>>
>
> --
Giordon Stark
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Bitbake recipe using CMake that requires python-six as part of compiling?

2018-03-06 Thread Burton, Ross
If the cmakelists file doesn't install that (and it should) then yes you'll
need to use do_install_append.

Ross

On 6 March 2018 at 20:46, Giordon Stark  wrote:

> Great. So when I have this recipe set up -- how do I make sure, or tell
> other people who write a recipe depending on this -- how to find a header
> file built by it?
>
> Specifically, I see this header file in a (non-standard?) location which
> is normally linked by others:
>
> |  #include 
>
> and this header file is at ${B}/open62541.h (tmp/work/aarch64-poky-linux/
> open62541/0.3-r0/build/open62541.h). Is this something that I just handle
> with a `do_install_append()` line? The documentation here
> https://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html isn't
> very clear to me.
>
> e.g. for another recipe that just adds "open62541" in it's DEPENDS.
>
> Giordon
>
> On Tue, Mar 6, 2018 at 2:32 PM Burton, Ross  wrote:
>
>> On 6 March 2018 at 20:24, Giordon Stark  wrote:
>>
>>> You can drop the S assignment as that is the default value.

>>>
>>> Didn't realize, neat. I knew I needed to set it for `git` clones since
>>> it always throws it into a ${WORKDIR}/git folder.
>>>
>>
>> Yes, for git clones you need to override it.
>>
>>
>>>
 Github /archive/ tarballs can and do change over time, which gets very
 annoying when you need to go and change the checksums.

>>>
>>> Really? Dang...
>>>
>>
>> Yeah. :/  Took us ages to verify this happens but it definitely does.
>>
>>
>>> My hunch without reading the upstream CMake files is that they don't
 support out-of-tree builds.  If it worked from git then that's another
 reason to switch back.

>>>
>>> It seems like this is the case here. I'm ok using git clones for now.
>>> Thanks.
>>>
>>
>> It *shouldn't* matter here as the /archive/ tarball should have identical
>> contents to a clone of the same tag, but it's possible that the build
>> system looks for a .git/ directory and changes how it builds.  That's kind
>> of stupid but it wouldn't be the first time I've seen it break builds.
>>
>> Ross
>>
> --
> Giordon Stark
>
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Bitbake recipe using CMake that requires python-six as part of compiling?

2018-03-06 Thread Giordon Stark
Great. So when I have this recipe set up -- how do I make sure, or tell
other people who write a recipe depending on this -- how to find a header
file built by it?

Specifically, I see this header file in a (non-standard?) location which is
normally linked by others:

|  #include 

and this header file is at ${B}/open62541.h
(tmp/work/aarch64-poky-linux/open62541/0.3-r0/build/open62541.h). Is this
something that I just handle with a `do_install_append()` line? The
documentation here
https://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html isn't
very clear to me.

e.g. for another recipe that just adds "open62541" in it's DEPENDS.

Giordon

On Tue, Mar 6, 2018 at 2:32 PM Burton, Ross  wrote:

> On 6 March 2018 at 20:24, Giordon Stark  wrote:
>
>> You can drop the S assignment as that is the default value.
>>>
>>
>> Didn't realize, neat. I knew I needed to set it for `git` clones since it
>> always throws it into a ${WORKDIR}/git folder.
>>
>
> Yes, for git clones you need to override it.
>
>
>>
>>> Github /archive/ tarballs can and do change over time, which gets very
>>> annoying when you need to go and change the checksums.
>>>
>>
>> Really? Dang...
>>
>
> Yeah. :/  Took us ages to verify this happens but it definitely does.
>
>
>> My hunch without reading the upstream CMake files is that they don't
>>> support out-of-tree builds.  If it worked from git then that's another
>>> reason to switch back.
>>>
>>
>> It seems like this is the case here. I'm ok using git clones for now.
>> Thanks.
>>
>
> It *shouldn't* matter here as the /archive/ tarball should have identical
> contents to a clone of the same tag, but it's possible that the build
> system looks for a .git/ directory and changes how it builds.  That's kind
> of stupid but it wouldn't be the first time I've seen it break builds.
>
> Ross
>
-- 
Giordon Stark
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Bitbake recipe using CMake that requires python-six as part of compiling?

2018-03-06 Thread Burton, Ross
On 6 March 2018 at 20:24, Giordon Stark  wrote:

> You can drop the S assignment as that is the default value.
>>
>
> Didn't realize, neat. I knew I needed to set it for `git` clones since it
> always throws it into a ${WORKDIR}/git folder.
>

Yes, for git clones you need to override it.


>
>> Github /archive/ tarballs can and do change over time, which gets very
>> annoying when you need to go and change the checksums.
>>
>
> Really? Dang...
>

Yeah. :/  Took us ages to verify this happens but it definitely does.


> My hunch without reading the upstream CMake files is that they don't
>> support out-of-tree builds.  If it worked from git then that's another
>> reason to switch back.
>>
>
> It seems like this is the case here. I'm ok using git clones for now.
> Thanks.
>

It *shouldn't* matter here as the /archive/ tarball should have identical
contents to a clone of the same tag, but it's possible that the build
system looks for a .git/ directory and changes how it builds.  That's kind
of stupid but it wouldn't be the first time I've seen it break builds.

Ross
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Bitbake recipe using CMake that requires python-six as part of compiling?

2018-03-06 Thread Giordon Stark
Thanks.

On Tue, Mar 6, 2018 at 2:07 PM Burton, Ross  wrote:

> On 6 March 2018 at 19:48, Giordon Stark  wrote:
>
>>
>> where PV=0.2 (open62541_0.2.bb). And I see an error on install (full
>> log: https://gist.github.com/kratsg/5c3740ab72403595d5b9e0e855a3697f)
>>
>> | CMake Error at cmake_install.cmake:40 (file):
>> |   file INSTALL cannot find
>> |
>>  
>> "/local/d4/gstark/poky/build/tmp/work/aarch64-poky-linux/open62541/0.2-r0/build/open62541.h".
>>
>> So I'm wondering if I screwed up something by using the tarball instead
>> of a clone. I thought I translated it relatively well, and the release
>> matches the hash I was using.
>>
>
> You can drop the S assignment as that is the default value.
>

Didn't realize, neat. I knew I needed to set it for `git` clones since it
always throws it into a ${WORKDIR}/git folder.


> Github /archive/ tarballs can and do change over time, which gets very
> annoying when you need to go and change the checksums.
>

Really? Dang...


>
> If open62541 don't provide proper tarballs then keep it doing a git clone
> of the sha of that tag.
>
> My hunch without reading the upstream CMake files is that they don't
> support out-of-tree builds.  If it worked from git then that's another
> reason to switch back.
>

It seems like this is the case here. I'm ok using git clones for now.
Thanks.


>
> Ross
>
-- 
Giordon Stark
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Bitbake recipe using CMake that requires python-six as part of compiling?

2018-03-06 Thread Burton, Ross
On 6 March 2018 at 19:48, Giordon Stark  wrote:

>
> where PV=0.2 (open62541_0.2.bb). And I see an error on install (full log:
> https://gist.github.com/kratsg/5c3740ab72403595d5b9e0e855a3697f)
>
> | CMake Error at cmake_install.cmake:40 (file):
> |   file INSTALL cannot find
> |   "/local/d4/gstark/poky/build/tmp/work/aarch64-poky-linux/
> open62541/0.2-r0/build/open62541.h".
>
> So I'm wondering if I screwed up something by using the tarball instead of
> a clone. I thought I translated it relatively well, and the release matches
> the hash I was using.
>

You can drop the S assignment as that is the default value.

Github /archive/ tarballs can and do change over time, which gets very
annoying when you need to go and change the checksums.

If open62541 don't provide proper tarballs then keep it doing a git clone
of the sha of that tag.

My hunch without reading the upstream CMake files is that they don't
support out-of-tree builds.  If it worked from git then that's another
reason to switch back.

Ross
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Bitbake recipe using CMake that requires python-six as part of compiling?

2018-03-06 Thread Burton, Ross
Sorry, was rushing, yes this. :)

On 6 March 2018 at 19:09, Philip Balister  wrote:

> On 03/06/2018 01:42 PM, Burton, Ross wrote:
> > Add DEPENDS=python-six
>
> Maybe:
>
> DEPENDS = "python-six-native"
>
> Philip
>
> >
> > Ross
> >
> > On 6 March 2018 at 18:11, Giordon Stark  wrote:
> >
> >> Hi all,
> >>
> >> I'm struggling with what should be a simple-ish recipe (I think). I'm
> >> writing a recipe implementation for https://github.com/open62541/
> open62541
> >>  (open62541). So I start with
> >>
> >> devtool add open62541 https://github.com/open62541/open62541.git
> >>
> >> then I edit this, so it currently looks like this for me:
> >>
> >> SUMMARY = "OPC UA implementation"
> >> LICENSE = "MPL-2.0"
> >> LIC_FILES_CHKSUM = "file://LICENSE;md5=815ca599c9df247a0c7f619bab123d
> ad"
> >> SRC_URI = "gitsm://github.com/open62541/open62541.git;protocol=https"
> >> PV = "0.3+git${SRCPV}"
> >> SRCREV = "a6b99dc0579a53207b7dfe1d16423c2c1daa467e"
> >>
> >> S = "${WORKDIR}/git"
> >>
> >> # NOTE: unable to map the following CMake package dependencies: Check
> >> Sphinx ClangTools LATEX MbedTLS Valgrind
> >> DEPENDS = "openssl"
> >>
> >> inherit cmake pythonnative
> >>
> >> # Specify any options you want to pass to cmake using EXTRA_OECMAKE:
> >> EXTRA_OECMAKE = ""
> >>
> >> however, when I run devtool build open62541, I get  errors about "No
> >> module named six":
> >>
> >> | make[2]: Leaving directory '/local/d4/gstark/poky/build/
> >> tmp/work/aarch64-poky-linux/open62541/0.3+git999-r0/
> open62541-0.3+git999'
> >> | Traceback (most recent call last):
> >> |   File "/local/d4/gstark/poky/build/workspace/sources/open62541/
> >> tools/nodeset_compiler/nodeset_compiler.py", line 27, in 
> >> | from nodeset import *
> >> |   File "/local/d4/gstark/poky/build/workspace/sources/open62541/
> >> tools/nodeset_compiler/nodeset.py", line 30, in 
> >> | from nodes import *
> >> |   File "/local/d4/gstark/poky/build/workspace/sources/open62541/
> >> tools/nodeset_compiler/nodes.py", line 21, in 
> >> | from datatypes import *
> >> |   File "/local/d4/gstark/poky/build/workspace/sources/open62541/
> >> tools/nodeset_compiler/datatypes.py", line 29, in 
> >> | import six
> >> | ImportError: No module named six
> >> | CMakeFiles/open62541-generator-namespace.dir/build.make:71: recipe
> for
> >> target 'src_generated/ua_namespace0.c' failed
> >> | make[2]: *** [src_generated/ua_namespace0.c] Error 1
> >> | make[2]: Leaving directory '/local/d4/gstark/poky/build/
> >> tmp/work/aarch64-poky-linux/open62541/0.3+git999-r0/
> open62541-0.3+git999'
> >> | CMakeFiles/Makefile2:108: recipe for target 'CMakeFiles/open62541-
> generator-namespace.dir/all'
> >> failed
> >> | make[1]: *** [CMakeFiles/open62541-generator-namespace.dir/all]
> Error 2
> >> | make[1]: *** Waiting for unfinished jobs
> >>
> >> How do I get "python-six" added as part of pythonnative?
> >>
> >> Giordon
> >>
> >> --
> >> Giordon Stark
> >>
> >> --
> >> ___
> >> yocto mailing list
> >> yocto@yoctoproject.org
> >> https://lists.yoctoproject.org/listinfo/yocto
> >>
> >>
> >
> >
> >
>
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Bitbake recipe using CMake that requires python-six as part of compiling?

2018-03-06 Thread Giordon Stark
Thanks! Sorry to ping again, but I've done something poorly wrong. I
converted this code which now works, to point at the tarball provided by
github instead:

SUMMARY = "OPC UA implementation"
HOMEPAGE = "https://open62541.org/;
SECTION = "devel/libs"
LICENSE = "MPL-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=e879eaad64aab8e1f8e63e298f5cea28"
DEPENDS = "openssl python-six-native"

SRC_URI = "https://github.com/open62541/open62541/archive/v${PV}.tar.gz;
SRC_URI[md5sum] = "7c3fedab541e6df22de06c47cb4768fc"
SRC_URI[sha256sum] =
"2fc6eb2eca7d53db68206db7c9c7368f0a034992f050bee971e4823d3d739260"

S = "${WORKDIR}/${PN}-${PV}"

inherit cmake pythonnative

# Specify any options you want to pass to cmake using EXTRA_OECMAKE:
EXTRA_OECMAKE = "\
  -DCMAKE_BUILD_TYPE=Release \
"

FILES_${PN}_append = "\
  ${libdir}/cmake \
  ${libdir}/cmake/open62541*.cmake \
"

where PV=0.2 (open62541_0.2.bb). And I see an error on install (full log:
https://gist.github.com/kratsg/5c3740ab72403595d5b9e0e855a3697f)

| CMake Error at cmake_install.cmake:40 (file):
|   file INSTALL cannot find
|
 
"/local/d4/gstark/poky/build/tmp/work/aarch64-poky-linux/open62541/0.2-r0/build/open62541.h".

So I'm wondering if I screwed up something by using the tarball instead of
a clone. I thought I translated it relatively well, and the release matches
the hash I was using.

Giordon

On Tue, Mar 6, 2018 at 1:39 PM Philip Balister  wrote:

> On 03/06/2018 02:14 PM, Giordon Stark wrote:
> > Hi Philip,
> >
> > That was it indeed! I've gotten it working. I don't see
> "python-six-native"
> > as a valid recipe in layers.openembedded.org. Is this a special case or
> is
> > there a way to identify these sorts of packages in the future?
>
> The python-six recipe should have a line like:
>
> BBCLASSEXTEND = "native"
>
> This tells bitbake it can build a native version by doing some tweaks to
> the toolchain it uses and where to put the output.
>
> Philip
>
>
> >
> > open62541-0.3+git999-r0 do_compile: NOTE: open62541: compiling from
> > external source tree
> /local/d4/gstark/poky/build/workspace/sources/open62541
> > ERROR: open62541-0.3+git999-r0 do_package: QA Issue: open62541:
> > Files/directories were installed but not shipped in any package:
> >   /usr/lib/cmake
> >   /usr/lib/cmake/open62541ConfigVersion.cmake
> >   /usr/lib/cmake/open62541Targets.cmake
> >   /usr/lib/cmake/open62541-config.cmake
> >   /usr/lib/cmake/open62541Targets-debug.cmake
> > Please set FILES such that these items are packaged. Alternatively if
> they
> > are unneeded, avoid installing them or delete them within do_install.
> > open62541: 5 installed and not shipped files. [installed-vs-shipped]
> > ERROR: open62541-0.3+git999-r0 do_package: Fatal QA errors found, failing
> > task.
> > ERROR: open62541-0.3+git999-r0 do_package: Function failed: do_package
> > ERROR: Logfile of failure stored in:
> >
> /local/d4/gstark/poky/build/tmp/work/aarch64-poky-linux/open62541/0.3+git999-r0/temp/log.do_package.14179
> > ERROR: Task
> >
> (/local/d4/gstark/poky/build/workspace/recipes/open62541/open62541_git.bb:
> do_package)
> > failed with exit code '1'
> > NOTE: Tasks Summary: Attempted 506 tasks of which 492 didn't need to be
> > rerun and 1 failed.
> >
> > Summary: 1 task failed:
> >   /local/d4/gstark/poky/build/workspace/recipes/open62541/
> open62541_git.bb:
> > do_package
> > Summary: There were 3 ERROR messages shown, returning a non-zero exit
> code.
> >
> >
> > I just need to remind myself of cleaning these files up :)
> >
> > Giordon
> >
> > On Tue, Mar 6, 2018 at 1:09 PM Philip Balister 
> wrote:
> >
> >> On 03/06/2018 01:42 PM, Burton, Ross wrote:
> >>> Add DEPENDS=python-six
> >>
> >> Maybe:
> >>
> >> DEPENDS = "python-six-native"
> >>
> >> Philip
> >>
> >>>
> >>> Ross
> >>>
> >>> On 6 March 2018 at 18:11, Giordon Stark  wrote:
> >>>
>  Hi all,
> 
>  I'm struggling with what should be a simple-ish recipe (I think). I'm
>  writing a recipe implementation for
> >> https://github.com/open62541/open62541
>   (open62541). So I start with
> 
>  devtool add open62541 https://github.com/open62541/open62541.git
> 
>  then I edit this, so it currently looks like this for me:
> 
>  SUMMARY = "OPC UA implementation"
>  LICENSE = "MPL-2.0"
>  LIC_FILES_CHKSUM =
> "file://LICENSE;md5=815ca599c9df247a0c7f619bab123dad"
>  SRC_URI = "gitsm://github.com/open62541/open62541.git;protocol=https"
>  PV = "0.3+git${SRCPV}"
>  SRCREV = "a6b99dc0579a53207b7dfe1d16423c2c1daa467e"
> 
>  S = "${WORKDIR}/git"
> 
>  # NOTE: unable to map the following CMake package dependencies: Check
>  Sphinx ClangTools LATEX MbedTLS Valgrind
>  DEPENDS = "openssl"
> 
>  inherit cmake pythonnative
> 
>  # Specify any options you want to pass to cmake using EXTRA_OECMAKE:
>  EXTRA_OECMAKE = ""
> 
>  however, when I run devtool build open62541, I 

Re: [yocto] Bitbake recipe using CMake that requires python-six as part of compiling?

2018-03-06 Thread Philip Balister
On 03/06/2018 02:14 PM, Giordon Stark wrote:
> Hi Philip,
> 
> That was it indeed! I've gotten it working. I don't see "python-six-native"
> as a valid recipe in layers.openembedded.org. Is this a special case or is
> there a way to identify these sorts of packages in the future?

The python-six recipe should have a line like:

BBCLASSEXTEND = "native"

This tells bitbake it can build a native version by doing some tweaks to
the toolchain it uses and where to put the output.

Philip


> 
> open62541-0.3+git999-r0 do_compile: NOTE: open62541: compiling from
> external source tree /local/d4/gstark/poky/build/workspace/sources/open62541
> ERROR: open62541-0.3+git999-r0 do_package: QA Issue: open62541:
> Files/directories were installed but not shipped in any package:
>   /usr/lib/cmake
>   /usr/lib/cmake/open62541ConfigVersion.cmake
>   /usr/lib/cmake/open62541Targets.cmake
>   /usr/lib/cmake/open62541-config.cmake
>   /usr/lib/cmake/open62541Targets-debug.cmake
> Please set FILES such that these items are packaged. Alternatively if they
> are unneeded, avoid installing them or delete them within do_install.
> open62541: 5 installed and not shipped files. [installed-vs-shipped]
> ERROR: open62541-0.3+git999-r0 do_package: Fatal QA errors found, failing
> task.
> ERROR: open62541-0.3+git999-r0 do_package: Function failed: do_package
> ERROR: Logfile of failure stored in:
> /local/d4/gstark/poky/build/tmp/work/aarch64-poky-linux/open62541/0.3+git999-r0/temp/log.do_package.14179
> ERROR: Task
> (/local/d4/gstark/poky/build/workspace/recipes/open62541/open62541_git.bb:do_package)
> failed with exit code '1'
> NOTE: Tasks Summary: Attempted 506 tasks of which 492 didn't need to be
> rerun and 1 failed.
> 
> Summary: 1 task failed:
>   /local/d4/gstark/poky/build/workspace/recipes/open62541/open62541_git.bb:
> do_package
> Summary: There were 3 ERROR messages shown, returning a non-zero exit code.
> 
> 
> I just need to remind myself of cleaning these files up :)
> 
> Giordon
> 
> On Tue, Mar 6, 2018 at 1:09 PM Philip Balister  wrote:
> 
>> On 03/06/2018 01:42 PM, Burton, Ross wrote:
>>> Add DEPENDS=python-six
>>
>> Maybe:
>>
>> DEPENDS = "python-six-native"
>>
>> Philip
>>
>>>
>>> Ross
>>>
>>> On 6 March 2018 at 18:11, Giordon Stark  wrote:
>>>
 Hi all,

 I'm struggling with what should be a simple-ish recipe (I think). I'm
 writing a recipe implementation for
>> https://github.com/open62541/open62541
  (open62541). So I start with

 devtool add open62541 https://github.com/open62541/open62541.git

 then I edit this, so it currently looks like this for me:

 SUMMARY = "OPC UA implementation"
 LICENSE = "MPL-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=815ca599c9df247a0c7f619bab123dad"
 SRC_URI = "gitsm://github.com/open62541/open62541.git;protocol=https"
 PV = "0.3+git${SRCPV}"
 SRCREV = "a6b99dc0579a53207b7dfe1d16423c2c1daa467e"

 S = "${WORKDIR}/git"

 # NOTE: unable to map the following CMake package dependencies: Check
 Sphinx ClangTools LATEX MbedTLS Valgrind
 DEPENDS = "openssl"

 inherit cmake pythonnative

 # Specify any options you want to pass to cmake using EXTRA_OECMAKE:
 EXTRA_OECMAKE = ""

 however, when I run devtool build open62541, I get  errors about "No
 module named six":

 | make[2]: Leaving directory '/local/d4/gstark/poky/build/

>> tmp/work/aarch64-poky-linux/open62541/0.3+git999-r0/open62541-0.3+git999'
 | Traceback (most recent call last):
 |   File "/local/d4/gstark/poky/build/workspace/sources/open62541/
 tools/nodeset_compiler/nodeset_compiler.py", line 27, in 
 | from nodeset import *
 |   File "/local/d4/gstark/poky/build/workspace/sources/open62541/
 tools/nodeset_compiler/nodeset.py", line 30, in 
 | from nodes import *
 |   File "/local/d4/gstark/poky/build/workspace/sources/open62541/
 tools/nodeset_compiler/nodes.py", line 21, in 
 | from datatypes import *
 |   File "/local/d4/gstark/poky/build/workspace/sources/open62541/
 tools/nodeset_compiler/datatypes.py", line 29, in 
 | import six
 | ImportError: No module named six
 | CMakeFiles/open62541-generator-namespace.dir/build.make:71: recipe for
 target 'src_generated/ua_namespace0.c' failed
 | make[2]: *** [src_generated/ua_namespace0.c] Error 1
 | make[2]: Leaving directory '/local/d4/gstark/poky/build/

>> tmp/work/aarch64-poky-linux/open62541/0.3+git999-r0/open62541-0.3+git999'
 | CMakeFiles/Makefile2:108: recipe for target
>> 'CMakeFiles/open62541-generator-namespace.dir/all'
 failed
 | make[1]: *** [CMakeFiles/open62541-generator-namespace.dir/all] Error
>> 2
 | make[1]: *** Waiting for unfinished jobs

 How do I get "python-six" added as part of pythonnative?

 Giordon

 --
 Giordon Stark

 --
 

Re: [yocto] Bitbake recipe using CMake that requires python-six as part of compiling?

2018-03-06 Thread Philip Balister
On 03/06/2018 01:42 PM, Burton, Ross wrote:
> Add DEPENDS=python-six

Maybe:

DEPENDS = "python-six-native"

Philip

> 
> Ross
> 
> On 6 March 2018 at 18:11, Giordon Stark  wrote:
> 
>> Hi all,
>>
>> I'm struggling with what should be a simple-ish recipe (I think). I'm
>> writing a recipe implementation for https://github.com/open62541/open62541
>>  (open62541). So I start with
>>
>> devtool add open62541 https://github.com/open62541/open62541.git
>>
>> then I edit this, so it currently looks like this for me:
>>
>> SUMMARY = "OPC UA implementation"
>> LICENSE = "MPL-2.0"
>> LIC_FILES_CHKSUM = "file://LICENSE;md5=815ca599c9df247a0c7f619bab123dad"
>> SRC_URI = "gitsm://github.com/open62541/open62541.git;protocol=https"
>> PV = "0.3+git${SRCPV}"
>> SRCREV = "a6b99dc0579a53207b7dfe1d16423c2c1daa467e"
>>
>> S = "${WORKDIR}/git"
>>
>> # NOTE: unable to map the following CMake package dependencies: Check
>> Sphinx ClangTools LATEX MbedTLS Valgrind
>> DEPENDS = "openssl"
>>
>> inherit cmake pythonnative
>>
>> # Specify any options you want to pass to cmake using EXTRA_OECMAKE:
>> EXTRA_OECMAKE = ""
>>
>> however, when I run devtool build open62541, I get  errors about "No
>> module named six":
>>
>> | make[2]: Leaving directory '/local/d4/gstark/poky/build/
>> tmp/work/aarch64-poky-linux/open62541/0.3+git999-r0/open62541-0.3+git999'
>> | Traceback (most recent call last):
>> |   File "/local/d4/gstark/poky/build/workspace/sources/open62541/
>> tools/nodeset_compiler/nodeset_compiler.py", line 27, in 
>> | from nodeset import *
>> |   File "/local/d4/gstark/poky/build/workspace/sources/open62541/
>> tools/nodeset_compiler/nodeset.py", line 30, in 
>> | from nodes import *
>> |   File "/local/d4/gstark/poky/build/workspace/sources/open62541/
>> tools/nodeset_compiler/nodes.py", line 21, in 
>> | from datatypes import *
>> |   File "/local/d4/gstark/poky/build/workspace/sources/open62541/
>> tools/nodeset_compiler/datatypes.py", line 29, in 
>> | import six
>> | ImportError: No module named six
>> | CMakeFiles/open62541-generator-namespace.dir/build.make:71: recipe for
>> target 'src_generated/ua_namespace0.c' failed
>> | make[2]: *** [src_generated/ua_namespace0.c] Error 1
>> | make[2]: Leaving directory '/local/d4/gstark/poky/build/
>> tmp/work/aarch64-poky-linux/open62541/0.3+git999-r0/open62541-0.3+git999'
>> | CMakeFiles/Makefile2:108: recipe for target 
>> 'CMakeFiles/open62541-generator-namespace.dir/all'
>> failed
>> | make[1]: *** [CMakeFiles/open62541-generator-namespace.dir/all] Error 2
>> | make[1]: *** Waiting for unfinished jobs
>>
>> How do I get "python-six" added as part of pythonnative?
>>
>> Giordon
>>
>> --
>> Giordon Stark
>>
>> --
>> ___
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>>
> 
> 
> 
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Bitbake recipe using CMake that requires python-six as part of compiling?

2018-03-06 Thread Giordon Stark
Hi Philip,

That was it indeed! I've gotten it working. I don't see "python-six-native"
as a valid recipe in layers.openembedded.org. Is this a special case or is
there a way to identify these sorts of packages in the future?

open62541-0.3+git999-r0 do_compile: NOTE: open62541: compiling from
external source tree /local/d4/gstark/poky/build/workspace/sources/open62541
ERROR: open62541-0.3+git999-r0 do_package: QA Issue: open62541:
Files/directories were installed but not shipped in any package:
  /usr/lib/cmake
  /usr/lib/cmake/open62541ConfigVersion.cmake
  /usr/lib/cmake/open62541Targets.cmake
  /usr/lib/cmake/open62541-config.cmake
  /usr/lib/cmake/open62541Targets-debug.cmake
Please set FILES such that these items are packaged. Alternatively if they
are unneeded, avoid installing them or delete them within do_install.
open62541: 5 installed and not shipped files. [installed-vs-shipped]
ERROR: open62541-0.3+git999-r0 do_package: Fatal QA errors found, failing
task.
ERROR: open62541-0.3+git999-r0 do_package: Function failed: do_package
ERROR: Logfile of failure stored in:
/local/d4/gstark/poky/build/tmp/work/aarch64-poky-linux/open62541/0.3+git999-r0/temp/log.do_package.14179
ERROR: Task
(/local/d4/gstark/poky/build/workspace/recipes/open62541/open62541_git.bb:do_package)
failed with exit code '1'
NOTE: Tasks Summary: Attempted 506 tasks of which 492 didn't need to be
rerun and 1 failed.

Summary: 1 task failed:
  /local/d4/gstark/poky/build/workspace/recipes/open62541/open62541_git.bb:
do_package
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.


I just need to remind myself of cleaning these files up :)

Giordon

On Tue, Mar 6, 2018 at 1:09 PM Philip Balister  wrote:

> On 03/06/2018 01:42 PM, Burton, Ross wrote:
> > Add DEPENDS=python-six
>
> Maybe:
>
> DEPENDS = "python-six-native"
>
> Philip
>
> >
> > Ross
> >
> > On 6 March 2018 at 18:11, Giordon Stark  wrote:
> >
> >> Hi all,
> >>
> >> I'm struggling with what should be a simple-ish recipe (I think). I'm
> >> writing a recipe implementation for
> https://github.com/open62541/open62541
> >>  (open62541). So I start with
> >>
> >> devtool add open62541 https://github.com/open62541/open62541.git
> >>
> >> then I edit this, so it currently looks like this for me:
> >>
> >> SUMMARY = "OPC UA implementation"
> >> LICENSE = "MPL-2.0"
> >> LIC_FILES_CHKSUM = "file://LICENSE;md5=815ca599c9df247a0c7f619bab123dad"
> >> SRC_URI = "gitsm://github.com/open62541/open62541.git;protocol=https"
> >> PV = "0.3+git${SRCPV}"
> >> SRCREV = "a6b99dc0579a53207b7dfe1d16423c2c1daa467e"
> >>
> >> S = "${WORKDIR}/git"
> >>
> >> # NOTE: unable to map the following CMake package dependencies: Check
> >> Sphinx ClangTools LATEX MbedTLS Valgrind
> >> DEPENDS = "openssl"
> >>
> >> inherit cmake pythonnative
> >>
> >> # Specify any options you want to pass to cmake using EXTRA_OECMAKE:
> >> EXTRA_OECMAKE = ""
> >>
> >> however, when I run devtool build open62541, I get  errors about "No
> >> module named six":
> >>
> >> | make[2]: Leaving directory '/local/d4/gstark/poky/build/
> >>
> tmp/work/aarch64-poky-linux/open62541/0.3+git999-r0/open62541-0.3+git999'
> >> | Traceback (most recent call last):
> >> |   File "/local/d4/gstark/poky/build/workspace/sources/open62541/
> >> tools/nodeset_compiler/nodeset_compiler.py", line 27, in 
> >> | from nodeset import *
> >> |   File "/local/d4/gstark/poky/build/workspace/sources/open62541/
> >> tools/nodeset_compiler/nodeset.py", line 30, in 
> >> | from nodes import *
> >> |   File "/local/d4/gstark/poky/build/workspace/sources/open62541/
> >> tools/nodeset_compiler/nodes.py", line 21, in 
> >> | from datatypes import *
> >> |   File "/local/d4/gstark/poky/build/workspace/sources/open62541/
> >> tools/nodeset_compiler/datatypes.py", line 29, in 
> >> | import six
> >> | ImportError: No module named six
> >> | CMakeFiles/open62541-generator-namespace.dir/build.make:71: recipe for
> >> target 'src_generated/ua_namespace0.c' failed
> >> | make[2]: *** [src_generated/ua_namespace0.c] Error 1
> >> | make[2]: Leaving directory '/local/d4/gstark/poky/build/
> >>
> tmp/work/aarch64-poky-linux/open62541/0.3+git999-r0/open62541-0.3+git999'
> >> | CMakeFiles/Makefile2:108: recipe for target
> 'CMakeFiles/open62541-generator-namespace.dir/all'
> >> failed
> >> | make[1]: *** [CMakeFiles/open62541-generator-namespace.dir/all] Error
> 2
> >> | make[1]: *** Waiting for unfinished jobs
> >>
> >> How do I get "python-six" added as part of pythonnative?
> >>
> >> Giordon
> >>
> >> --
> >> Giordon Stark
> >>
> >> --
> >> ___
> >> yocto mailing list
> >> yocto@yoctoproject.org
> >> https://lists.yoctoproject.org/listinfo/yocto
> >>
> >>
> >
> >
> >
>
-- 
Giordon Stark
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Bitbake recipe using CMake that requires python-six as part of compiling?

2018-03-06 Thread Giordon Stark
More specifically, the problem is that "six" is not a package that was
installed as part of pythonnative:

kratsg@dc:/local/d4/gstark/poky/build$
/local/d4/gstark/poky/build/tmp/work/aarch64-poky-linux/open62541/0.3+git999-r0/recipe-sysroot-native/usr/bin/python-native/python
Python 2.7.13 (default, Jan  3 2018, 08:10:02)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import six
Traceback (most recent call last):
  File "", line 1, in 
ImportError: No module named six
>>> import sys
>>> sys.path
['', '/users/kratsg/L1TriggerAnalysis/.local/lib/python2.6/site-packages',
'/local/d4/gstark/poky/build',
'/local/d4/gstark/poky/build/tmp/work/aarch64-poky-linux/open62541/0.3+git999-r0/recipe-sysroot-native/usr/lib/python27.zip',
'/local/d4/gstark/poky/build/tmp/work/aarch64-poky-linux/open62541/0.3+git999-r0/recipe-sysroot-native/usr/lib/python2.7',
'/local/d4/gstark/poky/build/tmp/work/aarch64-poky-linux/open62541/0.3+git999-r0/recipe-sysroot-native/usr/lib/python2.7/plat-linux2',
'/local/d4/gstark/poky/build/tmp/work/aarch64-poky-linux/open62541/0.3+git999-r0/recipe-sysroot-native/usr/lib/python2.7/lib-tk',
'/local/d4/gstark/poky/build/tmp/work/aarch64-poky-linux/open62541/0.3+git999-r0/recipe-sysroot-native/usr/lib/python2.7/lib-old',
'/local/d4/gstark/poky/build/tmp/work/aarch64-poky-linux/open62541/0.3+git999-r0/recipe-sysroot-native/usr/lib/python2.7/lib-dynload',
'/local/d4/gstark/poky/build/tmp/work/aarch64-poky-linux/open62541/0.3+git999-r0/recipe-sysroot-native/usr/lib/python2.7/site-packages']

And I have a hard time googling/searching to figure out how to solve this
since most answers are about installing python packages on a target
machine, rather than for the host's pythonnative.

Giordon


On Tue, Mar 6, 2018 at 12:50 PM Giordon Stark  wrote:

> Hi,
>
> I tried this and it didn't work.
>
> Giordon
> On Tue, Mar 6, 2018 at 12:43 Burton, Ross  wrote:
>
>> Add DEPENDS=python-six
>>
>> Ross
>>
>> On 6 March 2018 at 18:11, Giordon Stark  wrote:
>>
>>> Hi all,
>>>
>>> I'm struggling with what should be a simple-ish recipe (I think). I'm
>>> writing a recipe implementation for
>>> https://github.com/open62541/open62541 (open62541). So I start with
>>>
>>> devtool add open62541 https://github.com/open62541/open62541.git
>>>
>>> then I edit this, so it currently looks like this for me:
>>>
>>> SUMMARY = "OPC UA implementation"
>>> LICENSE = "MPL-2.0"
>>> LIC_FILES_CHKSUM = "file://LICENSE;md5=815ca599c9df247a0c7f619bab123dad"
>>> SRC_URI = "gitsm://github.com/open62541/open62541.git;protocol=https"
>>> PV = "0.3+git${SRCPV}"
>>> SRCREV = "a6b99dc0579a53207b7dfe1d16423c2c1daa467e"
>>>
>>> S = "${WORKDIR}/git"
>>>
>>> # NOTE: unable to map the following CMake package dependencies: Check
>>> Sphinx ClangTools LATEX MbedTLS Valgrind
>>> DEPENDS = "openssl"
>>>
>>> inherit cmake pythonnative
>>>
>>> # Specify any options you want to pass to cmake using EXTRA_OECMAKE:
>>> EXTRA_OECMAKE = ""
>>>
>>> however, when I run devtool build open62541, I get  errors about "No
>>> module named six":
>>>
>>> | make[2]: Leaving directory
>>> '/local/d4/gstark/poky/build/tmp/work/aarch64-poky-linux/open62541/0.3+git999-r0/open62541-0.3+git999'
>>> | Traceback (most recent call last):
>>> |   File
>>> "/local/d4/gstark/poky/build/workspace/sources/open62541/tools/nodeset_compiler/nodeset_compiler.py",
>>> line 27, in 
>>> | from nodeset import *
>>> |   File
>>> "/local/d4/gstark/poky/build/workspace/sources/open62541/tools/nodeset_compiler/nodeset.py",
>>> line 30, in 
>>> | from nodes import *
>>> |   File
>>> "/local/d4/gstark/poky/build/workspace/sources/open62541/tools/nodeset_compiler/nodes.py",
>>> line 21, in 
>>> | from datatypes import *
>>> |   File
>>> "/local/d4/gstark/poky/build/workspace/sources/open62541/tools/nodeset_compiler/datatypes.py",
>>> line 29, in 
>>> | import six
>>> | ImportError: No module named six
>>> | CMakeFiles/open62541-generator-namespace.dir/build.make:71: recipe for
>>> target 'src_generated/ua_namespace0.c' failed
>>> | make[2]: *** [src_generated/ua_namespace0.c] Error 1
>>> | make[2]: Leaving directory
>>> '/local/d4/gstark/poky/build/tmp/work/aarch64-poky-linux/open62541/0.3+git999-r0/open62541-0.3+git999'
>>> | CMakeFiles/Makefile2:108: recipe for target
>>> 'CMakeFiles/open62541-generator-namespace.dir/all' failed
>>> | make[1]: *** [CMakeFiles/open62541-generator-namespace.dir/all] Error 2
>>> | make[1]: *** Waiting for unfinished jobs
>>>
>>> How do I get "python-six" added as part of pythonnative?
>>>
>>> Giordon
>>>
>>> --
>>> Giordon Stark
>>>
>>> --
>>> ___
>>> yocto mailing list
>>> yocto@yoctoproject.org
>>> https://lists.yoctoproject.org/listinfo/yocto
>>>
>>> --
> Giordon Stark
>
-- 
Giordon Stark
-- 
___
yocto mailing list
yocto@yoctoproject.org

Re: [yocto] Bitbake recipe using CMake that requires python-six as part of compiling?

2018-03-06 Thread Giordon Stark
Hi,

I tried this and it didn't work.

Giordon
On Tue, Mar 6, 2018 at 12:43 Burton, Ross  wrote:

> Add DEPENDS=python-six
>
> Ross
>
> On 6 March 2018 at 18:11, Giordon Stark  wrote:
>
>> Hi all,
>>
>> I'm struggling with what should be a simple-ish recipe (I think). I'm
>> writing a recipe implementation for
>> https://github.com/open62541/open62541 (open62541). So I start with
>>
>> devtool add open62541 https://github.com/open62541/open62541.git
>>
>> then I edit this, so it currently looks like this for me:
>>
>> SUMMARY = "OPC UA implementation"
>> LICENSE = "MPL-2.0"
>> LIC_FILES_CHKSUM = "file://LICENSE;md5=815ca599c9df247a0c7f619bab123dad"
>> SRC_URI = "gitsm://github.com/open62541/open62541.git;protocol=https"
>> PV = "0.3+git${SRCPV}"
>> SRCREV = "a6b99dc0579a53207b7dfe1d16423c2c1daa467e"
>>
>> S = "${WORKDIR}/git"
>>
>> # NOTE: unable to map the following CMake package dependencies: Check
>> Sphinx ClangTools LATEX MbedTLS Valgrind
>> DEPENDS = "openssl"
>>
>> inherit cmake pythonnative
>>
>> # Specify any options you want to pass to cmake using EXTRA_OECMAKE:
>> EXTRA_OECMAKE = ""
>>
>> however, when I run devtool build open62541, I get  errors about "No
>> module named six":
>>
>> | make[2]: Leaving directory
>> '/local/d4/gstark/poky/build/tmp/work/aarch64-poky-linux/open62541/0.3+git999-r0/open62541-0.3+git999'
>> | Traceback (most recent call last):
>> |   File
>> "/local/d4/gstark/poky/build/workspace/sources/open62541/tools/nodeset_compiler/nodeset_compiler.py",
>> line 27, in 
>> | from nodeset import *
>> |   File
>> "/local/d4/gstark/poky/build/workspace/sources/open62541/tools/nodeset_compiler/nodeset.py",
>> line 30, in 
>> | from nodes import *
>> |   File
>> "/local/d4/gstark/poky/build/workspace/sources/open62541/tools/nodeset_compiler/nodes.py",
>> line 21, in 
>> | from datatypes import *
>> |   File
>> "/local/d4/gstark/poky/build/workspace/sources/open62541/tools/nodeset_compiler/datatypes.py",
>> line 29, in 
>> | import six
>> | ImportError: No module named six
>> | CMakeFiles/open62541-generator-namespace.dir/build.make:71: recipe for
>> target 'src_generated/ua_namespace0.c' failed
>> | make[2]: *** [src_generated/ua_namespace0.c] Error 1
>> | make[2]: Leaving directory
>> '/local/d4/gstark/poky/build/tmp/work/aarch64-poky-linux/open62541/0.3+git999-r0/open62541-0.3+git999'
>> | CMakeFiles/Makefile2:108: recipe for target
>> 'CMakeFiles/open62541-generator-namespace.dir/all' failed
>> | make[1]: *** [CMakeFiles/open62541-generator-namespace.dir/all] Error 2
>> | make[1]: *** Waiting for unfinished jobs
>>
>> How do I get "python-six" added as part of pythonnative?
>>
>> Giordon
>>
>> --
>> Giordon Stark
>>
>> --
>> ___
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>> --
Giordon Stark
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Bitbake recipe using CMake that requires python-six as part of compiling?

2018-03-06 Thread Burton, Ross
Add DEPENDS=python-six

Ross

On 6 March 2018 at 18:11, Giordon Stark  wrote:

> Hi all,
>
> I'm struggling with what should be a simple-ish recipe (I think). I'm
> writing a recipe implementation for https://github.com/open62541/open62541
>  (open62541). So I start with
>
> devtool add open62541 https://github.com/open62541/open62541.git
>
> then I edit this, so it currently looks like this for me:
>
> SUMMARY = "OPC UA implementation"
> LICENSE = "MPL-2.0"
> LIC_FILES_CHKSUM = "file://LICENSE;md5=815ca599c9df247a0c7f619bab123dad"
> SRC_URI = "gitsm://github.com/open62541/open62541.git;protocol=https"
> PV = "0.3+git${SRCPV}"
> SRCREV = "a6b99dc0579a53207b7dfe1d16423c2c1daa467e"
>
> S = "${WORKDIR}/git"
>
> # NOTE: unable to map the following CMake package dependencies: Check
> Sphinx ClangTools LATEX MbedTLS Valgrind
> DEPENDS = "openssl"
>
> inherit cmake pythonnative
>
> # Specify any options you want to pass to cmake using EXTRA_OECMAKE:
> EXTRA_OECMAKE = ""
>
> however, when I run devtool build open62541, I get  errors about "No
> module named six":
>
> | make[2]: Leaving directory '/local/d4/gstark/poky/build/
> tmp/work/aarch64-poky-linux/open62541/0.3+git999-r0/open62541-0.3+git999'
> | Traceback (most recent call last):
> |   File "/local/d4/gstark/poky/build/workspace/sources/open62541/
> tools/nodeset_compiler/nodeset_compiler.py", line 27, in 
> | from nodeset import *
> |   File "/local/d4/gstark/poky/build/workspace/sources/open62541/
> tools/nodeset_compiler/nodeset.py", line 30, in 
> | from nodes import *
> |   File "/local/d4/gstark/poky/build/workspace/sources/open62541/
> tools/nodeset_compiler/nodes.py", line 21, in 
> | from datatypes import *
> |   File "/local/d4/gstark/poky/build/workspace/sources/open62541/
> tools/nodeset_compiler/datatypes.py", line 29, in 
> | import six
> | ImportError: No module named six
> | CMakeFiles/open62541-generator-namespace.dir/build.make:71: recipe for
> target 'src_generated/ua_namespace0.c' failed
> | make[2]: *** [src_generated/ua_namespace0.c] Error 1
> | make[2]: Leaving directory '/local/d4/gstark/poky/build/
> tmp/work/aarch64-poky-linux/open62541/0.3+git999-r0/open62541-0.3+git999'
> | CMakeFiles/Makefile2:108: recipe for target 
> 'CMakeFiles/open62541-generator-namespace.dir/all'
> failed
> | make[1]: *** [CMakeFiles/open62541-generator-namespace.dir/all] Error 2
> | make[1]: *** Waiting for unfinished jobs
>
> How do I get "python-six" added as part of pythonnative?
>
> Giordon
>
> --
> Giordon Stark
>
> --
> ___
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto