c++ - Is runtime dependency possible by including a header file? -


the case is: there ipk called , called b.
b has runtime dependency (according bitbake recipe of a)
however, source file in b has #include <some_header_in_a>
looks build dependency me, cannot explain myself why bitbake recipe functions runtime dependency.
appreciated, link explanatory tutorial.

recall answer other question.

  • if t depends on p t's do_configure task made depend on p's do_populate_sysroot task.

  • if t rdepends on p t's do_build task ia made depend on p's do_package_write task.

so fact b rdepends on a means a has passed stages right through do_package_write when b built, including do_populate_sysroot. therefore headers a exports sysroot there when b built, , buildtime dependency satisfied.

if b includes headers exported a, is buildtime dependency. not exclude b having runtime dependency on a. in fact case if b runtime-dependent on a buildtime-dependent on a, precisely because (for c/c++ packages) runtime dependency means building b needs headers a.

if recipe only specifies b rdepends on a, needs tiny bit of luck succeed. if happened case b's do_configure included check existence of a headers, and of dependencies in play made possible b's do_configure run before a's do_populate_sysroot finished, that check a headers fail.

for recipe correct , safe, should specify both b rdepends on a and b depends on a.


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -