bc: Use texinfo class
PATCH 1/5 bc: Use texinfo class
This recipe uses makeinfo so inherit the class which can provide it.
--- meta/recipes-extended/bc/bc_1.07.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-extended/bc/bc_1.07.1.bb +1 -1
@@ -18,7 +18,7 @@ SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.gz \ SRC_URI[md5sum] = "cda93857418655ea43590736fc3ca9fc" SRC_URI[sha256sum] = "62adfca89b0a1c0164c2cdca59ca210c1d44c3ffc46daf9931cf4942664cb02a" -inherit autotools texinfo update-alternatives +inherit autotools texinfo update-alternatives texinfo PACKAGECONFIG ??= "readline" PACKAGECONFIG[readline] = "--with-readline,--without-readline,readline"
Signature · 1 line
2.20.1
PATCH 2/5 glibc-package.inc: Remove warnings about unpacked directories
If documemtation generation is disabled, the recipe throws warnings about unpackaged files. Avoid this.
--- meta/recipes-core/glibc/glibc-package.inc | 2 ++ 1 file changed, 2 insertions(+)
meta/recipes-core/glibc/glibc-package.inc +2 -0
@@ -213,6 +213,8 @@ stash_locale_cleanup () { rm -rf $cleanupdir${libdir}/gconv rm -rf $cleanupdir${localedir} rm -rf $cleanupdir${datadir}/locale + rmdir --ignore-fail-on-non-empty $cleanupdir${datadir} + if [ "${libdir}" != "${exec_prefix}/lib" ] && [ "${root_prefix}/lib" != "${exec_prefix}/lib" ]; then if [ -d "$cleanupdir${exec_prefix}/lib" ]; then if [ -z "${ARCH_DYNAMIC_LOADER}" -o \
Signature · 1 line
2.20.1
PATCH 3/5 texinfo/texinfo-dummy-native: Drop native path prefix
In reply to Richard PurdieNow we have recipe specific sysroots we don't need this native path prefix. It was breaking the crosssdk/cross-canadian cases and causing bugs, removing it is the simplest solution.
--- meta/classes/texinfo.bbclass | 4 +--- .../texinfo-dummy-native/texinfo-dummy-native.bb | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-)
meta/classes/texinfo.bbclass +1 -3
@@ -10,9 +10,7 @@ TEXDEP = "texinfo-native" TEXDEP_class-native = "texinfo-dummy-native" TEXDEP_class-cross = "texinfo-dummy-native" DEPENDS_append = " ${TEXDEP}" -PATH_prepend_class-native = "${STAGING_BINDIR_NATIVE}/texinfo-dummy-native:" -PATH_prepend_class-cross = "${STAGING_BINDIR_NATIVE}/texinfo-dummy-native:" # libtool-cross doesn't inherit cross TEXDEP_pn-libtool-cross = "texinfo-dummy-native" -PATH_prepend_pn-libtool-cross = "${STAGING_BINDIR_NATIVE}/texinfo-dummy-native:" +
meta/recipes-extended/texinfo-dummy-native/texinfo-dummy-native.bb +0 -2
@@ -9,8 +9,6 @@ SRC_URI = "file://template.py file://COPYING" S = "${WORKDIR}" -NATIVE_PACKAGE_PATH_SUFFIX = "/${PN}" - inherit native do_install_name() {
Signature · 1 line
2.20.1
Re: [PATCH 3/5] texinfo/texinfo-dummy-native: Drop native path prefix
it perhaps is the reason for most of failures seen here
https://errors.yoctoproject.org/Errors/Build/97736/
perhaps we need to explicitly inherit gettext in these recipes ?
Quoted 47 lines · Richard Purdie
Now we have recipe specific sysroots we don't need this native path prefix. It was breaking the crosssdk/cross-canadian cases and causing bugs, removing it is the simplest solution.
Signed-off-by Richard Purdie <[email protected]>--- meta/classes/texinfo.bbclass | 4 +--- .../texinfo-dummy-native/texinfo-dummy-native.bb | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-)meta/classes/texinfo.bbclass +1
-3@@ -10,9 +10,7 @@ TEXDEP = "texinfo-native" TEXDEP_class-native = "texinfo-dummy-native" TEXDEP_class-cross = "texinfo-dummy-native" DEPENDS_append = " ${TEXDEP}" -PATH_prepend_class-native = "${STAGING_BINDIR_NATIVE}/texinfo-dummy-native:" -PATH_prepend_class-cross = "${STAGING_BINDIR_NATIVE}/texinfo-dummy-native:" # libtool-cross doesn't inherit cross TEXDEP_pn-libtool-cross = "texinfo-dummy-native" -PATH_prepend_pn-libtool-cross = "${STAGING_BINDIR_NATIVE}/texinfo-dummy-native:" +meta/recipes-extended/texinfo-dummy-native/texinfo-dummy-native.bb +0
-3@@ -9,8 +9,6 @@ SRC_URI = "file://template.py file://COPYING" S = "${WORKDIR}" -NATIVE_PACKAGE_PATH_SUFFIX = "/${PN}" - inherit native do_install_name() { --2.20.1
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [PATCH 3/5] texinfo/texinfo-dummy-native: Drop native path prefix
Quoted 5 lines · Khem Raj
it perhaps is the reason for most of failures seen here
https://errors.yoctoproject.org/Errors/Build/97736/
perhaps we need to explicitly inherit gettext in these recipes ?
These patches aren't quite working in master yet but those failures look like they'd be solved with an "inherit texinfo" added to the recipes.
Cheers,
Richard
Re: [PATCH 3/5] texinfo/texinfo-dummy-native: Drop native path prefix
Quoted 10 lines · Richard Purdie
Quoted 5 lines · Khem Raj
it perhaps is the reason for most of failures seen here
https://errors.yoctoproject.org/Errors/Build/97736/
perhaps we need to explicitly inherit gettext in these recipes ?
These patches aren't quite working in master yet but those failures look like they'd be solved with an "inherit texinfo" added to the recipes.
Right except indent package which is quite unhappy even after that but I have disabled documentation generation for that now
Quoted 8 lines
Cheers,
Richard
PATCH 4/5 texinfo: Only build texinfo when api-docs enabled
In reply to Richard PurdieAlso fix the crosssdk and cross-canadian cases.
--- meta/classes/texinfo.bbclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
meta/classes/texinfo.bbclass +3 -1
@@ -6,9 +6,11 @@ # Texinfo recipe, you can remove texinfo-native from ASSUME_PROVIDED and # makeinfo from SANITY_REQUIRED_UTILITIES. -TEXDEP = "texinfo-native" +TEXDEP = "${@bb.utils.contains('DISTRO_FEATURES', 'api-documentation', 'texinfo-native', 'texinfo-dummy-native', d)}" TEXDEP_class-native = "texinfo-dummy-native" TEXDEP_class-cross = "texinfo-dummy-native" +TEXDEP_class-crosssdk = "texinfo-dummy-native" +TEXDEP_class-cross-canadian = "texinfo-dummy-native" DEPENDS_append = " ${TEXDEP}" # libtool-cross doesn't inherit cross
Signature · 1 line
2.20.1
PATCH 5/5 bitbake.conf/sanity: Drop makeinfo as being required on buildhost
In reply to Richard PurdieThis is a long standing 'odd' dependency which we've meant to resolve. We shouldn't need it and it introduces reproducability issues.
We already have texinfo-dummy-native and texinfo-native which can provide it but the work to remove the hosttool was never completed.
After cleaning up texinfo.bbclass, this can now be removed with minimal impact on build time.
[YOCTO #13753]
--- meta/classes/sanity.bbclass | 2 +- meta/conf/bitbake.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
meta/classes/sanity.bbclass +1 -1
@@ -2,7 +2,7 @@ # Sanity check the users setup for common misconfigurations # -SANITY_REQUIRED_UTILITIES ?= "patch diffstat makeinfo git bzip2 tar \ +SANITY_REQUIRED_UTILITIES ?= "patch diffstat git bzip2 tar \ gzip gawk chrpath wget cpio perl file which" def bblayers_conf_file(d):
meta/conf/bitbake.conf +1 -1
@@ -487,7 +487,7 @@ HOSTTOOLS += " \ [ ar as awk basename bash bzip2 cat chgrp chmod chown chrpath cmp comm cp cpio \ cpp cut date dd diff diffstat dirname du echo egrep env expand expr false \ fgrep file find flock g++ gawk gcc getconf getopt git grep gunzip gzip \ - head hostname iconv id install ld ldd ln ls make makeinfo md5sum mkdir mknod \ + head hostname iconv id install ld ldd ln ls make md5sum mkdir mknod \ mktemp mv nm objcopy objdump od patch perl pod2man pr printf pwd \ python3 ranlib readelf readlink realpath rm rmdir rpcgen sed seq sh sha256sum \ sleep sort split stat strings strip tail tar tee test touch tr true uname \
Signature · 1 line
2.20.1
Quoted 12 lines · Richard Purdie
This recipe uses makeinfo so inherit the class which can provide it.
Signed-off-by Richard Purdie <[email protected]>--- meta/recipes-extended/bc/bc_1.07.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes-extended/bc/bc_1.07.1.bb +0
-0
meta/recipes-extended/bc/bc_1.07.1.bb SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.gz \ · line 22
Quoted 6 lines
meta/recipes-extended/bc/bc_1.07.1.bb +1
-1@@ -18,7 +18,7 @@ SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.gz \ SRC_URI[md5sum] = "cda93857418655ea43590736fc3ca9fc" SRC_URI[sha256sum] = "62adfca89b0a1c0164c2cdca59ca210c1d44c3ffc46daf9931cf4942664cb02a" -inherit autotools texinfo update-alternatives +inherit autotools texinfo update-alternatives texinfo
Looks like it already inherits texinfo ^^^
Quoted 3 lines
meta/recipes-extended/bc/bc_1.07.1.bb +0
-0PACKAGECONFIG ??= "readline" PACKAGECONFIG[readline] = "--with-readline,--without-readline,readline"
Quoted 19 lines · Jacob Kroon
Quoted 18 lines · Richard Purdie
This recipe uses makeinfo so inherit the class which can provide it.
Signed-off-by Richard Purdie <[email protected]>--- meta/recipes-extended/bc/bc_1.07.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes- renamed from meta/recipes-extended/bc/bc_1.07.1.bb +0
-0extended/bc/bc_1.07.1.bb
index4a51302492d..61fc6486538100644meta/recipes-extended/bc/bc_1.07.1.bb +0
-0@@ -18,7 +18,7 @@ SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.gz \ SRC_URI[md5sum] = "cda93857418655ea43590736fc3ca9fc" SRC_URI[sha256sum] ="
62adfca89b0a1c0164c2cdca59ca210c1d44c3ffc46daf9931cf4942664cb02a"
Quoted 5 lines
meta/recipes-extended/bc/bc_1.07.1.bb SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.gz \ · line 21
Quoted 3 lines
meta/recipes-extended/bc/bc_1.07.1.bb +1
-1-inherit autotools texinfo update-alternatives +inherit autotools texinfo update-alternatives texinfoLooks like it already inherits texinfo ^^^
Er, yes! :)
The class wasn't working originally so we can just ignore this patch.
Cheers,
Richard