Skip to contentSkip to conversation

valgrind: added perl dependency

PATCH Superseded [email protected] 4 participants 13 messages Jun 7, 2013 – Jul 16, 2013

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 valgrind: added perl dependency

From: "Felipe F. Tonello" <[email protected]>

This is necessary since the valgrind package depends on /usr/bin/perl.

This patch will fix this error while installing into rootfs:
Computing transaction...error: Can't install valgrind-3.8.1-r8@armv7a_vfp_neon: no package provides /usr/bin/perl

---
 meta/recipes-devtools/valgrind/valgrind_3.8.1.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-devtools/valgrind/valgrind_3.8.1.bb +2 -2
index 3520d49..ae2c5a2 100644
@@ -8,8 +8,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=c46082167a314d785d012a244748d803 \
                     file://COPYING.DOCS;md5=8fdeb5abdb235a08e76835f8f3260215"
 
 X11DEPENDS = "virtual/libx11"
-DEPENDS = "${@base_contains('DISTRO_FEATURES', 'x11', '${X11DEPENDS}', '', d)}"
-PR = "r8"
+DEPENDS = "${@base_contains('DISTRO_FEATURES', 'x11', '${X11DEPENDS}', '', d)} perl"
+PR = "r9"
 
 SRC_URI = "http://www.valgrind.org/downloads/valgrind-${PV}.tar.bz2 \
 	   file://fix_issue_caused_by_ccache.patch \
Signature · 1 line
1.8.1.4
#1 lore raw
Quoted 6 lines · On Fri, Jun 07, 2013 at 10:35:02AM -0700, [email protected] wrote:

From: "Felipe F. Tonello" <[email protected]>

This is necessary since the valgrind package depends on /usr/bin/perl.

This patch will fix this error while installing into rootfs:
Computing transaction...error: Can't install valgrind-3.8.1-r8@armv7a_vfp_neon: no package provides /usr/bin/perl

This doesn't look as build-time dependency and before you add it to RDEPENDS_${PN} use grep to find which file in valgrind package is using /usr/bin/perl shebang

grep -R '#/usr/bin/perl' packages-split/valgrind

and if it's just some "extra" script not always needed for valgrind, then move it to extra package and add perl only to PN-this-extra-package.

Cheers,

Quoted 28 lines
---
 meta/recipes-devtools/valgrind/valgrind_3.8.1.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-devtools/valgrind/valgrind_3.8.1.bb +2 -2
index 3520d49..ae2c5a2 100644
@@ -8,8 +8,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=c46082167a314d785d012a244748d803 \
                     file://COPYING.DOCS;md5=8fdeb5abdb235a08e76835f8f3260215"
 
 X11DEPENDS = "virtual/libx11"
-DEPENDS = "${@base_contains('DISTRO_FEATURES', 'x11', '${X11DEPENDS}', '', d)}"
-PR = "r8"
+DEPENDS = "${@base_contains('DISTRO_FEATURES', 'x11', '${X11DEPENDS}', '', d)} perl"
+PR = "r9"
 
 SRC_URI = "http://www.valgrind.org/downloads/valgrind-${PV}.tar.bz2 \
 	   file://fix_issue_caused_by_ccache.patch \
Signature · 6 lines
1.8.1.4

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#2 lore raw
Quoted 5 lines · Martin Jansa
Quoted 4 lines · On Fri, Jun 07, 2013 at 10:35:02AM -0700, [email protected] wrote:

From: "Felipe F. Tonello" <[email protected]>

This is necessary since the valgrind package depends on /usr/bin/perl.

Quoted 8 lines
Quoted 2 lines

This patch will fix this error while installing into rootfs:
Computing transaction...error: Can't install valgrind-3.8.1-r8@armv7a_vfp_neon: no package provides /usr/bin/perl

This doesn't look as build-time dependency and before you add it to RDEPENDS_${PN} use grep to find which file in valgrind package is using /usr/bin/perl shebang

grep -R '#/usr/bin/perl' packages-split/valgrind

ups, missed ! but you probably got the ide

Quoted 38 lines

and if it's just some "extra" script not always needed for valgrind, then move it to extra package and add perl only to PN-this-extra-package.

Cheers,

Quoted 28 lines
---
 meta/recipes-devtools/valgrind/valgrind_3.8.1.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-devtools/valgrind/valgrind_3.8.1.bb +2 -2
index 3520d49..ae2c5a2 100644
@@ -8,8 +8,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=c46082167a314d785d012a244748d803 \
                     file://COPYING.DOCS;md5=8fdeb5abdb235a08e76835f8f3260215"
 
 X11DEPENDS = "virtual/libx11"
-DEPENDS = "${@base_contains('DISTRO_FEATURES', 'x11', '${X11DEPENDS}', '', d)}"
-PR = "r8"
+DEPENDS = "${@base_contains('DISTRO_FEATURES', 'x11', '${X11DEPENDS}', '', d)} perl"
+PR = "r9"
 
 SRC_URI = "http://www.valgrind.org/downloads/valgrind-${PV}.tar.bz2 \
 	   file://fix_issue_caused_by_ccache.patch \
Signature · 6 lines
1.8.1.4

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#3 lore raw
In reply to Martin Jansa

Hi Martin,

Quoted 11 lines · Martin Jansa
Quoted 6 lines · On Fri, Jun 07, 2013 at 10:35:02AM -0700, [email protected] wrote:

From: "Felipe F. Tonello" <[email protected]>

This is necessary since the valgrind package depends on /usr/bin/perl.

This patch will fix this error while installing into rootfs:
Computing transaction...error: Can't install valgrind-3.8.1-r8@armv7a_vfp_neon: no package provides /usr/bin/perl

This doesn't look as build-time dependency and before you add it to RDEPENDS_${PN} use grep to find which file in valgrind package is using /usr/bin/perl shebang

You are right, it's not a build time dependency, but this fix works anyway hehe.

Quoted 6 lines

grep -R '#/usr/bin/perl' packages-split/valgrind

and if it's just some "extra" script not always needed for valgrind, then move it to extra package and add perl only to PN-this-extra-package.

Yes, this makes sense.

Thank you

Felipe

#4 lore raw

I got this:

valgrind/usr/bin/ms_print
1:#! /usr/bin/perl

valgrind/usr/bin/cg_diff
1:#! /usr/bin/perl

valgrind/usr/bin/cg_annotate
1:#! /usr/bin/perl

valgrind/usr/bin/callgrind_annotate
1:#! /usr/bin/perl -w

valgrind/usr/bin/callgrind_control
1:#! /usr/bin/perl -w

valgrind-doc/usr/share/doc/valgrind/html/manual-core.html 165:<code class="filename">/usr/bin/perl</code>, or whatever interpreter

valgrind-doc/usr/share/doc/valgrind/valgrind_manual.ps 55978:(/usr/bin/perl) 77.7083 Tj

Do you know if these "binaries" are part of the main package or can be extra? I'm not that familiar with valgrind.

#5 lore raw
Quoted 17 lines · Felipe Tonello

I got this:

valgrind/usr/bin/ms_print
1:#! /usr/bin/perl

valgrind/usr/bin/cg_diff
1:#! /usr/bin/perl

valgrind/usr/bin/cg_annotate
1:#! /usr/bin/perl

valgrind/usr/bin/callgrind_annotate
1:#! /usr/bin/perl -w

valgrind/usr/bin/callgrind_control
1:#! /usr/bin/perl -w

Quoted 8 lines

valgrind-doc/usr/share/doc/valgrind/html/manual-core.html 165:<code class="filename">/usr/bin/perl</code>, or whatever interpreter

valgrind-doc/usr/share/doc/valgrind/valgrind_manual.ps 55978:(/usr/bin/perl) 77.7083 Tj

Do you know if these "binaries" are part of the main package or can be extra? I'm not that familiar with valgrind.

Neither am I, but from filenames I would guess they are not mandatory to run valgrind binary, hopefully someone who is using valgrind daily will respond soon...

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#6 lore raw
Quoted 24 lines · Martin Jansa
Quoted 23 lines · Felipe Tonello

I got this:

valgrind/usr/bin/ms_print
1:#! /usr/bin/perl

valgrind/usr/bin/cg_diff
1:#! /usr/bin/perl

valgrind/usr/bin/cg_annotate
1:#! /usr/bin/perl

valgrind/usr/bin/callgrind_annotate
1:#! /usr/bin/perl -w

valgrind/usr/bin/callgrind_control
1:#! /usr/bin/perl -w

valgrind-doc/usr/share/doc/valgrind/html/manual-core.html 165:<code class="filename">/usr/bin/perl</code>, or whatever interpreter

valgrind-doc/usr/share/doc/valgrind/valgrind_manual.ps 55978:(/usr/bin/perl) 77.7083 Tj

Quoted 7 lines
Quoted 2 lines

Do you know if these "binaries" are part of the main package or can be extra? I'm not that familiar with valgrind.

Neither am I, but from filenames I would guess they are not mandatory to run valgrind binary, hopefully someone who is using valgrind daily will respond soon...

they are fine with valgrind package itself. although its a rdepend and not depend

Quoted 8 lines

--
Martin 'JaMa' Jansa jabber: [email protected]

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#7 lore raw

Should I send another patch?

Quoted 46 lines · Khem Raj
Quoted 24 lines · Martin Jansa
Quoted 23 lines · Felipe Tonello

I got this:

valgrind/usr/bin/ms_print
1:#! /usr/bin/perl

valgrind/usr/bin/cg_diff
1:#! /usr/bin/perl

valgrind/usr/bin/cg_annotate
1:#! /usr/bin/perl

valgrind/usr/bin/callgrind_annotate
1:#! /usr/bin/perl -w

valgrind/usr/bin/callgrind_control
1:#! /usr/bin/perl -w

valgrind-doc/usr/share/doc/valgrind/html/manual-core.html 165:<code class="filename">/usr/bin/perl</code>, or whatever interpreter

valgrind-doc/usr/share/doc/valgrind/valgrind_manual.ps 55978:(/usr/bin/perl) 77.7083 Tj

Quoted 7 lines
Quoted 2 lines

Do you know if these "binaries" are part of the main package or can be extra? I'm not that familiar with valgrind.

Neither am I, but from filenames I would guess they are not mandatory to run valgrind binary, hopefully someone who is using valgrind daily will respond soon...

they are fine with valgrind package itself. although its a rdepend and not depend

Quoted 8 lines

--
Martin 'JaMa' Jansa jabber: [email protected]

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#8 lore raw
Quoted 2 lines · Felipe Tonello

Should I send another patch?

I think that Khem pointed out it should be an RDEPENDS not DEPENDS and you can drop the PR bump.

Sau!

Quoted 53 lines · Khem Raj
Quoted 28 lines · Martin Jansa
Quoted 27 lines · Felipe Tonello
Quoted 25 lines

I got this:

valgrind/usr/bin/ms_print
1:#! /usr/bin/perl

valgrind/usr/bin/cg_diff
1:#! /usr/bin/perl

valgrind/usr/bin/cg_annotate
1:#! /usr/bin/perl

valgrind/usr/bin/callgrind_annotate
1:#! /usr/bin/perl -w

valgrind/usr/bin/callgrind_control
1:#! /usr/bin/perl -w

valgrind-doc/usr/share/doc/valgrind/html/manual-core.html 165:<code class="filename">/usr/bin/perl</code>, or whatever interpreter

valgrind-doc/usr/share/doc/valgrind/valgrind_manual.ps 55978:(/usr/bin/perl) 77.7083 Tj

Do you know if these "binaries" are part of the main package or can be extra? I'm not that familiar with valgrind.

Quoted 18 lines
Quoted 4 lines

Neither am I, but from filenames I would guess they are not mandatory to run valgrind binary, hopefully someone who is using valgrind daily will respond soon...

they are fine with valgrind package itself. although its a rdepend and not depend

Quoted 8 lines

--
Martin 'JaMa' Jansa jabber: [email protected]

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#9 lore raw
In reply to Felipe Tonello
Quoted 1 line · Felipe Tonello

Should I send another patch?

Please do.

Quoted 48 lines · Khem Raj
Quoted 46 lines · Martin Jansa
Quoted 24 lines · Felipe Tonello
Quoted 23 lines

I got this:

valgrind/usr/bin/ms_print
1:#! /usr/bin/perl

valgrind/usr/bin/cg_diff
1:#! /usr/bin/perl

valgrind/usr/bin/cg_annotate
1:#! /usr/bin/perl

valgrind/usr/bin/callgrind_annotate
1:#! /usr/bin/perl -w

valgrind/usr/bin/callgrind_control
1:#! /usr/bin/perl -w

valgrind-doc/usr/share/doc/valgrind/html/manual-core.html 165:<code class="filename">/usr/bin/perl</code>, or whatever interpreter

valgrind-doc/usr/share/doc/valgrind/valgrind_manual.ps 55978:(/usr/bin/perl) 77.7083 Tj

Quoted 7 lines
Quoted 2 lines

Do you know if these "binaries" are part of the main package or can be extra? I'm not that familiar with valgrind.

Neither am I, but from filenames I would guess they are not mandatory to run valgrind binary, hopefully someone who is using valgrind daily will respond soon...

they are fine with valgrind package itself. although its a rdepend and not depend

Quoted 8 lines

--
Martin 'JaMa' Jansa jabber: [email protected]

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#10 lore raw

PATCH v2 1/1 valgrind: added perl dependency

In reply to [email protected]

From: "Felipe F. Tonello" <[email protected]>

This is necessary since the valgrind package depends on /usr/bin/perl.

This patch will fix this error while installing into rootfs:
Computing transaction...error: Can't install valgrind-3.8.1-r8@armv7a_vfp_neon: no package provides /usr/bin/perl

---
 meta/recipes-devtools/valgrind/valgrind_3.8.1.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta/recipes-devtools/valgrind/valgrind_3.8.1.bb +3 -1
index 3520d49..4ee1b64 100644
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=c46082167a314d785d012a244748d803 \
 
 X11DEPENDS = "virtual/libx11"
 DEPENDS = "${@base_contains('DISTRO_FEATURES', 'x11', '${X11DEPENDS}', '', d)}"
-PR = "r8"
+PR = "r9"
 
 SRC_URI = "http://www.valgrind.org/downloads/valgrind-${PV}.tar.bz2 \
 	   file://fix_issue_caused_by_ccache.patch \
@@ -37,6 +37,8 @@ do_install_append () {
     install -m 644 ${B}/default.supp ${D}/${libdir}/valgrind/
 }
 
+RDEPENDS_${PN} += "perl"
+
 FILES_${PN}-dbg += "${libdir}/${PN}/*/.debug/*"
 RRECOMMENDS_${PN}_powerpc += "${TCLIBC}-dbg"
 RRECOMMENDS_${PN}_powerpc64 += "${TCLIBC}-dbg"
Signature · 1 line
1.8.1.4
#11 lore raw
Quoted 17 lines · On 07/16/2013 03:16 PM, [email protected] wrote:

From: "Felipe F. Tonello" <[email protected]>

This is necessary since the valgrind package depends on /usr/bin/perl.

This patch will fix this error while installing into rootfs:
Computing transaction...error: Can't install valgrind-3.8.1-r8@armv7a_vfp_neon: no package provides /usr/bin/perl

---
  meta/recipes-devtools/valgrind/valgrind_3.8.1.bb | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)
meta/recipes-devtools/valgrind/valgrind_3.8.1.bb +0 -0
index 3520d49..4ee1b64 100644

meta/recipes-devtools/valgrind/valgrind_3.8.1.bb LIC_FILES_CHKSUM = "file://COPYING;md5=c46082167a314d785d012a244748d803 \ · line 13

Quoted 6 lines
meta/recipes-devtools/valgrind/valgrind_3.8.1.bb +1 -1
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=c46082167a314d785d012a244748d803 \
 
  X11DEPENDS = "virtual/libx11"
  DEPENDS = "${@base_contains('DISTRO_FEATURES', 'x11', '${X11DEPENDS}', '', d)}"
-PR = "r8"
+PR = "r9"
 

PR Bump is not needed, mentioned this in past reviews.

Sau!

Quoted 12 lines
meta/recipes-devtools/valgrind/valgrind_3.8.1.bb +2 -0
  SRC_URI = "http://www.valgrind.org/downloads/valgrind-${PV}.tar.bz2 \
  	   file://fix_issue_caused_by_ccache.patch \
@@ -37,6 +37,8 @@ do_install_append () {
      install -m 644 ${B}/default.supp ${D}/${libdir}/valgrind/
  }
 
+RDEPENDS_${PN} += "perl"
+
  FILES_${PN}-dbg += "${libdir}/${PN}/*/.debug/*"
  RRECOMMENDS_${PN}_powerpc += "${TCLIBC}-dbg"
  RRECOMMENDS_${PN}_powerpc64 += "${TCLIBC}-dbg"
#12 lore raw

Hum, I didn't noticed. Sorry.

I will send another patch.

Quoted 46 lines · Saul Wold
Quoted 26 lines · On 07/16/2013 03:16 PM, [email protected] wrote:

From: "Felipe F. Tonello" <[email protected]>

This is necessary since the valgrind package depends on /usr/bin/perl.

This patch will fix this error while installing into rootfs:
Computing transaction...error: Can't install valgrind-3.8.1-r8@armv7a_vfp_neon: no package provides /usr/bin/perl

---
  meta/recipes-devtools/valgrind/valgrind_3.8.1.bb | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)
meta/recipes-devtools/valgrind/valgrind_3.8.1.bb +0 -0
index 3520d49..4ee1b64 100644
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM =
 "file://COPYING;md5=c46082167a314d785d012a244748d803 \
 
  X11DEPENDS = "virtual/libx11"
  DEPENDS = "${@base_contains('DISTRO_FEATURES', 'x11', '${X11DEPENDS}',

'', d)}"

meta/recipes-devtools/valgrind/valgrind_3.8.1.bb LIC_FILES_CHKSUM = "file://COPYING;md5=c46082167a314d785d012a244748d803 \ · line 12

Quoted 2 lines
meta/recipes-devtools/valgrind/valgrind_3.8.1.bb +1 -1
-PR = "r8"
+PR = "r9"

PR Bump is not needed, mentioned this in past reviews.

Sau!

Quoted 12 lines
  SRC_URI = "http://www.valgrind.org/downloads/valgrind-${PV}.tar.bz2 \
           file://fix_issue_caused_by_ccache.patch \
meta/recipes-devtools/valgrind/valgrind_3.8.1.bb +2 -0
@@ -37,6 +37,8 @@ do_install_append () {
      install -m 644 ${B}/default.supp ${D}/${libdir}/valgrind/
  }
 
+RDEPENDS_${PN} += "perl"
+
  FILES_${PN}-dbg += "${libdir}/${PN}/*/.debug/*"
  RRECOMMENDS_${PN}_powerpc += "${TCLIBC}-dbg"
  RRECOMMENDS_${PN}_powerpc64 += "${TCLIBC}-dbg"