Skip to contentSkip to conversation

how to remove all traces of a previous package build?

DISCUSSION Robert P. J. Day 6 participants 6 messages Nov 13, 2009

lore
Share & tools
lore
#0 lore raw

surely a dumb question, but what's the recipe for deleting every
trace of a single previous package build, so i know i'm rebuilding it absolutely from step one? i'll use that to test a rebuild of the packages that are failing for me.

rday
--

========================================================================
Robert P. J. Day Waterloo, Ontario, CANADA

Linux Consulting, Training and Kernel Pedantry.

Web page:                                          http://crashcourse.ca
Twitter:                                       http://twitter.com/rpjday

========================================================================

#1 lore raw
Quoted 4 lines · Robert P. J. Day

surely a dumb question, but what's the recipe for deleting every trace of a single previous package build, so i know i'm rebuilding it absolutely from step one? i'll use that to test a rebuild of the packages that are failing for me.

bitbake X -c clean

where X is the package you want to remove.

Cheers,

Richard

#2 lore raw
Quoted 7 lines · Richard Purdie
Quoted 4 lines · Robert P. J. Day

surely a dumb question, but what's the recipe for deleting every trace of a single previous package build, so i know i'm rebuilding it absolutely from step one? i'll use that to test a rebuild of the packages that are failing for me.

bitbake X -c clean

Then remove all packages under tmp/deploy; also tmp/pkgdata/*/X and tmp/pkgdata/*/runtime/X*; and tmp/staging/*/*/shlibs/X*. Otherwise you may get problems if you've switched PACKAGE_ARCH in a recipe, or switched between packages that provide the same shared library.

I don't think there's a way to remove files from the staging directory. Maybe with packaged staging?

Mike

#3 lore raw
Quoted 15 lines · Michael Smith
Quoted 7 lines · Richard Purdie
Quoted 4 lines · Robert P. J. Day

surely a dumb question, but what's the recipe for deleting every trace of a single previous package build, so i know i'm rebuilding it absolutely from step one? i'll use that to test a rebuild of the packages that are failing for me.

bitbake X -c clean

Then remove all packages under tmp/deploy; also tmp/pkgdata/*/X and tmp/pkgdata/*/runtime/X*; and tmp/staging/*/*/shlibs/X*. Otherwise you may get problems if you've switched PACKAGE_ARCH in a recipe, or switched between packages that provide the same shared library.

Quoted 4 lines

I don't think there's a way to remove files from the staging directory. Maybe with packaged staging?

Mike

I almost wonder if we should consider adding a task which handles the above in addition to the standard bitbake clean. I was burned a few weeks ago by having a stale package in my deploy directory that kept getting chosen over the new one I was building due to some versioning nastiness. I can see how automatically purging stuff from deploy would be considered destructive, but IMHO there should be a command which just nukes every last bit of a package the build system knows about.

--Chris

#4 lore raw
In reply to Robert P. J. Day

Hi Robert,

Quoted 5 lines · Robert P. J. Day

surely a dumb question, but what's the recipe for deleting every
trace of a single previous package build, so i know i'm rebuilding it absolutely from step one? i'll use that to test a rebuild of the packages that are failing for me.

I think bitbake -c clean package does what you want.

Eric

#5 lore raw
Quoted 9 lines · Eric Bénard

Hi Robert,

Quoted 5 lines · Robert P. J. Day

surely a dumb question, but what's the recipe for deleting every
trace of a single previous package build, so i know i'm rebuilding it absolutely from step one? i'll use that to test a rebuild of the packages that are failing for me.

I think bitbake -c clean package does what you want.

Or '-c distclean' if you also want to remove source. :)

Przemek