Skip to contentSkip to conversation

bc: Use texinfo class

PATCH In review Richard Purdie 3 participants 10 messages Jan 28, 2020 – Jan 30, 2020

lore
Share & tools
lore
#0 lore raw

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
index 4a51302492d..61fc6486538 100644
@@ -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
#1 lore raw

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
index ede9e9b9096..d2667f54a11 100644
@@ -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
#2 lore raw

PATCH 3/5 texinfo/texinfo-dummy-native: Drop native path prefix

In reply to 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.

---
 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
index 6b0def0eac4..72091c733e5 100644
@@ -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
index 1254bc89b48..3e6dfb0f1b9 100644
@@ -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
#3 lore raw

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.

---
 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
index 6b0def0eac4..72091c733e5 100644
@@ -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
index 1254bc89b48..3e6dfb0f1b9 100644
@@ -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

#4 lore raw

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

#5 lore raw

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

#6 lore raw

PATCH 4/5 texinfo: Only build texinfo when api-docs enabled

In reply to Richard Purdie

Also 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
index 72091c733e5..ba1dd4994e1 100644
@@ -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
#7 lore raw

PATCH 5/5 bitbake.conf/sanity: Drop makeinfo as being required on buildhost

In reply to Richard Purdie

This 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
index 5c2f8f9d755..cca5cdad170 100644
@@ -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
index b6aa9f33e92..259c50bdc2e 100644
@@ -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
#8 lore raw
In reply to Richard Purdie
Quoted 12 lines · Richard Purdie

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 +0 -0
index 4a51302492d..61fc6486538 100644

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 -0
  PACKAGECONFIG ??= "readline"
  PACKAGECONFIG[readline] = "--with-readline,--without-readline,readline"
#9 lore raw
Quoted 19 lines · Jacob Kroon
Quoted 18 lines · Richard Purdie

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- renamed from meta/recipes-extended/bc/bc_1.07.1.bb +0 -0

extended/bc/bc_1.07.1.bb
index 4a51302492d..61fc6486538 100644

meta/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 texinfo

Looks like it already inherits texinfo ^^^

Er, yes! :)

The class wasn't working originally so we can just ignore this patch.

Cheers,

Richard