nasm: remove groff-native dependency
PATCH 1/4 nasm: remove groff-native dependency
The documentation hasn't been built with groff since 2013[1], remove the dependency.
[1] nasm 1a63699c ("man: Generate manpages from asciidoc format")
--- meta/recipes-devtools/nasm/nasm_3.01.bb | 2 -- 1 file changed, 2 deletions(-)
meta/recipes-devtools/nasm/nasm_3.01.bb +0 -2
@@ -19,6 +19,4 @@ inherit autotools-brokensep BBCLASSEXTEND = "native" -DEPENDS = "groff-native" - CVE_PRODUCT = "netwide_assembler"
Signature · 1 line
2.43.0
PATCH 2/4 groff: do out-of-tree builds
The use of in-tree builds was done in 2019[1] as a result of a build failure, which no longer happens so this must have been fixed in either groff or gnulib.
[1] oe-core 70c2364cae3 ("groff: upgrade 1.22.3 -> 1.22.4")
--- meta/recipes-extended/groff/groff_1.24.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-extended/groff/groff_1.24.1.bb +1 -1
@@ -20,7 +20,7 @@ SRC_URI[sha256sum] = "74e2819795b6aff431aeac983d63a9c8968eeaba2a2eba7df8ba4c7b41 DEPENDS = "bison-native groff-native" RDEPENDS:${PN} += "perl sed" -inherit autotools-brokensep texinfo multilib_script pkgconfig +inherit autotools texinfo multilib_script pkgconfig MULTILIB_SCRIPTS = "${PN}:${bindir}/gpinyin ${PN}:${bindir}/grog"
Signature · 1 line
2.43.0
PATCH 3/4 groff: fix whitespace
In reply to Ross BurtonFix bad indentation.
--- meta/recipes-extended/groff/groff_1.24.1.bb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
meta/recipes-extended/groff/groff_1.24.1.bb +4 -2
@@ -65,8 +65,10 @@ do_install:append() { rm -rf ${D}${bindir}/grap2graph rm -rf ${D}${mandir}/man1/grap2graph* - # strip hosttool path out of generated files - sed -i -e 's:${HOSTTOOLS_DIR}/::g' ${D}${docdir}/${BP}/examples/hdtbl/*.roff + # strip hosttool path out of generated files + if [ -d ${D}${docdir}/${BP}/examples/hdtbl/ ]; then + sed -i -e 's:${HOSTTOOLS_DIR}/::g' ${D}${docdir}/${BP}/examples/hdtbl/*.roff + fi } do_install:append:class-native() {
Signature · 1 line
2.43.0
RE: [OE-core] [PATCH 3/4] groff: fix whitespace
Quoted 18 lines
-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Ross Burton via lists.openembedded.org
Sent: den 18 maj 2026 12:33
To: [email protected]
Subject: [OE-core] [PATCH 3/4] groff: fix whitespaceFix bad indentation.
Signed-off-by Ross Burton <[email protected]>--- meta/recipes-extended/groff/groff_1.24.1.bb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)meta/recipes-extended/groff/groff_1.24.1.bb +0
-0
meta/recipes-extended/groff/groff_1.24.1.bb do_install:append() { · line 69
Quoted 7 lines
meta/recipes-extended/groff/groff_1.24.1.bb +2
-2@@ -65,8 +65,10 @@ do_install:append() { rm -rf ${D}${bindir}/grap2graph rm -rf ${D}${mandir}/man1/grap2graph* - # strip hosttool path out of generated files - sed -i -e 's:${HOSTTOOLS_DIR}/::g' ${D}${docdir}/${BP}/examples/hdtbl/*.roff + # strip hosttool path out of generated files + if [ -d ${D}${docdir}/${BP}/examples/hdtbl/ ]; then
This is not a whitespace clean-up...
Quoted 7 lines
meta/recipes-extended/groff/groff_1.24.1.bb +2
-1+ sed -i -e 's:${HOSTTOOLS_DIR}/::g' ${D}${docdir}/${BP}/examples/hdtbl/*.roff + fi } do_install:append:class-native() { --2.43.0
//Peter
PATCH 4/4 groff: build less in groff-native
In reply to Ross BurtonWhen building groff-native we only really need enough of groff to build manpages, and don't need documentation or extra tools.
Patch the Makefile to stop building the doc and contrib directories, which both take time and have incomplete build dependencies that cause intermittent failures[1][2].
This makes groff-native faster to build:
groff-native do_compile -30.6s -33.7% 90.9s -> 60.3s
And some tools are removed, which I don't believe are needed by anything we build:
/usr/bin/chem was removed
/usr/bin/eqn2graph was removed /usr/bin/gdiffmk was removed
/usr/bin/gperl was removed
/usr/bin/gpinyin was removed
/usr/bin/mmroff was removed /usr/bin/pic2graph was removed /usr/share/groff/1.24.1/tmac/chem.pic was removed /usr/share/groff/1.24.1/tmac/hdmisc.tmac was removed /usr/share/groff/1.24.1/tmac/hdtbl.tmac was removed /usr/share/groff/1.24.1/tmac/mm was removed /usr/share/groff/1.24.1/tmac/mm/0.MT was removed /usr/share/groff/1.24.1/tmac/mm/4.MT was removed /usr/share/groff/1.24.1/tmac/mm/5.MT was removed /usr/share/groff/1.24.1/tmac/mm/ms.cov was removed /usr/share/groff/1.24.1/tmac/mm/se_ms.cov was removed /usr/share/groff/1.24.1/tmac/mmse.tmac was removed /usr/share/groff/1.24.1/tmac/mm.tmac was removed /usr/share/groff/1.24.1/tmac/mom.tmac was removed /usr/share/groff/1.24.1/tmac/mse.tmac was removed /usr/share/groff/1.24.1/tmac/m.tmac was removed /usr/share/groff/1.24.1/tmac/om.tmac was removed /usr/share/groff/1.24.1/tmac/refer-mm.tmac was removed /usr/share/groff/1.24.1/tmac/rfc1345.tmac was removed /usr/share/groff/1.24.1/tmac/sboxes.tmac was removed
[1] oe-core d1a02bdd242 ("groff: Fix occasional build race failure")
[2] https://bugzilla.yoctoproject.org/show_bug.cgi?id=16279
--- .../groff/files/build-less.patch | 24 +++++++++++++++++++ meta/recipes-extended/groff/groff_1.24.1.bb | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 meta/recipes-extended/groff/files/build-less.patch
meta/recipes-extended/groff/files/build-less.patch new file +24 -0
@@ -0,0 +1,24 @@ +Build less bits of groff to save time and reduce random build +failures from missing dependencies in this logic. + +Upstream-Status: Inappropriate +Signed-off-by: Ross Burton <[email protected]> + +--- a/Makefile.am~ 2026-05-15 13:23:08.000000000 +0100 ++++ b/Makefile.am 2026-05-15 13:29:17.053867035 +0100 +@@ -556,15 +556,0 @@ +-include $(top_srcdir)/contrib/chem/chem.am +-include $(top_srcdir)/contrib/eqn2graph/eqn2graph.am +-include $(top_srcdir)/contrib/gdiffmk/gdiffmk.am +-include $(top_srcdir)/contrib/glilypond/glilypond.am +-include $(top_srcdir)/contrib/gperl/gperl.am +-include $(top_srcdir)/contrib/gpinyin/gpinyin.am +-include $(top_srcdir)/contrib/grap2graph/grap2graph.am +-include $(top_srcdir)/contrib/hdtbl/hdtbl.am +-include $(top_srcdir)/contrib/install-font/install-font.am +-include $(top_srcdir)/contrib/mm/mm.am +-include $(top_srcdir)/contrib/mom/mom.am +-include $(top_srcdir)/contrib/pic2graph/pic2graph.am +-include $(top_srcdir)/contrib/rfc1345/rfc1345.am +-include $(top_srcdir)/contrib/sboxes/sboxes.am +-include $(top_srcdir)/doc/doc.am
meta/recipes-extended/groff/groff_1.24.1.bb +2 -0
@@ -15,6 +15,8 @@ SRC_URI = "${GNU_MIRROR}/groff/groff-${PV}.tar.gz \ file://builddep.patch \ " +SRC_URI:append:class-native = "file://build-less.patch" + SRC_URI[sha256sum] = "74e2819795b6aff431aeac983d63a9c8968eeaba2a2eba7df8ba4c7b41e7cfd8" DEPENDS = "bison-native groff-native"
Signature · 1 line
2.43.0
Patchtest results for [PATCH 4/4] groff: build less in groff-native
Thank you for your submission. Patchtest identified one or more issues with the patch. Please see the log below for more information:
---
Testing patch /home/patchtest/share/mboxes/4-4-groff-build-less-in-groff-native.patch
FAIL: test Upstream-Status presence: Upstream-Status is Inappropriate, but no reason was provided (test_patch.TestPatch.test_upstream_status_presence_format)
PASS: test CVE tag format (test_patch.TestPatch.test_cve_tag_format)
PASS: test Signed-off-by presence (test_mbox.TestMbox.test_signed_off_by_presence)
PASS: test Signed-off-by presence (test_patch.TestPatch.test_signed_off_by_presence)
PASS: test author valid (test_mbox.TestMbox.test_author_valid)
PASS: test commit message presence (test_mbox.TestMbox.test_commit_message_presence)
PASS: test commit message user tags (test_mbox.TestMbox.test_commit_message_user_tags)
PASS: test mbox format (test_mbox.TestMbox.test_mbox_format)
PASS: test non-AUH upgrade (test_mbox.TestMbox.test_non_auh_upgrade)
PASS: test shortlog format (test_mbox.TestMbox.test_shortlog_format)
PASS: test shortlog length (test_mbox.TestMbox.test_shortlog_length)
PASS: test target mailing list (test_mbox.TestMbox.test_target_mailing_list)
SKIP: pretest pylint: No python related patches, skipping test (test_python_pylint.PyLint.pretest_pylint)
SKIP: test bugzilla entry format: No bug ID found (test_mbox.TestMbox.test_bugzilla_entry_format)
SKIP: test pylint: No python related patches, skipping test (test_python_pylint.PyLint.test_pylint)
SKIP: test series merge on head: Merge test is disabled for now (test_mbox.TestMbox.test_series_merge_on_head)
---
Please address the issues identified and
submit a new revision of the patch, or alternatively, reply to this email with an explanation of why the patch should be accepted. If you believe these results are due to an error in patchtest, please submit a bug at https://bugzilla.yoctoproject.org/ (use the 'Patchtest' category under 'Yocto Project Subprojects'). For more information on specific failures, see: https://wiki.yoctoproject.org/wiki/Patchtest. Thank you!
Hi,
I suspect the series introduced two different errors on, one for groff:
ERROR: Logfile of failure stored in: /srv/pokybuild/yocto-worker/musl-qemux86/build/build/tmp/work/core2-32-poky-linux-musl/groff/1.24.1/temp/log.do_compile.1501313 Log data follows:
| DEBUG: Executing shell function do_compile | NOTE: make -j 16 -l 75 GROFFBIN=groff GROFF_BIN_PATH=/srv/pokybuild/yocto-worker/musl-qemux86/build/build/tmp/work/core2-32-poky-linux-musl/groff/1.24.1/recipe-sysroot-native/usr/bin | /srv/pokybuild/yocto-worker/musl-qemux86/build/build/tmp/hosttools/mkdir -p 'lib' | /srv/pokybuild/yocto-worker/musl-qemux86/build/build/tmp/hosttools/mkdir -p 'lib' | /srv/pokybuild/yocto-worker/musl-qemux86/build/build/tmp/hosttools/mkdir -p 'lib' | sed -e 1h -e '1s,.*,/* DO NOT EDIT! GENERATED AUTOMATICALLY! */,' -e 1G \ | -e 's|@''HAVE_SYS_CDEFS_H''@|0|g' \ | ../sources/groff-1.24.1/lib/getopt-cdefs.in.h > lib/getopt-cdefs.h-t | /srv/pokybuild/yocto-worker/musl-qemux86/build/build/tmp/hosttools/mkdir -p 'lib' | /srv/pokybuild/yocto-worker/musl-qemux86/build/build/tmp/hosttools/mkdir -p 'lib' | /srv/pokybuild/yocto-worker/musl-qemux86/build/build/tmp/hosttools/mkdir -p 'lib' | /srv/pokybuild/yocto-worker/musl-qemux86/build/build/tmp/hosttools/mkdir -p 'lib' | /srv/pokybuild/yocto-worker/musl-qemux86/build/build/tmp/hosttools/mkdir -p 'lib' | /srv/pokybuild/yocto-worker/musl-qemux86/build/build/tmp/hosttools/mkdir -p 'lib' | /bin/bash: line 1: lib/getopt-cdefs.h-t: No such file or directory
https://autobuilder.yoctoproject.org/valkyrie/#/builders/6/builds/3806
One for nasm (different build):
| asm/uncompress.c:9:10: fatal error: zlib.h: No such file or directory | 9 | #include "zlib.h" | | ^~~~~~~~ | compilation terminated.
https://autobuilder.yoctoproject.org/valkyrie/#/builders/93/builds/3765
Also on riscv64:
https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/1607
Can you have a look?
Antonin
Quoted 23 lines · Antonin Godard
Hi,
I suspect the series introduced two different errors on, one for groff:
ERROR: Logfile of failure stored in:
/srv/pokybuild/yocto-worker/musl-qemux86/build/build/tmp/work/core2-32-poky-linux-musl/groff/1.24.1/temp/log.do_compile.1501313Log data follows:| DEBUG: Executing shell function do_compile | NOTE: make -j 16 -l 75 GROFFBIN=groff GROFF_BIN_PATH=/srv/pokybuild/yocto-worker/musl-qemux86/build/build/tmp/work/core2-32-poky-linux-musl/groff/1.24.1/recipe-sysroot-native/usr/bin | /srv/pokybuild/yocto-worker/musl-qemux86/build/build/tmp/hosttools/mkdir -p 'lib' | /srv/pokybuild/yocto-worker/musl-qemux86/build/build/tmp/hosttools/mkdir -p 'lib' | /srv/pokybuild/yocto-worker/musl-qemux86/build/build/tmp/hosttools/mkdir -p 'lib' | sed -e 1h -e '1s,.*,/* DO NOT EDIT! GENERATED AUTOMATICALLY! */,' -e 1G \ | -e 's|@''HAVE_SYS_CDEFS_H''@|0|g' \ | ../sources/groff-1.24.1/lib/getopt-cdefs.in.h > lib/getopt-cdefs.h-t | /srv/pokybuild/yocto-worker/musl-qemux86/build/build/tmp/hosttools/mkdir -p 'lib' | /srv/pokybuild/yocto-worker/musl-qemux86/build/build/tmp/hosttools/mkdir -p 'lib' | /srv/pokybuild/yocto-worker/musl-qemux86/build/build/tmp/hosttools/mkdir -p 'lib' | /srv/pokybuild/yocto-worker/musl-qemux86/build/build/tmp/hosttools/mkdir -p 'lib' | /srv/pokybuild/yocto-worker/musl-qemux86/build/build/tmp/hosttools/mkdir -p 'lib' | /srv/pokybuild/yocto-worker/musl-qemux86/build/build/tmp/hosttools/mkdir -p 'lib' | /bin/bash: line 1: lib/getopt-cdefs.h-t: No such file or directory
This is likely the out-of-tree build, I’ll drop that patch and resend the groff series.
Quoted 8 lines
One for nasm (different build):
| asm/uncompress.c:9:10: fatal error: zlib.h: No such file or directory | 9 | #include "zlib.h" | | ^~~~~~~~ | compilation terminated.https://autobuilder.yoctoproject.org/valkyrie/#/builders/93/builds/3765
I’ve glanced at the configure script and don’t want to think about how it got into this state, but nasm should depend on zlib. v2 sent for that separately.
Ross