<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>14304</bug_id>
          
          <creation_ts>2021-03-17 00:57:06 +0000</creation_ts>
          <short_desc>Add build dependency for pod2man</short_desc>
          <delta_ts>2021-07-10 12:29:18 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Other YP Layers</product>
          <component>meta-security</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ben">koncept1</reporter>
          <assigned_to name="akuster">akuster808</assigned_to>
          
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>89633</commentid>
    <comment_count>0</comment_count>
    <who name="Ben">koncept1</who>
    <bug_when>2021-03-17 00:57:06 +0000</bug_when>
    <thetext>While building a Dunfell image, I switched to a host that supported a higher parallelization (6t -&gt; 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 = &quot;tpm&quot;
 LICENSE = &quot;CPL-1.0&quot;
 LIC_FILES_CHKSUM = &quot;file://LICENSE;md5=059e8cd6165cb4c31e351f2b69388fd9&quot;

-DEPENDS = &quot;libtspi openssl&quot;
+DEPENDS = &quot;libtspi openssl perl&quot;
 DEPENDS_class-native = &quot;trousers-native&quot;

 SRCREV = &quot;bdf9f1bc8f63cd6fc370c2deb58d03ac55079e84&quot;
```


The tail end of the log showing the error is below:
```
| make[3]: Leaving directory &apos;/home/user/oe-dunfell/build/tmp-glibc/work/cortexa9t2hf-neon-oe-linux-gnueabi/tpm-tools/1.3.9.1-r0/git/src/cmds&apos;
| make[3]: Entering directory &apos;/home/user/oe-dunfell/build/tmp-glibc/work/cortexa9t2hf-neon-oe-linux-gnueabi/tpm-tools/1.3.9.1-r0/git/src&apos;
| make[3]: Nothing to be done for &apos;all-am&apos;.
| make[3]: Leaving directory &apos;/home/user/oe-dunfell/build/tmp-glibc/work/cortexa9t2hf-neon-oe-linux-gnueabi/tpm-tools/1.3.9.1-r0/git/src&apos;
| make[2]: Leaving directory &apos;/home/user/oe-dunfell/build/tmp-glibc/work/cortexa9t2hf-neon-oe-linux-gnueabi/tpm-tools/1.3.9.1-r0/git/src&apos;
| Making all in po
| make[2]: Entering directory &apos;/home/user/oe-dunfell/build/tmp-glibc/work/cortexa9t2hf-neon-oe-linux-gnueabi/tpm-tools/1.3.9.1-r0/git/po&apos;
| test ! -f ./tpm-tools.pot || \
|   test -z &quot;&quot; || make
| touch ./stamp-po
| make[2]: Leaving directory &apos;/home/user/oe-dunfell/build/tmp-glibc/work/cortexa9t2hf-neon-oe-linux-gnueabi/tpm-tools/1.3.9.1-r0/git/po&apos;
| Making all in man
| make[2]: Entering directory &apos;/home/user/oe-dunfell/build/tmp-glibc/work/cortexa9t2hf-neon-oe-linux-gnueabi/tpm-tools/1.3.9.1-r0/git/man&apos;
| Making all in man1
| make[3]: Entering directory &apos;/home/user/oe-dunfell/build/tmp-glibc/work/cortexa9t2hf-neon-oe-linux-gnueabi/tpm-tools/1.3.9.1-r0/git/man/man1&apos;
| make[3]: Nothing to be done for &apos;all&apos;.
| make[3]: Leaving directory &apos;/home/user/oe-dunfell/build/tmp-glibc/work/cortexa9t2hf-neon-oe-linux-gnueabi/tpm-tools/1.3.9.1-r0/git/man/man1&apos;
| Making all in man3
| make[3]: Entering directory &apos;/home/user/oe-dunfell/build/tmp-glibc/work/cortexa9t2hf-neon-oe-linux-gnueabi/tpm-tools/1.3.9.1-r0/git/man/man3&apos;
| make[3]: Nothing to be done for &apos;all&apos;.
| make[3]: Leaving directory &apos;/home/user/oe-dunfell/build/tmp-glibc/work/cortexa9t2hf-neon-oe-linux-gnueabi/tpm-tools/1.3.9.1-r0/git/man/man3&apos;
| Making all in man8
| make[3]: Entering directory &apos;/home/user/oe-dunfell/build/tmp-glibc/work/cortexa9t2hf-neon-oe-linux-gnueabi/tpm-tools/1.3.9.1-r0/git/man/man8&apos;
| /bin/bash: pod2man: command not found
| Makefile:575: recipe for target &apos;tpm_nvdefine.8&apos; failed
| make[3]: *** [tpm_nvdefine.8] Error 127
| make[3]: Leaving directory &apos;/home/user/oe-dunfell/build/tmp-glibc/work/cortexa9t2hf-neon-oe-linux-gnueabi/tpm-tools/1.3.9.1-r0/git/man/man8&apos;
| Makefile:394: recipe for target &apos;all-recursive&apos; failed
| make[2]: *** [all-recursive] Error 1
| make[2]: Leaving directory &apos;/home/user/oe-dunfell/build/tmp-glibc/work/cortexa9t2hf-neon-oe-linux-gnueabi/tpm-tools/1.3.9.1-r0/git/man&apos;
| Makefile:451: recipe for target &apos;all-recursive&apos; failed
| make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory &apos;/home/user/oe-dunfell/build/tmp-glibc/work/cortexa9t2hf-neon-oe-linux-gnueabi/tpm-tools/1.3.9.1-r0/git&apos;
| Makefile:381: recipe for target &apos;all&apos; 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 &apos;1&apos;
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90906</commentid>
    <comment_count>1</comment_count>
    <who name="akuster">akuster808</who>
    <bug_when>2021-07-10 12:29:06 +0000</bug_when>
    <thetext>patches sent</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90907</commentid>
    <comment_count>2</comment_count>
    <who name="akuster">akuster808</who>
    <bug_when>2021-07-10 12:29:18 +0000</bug_when>
    <thetext>in dunfell</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>