* Install a pre-build ipkg package at build time
@ 2018-10-31 1:04 João Gonçalves
2018-11-02 16:50 ` Khem Raj
0 siblings, 1 reply; 4+ messages in thread
From: João Gonçalves @ 2018-10-31 1:04 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 500 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 651 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Install a pre-build ipkg package at build time
2018-10-31 1:04 Install a pre-build ipkg package at build time João Gonçalves
@ 2018-11-02 16:50 ` Khem Raj
2018-11-05 15:44 ` João Gonçalves
0 siblings, 1 reply; 4+ messages in thread
From: Khem Raj @ 2018-11-02 16:50 UTC (permalink / raw)
To: joao.jfgoncalves; +Cc: Yocto Project
On Fri, Nov 2, 2018 at 8:48 AM João Gonçalves
<joao.jfgoncalves@gmail.com> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Install a pre-build ipkg package at build time
2018-11-02 16:50 ` Khem Raj
@ 2018-11-05 15:44 ` João Gonçalves
2018-11-05 16:57 ` Khem Raj
0 siblings, 1 reply; 4+ messages in thread
From: João Gonçalves @ 2018-11-05 15:44 UTC (permalink / raw)
To: raj.khem; +Cc: yocto
[-- Attachment #1: Type: text/plain, Size: 3363 bytes --]
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: <module>
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 <raj.khem@gmail.com> escreveu no dia sexta, 2/11/2018 à(s) 16:50:
> On Fri, Nov 2, 2018 at 8:48 AM João Gonçalves
> <joao.jfgoncalves@gmail.com> 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
>
[-- Attachment #2: Type: text/html, Size: 4439 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Install a pre-build ipkg package at build time
2018-11-05 15:44 ` João Gonçalves
@ 2018-11-05 16:57 ` Khem Raj
0 siblings, 0 replies; 4+ messages in thread
From: Khem Raj @ 2018-11-05 16:57 UTC (permalink / raw)
To: João Gonçalves; +Cc: Yocto Project
On Mon, Nov 5, 2018 at 7:44 AM João Gonçalves
<joao.jfgoncalves@gmail.com> wrote:
>
> 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: <module>
> 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.
hopefully this will fix 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 <raj.khem@gmail.com> escreveu no dia sexta, 2/11/2018 à(s) 16:50:
>>
>> On Fri, Nov 2, 2018 at 8:48 AM João Gonçalves
>> <joao.jfgoncalves@gmail.com> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-11-05 16:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-31 1:04 Install a pre-build ipkg package at build time João Gonçalves
2018-11-02 16:50 ` Khem Raj
2018-11-05 15:44 ` João Gonçalves
2018-11-05 16:57 ` Khem Raj
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.