While building a Dunfell image, I switched to a host that supported a higher parallelization (6t -> 128t) to reduce build time and began encountering a fairly consistent build error in tpm-tools. The build would be successful if retried which led to looking at the dependencies. Applying the below patch seemed to remove this failure when doing a clean build. The patch below adds `perl` as a build dependency based on it providing `pod2man`. Patch: ``` diff --git a/meta-tpm/recipes-tpm/tpm-tools/tpm-tools_1.3.9.1.bb b/meta-tpm/recipes-tpm/tpm-tools/tpm-tools_1.3.9.1.bb index 88ef19f..a57a6d6 100644 --- a/meta-tpm/recipes-tpm/tpm-tools/tpm-tools_1.3.9.1.bb +++ b/meta-tpm/recipes-tpm/tpm-tools/tpm-tools_1.3.9.1.bb @@ -9,7 +9,7 @@ SECTION = "tpm" LICENSE = "CPL-1.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=059e8cd6165cb4c31e351f2b69388fd9" -DEPENDS = "libtspi openssl" +DEPENDS = "libtspi openssl perl" DEPENDS_class-native = "trousers-native" SRCREV = "bdf9f1bc8f63cd6fc370c2deb58d03ac55079e84" ``` The tail end of the log showing the error is below: ``` | make[3]: Leaving directory '/home/user/oe-dunfell/build/tmp-glibc/work/cortexa9t2hf-neon-oe-linux-gnueabi/tpm-tools/1.3.9.1-r0/git/src/cmds' | make[3]: Entering directory '/home/user/oe-dunfell/build/tmp-glibc/work/cortexa9t2hf-neon-oe-linux-gnueabi/tpm-tools/1.3.9.1-r0/git/src' | make[3]: Nothing to be done for 'all-am'. | make[3]: Leaving directory '/home/user/oe-dunfell/build/tmp-glibc/work/cortexa9t2hf-neon-oe-linux-gnueabi/tpm-tools/1.3.9.1-r0/git/src' | make[2]: Leaving directory '/home/user/oe-dunfell/build/tmp-glibc/work/cortexa9t2hf-neon-oe-linux-gnueabi/tpm-tools/1.3.9.1-r0/git/src' | Making all in po | make[2]: Entering directory '/home/user/oe-dunfell/build/tmp-glibc/work/cortexa9t2hf-neon-oe-linux-gnueabi/tpm-tools/1.3.9.1-r0/git/po' | test ! -f ./tpm-tools.pot || \ | test -z "" || make | touch ./stamp-po | make[2]: Leaving directory '/home/user/oe-dunfell/build/tmp-glibc/work/cortexa9t2hf-neon-oe-linux-gnueabi/tpm-tools/1.3.9.1-r0/git/po' | Making all in man | make[2]: Entering directory '/home/user/oe-dunfell/build/tmp-glibc/work/cortexa9t2hf-neon-oe-linux-gnueabi/tpm-tools/1.3.9.1-r0/git/man' | Making all in man1 | make[3]: Entering directory '/home/user/oe-dunfell/build/tmp-glibc/work/cortexa9t2hf-neon-oe-linux-gnueabi/tpm-tools/1.3.9.1-r0/git/man/man1' | make[3]: Nothing to be done for 'all'. | make[3]: Leaving directory '/home/user/oe-dunfell/build/tmp-glibc/work/cortexa9t2hf-neon-oe-linux-gnueabi/tpm-tools/1.3.9.1-r0/git/man/man1' | Making all in man3 | make[3]: Entering directory '/home/user/oe-dunfell/build/tmp-glibc/work/cortexa9t2hf-neon-oe-linux-gnueabi/tpm-tools/1.3.9.1-r0/git/man/man3' | make[3]: Nothing to be done for 'all'. | make[3]: Leaving directory '/home/user/oe-dunfell/build/tmp-glibc/work/cortexa9t2hf-neon-oe-linux-gnueabi/tpm-tools/1.3.9.1-r0/git/man/man3' | Making all in man8 | make[3]: Entering directory '/home/user/oe-dunfell/build/tmp-glibc/work/cortexa9t2hf-neon-oe-linux-gnueabi/tpm-tools/1.3.9.1-r0/git/man/man8' | /bin/bash: pod2man: command not found | Makefile:575: recipe for target 'tpm_nvdefine.8' failed | make[3]: *** [tpm_nvdefine.8] Error 127 | make[3]: Leaving directory '/home/user/oe-dunfell/build/tmp-glibc/work/cortexa9t2hf-neon-oe-linux-gnueabi/tpm-tools/1.3.9.1-r0/git/man/man8' | Makefile:394: recipe for target 'all-recursive' failed | make[2]: *** [all-recursive] Error 1 | make[2]: Leaving directory '/home/user/oe-dunfell/build/tmp-glibc/work/cortexa9t2hf-neon-oe-linux-gnueabi/tpm-tools/1.3.9.1-r0/git/man' | Makefile:451: recipe for target 'all-recursive' failed | make[1]: *** [all-recursive] Error 1 | make[1]: Leaving directory '/home/user/oe-dunfell/build/tmp-glibc/work/cortexa9t2hf-neon-oe-linux-gnueabi/tpm-tools/1.3.9.1-r0/git' | Makefile:381: recipe for target 'all' failed | make: *** [all] Error 2 | WARNING: exit code 1 from a shell command. | ERROR: Task (/home/user/oe-dunfell/sources/meta-security/meta-tpm/recipes-tpm/tpm-tools/tpm-tools_1.3.9.1.bb:do_compile) failed with exit code '1' ```
patches sent
in dunfell