* [PATCH] cpan-base: Add vardepvalue to get_perl_version function
@ 2013-11-29 22:52 Martin Jansa
2013-12-03 15:55 ` Martin Jansa
0 siblings, 1 reply; 3+ messages in thread
From: Martin Jansa @ 2013-11-29 22:52 UTC (permalink / raw)
To: openembedded-core
* without this bitbake -S perf shows following error:
ERROR: Bitbake's cached basehash does not match the one we just generated
(/OE/oe-core/meta/recipes-kernel/perf/perf.bb.do_package)!
if you run it twice, once without perl in sysroot and once with perl
already built
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
meta/classes/cpan-base.bbclass | 3 +++
1 file changed, 3 insertions(+)
diff --git a/meta/classes/cpan-base.bbclass b/meta/classes/cpan-base.bbclass
index 7e1e8d0..609fde6 100644
--- a/meta/classes/cpan-base.bbclass
+++ b/meta/classes/cpan-base.bbclass
@@ -10,6 +10,9 @@ RDEPENDS_${PN} += "${@["perl", ""][(bb.data.inherits_class('native', d))]}"
PERL_OWN_DIR = "${@["", "/perl-native"][(bb.data.inherits_class('native', d))]}"
# Determine the staged version of perl from the perl configuration file
+# Assign vardepvalue, because otherwise signature is changed before and after
+# perl is built (from None to real version in config.sh).
+get_perl_version[vardepvalue] = "${STAGING_LIBDIR}${PERL_OWN_DIR}"
def get_perl_version(d):
import re
cfg = d.expand('${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/config.sh')
--
1.8.4.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] cpan-base: Add vardepvalue to get_perl_version function
2013-11-29 22:52 [PATCH] cpan-base: Add vardepvalue to get_perl_version function Martin Jansa
@ 2013-12-03 15:55 ` Martin Jansa
2013-12-04 17:32 ` [PATCHv2] " Martin Jansa
0 siblings, 1 reply; 3+ messages in thread
From: Martin Jansa @ 2013-12-03 15:55 UTC (permalink / raw)
To: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 1520 bytes --]
On Fri, Nov 29, 2013 at 11:52:29PM +0100, Martin Jansa wrote:
> * without this bitbake -S perf shows following error:
> ERROR: Bitbake's cached basehash does not match the one we just generated
> (/OE/oe-core/meta/recipes-kernel/perf/perf.bb.do_package)!
> if you run it twice, once without perl in sysroot and once with perl
> already built
>
> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> ---
> meta/classes/cpan-base.bbclass | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/meta/classes/cpan-base.bbclass b/meta/classes/cpan-base.bbclass
> index 7e1e8d0..609fde6 100644
> --- a/meta/classes/cpan-base.bbclass
> +++ b/meta/classes/cpan-base.bbclass
> @@ -10,6 +10,9 @@ RDEPENDS_${PN} += "${@["perl", ""][(bb.data.inherits_class('native', d))]}"
> PERL_OWN_DIR = "${@["", "/perl-native"][(bb.data.inherits_class('native', d))]}"
>
> # Determine the staged version of perl from the perl configuration file
> +# Assign vardepvalue, because otherwise signature is changed before and after
> +# perl is built (from None to real version in config.sh).
> +get_perl_version[vardepvalue] = "${STAGING_LIBDIR}${PERL_OWN_DIR}"
Sorry, this isn't correct, it includes whole path to STAGING_LIBDIR in
signature (different for each MACHINE).
v2 coming soon
> def get_perl_version(d):
> import re
> cfg = d.expand('${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/config.sh')
> --
> 1.8.4.3
>
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCHv2] cpan-base: Add vardepvalue to get_perl_version function
2013-12-03 15:55 ` Martin Jansa
@ 2013-12-04 17:32 ` Martin Jansa
0 siblings, 0 replies; 3+ messages in thread
From: Martin Jansa @ 2013-12-04 17:32 UTC (permalink / raw)
To: openembedded-core
* without this bitbake -S perf shows following error:
ERROR: Bitbake's cached basehash does not match the one we just generated
(/OE/oe-core/meta/recipes-kernel/perf/perf.bb.do_package)!
if you run it twice, once without perl in sysroot and once with perl
already built
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
meta/classes/cpan-base.bbclass | 3 +++
1 file changed, 3 insertions(+)
diff --git a/meta/classes/cpan-base.bbclass b/meta/classes/cpan-base.bbclass
index 7e1e8d0..aa502d5 100644
--- a/meta/classes/cpan-base.bbclass
+++ b/meta/classes/cpan-base.bbclass
@@ -10,6 +10,9 @@ RDEPENDS_${PN} += "${@["perl", ""][(bb.data.inherits_class('native', d))]}"
PERL_OWN_DIR = "${@["", "/perl-native"][(bb.data.inherits_class('native', d))]}"
# Determine the staged version of perl from the perl configuration file
+# Assign vardepvalue, because otherwise signature is changed before and after
+# perl is built (from None to real version in config.sh).
+get_perl_version[vardepvalue] = "${PERL_OWN_DIR}"
def get_perl_version(d):
import re
cfg = d.expand('${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/config.sh')
--
1.8.4.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-12-04 17:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-29 22:52 [PATCH] cpan-base: Add vardepvalue to get_perl_version function Martin Jansa
2013-12-03 15:55 ` Martin Jansa
2013-12-04 17:32 ` [PATCHv2] " Martin Jansa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox