[yocto] Install a pre-build ipkg package at build time

2018-11-02 Thread João Gonçalves
Hi all,

I have some pre-build opkg packages and I need to install them on my target
image, is this possible?
I tried to use the bin_package class but I didn't found any example, I'm
also not sure if it can be used this way or just to install the data files
extracted from the ipkg file. Anyway I also tried to extract the binary
files form the package and use the bin_package class to install them, but
with no success.

Does anyone have any example of this?

Thanks,
João Gonçalves
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Install a pre-build ipkg package at build time

2018-11-07 Thread João Gonçalves
Thanks, I didn't know that I could point SRC_URI to a ipk just like a
regullar tar file.
I did that, pointed to our ipk server and it could download the ipk file.
However during the do_rootfs task i got the following error:

ERROR: kelvin-base-image-2.8b4-r0 do_rootfs: Error executing a python
function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: 
 0001:
 *** 0002:license_create_manifest(d)
 0003:
File:
'/home/joao/imx6/build/../layers/openembedded-core/meta/classes/license.bbclass',
lineno: 48, function: license_create_manifest
 0044:pkg_dic = {}
 0045:for pkg in sorted(image_list_installed_packages(d)):
 0046:pkg_info = os.path.join(d.getVar('PKGDATA_DIR'),
 0047:'runtime-reverse', pkg)
 *** 0048:pkg_name = os.path.basename(os.readlink(pkg_info))
 0049:
 0050:pkg_dic[pkg_name] =
oe.packagedata.read_pkgdatafile(pkg_info)
 0051:if not "LICENSE" in pkg_dic[pkg_name].keys():
 0052:pkg_lic_name = "LICENSE_" + pkg_name
Exception: FileNotFoundError: [Errno 2] No such file or directory:
'/home/joao/imx6/build/tmp-glibc/pkgdata/apalis-imx6/runtime-reverse/python36'

ERROR: kelvin-base-image-2.8b4-r0 do_rootfs: Function failed:
license_create_manifest
ERROR: Logfile of failure stored in:
/home/joao/imx6/build/tmp-glibc/work/apalis_imx6-angstrom-linux-gnueabi/kelvin-base-image/2.8b4-r0/temp/log.do_rootfs.1303
ERROR: Task
(/home/joao/imx6/layers/meta-kelvin/recipes-images/images/kelvin-base-image_0.2.bb:do_rootfs)
failed with exit code '1'

I used "CLOSED" as license, i also tried put a MIT license the on "file:.."
of the recipe. I got the same error. Maybe it is because I do not have a
license file inside the ipk package, I'll test put a license file in a
package and try to install it.
I'am using a set of layers provided by our board vendor and they are using
rocko version.

I could "hide" the problem by putting  the whole body of
the license_create_manifest function of the license.bbclass inside a
try-except block.
It worked but that's not a solution.

Khem Raj  escreveu no dia sexta, 2/11/2018 à(s) 16:50:

> On Fri, Nov 2, 2018 at 8:48 AM João Gonçalves
>  wrote:
> >
> > Hi all,
> >
> > I have some pre-build opkg packages and I need to install them on my
> target image, is this possible?
> > I tried to use the bin_package class but I didn't found any example, I'm
> also not sure if it can be used this way or just to install the data files
> extracted from the ipkg file. Anyway I also tried to extract the binary
> files form the package and use the bin_package class to install them, but
> with no success.
> >
> > Does anyone have any example of this?
> >
>
> once you point SRC_URI to your ipk
> inherit bin_package should be then able to help in repackaging it
> you have to post specific errors so we can see what might be going on
>
> > Thanks,
> > João Gonçalves
> > --
> > ___
> > yocto mailing list
> > yocto@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/yocto
>
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Error: file provided by multiple packages

2019-01-22 Thread João Gonçalves
I'm using master branch or embedded core to build a most recent toolchain
with gcc 8.2 (I previously had 7.3 but it didn't provide the libstdc++fs
that I needed).

I almost made this build work but now I'm having the following error on my
image do_rootfs:

Package systemd wants to install file
/home/joao/master_imx6/build/tmp-glibc/work/thomson_apalis_imx6-angstrom-linux-gnueabi/kelvin-base-image/0.2.4-r0/thomson-apalis-imx6_kelvin-base-image_2.8.5/rootfs/etc/systemd/journald.conf
But that file is already provided by package  * systemd-conf

Then I checked that systemd_239.bb do_install() remove installed conf files
that should be handled by systemd-conf.
What I suppose is that systemd-conf do_install() is executed first and then
systemd do_install() eventually breaks when installs the file (before
removing it).

Does anyone know if is possible to specify the install order? or if this is
really the problem

Thanks,
Joao Goncalves
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Error: file provided by multiple packages

2019-01-23 Thread João Gonçalves
I just found that one systemd append recipe was installed the conflict file.
Fixed.

João Gonçalves  escreveu no dia terça,
22/01/2019 à(s) 22:11:

> I'm using master branch or embedded core to build a most recent toolchain
> with gcc 8.2 (I previously had 7.3 but it didn't provide the libstdc++fs
> that I needed).
>
> I almost made this build work but now I'm having the following error on my
> image do_rootfs:
>
> Package systemd wants to install file
> /home/joao/master_imx6/build/tmp-glibc/work/thomson_apalis_imx6-angstrom-linux-gnueabi/kelvin-base-image/0.2.4-r0/thomson-apalis-imx6_kelvin-base-image_2.8.5/rootfs/etc/systemd/journald.conf
> But that file is already provided by package  * systemd-conf
>
> Then I checked that systemd_239.bb do_install() remove installed conf
> files that should be handled by systemd-conf.
> What I suppose is that systemd-conf do_install() is executed first and
> then systemd do_install() eventually breaks when installs the file (before
> removing it).
>
> Does anyone know if is possible to specify the install order? or if this
> is really the problem
>
> Thanks,
> Joao Goncalves
>
>
>
>
>
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] libstdc++fs on toolchain

2019-01-24 Thread João Gonçalves
Hello,
I'm trying to build a c++ cross toolchain to compile to imx6 (armv7). But I
need libstdc++fs library, which does not come with it. Until gcc 8.0 this
is an experimental library.

I've tested with gcc 7.3 and with gcc 8.2 and and none have the libstdc++fs
library.
On my host machine the library is at
/usr/lib/gcc/x86_64-linux-gnu/7/libstdc++fs.a

Does anyone know how to include this library on a yocto generated toolchain?

Thank you,
Joao Goncalves
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] libstdc++fs on toolchain

2019-01-24 Thread João Gonçalves
>
> > I've tested with gcc 7.3 and with gcc 8.2 and and none have the
> libstdc++fs
> > library.
> > On my host machine the library is at
> > /usr/lib/gcc/x86_64-linux-gnu/7/libstdc++fs.a
> >
> > Does anyone know how to include this library on a yocto generated
> toolchain?
>
> At least on x86 targets, it's available from gcc-runtime recipe and
> libstdc++-staticdev binary package on sumo/yocto 2.5 and later.
>

Yes, It is available on libstdc++-staticdev, thank you
But now it wasn't installed on toolchain sysroot  (built with my image
do_populate_sdk)

I tested adding libstdc++-staticdev to IMAGE_INSTALL.

Adding it to TOOLCHAIN_TARGET_TASK and TOOLCHAIN_HOST_TASK make the
populate_sdk fail.

Isn't  the TOOLCHAIN_HOST_TASK the right way to add a package only to the
toolchain?
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] qemu segmentation fault on gobject-introspection

2019-02-20 Thread João Gonçalves
Hello,
when trying to migrate my build to master branch of oe layers I got this
qemu segmentation fault during gobject-introspection.
Does anyone have any clue on this?

Thank you,
João Gonçalves

| qemu: uncaught target signal 11 (Segmentation fault) - core dumped
| Segmentation fault (core dumped)
| If the above error message is about missing .so libraries, then setting
up GIR_EXTRA_LIBS_PATH in the recipe should help.
| (typically like this: GIR_EXTRA_LIBS_PATH="${B}/something/.libs" )
| Command
'['/home/joao/poky_imx6/build/tmp-glibc/work/cortexa9t2hf-neon-angstrom-linux-gnueabi/gobject-introspection/1.58.3-r0/build/g-ir-scanner-qemuwrapper',
'/home/joao/poky_imx6/build/tmp-glibc/work/cortexa9t2hf-neon-angstrom-linux-gnueabi/gobject-introspection/1.58.3-r0/build/tmp-introspect5euoldbk/GLib-2.0',
'--introspect-dump=/home/joao/poky_imx6/build/tmp-glibc/work/cortexa9t2hf-neon-angstrom-linux-gnueabi/gobject-introspection/1.58.3-r0/build/tmp-introspect5euoldbk/functions.txt,/home/joao/poky_imx6/build/tmp-glibc/work/cortexa9t2hf-neon-angstrom-linux-gnueabi/gobject-introspection/1.58.3-r0/build/tmp-introspect5euoldbk/dump.xml']'
returned non-zero exit status 1.
| ninja: build stopped: subcommand failed.
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at
/home/joao/poky_imx6/build/tmp-glibc/work/cortexa9t2hf-neon-angstrom-linux-gnueabi/gobject-introspection/1.58.3-r0/temp/log.do_compile.20894)
ERROR: Task
(/home/joao/poky_imx6/poky/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.58.3.bb:do_compile)
failed with exit code '1'
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto