All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] A script to clean obsolete sstate cache files
@ 2012-02-22 13:27 Robert Yang
  2012-02-22 13:27 ` [PATCH 1/1] " Robert Yang
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Robert Yang @ 2012-02-22 13:27 UTC (permalink / raw)
  To: openembedded-core

Here is the testing result:

$ ./poky/scripts/sstate-cache-management.sh --cache-dir=sstate-cache.bak/ --remove-duplicated
Figuring out the archs in the sstate cache dir ...
The following archs have been found in the sstate cache dir:
i586 ppc603e x86_64 qemux86 qemuppc
Removing the sstate-xxx_deploy-rpm.tgz ... (3034 files)
Removing the sstate-xxx_deploy-ipk.tgz ... (0 files)
Removing the sstate-xxx_deploy-deb.tgz ... (0 files)
Removing the sstate-xxx_deploy.tgz ... (8 files)
Removing the sstate-xxx_package.tgz ... (3282 files)
Removing the sstate-xxx_populate-lic.tgz ... (2482 files)
Removing the sstate-xxx_populate-sysroot.tgz ... (3282 files)
12088 files have been removed

// Robert

The following changes since commit 87e32edb88c30ac116fa396148ac26357051f93a:

  iputils: Add base_libdir to VPATH in order to find the crypto library (2012-02-21 17:59:40 +0000)

are available in the git repository at:
  git://git.pokylinux.org/poky-contrib robert/remove-sstate
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/remove-sstate

Robert Yang (1):
  A script to clean obsolete sstate cache files

 scripts/sstate-cache-management.sh |  135 ++++++++++++++++++++++++++++++++++++
 1 files changed, 135 insertions(+), 0 deletions(-)
 create mode 100755 scripts/sstate-cache-management.sh

-- 
1.7.4.1




^ permalink raw reply	[flat|nested] 18+ messages in thread

* [PATCH 1/1] A script to clean obsolete sstate cache files
  2012-02-22 13:27 [PATCH 0/1] A script to clean obsolete sstate cache files Robert Yang
@ 2012-02-22 13:27 ` Robert Yang
  2012-02-22 13:42 ` [PATCH 0/1] " Koen Kooi
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 18+ messages in thread
From: Robert Yang @ 2012-02-22 13:27 UTC (permalink / raw)
  To: openembedded-core

There would be many obsolete cache files in the SSTATE_DIR after several
builds, this script can remove the obsolete one for a pkg, only leave
the up to date one.

Here is the help text:

sstate-cache-management.sh <OPTION>

Options:
  --help, -h
        Display this help and exit.

  --cache-dir=<sstate cache dir>
        Specify sstate cache directory, will use the environment
        variable SSTATE_CACHE_DIR if it is not specified.

  --remove-duplicated
        Remove the duplicated sstate cache files of one package, only
        the newest one would be kept.

[YOCTO #1682]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 scripts/sstate-cache-management.sh |  135 ++++++++++++++++++++++++++++++++++++
 1 files changed, 135 insertions(+), 0 deletions(-)
 create mode 100755 scripts/sstate-cache-management.sh

diff --git a/scripts/sstate-cache-management.sh b/scripts/sstate-cache-management.sh
new file mode 100755
index 0000000..d0e3abc
--- /dev/null
+++ b/scripts/sstate-cache-management.sh
@@ -0,0 +1,135 @@
+#!/bin/bash
+
+#  Copyright (c) 2012 Wind River Systems, Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 2 as
+# published by the Free Software Foundation.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+# See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+
+usage () {
+  cat << EOF
+Welcome to sstate cache management utilities.
+sstate-cache-management.sh <OPTION>
+
+Options:
+  --help, -h
+        Display this help and exit.
+
+  --cache-dir=<sstate cache dir>
+        Specify sstate cache directory, will use the environment
+        variable SSTATE_CACHE_DIR if it is not specified.
+
+  --remove-duplicated
+        Remove the duplicated sstate cache files of one package, only
+        the newest one would be kept.
+
+EOF
+}
+
+if [ $# -lt 1 ]; then
+  usage
+  exit 0
+fi
+
+# Print error information and exit.
+echo_error () {
+  echo "ERROR: $1" >&2
+  exit 1
+}
+
+# Remove the duplicated cache files for the pkg, keep the newest one
+remove_duplicated () {
+  local all_suffixes="$1"
+  local ava_archs="$2"
+  local total_deleted=0
+  for suffix in $all_suffixes; do
+      local deleted=0
+      echo -n "Removing the sstate-xxx_$suffix.tgz ... "
+      # sed twice to avoid the greedy match
+      file_names=`for arch in $ava_archs; do
+          ls sstate-*-$arch-*_$suffix.tgz 2>/dev/null | \
+              sed -e 's/\(.*\)-'"$arch"'-.*/\1/' \
+              -e 's/\(.*\)-'"$arch"'-.*/\1/'
+      done | sort -u`
+
+      for fn in $file_names; do
+          for arch in $ava_archs; do
+              ls $fn-$arch-*_$suffix.tgz 2>/dev/null >>/tmp/$fn
+          done
+          # Also delete the .siginfo file
+          to_del=$(ls -t $(cat /tmp/$fn) | sed -n '1!p' | sed -e 'p' -e 's/$/.siginfo/')
+          rm -f $to_del
+          let deleted=$deleted+`echo $to_del | wc -w`
+          rm -f /tmp/$fn
+      done
+      echo "($deleted files)"
+      let total_deleted=$total_deleted+$deleted
+  done
+  echo "$total_deleted files have been removed"
+}
+
+# Parse arguments
+while [ -n "$1" ]; do
+  case $1 in
+    --cache-dir=*)
+      cache_dir=`echo $1 | sed -e 's#^--cache-dir=##' -e 's#/*$##' | xargs readlink -f`
+      [ -d "$cache_dir" ] || echo_error "Invalid argument to --cache-dir"
+      shift
+        ;;
+    --remove-duplicated)
+      rm_duplicated="yes"
+      shift
+        ;;
+    --help|-h)
+      usage
+      exit 0
+        ;;
+    *)
+        echo "Invalid arguments $*"
+        echo_error "Try 'sstate-cache-management.sh -h' for more information."
+        ;;
+  esac
+done
+
+# sstate cache directory, use environment variable SSTATE_CACHE_DIR
+# if it was not specified, otherwise, error.
+[ -n "$cache_dir" ] || cache_dir=$SSTATE_CACHE_DIR
+[ -d "$cache_dir" ] || echo_error "Invalid cache directory \"$cache_dir\""
+
+cache_dir=`readlink -f $cache_dir`
+
+topdir=$(dirname $(dirname $(readlink -f $0)))
+tunedir=$topdir/meta/conf/machine/include
+[ -d $tunedir ] || echo_error "Can't find the tune directory"
+
+# Use the "_" to substitute "-", e.g., x86-64 to x86_64
+all_archs=`grep -r DEFAULTTUNE $tunedir | \
+    sed -e 's/.*\"\(.*\)\"/\1/' -e 's/-/_/g' | sort -u`
+# Add the qemu archs
+all_archs="$all_archs qemuarm qemux86 qemumips qemuppc"
+
+all_suffixes="deploy-rpm deploy-ipk deploy-deb deploy package populate-lic populate-sysroot"
+
+cd $cache_dir
+
+echo "Figuring out the archs in the sstate cache dir ..."
+for arch in $all_archs; do
+    ls | grep -q -w $arch
+    [ $? -eq 0 ] && ava_archs="$ava_archs $arch"
+done
+echo "The following archs have been found in the sstate cache dir:"
+echo $ava_archs
+
+if [ "$rm_duplicated" == "yes" -a -n "$ava_archs" ]; then
+    remove_duplicated "$all_suffixes" "$ava_archs"
+fi
-- 
1.7.4.1




^ permalink raw reply related	[flat|nested] 18+ messages in thread

* Re: [PATCH 0/1] A script to clean obsolete sstate cache files
  2012-02-22 13:27 [PATCH 0/1] A script to clean obsolete sstate cache files Robert Yang
  2012-02-22 13:27 ` [PATCH 1/1] " Robert Yang
@ 2012-02-22 13:42 ` Koen Kooi
  2012-02-22 14:15   ` Richard Purdie
  2012-02-22 14:48 ` Otavio Salvador
  2012-02-24  4:13 ` Saul Wold
  3 siblings, 1 reply; 18+ messages in thread
From: Koen Kooi @ 2012-02-22 13:42 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer


Op 22 feb. 2012, om 14:27 heeft Robert Yang het volgende geschreven:

> Here is the testing result:
> 
> $ ./poky/scripts/sstate-cache-management.sh --cache-dir=sstate-cache.bak/ --remove-duplicated
> Figuring out the archs in the sstate cache dir ...
> The following archs have been found in the sstate cache dir:
> i586 ppc603e x86_64 qemux86 qemuppc
> Removing the sstate-xxx_deploy-rpm.tgz ... (3034 files)
> Removing the sstate-xxx_deploy-ipk.tgz ... (0 files)
> Removing the sstate-xxx_deploy-deb.tgz ... (0 files)
> Removing the sstate-xxx_deploy.tgz ... (8 files)
> Removing the sstate-xxx_package.tgz ... (3282 files)
> Removing the sstate-xxx_populate-lic.tgz ... (2482 files)
> Removing the sstate-xxx_populate-sysroot.tgz ... (3282 files)
> 12088 files have been removed
> 
> // Robert
> 
> The following changes since commit 87e32edb88c30ac116fa396148ac26357051f93a:
> 
>  iputils: Add base_libdir to VPATH in order to find the crypto library (2012-02-21 17:59:40 +0000)
> 
> are available in the git repository at:
>  git://git.pokylinux.org/poky-contrib robert/remove-sstate
>  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/remove-sstate

Do you have a patch against oe-core instead of poky??!?






^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PATCH 0/1] A script to clean obsolete sstate cache files
  2012-02-22 13:42 ` [PATCH 0/1] " Koen Kooi
@ 2012-02-22 14:15   ` Richard Purdie
  2012-02-22 14:32     ` Koen Kooi
  0 siblings, 1 reply; 18+ messages in thread
From: Richard Purdie @ 2012-02-22 14:15 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Wed, 2012-02-22 at 14:42 +0100, Koen Kooi wrote:
> Op 22 feb. 2012, om 14:27 heeft Robert Yang het volgende geschreven:
> 
> > Here is the testing result:
> > 
> > $ ./poky/scripts/sstate-cache-management.sh --cache-dir=sstate-cache.bak/ --remove-duplicated
> > Figuring out the archs in the sstate cache dir ...
> > The following archs have been found in the sstate cache dir:
> > i586 ppc603e x86_64 qemux86 qemuppc
> > Removing the sstate-xxx_deploy-rpm.tgz ... (3034 files)
> > Removing the sstate-xxx_deploy-ipk.tgz ... (0 files)
> > Removing the sstate-xxx_deploy-deb.tgz ... (0 files)
> > Removing the sstate-xxx_deploy.tgz ... (8 files)
> > Removing the sstate-xxx_package.tgz ... (3282 files)
> > Removing the sstate-xxx_populate-lic.tgz ... (2482 files)
> > Removing the sstate-xxx_populate-sysroot.tgz ... (3282 files)
> > 12088 files have been removed
> > 
> > // Robert
> > 
> > The following changes since commit 87e32edb88c30ac116fa396148ac26357051f93a:
> > 
> >  iputils: Add base_libdir to VPATH in order to find the crypto library (2012-02-21 17:59:40 +0000)
> > 
> > are available in the git repository at:
> >  git://git.pokylinux.org/poky-contrib robert/remove-sstate
> >  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/remove-sstate
> 
> Do you have a patch against oe-core instead of poky??!?

Does this really need as many question and exclamation marks???!!!!????!

;-)

Its not hard to manipulate the patches around from one tree to the
other.

Cheers,

Richard




^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PATCH 0/1] A script to clean obsolete sstate cache files
  2012-02-22 14:15   ` Richard Purdie
@ 2012-02-22 14:32     ` Koen Kooi
  2012-02-22 15:06       ` Richard Purdie
  0 siblings, 1 reply; 18+ messages in thread
From: Koen Kooi @ 2012-02-22 14:32 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer


Op 22 feb. 2012, om 15:15 heeft Richard Purdie het volgende geschreven:

> On Wed, 2012-02-22 at 14:42 +0100, Koen Kooi wrote:
>> Op 22 feb. 2012, om 14:27 heeft Robert Yang het volgende geschreven:
>> 
>>> Here is the testing result:
>>> 
>>> $ ./poky/scripts/sstate-cache-management.sh --cache-dir=sstate-cache.bak/ --remove-duplicated
>>> Figuring out the archs in the sstate cache dir ...
>>> The following archs have been found in the sstate cache dir:
>>> i586 ppc603e x86_64 qemux86 qemuppc
>>> Removing the sstate-xxx_deploy-rpm.tgz ... (3034 files)
>>> Removing the sstate-xxx_deploy-ipk.tgz ... (0 files)
>>> Removing the sstate-xxx_deploy-deb.tgz ... (0 files)
>>> Removing the sstate-xxx_deploy.tgz ... (8 files)
>>> Removing the sstate-xxx_package.tgz ... (3282 files)
>>> Removing the sstate-xxx_populate-lic.tgz ... (2482 files)
>>> Removing the sstate-xxx_populate-sysroot.tgz ... (3282 files)
>>> 12088 files have been removed
>>> 
>>> // Robert
>>> 
>>> The following changes since commit 87e32edb88c30ac116fa396148ac26357051f93a:
>>> 
>>> iputils: Add base_libdir to VPATH in order to find the crypto library (2012-02-21 17:59:40 +0000)
>>> 
>>> are available in the git repository at:
>>> git://git.pokylinux.org/poky-contrib robert/remove-sstate
>>> http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/remove-sstate
>> 
>> Do you have a patch against oe-core instead of poky??!?
> 
> Does this really need as many question and exclamation marks???!!!!????!
> 
> ;-)
> 
> Its not hard to manipulate the patches around from one tree to the
> other.

That's good to know, so why wasn't it manipulated to work on oe-core when being sent to the oe-core list?





^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PATCH 0/1] A script to clean obsolete sstate cache files
  2012-02-22 13:27 [PATCH 0/1] A script to clean obsolete sstate cache files Robert Yang
  2012-02-22 13:27 ` [PATCH 1/1] " Robert Yang
  2012-02-22 13:42 ` [PATCH 0/1] " Koen Kooi
@ 2012-02-22 14:48 ` Otavio Salvador
  2012-02-24  4:13 ` Saul Wold
  3 siblings, 0 replies; 18+ messages in thread
From: Otavio Salvador @ 2012-02-22 14:48 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 1105 bytes --]

On Wed, Feb 22, 2012 at 11:27, Robert Yang <liezhi.yang@windriver.com>wrote:

> $ ./poky/scripts/sstate-cache-management.sh --cache-dir=sstate-cache.bak/
> --remove-duplicated
> Figuring out the archs in the sstate cache dir ...
> The following archs have been found in the sstate cache dir:
> i586 ppc603e x86_64 qemux86 qemuppc
> Removing the sstate-xxx_deploy-rpm.tgz ... (3034 files)
> Removing the sstate-xxx_deploy-ipk.tgz ... (0 files)
> Removing the sstate-xxx_deploy-deb.tgz ... (0 files)
> Removing the sstate-xxx_deploy.tgz ... (8 files)
> Removing the sstate-xxx_package.tgz ... (3282 files)
> Removing the sstate-xxx_populate-lic.tgz ... (2482 files)
> Removing the sstate-xxx_populate-sysroot.tgz ... (3282 files)
> 12088 files have been removed
>

That's awesome. I was looking for a script for this.

Can you please resend it based on oe-core? I'll give it a good test.

-- 
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br

[-- Attachment #2: Type: text/html, Size: 1628 bytes --]

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PATCH 0/1] A script to clean obsolete sstate cache files
  2012-02-22 14:32     ` Koen Kooi
@ 2012-02-22 15:06       ` Richard Purdie
  2012-02-22 15:11         ` Koen Kooi
  2012-02-22 15:47         ` Otavio Salvador
  0 siblings, 2 replies; 18+ messages in thread
From: Richard Purdie @ 2012-02-22 15:06 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Wed, 2012-02-22 at 15:32 +0100, Koen Kooi wrote:
> Op 22 feb. 2012, om 15:15 heeft Richard Purdie het volgende geschreven:
> 
> > On Wed, 2012-02-22 at 14:42 +0100, Koen Kooi wrote:
> >> Op 22 feb. 2012, om 14:27 heeft Robert Yang het volgende geschreven:
> >> 
> >>> Here is the testing result:
> >>> 
> >>> $ ./poky/scripts/sstate-cache-management.sh --cache-dir=sstate-cache.bak/ --remove-duplicated
> >>> Figuring out the archs in the sstate cache dir ...
> >>> The following archs have been found in the sstate cache dir:
> >>> i586 ppc603e x86_64 qemux86 qemuppc
> >>> Removing the sstate-xxx_deploy-rpm.tgz ... (3034 files)
> >>> Removing the sstate-xxx_deploy-ipk.tgz ... (0 files)
> >>> Removing the sstate-xxx_deploy-deb.tgz ... (0 files)
> >>> Removing the sstate-xxx_deploy.tgz ... (8 files)
> >>> Removing the sstate-xxx_package.tgz ... (3282 files)
> >>> Removing the sstate-xxx_populate-lic.tgz ... (2482 files)
> >>> Removing the sstate-xxx_populate-sysroot.tgz ... (3282 files)
> >>> 12088 files have been removed
> >>> 
> >>> // Robert
> >>> 
> >>> The following changes since commit 87e32edb88c30ac116fa396148ac26357051f93a:
> >>> 
> >>> iputils: Add base_libdir to VPATH in order to find the crypto library (2012-02-21 17:59:40 +0000)
> >>> 
> >>> are available in the git repository at:
> >>> git://git.pokylinux.org/poky-contrib robert/remove-sstate
> >>> http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/remove-sstate
> >> 
> >> Do you have a patch against oe-core instead of poky??!?
> > 
> > Does this really need as many question and exclamation marks???!!!!????!
> > 
> > ;-)
> > 
> > Its not hard to manipulate the patches around from one tree to the
> > other.
> 
> That's good to know, so why wasn't it manipulated to work on oe-core when being sent to the oe-core list?

Or why can't people just cherry-pick the patch in, or apply the patch
manually? The latter is no different to people who just supply the
patches manually the the list with no corresponding git tree after all.

Cheers,

Richard




^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PATCH 0/1] A script to clean obsolete sstate cache files
  2012-02-22 15:06       ` Richard Purdie
@ 2012-02-22 15:11         ` Koen Kooi
  2012-02-22 16:05           ` Richard Purdie
  2012-02-22 15:47         ` Otavio Salvador
  1 sibling, 1 reply; 18+ messages in thread
From: Koen Kooi @ 2012-02-22 15:11 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer


Op 22 feb. 2012, om 16:06 heeft Richard Purdie het volgende geschreven:

> On Wed, 2012-02-22 at 15:32 +0100, Koen Kooi wrote:
>> Op 22 feb. 2012, om 15:15 heeft Richard Purdie het volgende geschreven:
>> 
>>> On Wed, 2012-02-22 at 14:42 +0100, Koen Kooi wrote:
>>>> Op 22 feb. 2012, om 14:27 heeft Robert Yang het volgende geschreven:
>>>> 
>>>>> Here is the testing result:
>>>>> 
>>>>> $ ./poky/scripts/sstate-cache-management.sh --cache-dir=sstate-cache.bak/ --remove-duplicated
>>>>> Figuring out the archs in the sstate cache dir ...
>>>>> The following archs have been found in the sstate cache dir:
>>>>> i586 ppc603e x86_64 qemux86 qemuppc
>>>>> Removing the sstate-xxx_deploy-rpm.tgz ... (3034 files)
>>>>> Removing the sstate-xxx_deploy-ipk.tgz ... (0 files)
>>>>> Removing the sstate-xxx_deploy-deb.tgz ... (0 files)
>>>>> Removing the sstate-xxx_deploy.tgz ... (8 files)
>>>>> Removing the sstate-xxx_package.tgz ... (3282 files)
>>>>> Removing the sstate-xxx_populate-lic.tgz ... (2482 files)
>>>>> Removing the sstate-xxx_populate-sysroot.tgz ... (3282 files)
>>>>> 12088 files have been removed
>>>>> 
>>>>> // Robert
>>>>> 
>>>>> The following changes since commit 87e32edb88c30ac116fa396148ac26357051f93a:
>>>>> 
>>>>> iputils: Add base_libdir to VPATH in order to find the crypto library (2012-02-21 17:59:40 +0000)
>>>>> 
>>>>> are available in the git repository at:
>>>>> git://git.pokylinux.org/poky-contrib robert/remove-sstate
>>>>> http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/remove-sstate
>>>> 
>>>> Do you have a patch against oe-core instead of poky??!?
>>> 
>>> Does this really need as many question and exclamation marks???!!!!????!
>>> 
>>> ;-)
>>> 
>>> Its not hard to manipulate the patches around from one tree to the
>>> other.
>> 
>> That's good to know, so why wasn't it manipulated to work on oe-core when being sent to the oe-core list?
> 
> Or why can't people just cherry-pick the patch in, or apply the patch
> manually? 

Personally, I'm too lazy for that. If someone sends a pull request to oe-core I kinda assume it's for oe-core. I tried to pull it in for testing and it blew up.





^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PATCH 0/1] A script to clean obsolete sstate cache files
  2012-02-22 15:06       ` Richard Purdie
  2012-02-22 15:11         ` Koen Kooi
@ 2012-02-22 15:47         ` Otavio Salvador
  2012-02-22 15:53           ` Paul Eggleton
  2012-02-22 16:00           ` Phil Blundell
  1 sibling, 2 replies; 18+ messages in thread
From: Otavio Salvador @ 2012-02-22 15:47 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Wed, Feb 22, 2012 at 13:06, Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
> Or why can't people just cherry-pick the patch in, or apply the patch
> manually? The latter is no different to people who just supply the
> patches manually the the list with no corresponding git tree after all.

Because this mean to have and maintain a full clone of the repository
and I don't want and I won't do that.

OE-Core is the base, the mailing list is based on it so it is expected
of it being based on OE-Core.

-- 
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PATCH 0/1] A script to clean obsolete sstate cache files
  2012-02-22 15:47         ` Otavio Salvador
@ 2012-02-22 15:53           ` Paul Eggleton
  2012-02-22 15:56             ` Otavio Salvador
  2012-02-22 16:00           ` Phil Blundell
  1 sibling, 1 reply; 18+ messages in thread
From: Paul Eggleton @ 2012-02-22 15:53 UTC (permalink / raw)
  To: openembedded-core

On Wednesday 22 February 2012 13:47:45 Otavio Salvador wrote:
> On Wed, Feb 22, 2012 at 13:06, Richard Purdie
> 
> <richard.purdie@linuxfoundation.org> wrote:
> > Or why can't people just cherry-pick the patch in, or apply the patch
> > manually? The latter is no different to people who just supply the
> > patches manually the the list with no corresponding git tree after all.
> 
> Because this mean to have and maintain a full clone of the repository
> and I don't want and I won't do that.

Except here we are talking about a single patch that adds a single file, which 
is easily downloadable from the web interface. If it were more complicated I 
could understand the fuss, but right now this is almost ridiculous.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PATCH 0/1] A script to clean obsolete sstate cache files
  2012-02-22 15:53           ` Paul Eggleton
@ 2012-02-22 15:56             ` Otavio Salvador
  2012-02-22 16:09               ` Richard Purdie
  0 siblings, 1 reply; 18+ messages in thread
From: Otavio Salvador @ 2012-02-22 15:56 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: openembedded-core

On Wed, Feb 22, 2012 at 13:53, Paul Eggleton
<paul.eggleton@linux.intel.com> wrote:
> Except here we are talking about a single patch that adds a single file, which
> is easily downloadable from the web interface. If it were more complicated I
> could understand the fuss, but right now this is almost ridiculous.

It doesn't seem that easy; it seems Koen tried to apply it and it has failed.

Besides, Robert didn't complain about people asking it to be resend.
Who is complaining is Richard and I am just justifying the reasoning
why it is more the logical to expect it to be done based on OE-Core.

-- 
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PATCH 0/1] A script to clean obsolete sstate cache files
  2012-02-22 15:47         ` Otavio Salvador
  2012-02-22 15:53           ` Paul Eggleton
@ 2012-02-22 16:00           ` Phil Blundell
  1 sibling, 0 replies; 18+ messages in thread
From: Phil Blundell @ 2012-02-22 16:00 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Wed, 2012-02-22 at 13:47 -0200, Otavio Salvador wrote:
> On Wed, Feb 22, 2012 at 13:06, Richard Purdie
> <richard.purdie@linuxfoundation.org> wrote:
> > Or why can't people just cherry-pick the patch in, or apply the patch
> > manually? The latter is no different to people who just supply the
> > patches manually the the list with no corresponding git tree after all.
> 
> Because this mean to have and maintain a full clone of the repository
> and I don't want and I won't do that.

Applying the patch manually (either with "git am" or directly with
"patch") doesn't require you to have a copy of poky on hand.  That
doesn't seem like such a hardship, particularly given that the patch in
question here is just creating a single new file and doesn't touch any
existing content at all.

p.





^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PATCH 0/1] A script to clean obsolete sstate cache files
  2012-02-22 15:11         ` Koen Kooi
@ 2012-02-22 16:05           ` Richard Purdie
  2012-02-22 16:08             ` Otavio Salvador
  0 siblings, 1 reply; 18+ messages in thread
From: Richard Purdie @ 2012-02-22 16:05 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Wed, 2012-02-22 at 16:11 +0100, Koen Kooi wrote:
> Op 22 feb. 2012, om 16:06 heeft Richard Purdie het volgende geschreven:
> 
> > On Wed, 2012-02-22 at 15:32 +0100, Koen Kooi wrote:
> >> Op 22 feb. 2012, om 15:15 heeft Richard Purdie het volgende geschreven:
> >> 
> >>> On Wed, 2012-02-22 at 14:42 +0100, Koen Kooi wrote:
> >>>> Op 22 feb. 2012, om 14:27 heeft Robert Yang het volgende geschreven:
> >>>> 
> >>>>> Here is the testing result:
> >>>>> 
> >>>>> $ ./poky/scripts/sstate-cache-management.sh --cache-dir=sstate-cache.bak/ --remove-duplicated
> >>>>> Figuring out the archs in the sstate cache dir ...
> >>>>> The following archs have been found in the sstate cache dir:
> >>>>> i586 ppc603e x86_64 qemux86 qemuppc
> >>>>> Removing the sstate-xxx_deploy-rpm.tgz ... (3034 files)
> >>>>> Removing the sstate-xxx_deploy-ipk.tgz ... (0 files)
> >>>>> Removing the sstate-xxx_deploy-deb.tgz ... (0 files)
> >>>>> Removing the sstate-xxx_deploy.tgz ... (8 files)
> >>>>> Removing the sstate-xxx_package.tgz ... (3282 files)
> >>>>> Removing the sstate-xxx_populate-lic.tgz ... (2482 files)
> >>>>> Removing the sstate-xxx_populate-sysroot.tgz ... (3282 files)
> >>>>> 12088 files have been removed
> >>>>> 
> >>>>> // Robert
> >>>>> 
> >>>>> The following changes since commit 87e32edb88c30ac116fa396148ac26357051f93a:
> >>>>> 
> >>>>> iputils: Add base_libdir to VPATH in order to find the crypto library (2012-02-21 17:59:40 +0000)
> >>>>> 
> >>>>> are available in the git repository at:
> >>>>> git://git.pokylinux.org/poky-contrib robert/remove-sstate
> >>>>> http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/remove-sstate
> >>>> 
> >>>> Do you have a patch against oe-core instead of poky??!?
> >>> 
> >>> Does this really need as many question and exclamation marks???!!!!????!
> >>> 
> >>> ;-)
> >>> 
> >>> Its not hard to manipulate the patches around from one tree to the
> >>> other.
> >> 
> >> That's good to know, so why wasn't it manipulated to work on oe-core when being sent to the oe-core list?
> > 
> > Or why can't people just cherry-pick the patch in, or apply the patch
> > manually? 
> 
> Personally, I'm too lazy for that. If someone sends a pull request to
> oe-core I kinda assume it's for oe-core. I tried to pull it in for
> testing and it blew up.

So I think its reasonable for people to indicate which tree the pull
request is based off and I'll suggest people do this in future.

If its not indicated, oe-core is a reasonable assumption but providing a
poky tree for convenience shouldn't cause quite as much friction as it
does since it is better than no tree at all and some of us can manage
them fine.

Cheers,

Richard




^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PATCH 0/1] A script to clean obsolete sstate cache files
  2012-02-22 16:05           ` Richard Purdie
@ 2012-02-22 16:08             ` Otavio Salvador
  0 siblings, 0 replies; 18+ messages in thread
From: Otavio Salvador @ 2012-02-22 16:08 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Wed, Feb 22, 2012 at 14:05, Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
> If its not indicated, oe-core is a reasonable assumption but providing a
> poky tree for convenience shouldn't cause quite as much friction as it
> does since it is better than no tree at all and some of us can manage
> them fine.

I fully disagree.

This is an OE-Core mailing list so it is expected to have patches here
based on OE-Core mailing list.

Mistakes are also expected to happen, as just did, and it is just a
matter of resending it to fix it. Relaxing it will make the whole
testing cycle a nightmare for all people involved in OE-Core.

-- 
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PATCH 0/1] A script to clean obsolete sstate cache files
  2012-02-22 15:56             ` Otavio Salvador
@ 2012-02-22 16:09               ` Richard Purdie
  2012-02-22 16:16                 ` Otavio Salvador
  0 siblings, 1 reply; 18+ messages in thread
From: Richard Purdie @ 2012-02-22 16:09 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer; +Cc: Paul Eggleton

On Wed, 2012-02-22 at 13:56 -0200, Otavio Salvador wrote:
> On Wed, Feb 22, 2012 at 13:53, Paul Eggleton
> <paul.eggleton@linux.intel.com> wrote:
> > Except here we are talking about a single patch that adds a single file, which
> > is easily downloadable from the web interface. If it were more complicated I
> > could understand the fuss, but right now this is almost ridiculous.
> 
> It doesn't seem that easy; it seems Koen tried to apply it and it has failed.
> 
> Besides, Robert didn't complain about people asking it to be resend.
> Who is complaining is Richard and I am just justifying the reasoning
> why it is more the logical to expect it to be done based on OE-Core.

In this case, Richard is presenting the viewpoint he's heard expressed
by a number of people in private but who don't want to rock the boat on
the mailing list. I'd like to see the mailing list be a friendly place
where people don't get flamed for posting patches. Some of the recent
responses are less than friendly and I think its reasonable to try and
resolve this.

I'm going to propose that if trees are poky based, the pull request
should indicate this. People can then act accordingly. No indication
means its oe-core derived.

Cheers,

Richard








^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PATCH 0/1] A script to clean obsolete sstate cache files
  2012-02-22 16:09               ` Richard Purdie
@ 2012-02-22 16:16                 ` Otavio Salvador
  2012-02-22 16:43                   ` Richard Purdie
  0 siblings, 1 reply; 18+ messages in thread
From: Otavio Salvador @ 2012-02-22 16:16 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Wed, Feb 22, 2012 at 14:09, Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
> On Wed, 2012-02-22 at 13:56 -0200, Otavio Salvador wrote:
>> On Wed, Feb 22, 2012 at 13:53, Paul Eggleton
>> <paul.eggleton@linux.intel.com> wrote:
>> > Except here we are talking about a single patch that adds a single file, which
>> > is easily downloadable from the web interface. If it were more complicated I
>> > could understand the fuss, but right now this is almost ridiculous.
>>
>> It doesn't seem that easy; it seems Koen tried to apply it and it has failed.
>>
>> Besides, Robert didn't complain about people asking it to be resend.
>> Who is complaining is Richard and I am just justifying the reasoning
>> why it is more the logical to expect it to be done based on OE-Core.
>
> In this case, Richard is presenting the viewpoint he's heard expressed
> by a number of people in private but who don't want to rock the boat on
> the mailing list. I'd like to see the mailing list be a friendly place
> where people don't get flamed for posting patches. Some of the recent
> responses are less than friendly and I think its reasonable to try and
> resolve this.
>
> I'm going to propose that if trees are poky based, the pull request
> should indicate this. People can then act accordingly. No indication
> means its oe-core derived.

If you look at *my* first reply to this thread I just asked him to
resend it based on OE-Core - as he already did - so I could give it a
test. This seemed quite friendly from my POV and he didn't complain.

If people dislike it, it is better if they show up and don't hide behind you.

-- 
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PATCH 0/1] A script to clean obsolete sstate cache files
  2012-02-22 16:16                 ` Otavio Salvador
@ 2012-02-22 16:43                   ` Richard Purdie
  0 siblings, 0 replies; 18+ messages in thread
From: Richard Purdie @ 2012-02-22 16:43 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Wed, 2012-02-22 at 14:16 -0200, Otavio Salvador wrote:
> If you look at *my* first reply to this thread I just asked him to
> resend it based on OE-Core - as he already did - so I could give it a
> test. This seemed quite friendly from my POV and he didn't complain.

You'll also notice I directed my comments to Koen's reply, not yours.

Since we're on the subject though, I do believe there is marginal value
in asking someone to rebase a single patch you could have just as easily
downloaded and applied yourself. I am respectful and protective of
people's time and in this case I think there are better ways things
could have been handled.

Overall though my main objective was to avoid these "Please rebase on
OE-Core????!!!!?" type messages and I think we've figured out a way to
do that.

> If people dislike it, it is better if they show up and don't hide behind you.

We have many different people involved with the project with different
personalities and cultural backgrounds. Open source projects should be
as open, inclusive and friendly as possible in my view. We do have some
participants who get put off by the form of some of the replies on list
and would prefer not to get involved in what could potentially become
"flame war" type discussions. I'd even personally like to avoid them to
as they kill my productivity but sadly my role means I cannot.

I am happy to listen to people's concerns and do what I can to improve
things where I see opportunities. I only received comments from one
other person about this specific thread and they have responded on list.
I have received many different comments on the general topic from
previous similar threads though so I do have an idea of some people's
feelings on this topic. I happen to have chosen this moment in time to
try and resolve the issue. I don't see an problem in any of these
things.

Cheers,

Richard




^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PATCH 0/1] A script to clean obsolete sstate cache files
  2012-02-22 13:27 [PATCH 0/1] A script to clean obsolete sstate cache files Robert Yang
                   ` (2 preceding siblings ...)
  2012-02-22 14:48 ` Otavio Salvador
@ 2012-02-24  4:13 ` Saul Wold
  3 siblings, 0 replies; 18+ messages in thread
From: Saul Wold @ 2012-02-24  4:13 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On 02/22/2012 05:27 AM, Robert Yang wrote:
> Here is the testing result:
>
> $ ./poky/scripts/sstate-cache-management.sh --cache-dir=sstate-cache.bak/ --remove-duplicated
> Figuring out the archs in the sstate cache dir ...
> The following archs have been found in the sstate cache dir:
> i586 ppc603e x86_64 qemux86 qemuppc
> Removing the sstate-xxx_deploy-rpm.tgz ... (3034 files)
> Removing the sstate-xxx_deploy-ipk.tgz ... (0 files)
> Removing the sstate-xxx_deploy-deb.tgz ... (0 files)
> Removing the sstate-xxx_deploy.tgz ... (8 files)
> Removing the sstate-xxx_package.tgz ... (3282 files)
> Removing the sstate-xxx_populate-lic.tgz ... (2482 files)
> Removing the sstate-xxx_populate-sysroot.tgz ... (3282 files)
> 12088 files have been removed
>
> // Robert
>
> The following changes since commit 87e32edb88c30ac116fa396148ac26357051f93a:
>
>    iputils: Add base_libdir to VPATH in order to find the crypto library (2012-02-21 17:59:40 +0000)
>
> are available in the git repository at:
>    git://git.pokylinux.org/poky-contrib robert/remove-sstate
>    http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/remove-sstate
>
> Robert Yang (1):
>    A script to clean obsolete sstate cache files
>
>   scripts/sstate-cache-management.sh |  135 ++++++++++++++++++++++++++++++++++++
>   1 files changed, 135 insertions(+), 0 deletions(-)
>   create mode 100755 scripts/sstate-cache-management.sh
>

Merged into OE-core

Thanks
	Sau!



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2012-02-24  4:21 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-22 13:27 [PATCH 0/1] A script to clean obsolete sstate cache files Robert Yang
2012-02-22 13:27 ` [PATCH 1/1] " Robert Yang
2012-02-22 13:42 ` [PATCH 0/1] " Koen Kooi
2012-02-22 14:15   ` Richard Purdie
2012-02-22 14:32     ` Koen Kooi
2012-02-22 15:06       ` Richard Purdie
2012-02-22 15:11         ` Koen Kooi
2012-02-22 16:05           ` Richard Purdie
2012-02-22 16:08             ` Otavio Salvador
2012-02-22 15:47         ` Otavio Salvador
2012-02-22 15:53           ` Paul Eggleton
2012-02-22 15:56             ` Otavio Salvador
2012-02-22 16:09               ` Richard Purdie
2012-02-22 16:16                 ` Otavio Salvador
2012-02-22 16:43                   ` Richard Purdie
2012-02-22 16:00           ` Phil Blundell
2012-02-22 14:48 ` Otavio Salvador
2012-02-24  4:13 ` Saul Wold

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.