<div dir="ltr">Sorry, hit &quot;reply&quot; instead of &quot;reply to all&quot; by mistake.<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Marinescu, Bogdan A</b> <span dir="ltr">&lt;<a href="mailto:bogdan.a.marinescu@intel.com">bogdan.a.marinescu@intel.com</a>&gt;</span><br>

Date: Tue, Apr 9, 2013 at 11:11 AM<br>Subject: Re: [OE-core] [PATCH] smart: disable CHANNELSDIR<br>To: Mark Hatle &lt;<a href="mailto:mark.hatle@windriver.com">mark.hatle@windriver.com</a>&gt;<br><br><br><div dir="ltr"><br>

<div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Mon, Apr 8, 2013 at 7:05 PM, Mark Hatle <span dir="ltr">&lt;<a href="mailto:mark.hatle@windriver.com" target="_blank">mark.hatle@windriver.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div>On 4/8/13 10:02 AM, Bogdan Marinescu wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Make CHANNELSDIR in smart empty, since this causes host contamination issues<br>
on some RPM-based hosts on which smart is already installed.<br>
<br>
[YOCTO #3881]<br>
<br>
Signed-off-by: Bogdan Marinescu &lt;<a href="mailto:bogdan.a.marinescu@intel.com" target="_blank">bogdan.a.marinescu@intel.com</a>&gt;<br>
---<br>
  .../python/python-smartpm/<u></u>smart-channelsdir.patch  | 24 ++++++++++++++++++++++<br>
  .../python/<a href="http://python-smartpm_1.4.1.bb" target="_blank">python-smartpm_1.4.<u></u>1.bb</a>                 |  3 ++-<br>
  2 files changed, 26 insertions(+), 1 deletion(-)<br>
  create mode 100644 meta/recipes-devtools/python/<u></u>python-smartpm/smart-<u></u>channelsdir.patch<br>
<br>
diff --git a/meta/recipes-devtools/<u></u>python/python-smartpm/smart-<u></u>channelsdir.patch b/meta/recipes-devtools/<u></u>python/python-smartpm/smart-<u></u>channelsdir.patch<br>
new file mode 100644<br>
index 0000000..e621b33<br>
--- /dev/null<br>
+++ b/meta/recipes-devtools/<u></u>python/python-smartpm/smart-<u></u>channelsdir.patch<br>
@@ -0,0 +1,24 @@<br>
+Make CHANNELSDIR in smart empty, since this causes host contamination issues<br>
+on some RPM-based hosts on which smart is already installed.<br>
+<br>
+[YOCTO #3881]<br>
+<br>
+Upstream-Status: Inappropriate [embedded specific]<br>
+<br>
+diff --git a/smart/plugins/channelsync.py b/smart/plugins/channelsync.py<br>
+index 3ba95ff..646d696 100644<br>
+--- a/smart/plugins/channelsync.py<br>
++++ b/smart/plugins/channelsync.py<br>
+@@ -23,7 +23,11 @@ from smart.channel import *<br>
+ from smart import *<br>
+ import os<br>
+<br>
+-CHANNELSDIR = &quot;/etc/smart/channels/&quot;<br>
++# For now, we leave the definition of CHANNELSDIR empty. This prevents smart<br>
++# from erroneously consider the  build host&#39;s channels while setting up its<br>
++# channels [YOCTO #3881]. If this feature will be used in the future, CHANNELSDIR<br>
++# should be set to a proper value.<br>
++CHANNELSDIR = &quot;&quot;<br>
</blockquote>
<br></div></div>
I don&#39;t remember if the channelsdir is used by default on the target or if there is a different directory.<br>
<br>
Did you check if (on the target) you can still add channels and do a remove install/update of a package?</blockquote><div><br></div></div></div><div>No, I just checked the poky source for any reference to CHANNELSDIR and didn&#39;t find anything. Plus, CHANNELSDIR is set to a fixed directory (/etc/smart/channels) in the original smart source and I coulnd&#39;t find a similar directory structure in the poky rootfs image. Nevertheless, I&#39;ll test this and let you know the results.</div>


<div><br></div><div>Thanks,</div><div>Bogdan</div><div class="im"><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
+<br>
+ def syncChannels(channelsdir, force=None):<br>
+<br>
diff --git a/meta/recipes-devtools/<u></u>python/<a href="http://python-smartpm_1.4.1.bb" target="_blank">python-smartpm_1.4.1.bb</a> b/meta/recipes-devtools/<u></u>python/<a href="http://python-smartpm_1.4.1.bb" target="_blank">python-smartpm_1.4.1.bb</a><br>



index d92933f..001d9e4 100644<br>
--- a/meta/recipes-devtools/<u></u>python/<a href="http://python-smartpm_1.4.1.bb" target="_blank">python-smartpm_1.4.1.bb</a><br>
+++ b/meta/recipes-devtools/<u></u>python/<a href="http://python-smartpm_1.4.1.bb" target="_blank">python-smartpm_1.4.1.bb</a><br>
@@ -11,7 +11,7 @@ LICENSE = &quot;GPLv2&quot;<br>
  LIC_FILES_CHKSUM = &quot;file://LICENSE;md5=<u></u>393a5ca445f6965873eca0259a17f8<u></u>33&quot;<br>
<br>
  DEPENDS = &quot;python rpm&quot;<br>
-PR = &quot;r8&quot;<br>
+PR = &quot;r9&quot;<br>
  SRCNAME = &quot;smart&quot;<br>
<br>
  SRC_URI = &quot;\<br>
@@ -27,6 +27,7 @@ SRC_URI = &quot;\<br>
            file://smart-improve-error-<u></u>reporting.patch \<br>
            file://smart-multilib-fixes.<u></u>patch \<br>
            file://smart-yaml-error.patch \<br>
+          file://smart-channelsdir.patch \<br>
            &quot;<br>
<br>
  SRC_URI[md5sum] = &quot;<u></u>573ef32ba177a6b3c4bf7ef04873fc<u></u>b6&quot;<br>
<br>
</blockquote>
<br>
<br></div>
______________________________<u></u>_________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank">Openembedded-core@lists.<u></u>openembedded.org</a><br>
<a href="http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core" target="_blank">http://lists.linuxtogo.org/<u></u>cgi-bin/mailman/listinfo/<u></u>openembedded-core</a><br>
</blockquote></div></div><br></div></div>
</div><br></div>