<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - meson incorrectly handles/reports libdrm_$foo"
href="https://bugs.freedesktop.org/show_bug.cgi?id=109062#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - meson incorrectly handles/reports libdrm_$foo"
href="https://bugs.freedesktop.org/show_bug.cgi?id=109062">bug 109062</a>
from <span class="vcard"><a class="email" href="mailto:emil.l.velikov@gmail.com" title="Emil Velikov <emil.l.velikov@gmail.com>"> <span class="fn">Emil Velikov</span></a>
</span></b>
<pre>How about something like the following pseudo code.
AFAICT it should produce the correct output.
req_libdrm=...
req_libdrm_foo=...
req_libdrm_bar=...
foreach driver : gallium-drivers // or drivers in general
// if meson cannot handle two deps/packages at the same time,
// invoke dependency() twice and then fold into one variable
dep_libdrm_$driver = dependency(libdrm >= req_libdrm_$driver,
libdrm_$driver >= req_libdrm_$driver)
// other generic parts/checks for libdrm
dep_libdrm = dependency(libdrm >= req_libdrm)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>