* [Buildroot] [PATCH] pkg-stats: add statistics about hash files
@ 2014-10-17 13:34 Thomas Petazzoni
2014-10-17 14:00 ` Maxime Hadjinlian
2014-10-19 15:21 ` Thomas Petazzoni
0 siblings, 2 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2014-10-17 13:34 UTC (permalink / raw)
To: buildroot
As discussed during the Buildroot meeting, this commit extends the
pkg-stats script to include statistics about the number of packages
having vs. not having the hash file.
As of today, we have 104 packages with the hash file, and 1274
packages without.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
support/scripts/pkg-stats | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats
index f5d6ec8..f6d10bb 100755
--- a/support/scripts/pkg-stats
+++ b/support/scripts/pkg-stats
@@ -67,6 +67,7 @@ td.lotsofpatches {
<td class=\"centered\">Infrastructure</td>
<td class=\"centered\">License</td>
<td class=\"centered\">License files</td>
+<td class=\"centered\">Hash file</td>
</tr>
"
@@ -82,6 +83,8 @@ packages_with_licence=0
packages_without_licence=0
packages_with_license_files=0
packages_without_license_files=0
+packages_with_hash_file=0
+packages_without_hash_file=0
total_patch_count=0
cnt=0
@@ -191,6 +194,7 @@ for i in $(find boot/ linux/ package/ -name '*.mk' | sort) ; do
fi
pkg=$(basename $i)
+ dir=$(dirname $i)
pkg=${pkg%.mk}
pkgvariable=$(echo ${pkg} | tr "a-z-" "A-Z_")
@@ -231,6 +235,14 @@ for i in $(find boot/ linux/ package/ -name '*.mk' | sort) ; do
license_files=0
fi
+ if test -f ${dir}/${pkg}.hash; then
+ packages_with_hash_file=$(($packages_with_hash_file+1))
+ hash_file=1
+ else
+ packages_without_hash_file=$(($packages_without_hash_file+1))
+ hash_file=0
+ fi
+
echo "<tr>"
echo "<td>$cnt</td>"
@@ -279,6 +291,12 @@ for i in $(find boot/ linux/ package/ -name '*.mk' | sort) ; do
echo "<td class=\"centered correct\">Yes</td>"
fi
+ if [ ${hash_file} -eq 0 ] ; then
+ echo "<td class=\"centered wrong\">No</td>"
+ else
+ echo "<td class=\"centered correct\">Yes</td>"
+ fi
+
echo "</tr>"
done
@@ -335,6 +353,14 @@ echo "<td>Packages not having licence files information</td>"
echo "<td>$packages_without_license_files</td>"
echo "</tr>"
echo "<tr>"
+echo "<td>Packages having hash file</td>"
+echo "<td>$packages_with_hash_file</td>"
+echo "</tr>"
+echo "<tr>"
+echo "<td>Packages not having hash file</td>"
+echo "<td>$packages_without_hash_file</td>"
+echo "</tr>"
+echo "<tr>"
echo "<td>Number of patches in all packages</td>"
echo "<td>$total_patch_count</td>"
echo "</tr>"
--
2.0.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] pkg-stats: add statistics about hash files
2014-10-17 13:34 [Buildroot] [PATCH] pkg-stats: add statistics about hash files Thomas Petazzoni
@ 2014-10-17 14:00 ` Maxime Hadjinlian
2014-10-18 16:33 ` Thomas Petazzoni
2014-10-19 15:21 ` Thomas Petazzoni
1 sibling, 1 reply; 5+ messages in thread
From: Maxime Hadjinlian @ 2014-10-17 14:00 UTC (permalink / raw)
To: buildroot
Hi Thomas, all
On Fri, Oct 17, 2014 at 3:34 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> As discussed during the Buildroot meeting, this commit extends the
> pkg-stats script to include statistics about the number of packages
> having vs. not having the hash file.
>
> As of today, we have 104 packages with the hash file, and 1274
> packages without.
>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
As information, I have started reworking this patch:
http://patchwork.ozlabs.org/patch/337267/
I'll make sure to take your current patch into account.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] pkg-stats: add statistics about hash files
2014-10-17 14:00 ` Maxime Hadjinlian
@ 2014-10-18 16:33 ` Thomas Petazzoni
2014-10-18 17:01 ` Maxime Hadjinlian
0 siblings, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2014-10-18 16:33 UTC (permalink / raw)
To: buildroot
Dear Maxime Hadjinlian,
On Fri, 17 Oct 2014 16:00:02 +0200, Maxime Hadjinlian wrote:
> As information, I have started reworking this patch:
> http://patchwork.ozlabs.org/patch/337267/
> I'll make sure to take your current patch into account.
Sure. However, since reworking 337267 to get it to a mergeable state
will probably take a bit of time, I'd still like my patch to be merged
if possible. The existing pkg-stats will of course be superseded by the
Python version you're working on, once it gets merged.
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] pkg-stats: add statistics about hash files
2014-10-18 16:33 ` Thomas Petazzoni
@ 2014-10-18 17:01 ` Maxime Hadjinlian
0 siblings, 0 replies; 5+ messages in thread
From: Maxime Hadjinlian @ 2014-10-18 17:01 UTC (permalink / raw)
To: buildroot
Hi Thomas, all
On Sat, Oct 18, 2014 at 6:33 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Dear Maxime Hadjinlian,
>
> On Fri, 17 Oct 2014 16:00:02 +0200, Maxime Hadjinlian wrote:
>
>> As information, I have started reworking this patch:
>> http://patchwork.ozlabs.org/patch/337267/
>> I'll make sure to take your current patch into account.
>
> Sure. However, since reworking 337267 to get it to a mergeable state
> will probably take a bit of time, I'd still like my patch to be merged
> if possible. The existing pkg-stats will of course be superseded by the
> Python version you're working on, once it gets merged.
Absolutely, this was only to let know that I am working on this one so
we don't end up with multiple people doing the same work.
>
> Thanks,
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] pkg-stats: add statistics about hash files
2014-10-17 13:34 [Buildroot] [PATCH] pkg-stats: add statistics about hash files Thomas Petazzoni
2014-10-17 14:00 ` Maxime Hadjinlian
@ 2014-10-19 15:21 ` Thomas Petazzoni
1 sibling, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2014-10-19 15:21 UTC (permalink / raw)
To: buildroot
Hello,
On Fri, 17 Oct 2014 15:34:12 +0200, Thomas Petazzoni wrote:
> As discussed during the Buildroot meeting, this commit extends the
> pkg-stats script to include statistics about the number of packages
> having vs. not having the hash file.
>
> As of today, we have 104 packages with the hash file, and 1274
> packages without.
>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
> support/scripts/pkg-stats | 26 ++++++++++++++++++++++++++
> 1 file changed, 26 insertions(+)
I've applied this patch.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-10-19 15:21 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-17 13:34 [Buildroot] [PATCH] pkg-stats: add statistics about hash files Thomas Petazzoni
2014-10-17 14:00 ` Maxime Hadjinlian
2014-10-18 16:33 ` Thomas Petazzoni
2014-10-18 17:01 ` Maxime Hadjinlian
2014-10-19 15:21 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox