Re: [yocto] Detecting missing build dependencies
On 27 January 2016 at 15:29, Ulf Magnussonwrote: > 1) Why does test-dependencies.sh remove TMPDIR instead of just wiping the > sysroots? > For the thorough testing that test-dependencies does you could argue that entirely wiping tmpdir ensures that the builds are done from clean. 2) Is there any overhead for subsequent builds from wiping the sysroots? > Guessing there shouldn't be, but better check. > Only the overhead of extracting from sstate to repopulate the sysroot. Ross -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Detecting missing build dependencies
On Wed, Jan 27, 2016 at 3:59 PM, Martin Jansawrote: > On 27 January 2016 at 14:45, Ulf Magnusson wrote: >> ... > See openembedded-core/scripts/test-dependencies.sh but it basically > automates rebuilding recipes after removing TMPDIR, but also it detects > autodetected dependencies. > > Regards, > > -- > Martin 'JaMa' Jansa jabber: martin.ja...@gmail.com On Wed, Jan 27, 2016 at 4:02 PM, Burton, Ross wrote: > > On 27 January 2016 at 14:45, Ulf Magnusson wrote: >> ... > > You're thinking of scripts/test-dependencies.sh. > > Personally I just use wipe-sysroot (faster than deleting tmp) and > buildhistory-diff to verify build dependencies. > > Ross Thanks for the tips! I have two questions: 1) Why does test-dependencies.sh remove TMPDIR instead of just wiping the sysroots? 2) Is there any overhead for subsequent builds from wiping the sysroots? Guessing there shouldn't be, but better check. Thanks, Ulf -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] Detecting missing build dependencies
Hello, If a recipe has a missing build dependency that the sysroot just happens to contain anyway from an earlier build, then the build will succeed only to fail later when the sysroot no longer has the build dependency. We want to avoid that, so we're looking for ways to automatically check for unspecified build dependencies. The only method I know of at the moment is to remove or rename tmp/ so that the build uses a fresh sysroot and then trying to rebuild the recipe. Is there something nicer? I think I remember reading about a script for testing for missing build dependencies, but I might be misremembering. Cheers, Ulf -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Detecting missing build dependencies
On Wed, Jan 27, 2016 at 03:45:30PM +0100, Ulf Magnusson wrote: > Hello, > > If a recipe has a missing build dependency that the sysroot just > happens to contain anyway from an earlier build, then the build will > succeed only to fail later when the sysroot no longer has the build > dependency. We want to avoid that, so we're looking for ways to > automatically check for unspecified build dependencies. > > The only method I know of at the moment is to remove or rename tmp/ so > that the build uses a fresh sysroot and then trying to rebuild the > recipe. Is there something nicer? I think I remember reading about a > script for testing for missing build dependencies, but I might be > misremembering. See openembedded-core/scripts/test-dependencies.sh but it basically automates rebuilding recipes after removing TMPDIR, but also it detects autodetected dependencies. Regards, -- Martin 'JaMa' Jansa jabber: martin.ja...@gmail.com signature.asc Description: Digital signature -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Detecting missing build dependencies
On 27 January 2016 at 14:45, Ulf Magnussonwrote: > The only method I know of at the moment is to remove or rename tmp/ so > that the build uses a fresh sysroot and then trying to rebuild the > recipe. Is there something nicer? I think I remember reading about a > script for testing for missing build dependencies, but I might be > misremembering. > You're thinking of scripts/test-dependencies.sh. Personally I just use wipe-sysroot (faster than deleting tmp) and buildhistory-diff to verify build dependencies. Ross -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto