Skip to contentSkip to conversation

cpan-base: Add more debug paths to FILES

PATCH Applied Phil Blundell 3 participants 3 messages Oct 18, 2012 – Oct 23, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cpan-base: Add more debug paths to FILES

We seem to be mostly installing modules into vendor_perl nowadays. Make sure that the .debug data from there is captured appropriately.

Also, expand ${PERLLIBDIRS} at the point of assignment so we don't call the python again and again.

---
 meta/classes/cpan-base.bbclass |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
meta/classes/cpan-base.bbclass +7 -2
index 660c15f..cf697f1 100644
@@ -39,8 +39,13 @@ def is_target(d):
         return "yes"
     return "no"
 
-PERLLIBDIRS = "${@perl_get_libdirs(d)}"
+PERLLIBDIRS := "${@perl_get_libdirs(d)}"
+PERLVERSION := "${@get_perl_version(d)}"
 
 FILES_${PN}-dbg += "${PERLLIBDIRS}/auto/*/.debug \
                     ${PERLLIBDIRS}/auto/*/*/.debug \
-                    ${PERLLIBDIRS}/auto/*/*/*/.debug"
+                    ${PERLLIBDIRS}/auto/*/*/*/.debug \
+		    ${PERLLIBDIRS}/vendor_perl/${PERLVERSION}/auto/*/.debug \
+		    ${PERLLIBDIRS}/vendor_perl/${PERLVERSION}/auto/*/*/.debug \
+		    ${PERLLIBDIRS}/vendor_perl/${PERLVERSION}/auto/*/*/*/.debug \
+		    "
Signature · 1 line
1.7.9
#1 lore raw
Quoted 21 lines · Phil Blundell

We seem to be mostly installing modules into vendor_perl nowadays. Make sure that the .debug data from there is captured appropriately.

Also, expand ${PERLLIBDIRS} at the point of assignment so we don't call the python again and again.

---
 meta/classes/cpan-base.bbclass |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
meta/classes/cpan-base.bbclass +1 -1
index 660c15f..cf697f1 100644
@@ -39,8 +39,13 @@ def is_target(d):
         return "yes"
     return "no"
 
-PERLLIBDIRS = "${@perl_get_libdirs(d)}"
+PERLLIBDIRS := "${@perl_get_libdirs(d)}"

meta/classes/cpan-base.bbclass def is_target(d): · line 51

Quoted 10 lines
meta/classes/cpan-base.bbclass +6 -1
+PERLVERSION := "${@get_perl_version(d)}"
 
 FILES_${PN}-dbg += "${PERLLIBDIRS}/auto/*/.debug \
                     ${PERLLIBDIRS}/auto/*/*/.debug \
-                    ${PERLLIBDIRS}/auto/*/*/*/.debug"
+                    ${PERLLIBDIRS}/auto/*/*/*/.debug \
+		    ${PERLLIBDIRS}/vendor_perl/${PERLVERSION}/auto/*/.debug \
+		    ${PERLLIBDIRS}/vendor_perl/${PERLVERSION}/auto/*/*/.debug \
+		    ${PERLLIBDIRS}/vendor_perl/${PERLVERSION}/auto/*/*/*/.debug \
+		    "

Please don't mix tabs and spaces for indentation.

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
Applied
#2 lore raw
In reply to Phil Blundell
Quoted 22 lines · Phil Blundell

We seem to be mostly installing modules into vendor_perl nowadays. Make sure that the .debug data from there is captured appropriately.

Also, expand ${PERLLIBDIRS} at the point of assignment so we don't call the python again and again.

---
  meta/classes/cpan-base.bbclass |    9 +++++++--
  1 files changed, 7 insertions(+), 2 deletions(-)
meta/classes/cpan-base.bbclass +1 -1
index 660c15f..cf697f1 100644
@@ -39,8 +39,13 @@ def is_target(d):
          return "yes"
      return "no"
 
-PERLLIBDIRS = "${@perl_get_libdirs(d)}"
+PERLLIBDIRS := "${@perl_get_libdirs(d)}"

meta/classes/cpan-base.bbclass def is_target(d): · line 51

Quoted 10 lines
meta/classes/cpan-base.bbclass +6 -1
+PERLVERSION := "${@get_perl_version(d)}"
 
  FILES_${PN}-dbg += "${PERLLIBDIRS}/auto/*/.debug \
                      ${PERLLIBDIRS}/auto/*/*/.debug \
-                    ${PERLLIBDIRS}/auto/*/*/*/.debug"
+                    ${PERLLIBDIRS}/auto/*/*/*/.debug \
+		    ${PERLLIBDIRS}/vendor_perl/${PERLVERSION}/auto/*/.debug \
+		    ${PERLLIBDIRS}/vendor_perl/${PERLVERSION}/auto/*/*/.debug \
+		    ${PERLLIBDIRS}/vendor_perl/${PERLVERSION}/auto/*/*/*/.debug \
+		    "

Merged into OE-Core (with whitespaces fixed)

Thanks
Sau!