* What is the correct way to get a list of package run-time dependencies during the build process?
@ 2016-02-05 8:27 Reshetova, Elena
2016-02-05 9:12 ` Burton, Ross
0 siblings, 1 reply; 8+ messages in thread
From: Reshetova, Elena @ 2016-02-05 8:27 UTC (permalink / raw)
To: yocto
[-- Attachment #1.1: Type: text/plain, Size: 477 bytes --]
Hi,
I noticed that during the build bitbake supplies you rather correct (if it
is correct in the recipe) list of recipe build-time dependencies. However,
this isn't true for run-time dependencies. Moreover it seems that when you
define a recipe you don't have to list run-time dependencies, but rather
than package manager would figure it out.
But is there a way to get this info from bitbake during the build?
Best Regards,
Elena.
[-- Attachment #1.2: Type: text/html, Size: 2595 bytes --]
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 7586 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: What is the correct way to get a list of package run-time dependencies during the build process?
2016-02-05 8:27 What is the correct way to get a list of package run-time dependencies during the build process? Reshetova, Elena
@ 2016-02-05 9:12 ` Burton, Ross
2016-02-05 9:20 ` Reshetova, Elena
2016-02-05 10:45 ` Reshetova, Elena
0 siblings, 2 replies; 8+ messages in thread
From: Burton, Ross @ 2016-02-05 9:12 UTC (permalink / raw)
To: Reshetova, Elena; +Cc: yocto
[-- Attachment #1: Type: text/plain, Size: 600 bytes --]
On 5 February 2016 at 08:27, Reshetova, Elena <elena.reshetova@intel.com>
wrote:
> I noticed that during the build bitbake supplies you rather correct (if it
> is correct in the recipe) list of recipe build-time dependencies. However,
> this isn’t true for run-time dependencies. Moreover it seems that when you
> define a recipe you don’t have to list run-time dependencies, but rather
> than package manager would figure it out.
>
>
After do_package has run the dependencies will be correct, but until that
point the runtime library dependencies won't have been extracted.
Ross
[-- Attachment #2: Type: text/html, Size: 1031 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: What is the correct way to get a list of package run-time dependencies during the build process?
2016-02-05 9:12 ` Burton, Ross
@ 2016-02-05 9:20 ` Reshetova, Elena
2016-02-05 10:45 ` Reshetova, Elena
1 sibling, 0 replies; 8+ messages in thread
From: Reshetova, Elena @ 2016-02-05 9:20 UTC (permalink / raw)
To: Burton, Ross; +Cc: yocto
[-- Attachment #1.1: Type: text/plain, Size: 734 bytes --]
On 5 February 2016 at 08:27, Reshetova, Elena < <mailto:elena.reshetova@intel.com> elena.reshetova@intel.com> wrote:
I noticed that during the build bitbake supplies you rather correct (if it is correct in the recipe) list of recipe build-time dependencies. However, this isn’t true for run-time dependencies. Moreover it seems that when you define a recipe you don’t have to list run-time dependencies, but rather than package manager would figure it out.
After do_package has run the dependencies will be correct, but until that point the runtime library dependencies won't have been extracted.
Oh, this is a great advice. Thank you Ross! This would save me another headache :)
Best Regards,
Elena.
[-- Attachment #1.2: Type: text/html, Size: 3357 bytes --]
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 7586 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: What is the correct way to get a list of package run-time dependencies during the build process?
2016-02-05 9:12 ` Burton, Ross
2016-02-05 9:20 ` Reshetova, Elena
@ 2016-02-05 10:45 ` Reshetova, Elena
2016-02-08 16:04 ` Burton, Ross
1 sibling, 1 reply; 8+ messages in thread
From: Reshetova, Elena @ 2016-02-05 10:45 UTC (permalink / raw)
To: Burton, Ross; +Cc: yocto
[-- Attachment #1.1: Type: text/plain, Size: 1013 bytes --]
On 5 February 2016 at 08:27, Reshetova, Elena < <mailto:elena.reshetova@intel.com> elena.reshetova@intel.com> wrote:
I noticed that during the build bitbake supplies you rather correct (if it is correct in the recipe) list of recipe build-time dependencies. However, this isn’t true for run-time dependencies. Moreover it seems that when you define a recipe you don’t have to list run-time dependencies, but rather than package manager would figure it out.
>After do_package has run the dependencies will be correct, but until that point the runtime library dependencies won't have been extracted.
Actually my task seems to run after do_package has already run, but I don’t have RDEPENDS filled with anything useful. How you supposed to query them from bitbake? I was trying these variants:
recipe.r_deps = d.getVar('RDEPENDS_' + <http://recipe.name> recipe.name, True)
or even simple:
recipe.r_deps = d.getVar('RDEPENDS’, True)
Best Regards,
Elena.
[-- Attachment #1.2: Type: text/html, Size: 3857 bytes --]
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 7586 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: What is the correct way to get a list of package run-time dependencies during the build process?
2016-02-05 10:45 ` Reshetova, Elena
@ 2016-02-08 16:04 ` Burton, Ross
2016-02-08 16:20 ` Reshetova, Elena
0 siblings, 1 reply; 8+ messages in thread
From: Burton, Ross @ 2016-02-08 16:04 UTC (permalink / raw)
To: Reshetova, Elena; +Cc: yocto
[-- Attachment #1: Type: text/plain, Size: 285 bytes --]
On 5 February 2016 at 10:45, Reshetova, Elena <elena.reshetova@intel.com>
wrote:
> recipe.r_deps = d.getVar('RDEPENDS_' + recipe.name, True)
>
>
>
> or even simple:
>
>
>
> recipe.r_deps = d.getVar('RDEPENDS’, True)
>
>
Did you mean RDEPENDS_ + package name?
Ross
[-- Attachment #2: Type: text/html, Size: 1075 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: What is the correct way to get a list of package run-time dependencies during the build process?
2016-02-08 16:04 ` Burton, Ross
@ 2016-02-08 16:20 ` Reshetova, Elena
2016-02-08 16:57 ` Burton, Ross
0 siblings, 1 reply; 8+ messages in thread
From: Reshetova, Elena @ 2016-02-08 16:20 UTC (permalink / raw)
To: Burton, Ross; +Cc: yocto
[-- Attachment #1.1: Type: text/plain, Size: 521 bytes --]
On 5 February 2016 at 10:45, Reshetova, Elena <elena.reshetova@intel.com <mailto:elena.reshetova@intel.com> > wrote:
recipe.r_deps = d.getVar('RDEPENDS_' + <http://recipe.name> recipe.name, True)
or even simple:
recipe.r_deps = d.getVar('RDEPENDS’, True)
>Did you mean RDEPENDS_ + package name?
I have it like this:
recipe.name = d.getVar('PN', True)
recipe.r_deps = d.getVar('RDEPENDS_' + <http://recipe.name> recipe.name, True)
Best Regards,
Elena.
[-- Attachment #1.2: Type: text/html, Size: 4162 bytes --]
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 7586 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: What is the correct way to get a list of package run-time dependencies during the build process?
2016-02-08 16:20 ` Reshetova, Elena
@ 2016-02-08 16:57 ` Burton, Ross
2016-02-09 7:42 ` Reshetova, Elena
0 siblings, 1 reply; 8+ messages in thread
From: Burton, Ross @ 2016-02-08 16:57 UTC (permalink / raw)
To: Reshetova, Elena; +Cc: yocto
[-- Attachment #1: Type: text/plain, Size: 794 bytes --]
On 8 February 2016 at 16:20, Reshetova, Elena <elena.reshetova@intel.com>
wrote:
> >Did you mean RDEPENDS_ + package name?
>
>
>
> I have it like this:
>
>
>
> recipe.name = d.getVar('PN', True)
>
> recipe.r_deps = d.getVar('RDEPENDS_' + recipe.name, True)
>
So I wasn't quite right - I think you also need to come after
do_packagedata and also you'll need to read the subpackage metadata.
Inspired by insane.bbclass, this works:
addtask printrdeps before do_build after do_package do_packagedata
do_printrdeps[nostamp] = "1"
python do_printrdeps() {
bb.build.exec_func("read_subpackage_metadata", d)
for p in d.getVar("PACKAGES", True).split():
bb.warn("Got package %s" % p)
bb.warn("Got RDEPENDS %s" % d.getVar("RDEPENDS_" + p, True))
}
[-- Attachment #2: Type: text/html, Size: 2389 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: What is the correct way to get a list of package run-time dependencies during the build process?
2016-02-08 16:57 ` Burton, Ross
@ 2016-02-09 7:42 ` Reshetova, Elena
0 siblings, 0 replies; 8+ messages in thread
From: Reshetova, Elena @ 2016-02-09 7:42 UTC (permalink / raw)
To: Burton, Ross; +Cc: yocto
[-- Attachment #1.1: Type: text/plain, Size: 643 bytes --]
>So I wasn't quite right - I think you also need to come after do_packagedata
>and also you'll need to read the subpackage metadata. Inspired by
>insane.bbclass, this works:
>addtask printrdeps before do_build after do_package do_packagedata
>do_printrdeps[nostamp] = "1"
>python do_printrdeps() {
> bb.build.exec_func("read_subpackage_metadata", d)
> for p in d.getVar("PACKAGES", True).split():
> bb.warn("Got package %s" % p)
> bb.warn("Got RDEPENDS %s" % d.getVar("RDEPENDS_" + p, True))
>}
Yes, this actually works. Thank you very much Ross!
Best Regards,
Elena.
[-- Attachment #1.2: Type: text/html, Size: 4064 bytes --]
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 7586 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2016-02-09 7:42 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-05 8:27 What is the correct way to get a list of package run-time dependencies during the build process? Reshetova, Elena
2016-02-05 9:12 ` Burton, Ross
2016-02-05 9:20 ` Reshetova, Elena
2016-02-05 10:45 ` Reshetova, Elena
2016-02-08 16:04 ` Burton, Ross
2016-02-08 16:20 ` Reshetova, Elena
2016-02-08 16:57 ` Burton, Ross
2016-02-09 7:42 ` Reshetova, Elena
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.