texinfo: don't create dependency on INHERIT variable
PATCH 1/1 texinfo: don't create dependency on INHERIT variable
* we don't want the do_package signature depending on INHERIT variable
* e.g. just adding the own-mirrors causes texinfo to rebuild:
# bitbake-diffsigs BUILD/sstate-diff/*/*/texinfo/*do_package.sig*
basehash changed from 015df2fd8e396cc1e15622dbac843301 to 9f1d06c4f238c70a99ccb6d8da348b6a
Variable INHERIT value changed from
' rm_work blacklist blacklist report-error ${PACKAGE_CLASSES} ${USER_CLASSES} ${INHERIT_DISTRO} ${INHERIT_BLACKLIST} sanity'
to
' rm_work own-mirrors blacklist blacklist report-error ${PACKAGE_CLASSES} ${USER_CLASSES} ${INHERIT_DISTRO} ${INHERIT_BLACKLIST} sanity'--- meta/recipes-extended/texinfo/texinfo_6.0.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
meta/recipes-extended/texinfo/texinfo_6.0.bb +4 -1
@@ -9,8 +9,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" PROVIDES_append_class-native = " texinfo-replacement-native" +DOC_COMPRESS_ENABLED = "${@ '1' if 'compress_doc' in (d.getVar('INHERIT', True) or '').split() else '0' }" +DOC_COMPRESS_ENABLED[vardepvalue] = "${DOC_COMPRESS_ENABLED}" + def compress_pkg(d): - if "compress_doc" in (d.getVar("INHERIT", True) or "").split(): + if d.getVar("DOC_COMPRESS_ENABLED", True) == "1": compress = d.getVar("DOC_COMPRESS", True) if compress == "gz": return "gzip"
Signature · 1 line
2.6.3
Quoted 19 lines · Martin Jansa
* we don't want the
do_packagesignature depending on INHERIT variable
* e.g. just adding the own-mirrors causes texinfo to rebuild:# bitbake-diffsigs BUILD/sstate-diff/*/*/texinfo/*do_package.sig* basehash changed from 015df2fd8e396cc1e15622dbac843301 to 9f1d06c4f238c70a99ccb6d8da348b6a Variable INHERIT value changed from ' rm_work blacklist blacklist report-error ${PACKAGE_CLASSES} ${USER_CLASSES} ${INHERIT_DISTRO} ${INHERIT_BLACKLIST} sanity' to ' rm_work own-mirrors blacklist blacklist report-error ${PACKAGE_CLASSES} ${USER_CLASSES} ${INHERIT_DISTRO} ${INHERIT_BLACKLIST} sanity'Signed-off-by Martin Jansa <[email protected]>--- meta/recipes-extended/texinfo/texinfo_6.0.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)meta/recipes-extended/texinfo/texinfo_6.0.bb +0
-0
meta/recipes-extended/texinfo/texinfo_6.0.bb LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" · line 16
Quoted 9 lines
meta/recipes-extended/texinfo/texinfo_6.0.bb +4
-1@@ -9,8 +9,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" PROVIDES_append_class-native = " texinfo-replacement-native" +DOC_COMPRESS_ENABLED = "${@ '1' if 'compress_doc' in (d.getVar('INHERIT', True) or '').split() else '0' }" +DOC_COMPRESS_ENABLED[vardepvalue] = "${DOC_COMPRESS_ENABLED}" + def compress_pkg(d): - if "compress_doc" in (d.getVar("INHERIT", True) or "").split(): + if d.getVar("DOC_COMPRESS_ENABLED", True) == "1":
Could we use:
if bb.data.inherits_class("compress_doc", d):
?
Cheers,
Richard
Probably yes, I don't know why it was written in this way before and I've just blindly followed it to fix the issue I was seeing.
v2 coming soon.
Quoted 48 lines · Richard Purdie
Quoted 4 lines · Martin Jansa
* we don't want the
do_packagesignature depending on INHERIT variable
* e.g. just adding the own-mirrors causes texinfo to rebuild:# bitbake-diffsigs BUILD/sstate-diff/*/*/texinfo/*do_package.sig* basehash changed from 015df2fd8e396cc1e15622dbac843301 to
9f1d06c4f238c70a99ccb6d8da348b6aQuoted 2 lines
Variable INHERIT value changed from
'rm_workblacklist blacklist report-error ${PACKAGE_CLASSES}${USER_CLASSES} ${INHERIT_DISTRO} ${INHERIT_BLACKLIST} sanity'
Quoted 2 lines
to
'rm_workown-mirrors blacklist blacklist report-error${PACKAGE_CLASSES} ${USER_CLASSES} ${INHERIT_DISTRO} ${INHERIT_BLACKLIST} sanity'
Review
Quoted 7 lines
Signed-off-by Martin Jansa <[email protected]>--- meta/recipes-extended/texinfo/texinfo_6.0.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)(quoted diff) +0
-0b/meta/recipes-extended/texinfo/texinfo_6.0.bb
meta/recipes-extended/texinfo/texinfo_6.0.bb LIC_FILES_CHKSUM =
Quoted 4 lines
index 8fb715a..b0a6975 100644
meta/recipes-extended/texinfo/texinfo_6.0.bb +0
-0@@ -9,8 +9,11 @@ LIC_FILES_CHKSUM ="file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
meta/recipes-extended/texinfo/texinfo_6.0.bb LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
Quoted 4 lines
meta/recipes-extended/texinfo/texinfo_6.0.bb +1
-0PROVIDES_append_class-native = " texinfo-replacement-native" +DOC_COMPRESS_ENABLED = "${@ '1' if 'compress_doc' in(
d.getVar('INHERIT', True)or '').split() else '0' }"meta/recipes-extended/texinfo/texinfo_6.0.bb LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" · line 16
Quoted 5 lines
meta/recipes-extended/texinfo/texinfo_6.0.bb +3
-1+DOC_COMPRESS_ENABLED[vardepvalue] = "${DOC_COMPRESS_ENABLED}" + def compress_pkg(d): - if "compress_doc" in (d.getVar("INHERIT", True) or "").split(): + if d.getVar("DOC_COMPRESS_ENABLED", True) == "1":Could we use:
if
bb.data.inherits_class("compress_doc", d):?
Cheers,
Richard
PATCH v2 1/1 texinfo: don't create dependency on INHERIT variable
In reply to Richard Purdie* we don't want the do_package signature depending on INHERIT variable
* e.g. just adding the own-mirrors causes texinfo to rebuild:
# bitbake-diffsigs BUILD/sstate-diff/*/*/texinfo/*do_package.sig*
basehash changed from 015df2fd8e396cc1e15622dbac843301 to 9f1d06c4f238c70a99ccb6d8da348b6a
Variable INHERIT value changed from
' rm_work blacklist blacklist report-error ${PACKAGE_CLASSES} ${USER_CLASSES} ${INHERIT_DISTRO} ${INHERIT_BLACKLIST} sanity'
to
' rm_work own-mirrors blacklist blacklist report-error ${PACKAGE_CLASSES} ${USER_CLASSES} ${INHERIT_DISTRO} ${INHERIT_BLACKLIST} sanity'--- meta/recipes-extended/texinfo/texinfo_6.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-extended/texinfo/texinfo_6.0.bb +1 -1
@@ -10,7 +10,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" PROVIDES_append_class-native = " texinfo-replacement-native" def compress_pkg(d): - if "compress_doc" in (d.getVar("INHERIT", True) or "").split(): + if bb.data.inherits_class('compress_doc', d): compress = d.getVar("DOC_COMPRESS", True) if compress == "gz": return "gzip"
Signature · 1 line
2.6.3