<div dir="ltr">Please change the commit summary to describe what the problem/fix is, instead of just linking to the bug number.  Then at the end of the commit message, refer to the bug like [YOCTO #7428].<div><br></div><div>Ross</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 12 March 2015 at 07:57, Fabrice Coulon <span dir="ltr">&lt;<a href="mailto:fabrice.coulon@axis.com" target="_blank">fabrice.coulon@axis.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This fix solves the problem with the ownership of files in packages.<br>
The do_install task was producing correct and expected output but when<br>
the files were being put in, e.g. a rpm package, the ownership could<br>
be different than that in the do_install task.<br>
<br>
Signed-off-by: Peter Kjellerstedt &lt;<a href="mailto:peter.kjellerstedt@axis.com">peter.kjellerstedt@axis.com</a>&gt;<br>
Signed-off-by: Fabrice Coulon &lt;<a href="mailto:fabrice.coulon@axis.com">fabrice.coulon@axis.com</a>&gt;<br>
---<br>
 meta/lib/oe/package.py | 2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/meta/lib/oe/package.py b/meta/lib/oe/package.py<br>
index 7c728fc..8bc56c6 100644<br>
--- a/meta/lib/oe/package.py<br>
+++ b/meta/lib/oe/package.py<br>
@@ -31,7 +31,7 @@ def runstrip(arg):<br>
         extraflags = &quot;--remove-section=.comment --remove-section=.note&quot;<br>
<br>
     # Use mv to break hardlinks<br>
-    stripcmd = &quot;&#39;%s&#39; %s &#39;%s&#39; -o &#39;%s.tmp&#39; &amp;&amp; mv &#39;%s.tmp&#39; &#39;%s&#39;&quot; % (strip, extraflags, file, file, file, file)<br>
+    stripcmd = &quot;&#39;%s&#39; %s &#39;%s&#39; -o &#39;%s.tmp&#39; &amp;&amp; chown --reference=&#39;%s&#39; &#39;%s.tmp&#39; &amp;&amp; mv &#39;%s.tmp&#39; &#39;%s&#39;&quot; % (strip, extraflags, file, file, file, file, file, file)<br>
     bb.debug(1, &quot;runstrip: %s&quot; % stripcmd)<br>
<br>
     ret = subprocess.call(stripcmd, shell=True)<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.9.1<br>
<br>
--<br>
_______________________________________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" target="_blank">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
</font></span></blockquote></div><br></div>