<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"><br></div><div dir="ltr"><blockquote type="cite">On Jun 4, 2021, at 11:23 AM, Christopher Jones <jonesc@hep.phy.cam.ac.uk> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 4 Jun 2021, at 6:16 pm, <a href="http://atmail.dreamhost.com" class="">atmail.dreamhost.com</a> <<a href="mailto:lists@schamschula.com" class="">lists@schamschula.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
<title class=""></title>
<div class="">
<div name="messageBodySection" class="">
<div dir="auto" class="">On Jun 4, 2021, 11:55 AM -0500, Christopher Jones <<a href="mailto:jonesc@hep.phy.cam.ac.uk" class="">jonesc@hep.phy.cam.ac.uk</a>>, wrote:</div>
<blockquote style="border-left-color: rgb(26, 188, 156); margin: 5px; padding-left: 10px; border-left-width: thin; border-left-style: solid;" class="">Hi,<br class="">
<br class="">
I want to get a list of all the ports that depend on a given port, boost. I have been using this <br class="">
<br class="">
port echo depends:boost</blockquote>
<div dir="auto" class="">Oh so close:<br class="">
<br class="">
port echo rdepends:boost</div></div></div></div></blockquote><div><br class=""></div><div>no, that has the same issue.</div><div><br class=""></div><div>Chris</div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><div name="messageBodySection" class="">
<blockquote style="border-left-color: rgb(26, 188, 156); margin: 5px; padding-left: 10px; border-left-width: thin; border-left-style: solid;" class="">as per <br class="">
<br class="">
<a href="https://guide.macports.org/chunked/using.common-tasks.html" target="_blank" class="">https://guide.macports.org/chunked/using.common-tasks.html</a><br class="">
to do this, but just noticed it is not just include ports that depend on ‘boost’, but ports that depend on any port which has boost in its name. e.g. it is incorrectly listing py39-scikit-hep-hist which does not depend on boost, but py39-scikit-hep-boost-histogram.<br class="">
<br class="">
The guide seems to infer the above should only give exact matches, so is this a bug in base, or am I mis-understanding ?<br class="">
<br class="">
cheers Chris</blockquote>
</div>
<div name="messageSignatureSection" class=""><br class="">
<div class="matchFont">Marius
<div dir="auto" class="">__</div>
<div dir="auto" class="">Marius Schamschula</div>
</div>
</div>
</div>
</div></blockquote></div><br class=""></div></blockquote><br><div>This exact question came up on IRC a while back. IIRC the query is interpreted as a regular expression. So in order to get matches for only dependents that begin with “boost” you could try</div><div><br></div><div>port echo depends '^boost'</div><div><br></div><div>(I’m not at my computer ATM so I can’t test this to verify.)</div><div><br></div><div>Greg</div></body></html>