[OE-core] [PATCH 0/1] scripts: Add cleanup-downloads-dir tool

Laurentiu Palcu laurentiu.palcu at intel.com
Tue Jun 16 07:50:40 UTC 2015


Hi Ross,

On Mon, Jun 15, 2015 at 11:38:01PM +0100, Burton, Ross wrote:
> 
> On 12 June 2015 at 13:15, Laurentiu Palcu <laurentiu.palcu at intel.com> wrote:
> 
>     A few days ago I noticed I had no space on disk and decided to make some
>     space. Since my downloads directory was never deleted since denzil, it
>     consumed 25GB of space which I needed. However, I wanted to delete only old
>     and unneeded tarbals/git repos and keep the ones that my current Yocto
>     version needed, so I wrote this tool.
> 
> 
> Something is not quite right, after running this and causing a rebuild I got this:
> 
> ERROR: No checksum specified for /home/ross/Yocto/downloads/git2_git.lttng.org.lttng-modules.git.tar.gz, please add at least one to
> the recipe:
> SRC_URI[md5sum] = "c32ceb7d4b208b2b1d8132c3bbc7d638"
> SRC_URI[sha256sum] = "d593cca435003770e981c8ae5def3db0e95d72bc3f83f3d43a18287ea1f6d165"
> ERROR: Function failed: Fetcher failure for URL: 'http://downloads.yoctoproject.org/mirror/sources/
> git2_git.lttng.org.lttng-modules.git.tar.gz'. Missing SRC_URI checksum
> 
> A few too many files pruned?
Thanks for giving this a test. However, I have no idea why this happens
for you... I ran it on my side, after compiling lttng-modules (so it
fetches the latest, etc), and the tarballs were not removed. Actually,
nothing was removed since I ran it on master, after doing a fresh
core-image-minimal build... See below. Can you please try a: 'bitbake
lttng-modules' followed by a 'cleanup-downloads-dir'? Do you get the
same behavior on the first rebuid? Could there's something else going on
at your side?

test at test-machine:/ssd/work/yp1/test$ bitbake lttng-modules
...
build output skipped
...
test at test-machine:/ssd/work/yp1/test$ cleanup-downloads-dir
Parsing recipes..done.
Generating unused files list... done

No obsolete files found in /ssd/work/yp1/test/downloads.
test at test-machine:/ssd/work/yp1/test$ ls -la downloads/ |grep lttng-modules
-rw-rw-r--  1 test test   1861595 May 13 11:26 git2_git.lttng.org.lttng-modules.git.tar.gz
-rw-rw-r--  1 test test         0 Jun 16 09:45 git2_git.lttng.org.lttng-modules.git.tar.gz.done
-rw-rw-r--  1 test test       125 Jun 16 09:45 lttng-modules-replace-KERNELDIR-with-KERNEL_SRC.patch.done
test at test-machine:/ssd/work/yp1/test$ ll downloads/git2 |grep lttng-modules
drwxr-xr-x  7 test test  4096 May 13 11:26 git.lttng.org.lttng-modules.git/
-rw-rw-r--  1 test test     6 Jun 16 09:45 git.lttng.org.lttng-modules.git.done

laurentiu



More information about the Openembedded-core mailing list