On Thu, 2016-06-09 at 17:47 +0300, Ovidiu-Adrian Vancea wrote: > At do_package time I can't modify the variables RDEPENDS, RRECOMMENDS > and RSUGGESTS as stated in the following email: > http://lists.openembedded.org/pipermail/bitbake-devel/2013-April/0034 > 16 > .html
In general that email is correct, changes to the variables won't propergate between tasks. There is an exception in the do_package -> do_package_write_xxx process. These use emit_pkgdata() to save the data and read_subpackage_metadata() to read the data back in. Not all variables are covered, but the ones you mention above are. As long as you modify them somewhere during do_package such as adding a function to PACKAGESPLITFUNCS, the changes will persist in the packaging. > I've tried the smallest changes to these 3 fields but without > success, > confirming what was said in the email. > I do manage to get the auto pr data (Version=4.1+git168+a7e53ecc27- > r0.73 - notice r0.73) that I need to version the dependencies. > > At variable loading time I could globally change RDEPENDS, > RRECOMMENDS > and RSUGGESTS but I can't get the auto pr data. Since I have no auto > pr > data, I can go as far as getting Version=4.1+gitAUTOINC+a7e53ecc27-r0 > (notice r0, not r0.73) which is incomplete. > > The only place I've actually managed to insert the data was at > package > creation time (ipk, deb, rpm), which I agree is ugly but I've not > found > another to get me where I need. See above, I believe you can change these values and other recipes do this as long as its somewhere within the do_package task. Cheers, Richard -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core