Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Dec 2022 06:17:03 +0900
From:      Tatsuki Makino <tatsuki_makino@hotmail.com>
To:        Nuno Teixeira <eduardo@freebsd.org>, FreeBSD Mailing List <freebsd-ports@freebsd.org>
Subject:   Re: Would like to use ARCH (uname -p) but it's not always correct (e.g. arm64)
Message-ID:  <PSAPR03MB56392BB6047FF29F806F703FFAF39@PSAPR03MB5639.apcprd03.prod.outlook.com>
In-Reply-To: <CAFDf7U%2Br8hUbXASD81qJndsR=tU7kmqCPUATLgb5_PM=WRT%2B5g@mail.gmail.com>
References:  <CAFDf7U%2Br8hUbXASD81qJndsR=tU7kmqCPUATLgb5_PM=WRT%2B5g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello.

Nuno Teixeira wrote on 2022/12/30 02:41:
> 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.

For x11-wm/nscde, this is present in ${WRCSRC}/configure.ac.

OS_PLUS_MACHINE_ARCH=`uname -sm | tr ' ' '_'`
AC_SUBST(OS_PLUS_MACHINE_ARCH)

Is it correct to say that ARCH is not different, but cannot be shared?

Regards.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?PSAPR03MB56392BB6047FF29F806F703FFAF39>