<?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>13718</bug_id>
          
          <creation_ts>2019-12-19 21:54:11 +0000</creation_ts>
          <short_desc>&quot;libcomps: update to 0.1.12&quot; doesn&apos;t work due to patch not applying</short_desc>
          <delta_ts>2020-04-16 08:21:42 +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>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>3.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Scott Branden">scott.branden</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>jon.richardson</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>85875</commentid>
    <comment_count>0</comment_count>
    <who name="Scott Branden">scott.branden</who>
    <bug_when>2019-12-19 21:54:11 +0000</bug_when>
    <thetext>&quot;libcomps: update to 0.1.12&quot; commit from Alexander Kanavin doesn&apos;t work.
How was this tested and applied to the master branch of poky?

ERROR: libcomps-0.1.12-r0 do_patch: Command Error: &apos;quilt --quiltrc /mnt/2ndHDD/yocto/vxc/poky/build/tmp/work/core2-64-poky-linux/libcomps/0.1.12-r0/recipe-sysroot-native/etc/quiltrc push&apos; exited with 0  Output:
Applying patch 0001-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch
patching file libcomps/src/python/src/CMakeLists.txt
Hunk #1 FAILED at 117.
1 out of 1 hunk FAILED -- rejects in file libcomps/src/python/src/CMakeLists.txt
Patch 0001-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch does not apply (enforce with -f)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85877</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Richardson">jon.richardson</who>
    <bug_when>2019-12-19 21:58:39 +0000</bug_when>
    <thetext>It seems to be an issue with quilt. I had the same problem with pseudo and had to apply this patch locally:

commit 0e3323b123ab91c2ab76c71c955eae758a084bdc
Author: Jonathan Richardson &lt;jonathan.richardson@broadcom.com&gt;
Date:   Thu Nov 21 11:49:43 2019 -0800

    SOC-8238: Use git as patchtool for pseudo recipe
    
    The default patchtool quilt sometimes fails to apply the patch
    0001-configure-Prune-PIE-flags.patch even though there is nothing wrong
    with it. This causes the build to fail. Since all the patches are git
    patches, the patchtool is being changed to git to work around the issue.
    
    Change-Id: I9f48d627ae04bb0524368804597548249e3fcd7d
    Reviewed-on: http://gerrit-ccxsw.broadcom.net/107661
    Reviewed-by: Jonathan Richardson &lt;jonathan.richardson@broadcom.com&gt;
    Tested-by: Jonathan Richardson &lt;jonathan.richardson@broadcom.com&gt;

diff --git a/meta/recipes-devtools/pseudo/pseudo.inc b/meta/recipes-devtools/pseudo/pseudo.inc
index 8b34909726..8ad98b386e 100644
--- a/meta/recipes-devtools/pseudo/pseudo.inc
+++ b/meta/recipes-devtools/pseudo/pseudo.inc
@@ -153,3 +153,5 @@ do_install_append_class-nativesdk () {
 }
 
 BBCLASSEXTEND = &quot;native nativesdk&quot;
+
+PATCHTOOL = &quot;git&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85880</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-12-19 23:24:57 +0000</bug_when>
    <thetext>Which host OS is this one? We test these patches on the autobuilder and haven&apos;t see this issue...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85881</commentid>
    <comment_count>3</comment_count>
    <who name="Scott Branden">scott.branden</who>
    <bug_when>2019-12-19 23:25:51 +0000</bug_when>
    <thetext>This is on a Ubuntu 18.04 x86-64 host</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85882</commentid>
    <comment_count>4</comment_count>
    <who name="Scott Branden">scott.branden</who>
    <bug_when>2019-12-19 23:36:32 +0000</bug_when>
    <thetext>I just tried with the default build/conf again and problem did not happen.  Will see if I can reproduce again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85883</commentid>
    <comment_count>5</comment_count>
    <who name="Jonathan Richardson">jon.richardson</who>
    <bug_when>2019-12-19 23:37:47 +0000</bug_when>
    <thetext>It doesn&apos;t happen all the time. It&apos;s sporadic. But if it happens once it will again eventually.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85963</commentid>
    <comment_count>6</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2019-12-23 03:16:54 +0000</bug_when>
    <thetext>*** Bug 13719 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85994</commentid>
    <comment_count>7</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-01-09 15:38:04 +0000</bug_when>
    <thetext>We&apos;re going to struggle to help with this unless we can reproduce the problem. Is there some way we could reproduce the issue?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86015</commentid>
    <comment_count>8</comment_count>
    <who name="Scott Branden">scott.branden</who>
    <bug_when>2020-01-09 19:04:06 +0000</bug_when>
    <thetext>I agree it&apos;s difficult to reproduce random yocto build issues.
Especially since once it builds successfully then the output is in the yocto cache and we don&apos;t hit the issue any more.

To test this and other problems you probably need some sort of automated build system that builds with and without yocto-cache populated.  As well as some level of randomness with build thread scheduling by loading the build machine?

I haven&apos;t seen the issue since because I now use the yocto-cache.  I deleted it and tried again and wasn&apos;t able to reproduce in 3 attempts.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86992</commentid>
    <comment_count>9</comment_count>
    <who name="Scott Branden">scott.branden</who>
    <bug_when>2020-04-14 10:35:12 +0000</bug_when>
    <thetext>unable to reproduce at this time.  can probably close if you like as it is/was random.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87042</commentid>
    <comment_count>10</comment_count>
    <who name="Stephen K Jolley">sjolley.yp.pm</who>
    <bug_when>2020-04-16 08:21:42 +0000</bug_when>
    <thetext>Not able to reproduce.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>