* [Buildroot] [PATCH 1/2] pkg-stats: add luarocks perl python virtual infrastructures
@ 2014-05-14 11:24 Fabio Porcedda
2014-05-14 11:24 ` [Buildroot] [PATCH 2/2] pkg-stats: fix whitespaces Fabio Porcedda
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Fabio Porcedda @ 2014-05-14 11:24 UTC (permalink / raw)
To: buildroot
Recongize the recently added infrastrucures: luarocks, perl, python,
virtual.
Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
Cc: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net>
Cc: Luca Ceresoli <luca@lucaceresoli.net>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
support/scripts/pkg-stats | 71 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 71 insertions(+)
diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats
index 4effa59..fd60d7d 100755
--- a/support/scripts/pkg-stats
+++ b/support/scripts/pkg-stats
@@ -72,6 +72,10 @@ td.lotsofpatches {
autotools_packages=0
cmake_packages=0
+luarocks_package=0
+perl_packages=0
+python_packages=0
+virtual_packages=0
generic_packages=0
manual_packages=0
packages_with_licence=0
@@ -99,6 +103,10 @@ for i in $(find boot/ linux/ package/ -name '*.mk' | sort) ; do
$i = "package/x11r7/x11r7.mk" -o \
$i = "package/pkg-autotools.mk" -o \
$i = "package/pkg-cmake.mk" -o \
+ $i = "package/pkg-luarocks.mk" -o \
+ $i = "package/pkg-perl.mk" -o \
+ $i = "package/pkg-python.mk" -o \
+ $i = "package/pkg-virtual.mk" -o \
$i = "package/pkg-download.mk" -o \
$i = "package/pkg-generic.mk" -o \
$i = "package/pkg-utils.mk" ; then
@@ -123,6 +131,45 @@ for i in $(find boot/ linux/ package/ -name '*.mk' | sort) ; do
hastarget=1
fi
+ if grep -E "\(host-luarocks-package\)" $i > /dev/null ; then
+ infratype="luarocks"
+ hashost=1
+ fi
+
+ if grep -E "\(luarocks-package\)" $i > /dev/null ; then
+ infratype="luarocks"
+ hastarget=1
+ fi
+
+ if grep -E "\(host-perl-package\)" $i > /dev/null ; then
+ infratype="perl"
+ hashost=1
+ fi
+
+ if grep -E "\(perl-package\)" $i > /dev/null ; then
+ infratype="perl"
+ hastarget=1
+ fi
+
+ if grep -E "\(host-python-package\)" $i > /dev/null ; then
+ infratype="python"
+ hashost=1
+ fi
+
+ if grep -E "\(python-package\)" $i > /dev/null ; then
+ infratype="python"
+ hastarget=1
+ fi
+ if grep -E "\(host-virtual-package\)" $i > /dev/null ; then
+ infratype="virtual"
+ hashost=1
+ fi
+
+ if grep -E "\(virtual-package\)" $i > /dev/null ; then
+ infratype="virtual"
+ hastarget=1
+ fi
+
if grep -E "\(host-generic-package\)" $i > /dev/null ; then
infratype="generic"
hashost=1
@@ -156,6 +203,14 @@ for i in $(find boot/ linux/ package/ -name '*.mk' | sort) ; do
autotools_packages=$(($autotools_packages+1))
elif [ ${infratype} = "cmake" ]; then
cmake_packages=$(($cmake_packages+1))
+ elif [ ${infratype} = "luarocks" ]; then
+ luarocks_packages=$(($luarocks_packages+1))
+ elif [ ${infratype} = "perl" ]; then
+ perl_packages=$(($perl_packages+1))
+ elif [ ${infratype} = "python" ]; then
+ python_packages=$(($python_packages+1))
+ elif [ ${infratype} = "virtual" ]; then
+ virtual_packages=$(($virtual_packages+1))
elif [ ${infratype} = "generic" ]; then
generic_packages=$(($generic_packages+1))
fi
@@ -244,6 +299,22 @@ echo "<td>Packages using the <i>autotools</i> infrastructure</td>"
echo "<td>$autotools_packages</td>"
echo "</tr>"
echo "<tr>"
+echo "<td>Packages using the <i>luarocks</i> infrastructure</td>"
+echo "<td>$luarocks_packages</td>"
+echo "</tr>"
+echo "<tr>"
+echo "<td>Packages using the <i>perl</i> infrastructure</td>"
+echo "<td>$perl_packages</td>"
+echo "</tr>"
+echo "<tr>"
+echo "<td>Packages using the <i>python</i> infrastructure</td>"
+echo "<td>$python_packages</td>"
+echo "</tr>"
+echo "<tr>"
+echo "<td>Packages using the <i>virtual</i> infrastructure</td>"
+echo "<td>$virtual_packages</td>"
+echo "</tr>"
+echo "<tr>"
echo "<td>Packages not using any infrastructure</td>"
echo "<td>$manual_packages</td>"
echo "</tr>"
--
1.9.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH 2/2] pkg-stats: fix whitespaces
2014-05-14 11:24 [Buildroot] [PATCH 1/2] pkg-stats: add luarocks perl python virtual infrastructures Fabio Porcedda
@ 2014-05-14 11:24 ` Fabio Porcedda
2014-05-14 11:32 ` Thomas Petazzoni
2014-05-14 11:32 ` [Buildroot] [PATCH 1/2] pkg-stats: add luarocks perl python virtual infrastructures Thomas Petazzoni
` (2 subsequent siblings)
3 siblings, 1 reply; 8+ messages in thread
From: Fabio Porcedda @ 2014-05-14 11:24 UTC (permalink / raw)
To: buildroot
Remove some spaces before tabs and add the empty line at end of file.
Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
Cc: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net>
Cc: Luca Ceresoli <luca@lucaceresoli.net>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
support/scripts/pkg-stats | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats
index fd60d7d..f5d6ec8 100755
--- a/support/scripts/pkg-stats
+++ b/support/scripts/pkg-stats
@@ -101,15 +101,15 @@ for i in $(find boot/ linux/ package/ -name '*.mk' | sort) ; do
$i = "package/opengl/opengl.mk" -o \
$i = "package/qt5/qt5.mk" -o \
$i = "package/x11r7/x11r7.mk" -o \
- $i = "package/pkg-autotools.mk" -o \
- $i = "package/pkg-cmake.mk" -o \
+ $i = "package/pkg-autotools.mk" -o \
+ $i = "package/pkg-cmake.mk" -o \
$i = "package/pkg-luarocks.mk" -o \
$i = "package/pkg-perl.mk" -o \
$i = "package/pkg-python.mk" -o \
$i = "package/pkg-virtual.mk" -o \
$i = "package/pkg-download.mk" -o \
- $i = "package/pkg-generic.mk" -o \
- $i = "package/pkg-utils.mk" ; then
+ $i = "package/pkg-generic.mk" -o \
+ $i = "package/pkg-utils.mk" ; then
echo "skipping $i" 1>&2
continue
fi
@@ -347,4 +347,4 @@ echo "</table>"
echo "<hr/>"
echo "<i>Updated on $(LANG=C date), Git commit $(git log master -n 1 --pretty=format:%H)</i>"
echo "</body>"
-echo "</html>"
\ No newline at end of file
+echo "</html>"
--
1.9.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH 1/2] pkg-stats: add luarocks perl python virtual infrastructures
2014-05-14 11:24 [Buildroot] [PATCH 1/2] pkg-stats: add luarocks perl python virtual infrastructures Fabio Porcedda
2014-05-14 11:24 ` [Buildroot] [PATCH 2/2] pkg-stats: fix whitespaces Fabio Porcedda
@ 2014-05-14 11:32 ` Thomas Petazzoni
2014-05-15 21:38 ` Peter Korsgaard
2014-05-16 7:31 ` Thomas Petazzoni
3 siblings, 0 replies; 8+ messages in thread
From: Thomas Petazzoni @ 2014-05-14 11:32 UTC (permalink / raw)
To: buildroot
Dear Fabio Porcedda,
On Wed, 14 May 2014 13:24:13 +0200, Fabio Porcedda wrote:
> Recongize the recently added infrastrucures: luarocks, perl, python,
> virtual.
>
> Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
> Cc: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net>
> Cc: Luca Ceresoli <luca@lucaceresoli.net>
> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
> support/scripts/pkg-stats | 71 +++++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 71 insertions(+)
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH 2/2] pkg-stats: fix whitespaces
2014-05-14 11:24 ` [Buildroot] [PATCH 2/2] pkg-stats: fix whitespaces Fabio Porcedda
@ 2014-05-14 11:32 ` Thomas Petazzoni
0 siblings, 0 replies; 8+ messages in thread
From: Thomas Petazzoni @ 2014-05-14 11:32 UTC (permalink / raw)
To: buildroot
Dear Fabio Porcedda,
On Wed, 14 May 2014 13:24:14 +0200, Fabio Porcedda wrote:
> Remove some spaces before tabs and add the empty line at end of file.
>
> Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
> Cc: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net>
> Cc: Luca Ceresoli <luca@lucaceresoli.net>
> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
> support/scripts/pkg-stats | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH 1/2] pkg-stats: add luarocks perl python virtual infrastructures
2014-05-14 11:24 [Buildroot] [PATCH 1/2] pkg-stats: add luarocks perl python virtual infrastructures Fabio Porcedda
2014-05-14 11:24 ` [Buildroot] [PATCH 2/2] pkg-stats: fix whitespaces Fabio Porcedda
2014-05-14 11:32 ` [Buildroot] [PATCH 1/2] pkg-stats: add luarocks perl python virtual infrastructures Thomas Petazzoni
@ 2014-05-15 21:38 ` Peter Korsgaard
2014-05-16 7:31 ` Thomas Petazzoni
3 siblings, 0 replies; 8+ messages in thread
From: Peter Korsgaard @ 2014-05-15 21:38 UTC (permalink / raw)
To: buildroot
>>>>> "Fabio" == Fabio Porcedda <fabio.porcedda@gmail.com> writes:
> Recongize the recently added infrastrucures: luarocks, perl, python,
> virtual.
Fixed the typos above and committed both, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH 1/2] pkg-stats: add luarocks perl python virtual infrastructures
2014-05-14 11:24 [Buildroot] [PATCH 1/2] pkg-stats: add luarocks perl python virtual infrastructures Fabio Porcedda
` (2 preceding siblings ...)
2014-05-15 21:38 ` Peter Korsgaard
@ 2014-05-16 7:31 ` Thomas Petazzoni
2014-05-16 9:12 ` Fabio Porcedda
2014-05-16 12:42 ` Mike Zick
3 siblings, 2 replies; 8+ messages in thread
From: Thomas Petazzoni @ 2014-05-16 7:31 UTC (permalink / raw)
To: buildroot
Dear Fabio Porcedda,
On Wed, 14 May 2014 13:24:13 +0200, Fabio Porcedda wrote:
> Recongize the recently added infrastrucures: luarocks, perl, python,
> virtual.
>
> Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
> Cc: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net>
> Cc: Luca Ceresoli <luca@lucaceresoli.net>
> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
> support/scripts/pkg-stats | 71 +++++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 71 insertions(+)
Today's output is now correct thanks to your patch:
http://autobuild.buildroot.org/stats/. And it now properly concludes
that there are 0 packages not using any infrastructure \o/
Thanks for having worked on updating this script!
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH 1/2] pkg-stats: add luarocks perl python virtual infrastructures
2014-05-16 7:31 ` Thomas Petazzoni
@ 2014-05-16 9:12 ` Fabio Porcedda
2014-05-16 12:42 ` Mike Zick
1 sibling, 0 replies; 8+ messages in thread
From: Fabio Porcedda @ 2014-05-16 9:12 UTC (permalink / raw)
To: buildroot
On Fri, May 16, 2014 at 9:31 AM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Dear Fabio Porcedda,
>
> On Wed, 14 May 2014 13:24:13 +0200, Fabio Porcedda wrote:
>> Recongize the recently added infrastrucures: luarocks, perl, python,
>> virtual.
>>
>> Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
>> Cc: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net>
>> Cc: Luca Ceresoli <luca@lucaceresoli.net>
>> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
>> ---
>> support/scripts/pkg-stats | 71 +++++++++++++++++++++++++++++++++++++++++++++++
>> 1 file changed, 71 insertions(+)
>
> Today's output is now correct thanks to your patch:
> http://autobuild.buildroot.org/stats/. And it now properly concludes
> that there are 0 packages not using any infrastructure \o/
Yeah that's great, packages not using any infrastructure are
problematic for top level parallel make so I was glad to find that
there aren't such packages.
> Thanks for having worked on updating this script!
Best regards
--
Fabio Porcedda
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH 1/2] pkg-stats: add luarocks perl python virtual infrastructures
2014-05-16 7:31 ` Thomas Petazzoni
2014-05-16 9:12 ` Fabio Porcedda
@ 2014-05-16 12:42 ` Mike Zick
1 sibling, 0 replies; 8+ messages in thread
From: Mike Zick @ 2014-05-16 12:42 UTC (permalink / raw)
To: buildroot
On Fri, 16 May 2014 09:31:42 +0200
Thomas Petazzoni <thomas.petazzoni@free-electrons.com> wrote:
> Today's output is now correct thanks to your patch:
> http://autobuild.buildroot.org/stats/. And it now properly concludes
> that there are 0 packages not using any infrastructure \o/
>
Nice looking report.
A very tiny nit:
Pick a single spelling of license/licence in the summary section.
Mike
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-05-16 12:42 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-14 11:24 [Buildroot] [PATCH 1/2] pkg-stats: add luarocks perl python virtual infrastructures Fabio Porcedda
2014-05-14 11:24 ` [Buildroot] [PATCH 2/2] pkg-stats: fix whitespaces Fabio Porcedda
2014-05-14 11:32 ` Thomas Petazzoni
2014-05-14 11:32 ` [Buildroot] [PATCH 1/2] pkg-stats: add luarocks perl python virtual infrastructures Thomas Petazzoni
2014-05-15 21:38 ` Peter Korsgaard
2014-05-16 7:31 ` Thomas Petazzoni
2014-05-16 9:12 ` Fabio Porcedda
2014-05-16 12:42 ` Mike Zick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox