<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">Martin,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">Thanks for the pointers.&nbsp; I think I finally have it working correctly. I added RPROVIDES/RCONFLICTS/RREPLACES in my eudev bbappend to state it replaces udev.&nbsp; I also needed
 to set PE = 1 for udev-cache.&nbsp; Since udev-cache didn’t change the package name, I can’t say it RCONFLICTS/RREPLACES itself.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">Bryan<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"><o:p>&nbsp;</o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> Martin Jansa [mailto:martin.jansa@gmail.com]
<br>
<b>Sent:</b> Wednesday, May 17, 2017 12:18 PM<br>
<b>To:</b> Bryan Evenson &lt;bevenson@melinkcorp.com&gt;<br>
<b>Cc:</b> Openembedded-core@lists.openembedded.org<br>
<b>Subject:</b> Re: [OE-core] eudev: opkg not automatically upgrading from udev to eudev<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">Isn't it enough to set RPROVIDES/RCONFLICTS/RREPLACES combo to say that eudev really replaces old udev even when the package version is lower.<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">This used to fix such upgrade-path issues before, but I've stopped testing them long time ago.<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">On Wed, May 17, 2017 at 5:26 PM, Bryan Evenson &lt;<a href="mailto:bevenson@melinkcorp.com" target="_blank">bevenson@melinkcorp.com</a>&gt; wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal">All,<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
&gt; -----Original Message-----<br>
&gt; From: <a href="mailto:openembedded-core-bounces@lists.openembedded.org">openembedded-core-bounces@lists.openembedded.org</a><br>
&gt; [mailto:<a href="mailto:openembedded-core-bounces@lists.openembedded.org">openembedded-core-bounces@lists.openembedded.org</a>] On Behalf<br>
&gt; Of Bryan Evenson<br>
&gt; Sent: Tuesday, May 16, 2017 2:01 PM<br>
&gt; To: <a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.openembedded.org</a><br>
&gt; Subject: [OE-core] eudev: opkg not automatically upgrading from udev to<br>
&gt; eudev<br>
&gt;<br>
&gt;<br>
&gt; I have an image based on core-image-minimal that uses sysvinit for init and<br>
&gt; opkg for package management.&nbsp; I am doing some upgrade testing and I see<br>
&gt; an issue with eudev.&nbsp; I am testing upgrading an image that was built under<br>
&gt; dizzy to my latest image built under morty.&nbsp; I'm first testing that all the correct<br>
&gt; packages and new dependencies are correctly being identified for upgrade<br>
&gt; by running &quot;opkg update; opkg upgrade --download-only&quot; from the<br>
&gt; command line and comparing what is in the opkg cache directory with what<br>
&gt; was available.&nbsp; All packages except eudev and udev-cache are being<br>
&gt; downloaded for upgrade.<br>
&gt;<br>
&gt; I ran the opkg upgrade again with the -V4 option for additional debug output<br>
&gt; Here's what I saw in one section regarding udev:<br>
&gt;<br>
&gt; pkg_hash_fetch_best_installation_candidate: Best installation candidate for<br>
&gt; udev:<br>
&gt; pkg_hash_fetch_best_installation_candidate: apkg=udev nprovides=2.<br>
&gt; pkg_hash_fetch_best_installation_candidate: Adding eudev to providers.<br>
&gt; pkg_hash_fetch_best_installation_candidate: Adding udev to providers.<br>
&gt; pkg_hash_fetch_best_installation_candidate: eudev arch=armv5e<br>
&gt; arch_priority=41 version=3.2.<br>
&gt; pkg_hash_fetch_best_installation_candidate: udev arch=arm926ejste<br>
&gt; arch_priority=51 version=182.<br>
&gt; pkg_hash_fetch_best_installation_candidate: Candidate: udev 182.<br>
&gt; pkg_hash_fetch_best_installation_candidate: 2 matching pkgs for<br>
&gt; apkg=udev:<br>
&gt; pkg_hash_fetch_best_installation_candidate: eudev 3.2 armv5e<br>
&gt; pkg_hash_fetch_best_installation_candidate: udev 182 arm926ejste<br>
&gt; opkg_upgrade_pkg: Comparing visible versions of pkg udev:<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;182-r9.9 is installed<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;182-r9.9 is available<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 was comparison result<br>
&gt; opkg_upgrade_pkg: Package udev (182-r9.9) installed in root is up to date.<br>
&gt;<br>
&gt; I'm assuming the problem is that udev is version 182 and eudev is version 3.2<br>
&gt; and that opkg doesn't think udev needs to be upgraded.&nbsp; Is there an<br>
&gt; RDEPENDS that needs to be added somewhere so opkg sees that it needs to<br>
&gt; upgrade udev to eudev?<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal">I made some changes and now both eudev and udev-cache are being pulled in on upgrade.&nbsp; However, I'd like a second opinion that what I did was reasonable.<br>
<br>
First, I created eudev_%.bbappend in my private layer and added &quot;PE = &quot;1&quot;&quot; to the bbappend.&nbsp; Since the numbering scheme changed between udev and eudev, I figured this was a reasonable move.&nbsp; This brought the update udev-cache in for upgrade, but not eudev.&nbsp;
 In my private layer, I also have an image version number package.&nbsp; I added eudev to the RDEPENDS list for this package since my image, which now has linux version 4.4, does depend on eudev.<br>
<br>
Does this sound reasonable?&nbsp; Is there a better way to do the same thing?<br>
<br>
Thanks,<br>
Bryan<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><br>
&gt;<br>
&gt; Thanks,<br>
&gt; Bryan<br>
&gt; --<br>
&gt; _______________________________________________<br>
&gt; Openembedded-core mailing list<br>
&gt; <a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.openembedded.org</a><br>
&gt; <a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" target="_blank">
http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><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><o:p></o:p></p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
</div>
</body>
</html>