<?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>13491</bug_id>
          
          <creation_ts>2019-08-23 01:44:22 +0000</creation_ts>
          <short_desc>perllocal.pod clash from multiple different packages</short_desc>
          <delta_ts>2019-10-17 14:53:29 +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>configuration</component>
          <version>unspecified</version>
          <rep_platform>x86</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>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.8 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>jonathan.yong</reporter>
          <assigned_to name="Tim Orling">tim.orling</assigned_to>
          <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>84738</commentid>
    <comment_count>0</comment_count>
    <who name="">jonathan.yong</who>
    <bug_when>2019-08-23 01:44:22 +0000</bug_when>
    <thetext>Background: perl modules when installed can produce a perllocal.pod file for documenting a list of locally installed perl modules. This can conflict if multiple packages generate the file.

When building lmsensors, it fails with:
mc:x86:lmsensors-3.4.0-r0 do_prepare_recipe_sysroot: The file /usr/lib64/perl5/5.28.1/x86_64-linux/perllocal.pod is installed by both apparmor and rrdtool, aborting

Should this file be removed automatically?

I am using this bbclass as a workaround:
remove_perllocal(){
        if [ -d &quot;${D}/${libdir}/perl5&quot; ]; then
                find &quot;${D}/${libdir}/perl5&quot; -type f -name perllocal.pod -delete
        fi
}

do_install[postfuncs] += &quot;remove_perllocal&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85193</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-10-03 15:13:32 +0000</bug_when>
    <thetext>If something is using cpan.bbclass it won&apos;t install the fiel, so any recipe that ships it is doing so explicitly for some reason.

I believe we should add a QA test for this, but not wipe it out globally.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85205</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-10-04 00:22:29 +0000</bug_when>
    <thetext>Patch for the QA test on the list now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85357</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2019-10-17 14:35:34 +0000</bug_when>
    <thetext>QA sanity test was merged in Zeus: a5a5708dbbb534f6624fafe9e78f96de25c10dea</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85367</commentid>
    <comment_count>4</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2019-10-17 14:53:29 +0000</bug_when>
    <thetext>Individual recipes (from layers that are not triaged by the YP Bug Triage team) may still need to be corrected to not install perllocal.pod. If so, either send a patch to the proper mailing list to fix the recipe in question or send an email to the proper list highlighting the need to fix perllocal.pod QA test.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>