Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Dec 2022 17:41:51 +0000
From:      Nuno Teixeira <eduardo@freebsd.org>
To:        FreeBSD Mailing List <freebsd-ports@freebsd.org>
Subject:   Would like to use ARCH (uname -p) but it's not always correct (e.g. arm64)
Message-ID:  <CAFDf7U%2Br8hUbXASD81qJndsR=tU7kmqCPUATLgb5_PM=WRT%2B5g@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
--000000000000b3d37305f0fb00f6
Content-Type: text/plain; charset="UTF-8"

Hello all,

I'm looking for the best way to use `uname -m` on plist_sub:
---
UNAME_M_CMD=    ${UNAME} -m
PLIST_SUB+=     ARCH="$$(${UNAME_M_CMD})"
---
but I'm not sure sure about -m and -p differences and effects on
arm64/aarch64.

It would be nicer to use:
---
PLIST_SUB+= ARCH=${ARCH}
---
but it uses `uname -p`

Is this still an issue?
I saw this example on security/zeek and I need this for x11-wm/nscde.

Thanks,

-- 
Nuno Teixeira
FreeBSD Committer (ports)

--000000000000b3d37305f0fb00f6
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hello all,</div><div><br></div><div>I&#39;m looking f=
or the best way to use `uname -m` on plist_sub:</div><div>---</div><div>UNA=
ME_M_CMD=3D =C2=A0 =C2=A0${UNAME} -m<br>PLIST_SUB+=3D =C2=A0 =C2=A0 ARCH=3D=
&quot;$$(${UNAME_M_CMD})&quot;</div><div>---</div><div>but I&#39;m not sure=
 sure about -m and -p differences and effects on arm64/aarch64.</div><div><=
br></div><div>It would be nicer to use:</div><div>---</div><div>PLIST_SUB+=
=3D ARCH=3D${ARCH}<br></div><div>---</div><div>but it uses `uname -p`<br></=
div><div><br></div><div>Is this still an issue?<br></div><div>I saw this ex=
ample on security/zeek and I need this for x11-wm/nscde.<br><br></div><div>=
Thanks,</div><div><br></div>-- <br><div dir=3D"ltr" class=3D"gmail_signatur=
e" data-smartmail=3D"gmail_signature"><div dir=3D"ltr"><span style=3D"color=
:rgb(102,102,102)">Nuno Teixeira<br>FreeBSD Committer (ports)</span></div><=
/div></div>

--000000000000b3d37305f0fb00f6--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7U%2Br8hUbXASD81qJndsR=tU7kmqCPUATLgb5_PM=WRT%2B5g>