Skip to contentSkip to conversation

pkg-stats: add luarocks perl python virtual infrastructures

PATCH New Fabio Porcedda 4 participants 8 messages May 14, 2014 – May 16, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 pkg-stats: add luarocks perl python virtual infrastructures

Recongize the recently added infrastrucures: luarocks, perl, python, virtual.

Cc Jerzy Grzegorek <[email protected]>
Cc Luca Ceresoli <[email protected]>
Cc Thomas Petazzoni <[email protected]>
---
 support/scripts/pkg-stats | 71 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 71 insertions(+)
support/scripts/pkg-stats +71 -0
index 4effa59..fd60d7d 100755
@@ -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>"
Signature · 1 line
1.9.1
#1 lore raw

PATCH 2/2 pkg-stats: fix whitespaces

Remove some spaces before tabs and add the empty line at end of file.

Cc Jerzy Grzegorek <[email protected]>
Cc Luca Ceresoli <[email protected]>
Cc Thomas Petazzoni <[email protected]>
---
 support/scripts/pkg-stats | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
support/scripts/pkg-stats +5 -5
index fd60d7d..f5d6ec8 100755
@@ -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>"
Signature · 1 line
1.9.1
#2 lore raw

PATCH 2/2 pkg-stats: fix whitespaces

Dear Fabio Porcedda,

Quoted 9 lines · Fabio Porcedda

Remove some spaces before tabs and add the empty line at end of file.

Cc Jerzy Grzegorek <[email protected]>
Cc Luca Ceresoli <[email protected]>
Cc Thomas Petazzoni <[email protected]>
---
 support/scripts/pkg-stats | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#3 lore raw

PATCH 1/2 pkg-stats: add luarocks perl python virtual infrastructures

In reply to Fabio Porcedda

Dear Fabio Porcedda,

Quoted 10 lines · Fabio Porcedda

Recongize the recently added infrastrucures: luarocks, perl, python, virtual.

Cc Jerzy Grzegorek <[email protected]>
Cc Luca Ceresoli <[email protected]>
Cc Thomas Petazzoni <[email protected]>
---
 support/scripts/pkg-stats | 71 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 71 insertions(+)
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#4 lore raw

PATCH 1/2 pkg-stats: add luarocks perl python virtual infrastructures

In reply to Fabio Porcedda
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabio" == Fabio Porcedda <[email protected]> writes:

Recongize the recently added infrastrucures: luarocks, perl, python, virtual.

Fixed the typos above and committed both, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#5 lore raw

PATCH 1/2 pkg-stats: add luarocks perl python virtual infrastructures

In reply to Fabio Porcedda

Dear Fabio Porcedda,

Quoted 10 lines · Fabio Porcedda

Recongize the recently added infrastrucures: luarocks, perl, python, virtual.

Cc Jerzy Grzegorek <[email protected]>
Cc Luca Ceresoli <[email protected]>
Cc Thomas Petazzoni <[email protected]>
---
 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

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#6 lore raw

PATCH 1/2 pkg-stats: add luarocks perl python virtual infrastructures

Quoted 14 lines · Thomas Petazzoni

Dear Fabio Porcedda,

Quoted 10 lines · Fabio Porcedda

Recongize the recently added infrastrucures: luarocks, perl, python, virtual.

Cc Jerzy Grzegorek <[email protected]>
Cc Luca Ceresoli <[email protected]>
Cc Thomas Petazzoni <[email protected]>
---
 support/scripts/pkg-stats | 71 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 71 insertions(+)
Quoted 3 lines

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.

Quoted 1 line

Thanks for having worked on updating this script!

Best regards

Signature · 1 line
Fabio Porcedda
#7 lore raw

PATCH 1/2 pkg-stats: add luarocks perl python virtual infrastructures

In reply to Thomas Petazzoni
Quoted 4 lines · On Fri, 16 May 2014 09:31:42 +0200 Thomas Petazzoni…

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