<?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>3191</bug_id>
          
          <creation_ts>2012-09-28 08:06:55 +0000</creation_ts>
          <short_desc>Install-conflict message could be a lot more useful</short_desc>
          <delta_ts>2012-12-08 03:13:20 +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>BitBake</product>
          <component>bitbake</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>1.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Daniel Stone">daniel</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>Martin.Jansa</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>25889</commentid>
    <comment_count>0</comment_count>
    <who name="Daniel Stone">daniel</who>
    <bug_when>2012-09-28 08:06:55 +0000</bug_when>
    <thetext>&apos;WARNING: The recipe is trying to install files into a shared area when those files already exist. Those files are:
   /home/daniels/collabora/yocto/build-i7/tmp/sysroots/x86_64-linux/usr/share/sgml/openjade-1.3.2/catalog&apos;

It&apos;d be really nice if this error message told us exactly which recipe caused the conflicting file to be installed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27871</commentid>
    <comment_count>1</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2012-12-02 17:36:40 +0000</bug_when>
    <thetext>http://git.openembedded.org/openembedded-core/commit/?id=56268f6e4ed1fc11143173bb1717a8be78c728a5

This patch does not seem to work correctly:

Python 2.7.3

&gt;&gt;&gt; sstate_search_cmd = &quot;grep -rl /OE/jansa-test/shr-core/tmp-eglibc/pkgdata/armv7a-vfp-neon-oe-linux-gnueabi/runtime-reverse/vim-common /OE/jansa-test/shr-core/tmp-eglibc/sstate-control --exclude=master.list | sed -e &apos;s:^.*/::&apos; -e &apos;s:\.populate-sysroot::&apos;&quot;
&gt;&gt;&gt; cmd_array = sstate_search_cmd.split(&apos; &apos;)
&gt;&gt;&gt; search_output = subprocess.Popen(cmd_array, stdout=subprocess.PIPE).communicate()[0]
grep: |: No such file or directory
grep: sed: No such file or directory

So it never shows any match.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27916</commentid>
    <comment_count>2</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2012-12-03 20:27:54 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; http://git.openembedded.org/openembedded-core/commit/
&gt; ?id=56268f6e4ed1fc11143173bb1717a8be78c728a5
&gt; 
&gt; This patch does not seem to work correctly:
&gt; 
&gt; Python 2.7.3
&gt; 
&gt; &gt;&gt;&gt; sstate_search_cmd = &quot;grep -rl /OE/jansa-test/shr-core/tmp-eglibc/pkgdata/armv7a-vfp-neon-oe-linux-gnueabi/runtime-reverse/vim-common /OE/jansa-test/shr-core/tmp-eglibc/sstate-control --exclude=master.list | sed -e &apos;s:^.*/::&apos; -e &apos;s:\.populate-sysroot::&apos;&quot;
&gt; &gt;&gt;&gt; cmd_array = sstate_search_cmd.split(&apos; &apos;)
&gt; &gt;&gt;&gt; search_output = subprocess.Popen(cmd_array, stdout=subprocess.PIPE).communicate()[0]
&gt; grep: |: No such file or directory
&gt; grep: sed: No such file or directory
&gt; 
&gt; So it never shows any match.

Adding shell=True makes it work
&gt;&gt;&gt; search_output = subprocess.Popen(sstate_search_cmd, shell=True, stdout=subprocess.PIPE).communicate()[0]
&gt;&gt;&gt; print search_output
manifest-armv7a-vfp-neon-gvim.package
manifest-armv7a-vfp-neon-vim-tiny.package
manifest-armv7a-vfp-neon-vim.package

But still isn&apos;t 100% reliable, I guess it&apos;s caused by some other package being removed from sstate while grep is already running.
&gt;&gt;&gt; search_output = subprocess.Popen(sstate_search_cmd, shell=True, stdout=subprocess.PIPE).communicate()[0]
grep: /OE/jansa-test/shr-core/tmp-eglibc/sstate-control/manifest-armv7a-vfp-neon-systemtap.package: No such file or directory</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27921</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-12-03 23:08:13 +0000</bug_when>
    <thetext>There&apos;s a patch on the list from Enrico also, but it addresses something a little different.

http://lists.linuxtogo.org/pipermail/openembedded-core/2012-November/031850.html

It&apos;s been pending for sometime, I will push RP on this patch

I am testing with your suggestion</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27922</commentid>
    <comment_count>4</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2012-12-03 23:20:10 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; There&apos;s a patch on the list from Enrico also, but it addresses something a
&gt; little different.
&gt; 
&gt; http://lists.linuxtogo.org/pipermail/openembedded-core/2012-November/031850.
&gt; html
&gt; 
&gt; It&apos;s been pending for sometime, I will push RP on this patch
&gt; 
&gt; I am testing with your suggestion

I&apos;ll send patch tonight
https://github.com/shr-distribution/oe-core/commit/70952dc6fb5cd2bb59d25cc246363ab46b9d5999</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28105</commentid>
    <comment_count>5</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-12-08 03:13:20 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=306761b0261c73a046c151740fbd20f6815aeb51

and

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=381c4b69c7e8b452f4d3de2f8214e6e5f6a9abe7

Worked to resolve this,</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>