<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:"Calibri",sans-serif">Martin,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Thanks for the pointers. I think I finally have it working correctly. I added RPROVIDES/RCONFLICTS/RREPLACES in my eudev bbappend to state it replaces udev. I also needed
to set PE = 1 for udev-cache. 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:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Bryan<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </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:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",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 <bevenson@melinkcorp.com><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> </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> </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> </o:p></p>
<div>
<p class="MsoNormal">On Wed, May 17, 2017 at 5:26 PM, Bryan Evenson <<a href="mailto:bevenson@melinkcorp.com" target="_blank">bevenson@melinkcorp.com</a>> 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>
> -----Original Message-----<br>
> From: <a href="mailto:openembedded-core-bounces@lists.openembedded.org">openembedded-core-bounces@lists.openembedded.org</a><br>
> [mailto:<a href="mailto:openembedded-core-bounces@lists.openembedded.org">openembedded-core-bounces@lists.openembedded.org</a>] On Behalf<br>
> Of Bryan Evenson<br>
> Sent: Tuesday, May 16, 2017 2:01 PM<br>
> To: <a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.openembedded.org</a><br>
> Subject: [OE-core] eudev: opkg not automatically upgrading from udev to<br>
> eudev<br>
><br>
><br>
> I have an image based on core-image-minimal that uses sysvinit for init and<br>
> opkg for package management. I am doing some upgrade testing and I see<br>
> an issue with eudev. I am testing upgrading an image that was built under<br>
> dizzy to my latest image built under morty. I'm first testing that all the correct<br>
> packages and new dependencies are correctly being identified for upgrade<br>
> by running "opkg update; opkg upgrade --download-only" from the<br>
> command line and comparing what is in the opkg cache directory with what<br>
> was available. All packages except eudev and udev-cache are being<br>
> downloaded for upgrade.<br>
><br>
> I ran the opkg upgrade again with the -V4 option for additional debug output<br>
> Here's what I saw in one section regarding udev:<br>
><br>
> pkg_hash_fetch_best_installation_candidate: Best installation candidate for<br>
> udev:<br>
> pkg_hash_fetch_best_installation_candidate: apkg=udev nprovides=2.<br>
> pkg_hash_fetch_best_installation_candidate: Adding eudev to providers.<br>
> pkg_hash_fetch_best_installation_candidate: Adding udev to providers.<br>
> pkg_hash_fetch_best_installation_candidate: eudev arch=armv5e<br>
> arch_priority=41 version=3.2.<br>
> pkg_hash_fetch_best_installation_candidate: udev arch=arm926ejste<br>
> arch_priority=51 version=182.<br>
> pkg_hash_fetch_best_installation_candidate: Candidate: udev 182.<br>
> pkg_hash_fetch_best_installation_candidate: 2 matching pkgs for<br>
> apkg=udev:<br>
> pkg_hash_fetch_best_installation_candidate: eudev 3.2 armv5e<br>
> pkg_hash_fetch_best_installation_candidate: udev 182 arm926ejste<br>
> opkg_upgrade_pkg: Comparing visible versions of pkg udev:<br>
> 182-r9.9 is installed<br>
> 182-r9.9 is available<br>
> 0 was comparison result<br>
> opkg_upgrade_pkg: Package udev (182-r9.9) installed in root is up to date.<br>
><br>
> I'm assuming the problem is that udev is version 182 and eudev is version 3.2<br>
> and that opkg doesn't think udev needs to be upgraded. Is there an<br>
> RDEPENDS that needs to be added somewhere so opkg sees that it needs to<br>
> 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. 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 "PE = "1"" to the bbappend. Since the numbering scheme changed between udev and eudev, I figured this was a reasonable move. This brought the update udev-cache in for upgrade, but not eudev.
In my private layer, I also have an image version number package. 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? 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>
><br>
> Thanks,<br>
> Bryan<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>
--<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> </o:p></p>
</div>
</div>
</div>
</body>
</html>