public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH] classes/cpan-base: fix for PERLVERSION
@ 2016-11-09  5:51 jackie.huang
  2016-12-05 15:34 ` Burton, Ross
  0 siblings, 1 reply; 3+ messages in thread
From: jackie.huang @ 2016-11-09  5:51 UTC (permalink / raw)
  To: openembedded-core

From: Jackie Huang <jackie.huang@windriver.com>

Immediate expansion of get_perl_version() is too early for
PERLVERSION, it will result in 'None' before perl is built
and packages that rely on this veriable fail to work with
the incorrect version.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
---
 meta/classes/cpan-base.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/cpan-base.bbclass b/meta/classes/cpan-base.bbclass
index 55ac052..48d53cc 100644
--- a/meta/classes/cpan-base.bbclass
+++ b/meta/classes/cpan-base.bbclass
@@ -36,5 +36,5 @@ def is_target(d):
 
 PERLLIBDIRS = "${libdir}/perl"
 PERLLIBDIRS_class-native = "${libdir}/perl-native"
-PERLVERSION := "${@get_perl_version(d)}"
+PERLVERSION = "${@get_perl_version(d)}"
 PERLVERSION[vardepvalue] = ""
-- 
2.8.3



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] classes/cpan-base: fix for PERLVERSION
  2016-11-09  5:51 [PATCH] classes/cpan-base: fix for PERLVERSION jackie.huang
@ 2016-12-05 15:34 ` Burton, Ross
  2016-12-09  8:30   ` Huang, Jie (Jackie)
  0 siblings, 1 reply; 3+ messages in thread
From: Burton, Ross @ 2016-12-05 15:34 UTC (permalink / raw)
  To: jackie.huang@windriver.com; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 385 bytes --]

On 9 November 2016 at 05:51, <jackie.huang@windriver.com> wrote:

> -PERLVERSION := "${@get_perl_version(d)}"
> +PERLVERSION = "${@get_perl_version(d)}"
>

This uses := as the get_perl_version is a non-trivial amount of python
which doesn't need to be re-evaluated all the time.  Have you looked at how
bad the performance hit is, and whether there is an alternative?

Ross

[-- Attachment #2: Type: text/html, Size: 909 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] classes/cpan-base: fix for PERLVERSION
  2016-12-05 15:34 ` Burton, Ross
@ 2016-12-09  8:30   ` Huang, Jie (Jackie)
  0 siblings, 0 replies; 3+ messages in thread
From: Huang, Jie (Jackie) @ 2016-12-09  8:30 UTC (permalink / raw)
  To: BURTON, ROSS; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 710 bytes --]

Yes, I can fix it in the recipe that uses PERLVERSION as an alternative.

Thanks,
Jackie

From: Burton, Ross [mailto:ross.burton@intel.com]
Sent: Monday, December 05, 2016 11:34 PM
To: Huang, Jie (Jackie)
Cc: OE-core
Subject: Re: [OE-core] [PATCH] classes/cpan-base: fix for PERLVERSION


On 9 November 2016 at 05:51, <jackie.huang@windriver.com<mailto:jackie.huang@windriver.com>> wrote:
-PERLVERSION := "${@get_perl_version(d)}"
+PERLVERSION = "${@get_perl_version(d)}"

This uses := as the get_perl_version is a non-trivial amount of python which doesn't need to be re-evaluated all the time.  Have you looked at how bad the performance hit is, and whether there is an alternative?

Ross

[-- Attachment #2: Type: text/html, Size: 4165 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-12-09  8:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-09  5:51 [PATCH] classes/cpan-base: fix for PERLVERSION jackie.huang
2016-12-05 15:34 ` Burton, Ross
2016-12-09  8:30   ` Huang, Jie (Jackie)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox