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:
echo "--prefix=/opt/local --with-jemalloc-prefix=
--host=aarch64-apple-darwin21.5.0 host_alias=aarch64-apple-darwin21.5.0
CC=/usr/bin/clangβ
to this:
echo "
As usual you are asking how to implement your wrong
answer to the right question; ask and you shall receive,
but not what you want, what you need. Also give more
context, context is for kings, live long and prosper... π§βπ»
On Sun, Jun 19, 2022, 22:34 Ken Cunningham
wrote:
> to fix the universal b
On Sun, 19 Jun 2022, Ken Cunningham wrote:
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:
echo "--prefix=/opt/local --with-jemalloc-prefix=
--host=aarch64-apple-darwin21.5.0 host_alias=aarch64-apple-dar
I would think:
s/--host(_alias)?=[^ ]*//a
On Sun, Jun 19, 2022 at 3:34 PM Ken Cunningham <
ken.cunningham.web...@gmail.com> wrote:
> 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:
>
> echo "--prefix=/opt
On 2022-6-20 06:34 , Ken Cunningham wrote:
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:
echo "--prefix=/opt/local --with-jemalloc-prefix=
--host=aarch64-apple-darwin21.5.0 host_alias=aarch64-apple-darwi
> On Jun 19, 2022, at 3:24 PM, Joshua Root wrote:
>
> On 2022-6-20 06:34 , Ken Cunningham wrote:
>> 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:
>> echo "--prefix=/opt/local --with-jemalloc-prefix=
Q. E. D.
On Mon, Jun 20, 2022, 01:05 Ken Cunningham
wrote:
>
>
> > On Jun 19, 2022, at 3:24 PM, Joshua Root wrote:
> >
> > On 2022-6-20 06:34 , Ken Cunningham wrote:
> >> to fix the universal build of some ports, eg jemalloc, I would like to
> strip out the host bits from these text strings, eg
thanks for the clue, indeed that was on track.
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 :>
reinplace -E -q {s| --host=[^ ]+||g} ${dir}/bin/jemalloc-config
reinplace -E -q {s| ho
thanks Fred, saw your answer afterwards, much appreciated.
Ken