<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">thanks for the clue, indeed that was on track.<div class=""><br class=""></div><div class="">this worked, in the end, once I finally remembered I had to use the “-E” enhancement to reinplace to make it obey the regex — that took an extra hour :></div><div class=""><br class=""></div><div class=""><div class="">reinplace -E -q {s| --host=[^ ]+||g} ${dir}/bin/jemalloc-config</div><div class="">reinplace -E -q {s| host_alias=[^ ]+||g} ${dir}/bin/jemalloc-config</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">trying to build without the “host” parts in the first place let to the configure script erroring out as it was unable to run the test executables built as arm64 on Intel.</div><div class=""><br class=""></div><div class="">fixed!</div><div class=""><br class=""></div><div class="">K</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class="">On Jun 19, 2022, at 2:47 PM, Eric Borisch <<a href="mailto:eborisch@macports.org" class="">eborisch@macports.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="auto" class="">I would think: </div><div dir="auto" class=""> s/--host(_alias)?=[^ ]*//a</div><div class=""><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jun 19, 2022 at 3:34 PM Ken Cunningham <<a href="mailto:ken.cunningham.webuse@gmail.com" class="">ken.cunningham.webuse@gmail.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space" class="">to fix the universal build of some ports, eg jemalloc, I would like to strip out the host bits from these text strings, eg convert this:<div class=""><br class=""></div><div class=""><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">echo "--prefix=/opt/local --with-jemalloc-prefix= --host=aarch64-apple-darwin21.5.0 host_alias=aarch64-apple-darwin21.5.0 CC=/usr/bin/clang”</span></div></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""><br class=""></span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">to this:</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""><br class=""></span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">echo "--prefix=/opt/local --with-jemalloc-prefix= CC=/usr/bin/clang”</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""><br class=""></span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""><span style="font-family:Helvetica;font-size:12px" class="">however, my regex-fu is not strong.</span></span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""><span style="font-family:Helvetica;font-size:12px" class=""><br class=""></span></span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""><span style="font-family:Helvetica;font-size:12px" class="">Anyone know the secret reinplace regex that might do that?</span></span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""><span style="font-family:Helvetica;font-size:12px" class=""><br class=""></span></span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""><span style="font-family:Helvetica;font-size:12px" class="">thx </span></span></div></div></blockquote></div></div>
</div></blockquote></div><br class=""></div></body></html>