<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, May 16, 2014 at 7:14 PM, Saul Wold <span dir="ltr">&lt;<a href="mailto:sgw@linux.intel.com" target="_blank">sgw@linux.intel.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 05/16/2014 05:16 AM, Jacob Kroon wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Fri, May 16, 2014 at 7:13 AM, Jacob Kroon &lt;<a href="mailto:jacob.kroon@gmail.com" target="_blank">jacob.kroon@gmail.com</a>&gt; wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello Saul,<br>
<br>
<br>
On Thu, May 15, 2014 at 5:58 PM, Saul Wold &lt;<a href="mailto:sgw@linux.intel.com" target="_blank">sgw@linux.intel.com</a>&gt; wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Signed-off-by: Saul Wold &lt;<a href="mailto:sgw@linux.intel.com" target="_blank">sgw@linux.intel.com</a>&gt;<br>
---<br>
  .../{libusb1-1.0.9 =&gt; libusb1}/obsolete_automake_<u></u>macros.patch      | 0<br>
  .../recipes-support/libusb/{<a href="http://libusb1_1.0.9.bb" target="_blank">li<u></u>busb1_1.0.9.bb</a> =&gt; <a href="http://libusb1_1.0.18.bb" target="_blank">libusb1_1.0.18.bb</a>} | 7<br>
++-----<br>
  2 files changed, 2 insertions(+), 5 deletions(-)<br>
  rename meta/recipes-support/libusb/{<u></u>libusb1-1.0.9 =&gt;<br>
libusb1}/obsolete_automake_<u></u>macros.patch (100%)<br>
  rename meta/recipes-support/libusb/{<a href="http://libusb1_1.0.9.bb" target="_blank">l<u></u>ibusb1_1.0.9.bb</a> =&gt;<br>
<a href="http://libusb1_1.0.18.bb" target="_blank">libusb1_1.0.18.bb</a>} (78%)<br>
<br>
diff --git<br>
a/meta/recipes-support/libusb/<u></u>libusb1-1.0.9/obsolete_<u></u>automake_macros.patch<br>
b/meta/recipes-support/libusb/<u></u>libusb1/obsolete_automake_<u></u>macros.patch<br>
similarity index 100%<br>
rename from<br>
meta/recipes-support/libusb/<u></u>libusb1-1.0.9/obsolete_<u></u>automake_macros.patch<br>
rename to<br>
meta/recipes-support/libusb/<u></u>libusb1/obsolete_automake_<u></u>macros.patch<br>
diff --git a/meta/recipes-support/libusb/<u></u>libusb1_1.0.9.bbb/meta/<u></u>recipes-support/libusb/<br>
<a href="http://libusb1_1.0.18.bb" target="_blank">libusb1_1.0.18.bb</a><br>
similarity index 78%<br>
rename from meta/recipes-support/libusb/<a href="http://libusb1_1.0.9.bb" target="_blank">li<u></u>busb1_1.0.9.bb</a><br>
rename to meta/recipes-support/libusb/<a href="http://libusb1_1.0.18.bb" target="_blank">li<u></u>busb1_1.0.18.bb</a><br>
index d57425b..c64f1db 100644<br>
--- a/meta/recipes-support/libusb/<a href="http://libusb1_1.0.9.bb" target="_blank"><u></u>libusb1_1.0.9.bb</a><br>
+++ b/meta/recipes-support/libusb/<a href="http://libusb1_1.0.18.bb" target="_blank"><u></u>libusb1_1.0.18.bb</a><br>
@@ -8,14 +8,11 @@ LIC_FILES_CHKSUM =<br>
&quot;file://COPYING;md5=<u></u>fbc093901857fcd118f065f900982c<u></u>24&quot;<br>
<br>
  BBCLASSEXTEND = &quot;native nativesdk&quot;<br>
<br>
-PR = &quot;r1&quot;<br>
-<br>
  SRC_URI = &quot;${SOURCEFORGE_MIRROR}/libusb/<u></u>libusb-${PV}.tar.bz2 \<br>
-           file://obsolete_automake_<u></u>macros.patch \<br>
            &quot;<br>
<br>
</blockquote>
<br>
That patch is still in git, maybe it should be removed as well ?<br>
<br>
<br>
</blockquote>
Also, I think it needs to be added a PACKAGECONFIG for &quot;udev&quot;, otherwise I<br>
get a build failure when I generate an SDK on my system,<br>
configure script can&#39;t find udev although it was requested.<br>
<br>
</blockquote>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Something like the patch below does the trick for me:<br>
<br>
</blockquote></div></div>
I am supprised you did not see a circular dependency with udev -&gt; libusb -&gt; udev, I think we need to disable-udev as default and if there is a need for a libusb with udev support we will have to create a new recipe possibly to build it after udev is built.<br>

<br></blockquote><div> <br></div><div>With the patch applied, I wiped my sysroots and did a &quot;cleansstate libusb1 udev&quot;, and then rebuilt both successfully with no warning<br>about circular dependency. Maybe I&#39;m not hitting the error since I have &quot;systemd&quot; in DISTRO_FEATURES, so it&#39;s actually systemd that is the udev provider.<br>
<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thoughts here?<br>
<br>
Sau!<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
--- a/meta/recipes-support/libusb/<a href="http://libusb1_1.0.18.bb" target="_blank"><u></u>libusb1_1.0.18.bb</a><br>
+++ b/meta/recipes-support/libusb/<a href="http://libusb1_1.0.18.bb" target="_blank"><u></u>libusb1_1.0.18.bb</a><br>
@@ -8,12 +8,17 @@ LIC_FILES_CHKSUM =<br>
&quot;file://COPYING;md5=<u></u>fbc093901857fcd118f065f900982c<u></u>24&quot;<br>
<br>
  BBCLASSEXTEND = &quot;native nativesdk&quot;<br>
<br>
-SRC_URI = &quot;${SOURCEFORGE_MIRROR}/libusb/<u></u>libusb-${PV}.tar.bz2 \<br>
-          &quot;<br>
+SRC_URI = &quot;${SOURCEFORGE_MIRROR}/libusb/<u></u>libusb-${PV}.tar.bz2&quot;<br>
<br>
  SRC_URI[md5sum] = &quot;<u></u>4a6d049923efc6496f1d383054dac1<u></u>a6&quot;<br>
  SRC_URI[sha256sum] =<br>
&quot;<u></u>c73f5cec45a5de94418da4e151b723<u></u>2958571926984acfb9bce02b9424e8<u></u>3720&quot;<br>
<br>
+PACKAGECONFIG ?= &quot;udev&quot;<br>
+PACKAGECONFIG_class-native = &quot;&quot;<br>
+PACKAGECONFIG_class-nativesdk = &quot;&quot;<br>
+<br>
+PACKAGECONFIG[udev] = &quot;--enable-udev,--disable-udev,<u></u>udev&quot;<br>
+<br>
  S = &quot;${WORKDIR}/libusb-${PV}&quot;<br>
<br>
  inherit autotools pkgconfig<br>
<br>
If this looks good I can submit a proper patch for it.<br>
<br>
/Jacob<br>
<br>
</blockquote>
</div></div></blockquote></div><br></div></div>