<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">watchdog_5.14.bb does not inherit systemd, and so INHIBIT_UPDATERCD_BBCLASS does<br>
not get set.<br>
<br>
While trying to build watchdog with systemd in DISTRO_FEATURES but not sysvinit,<br>
following warning is observed:<br>
WARNING: QA Issue: watchdog rdepends on initscripts-functions, but it isn't<br>
a build dependency? [build-deps]<br>
<br>
Since sysvinit is not in DISTRO_FEATURES and INHIBIT_UPDATERCD_BBCLASS is not<br>
set, the logic in update-rc.d.bbclass goes on to add an rdep for watchdog on<br>
initscripts-functions, inside update_rcd_package(). And this results in the<br>
QA warning.<br>
<br>
The patch sets INHIBIT_UPDATERCD_BBCLASS in the recipe to force<br>
populate_packages_updatercd() not to proceed with update_rcd_package().<br>
<br>
Kindly suggest if there is a better way to tackle this issue.<br>
<br>
Abdur Rehman<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF632912"><font face="Tahoma" color="#000000" size="2"><b>From:</b> Burton, Ross [ross.burton@intel.com]<br>
<b>Sent:</b> Wednesday, July 29, 2015 1:46 AM<br>
<b>To:</b> Rehman, Abdur<br>
<b>Cc:</b> OE-core; Larson, Chris<br>
<b>Subject:</b> Re: [OE-core] [PATCH] watchdog: kill update-rc.d when not using sysvinit<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">
<div class="gmail_extra"><br>
<div class="gmail_quote">On 28 July 2015 at 18:11, Abdur Rehman <span dir="ltr"><<a href="mailto:abdur_rehman@mentor.com" target="_blank">abdur_rehman@mentor.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div id=":l5" class="a3s" style="overflow:hidden">+python () {<br>
+ if not bb.utils.contains('DISTRO_FEATURES', 'sysvinit', True, False, d):<br>
+ d.setVar("INHIBIT_UPDATERCD_BBCLASS", "1")<br>
+}</div>
</blockquote>
</div>
<br>
Isn't this what the update-rcd logic does already:</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">
<div class="gmail_extra"> # Check that this class isn't being inhibited (generally, by</div>
<div class="gmail_extra"> # systemd.bbclass) before doing any work.</div>
<div class="gmail_extra"> if bb.utils.contains('DISTRO_FEATURES', 'sysvinit', True, False, d) or \</div>
<div class="gmail_extra"> not d.getVar("INHIBIT_UPDATERCD_BBCLASS", True):</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">Ross</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>