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

2015-06-16 Thread Laurentiu Palcu
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.pa...@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@test-machine:/ssd/work/yp1/test$ bitbake lttng-modules
...
build output skipped
...
test@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@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@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
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


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

2015-06-15 Thread Burton, Ross
On 12 June 2015 at 13:15, Laurentiu Palcu laurentiu.pa...@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?

Ross
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


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

2015-06-12 Thread Laurentiu Palcu
Hi all,

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.

After running it, my downloads size became 7GB.

I also tested on a brand new downloads directory, after doing a
core-image-minimal build, and it didn't find any obsolete files (which
is kind of normal). :)

I hope someone finds it helpful. Also, I encourage you to give it a
test. Don't worry, it will not delete anything unless you allow it and
you can review the list of files to be removed. If you see anything
suspicious, let me know.

laurentiu

Laurentiu Palcu (1):
  scripts: Add cleanup-downloads-dir tool

 scripts/cleanup-downloads-dir | 158 ++
 1 file changed, 158 insertions(+)
 create mode 100755 scripts/cleanup-downloads-dir

-- 
1.9.1

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core