From nobody Thu Dec 29 17:41:51 2022 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NjbLN2tTyz2km03 for ; Thu, 29 Dec 2022 17:42:04 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NjbLN2KKjz3Cn1 for ; Thu, 29 Dec 2022 17:42:04 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672335724; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=HpGUHxa8BpPyVz7CB6qvz+o6luQ4o/X48UdevjkLCps=; b=sSC6DELhY6mHtttmggZYAmCSQJsRfKNNJYMB2qCzB52k6nu+P7lSKxKvDt8ITp/s/VKHD+ qMf/qg8INsg7aipP6O+7VXuyxWVm9g1YHS9/2WcU5sJn8uSYTsjDdnW51sxpGr6VoeEToS pPA1TDvVhn8KKiwO6pZdp7u+zbXM51Wp9+4XQsxUfUrDfAl2BdRbuP3n+ob6+ecOXEhqaY 7+9hjkOqBZJ/KBmJhWDNq+TALpijhaYaCXrMRYJRzhNMLQw2oBvGCRBBcnTeLaoiGI5leN cyxrn3FcB1T9VYgHn1LEwRD1+3kWHLE31wktep9EL5PlKe9G537/Wcr5bJu4jA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672335724; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=HpGUHxa8BpPyVz7CB6qvz+o6luQ4o/X48UdevjkLCps=; b=qt3HsKR5GYfWVHGrPh9+OFpUEWsZu3f+GwhE8Be60z4wKZNGlChqhU5juQmVvIKQqRx+6w f31+Tv1ZAC8Ll03Raj61/KTRECPmHOyWN1y9oAzS3U0cSXG2bHgHc+GrR3MBhnV0AASXB4 0GAVEqqc2ey8bVZLBX1N8d1deHL3wcRHAUUEH7ah0ZSRMeLDTTMvA5QddHgzqvwqXEDmI/ P6yHTDpt7omiSFkEAwn2OAW4K8gOG9KIeP9SXb0Rq8gfEQ91WkvgOT8V8MN+wzsLnryOlm lrLSy/1iSrdy9IV35U+UtmikIUkscPg+jBtddHk+SoQtp/WQQDSP/bTYkmGchw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1672335724; a=rsa-sha256; cv=none; b=LLiw+ZX2NoB9yQtyuMYJbJrPHrdUKZB6ZN8A0E9Yh+vz+HWtTLK0WWFxFlzyJ2QPbSP9Si snWYKK4Li6kIeWlalvlnP5Ned72l30jQfB5LiqjLLhxKjNdNp1GNMngzI6oIqelwH4ofup lG/u3eD+A9vvOhzd0lo91adjznMMTmTybeWzuFBCRyuVUU0GpRs1H/8nrJRXLwpHbEtGSM t30KjbJXHTWLLTg8Grx/CbBLPBdqt4GwHtKvgNB19bdbtB0+8G2uP5dBpHzDg8i1TLmfnc rhj0S3/ZqiRXLYIic06vVkDJ8Ij4Ay1kCASAX36gLiS09F0RVytXbZljnII2YA== Received: from mail-vs1-f48.google.com (mail-vs1-f48.google.com [209.85.217.48]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: eduardo) by smtp.freebsd.org (Postfix) with ESMTPSA id 4NjbLN1N0LzxnB for ; Thu, 29 Dec 2022 17:42:04 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-vs1-f48.google.com with SMTP id k4so15038865vsc.4 for ; Thu, 29 Dec 2022 09:42:04 -0800 (PST) X-Gm-Message-State: AFqh2koHSnpEV6h/DU18qmgw4R4CTNcYYTAeXFOAB0kDU5aDUDSlsv7e oGTn7fkP9pRo82ctuGuBeGXD1q1xYYocNix0Hd0= X-Google-Smtp-Source: AMrXdXtjowUJyHeAs0CYEQC+vW90oQn+RD1Y7hIadeyHXPZ/xP1tkOdafHZbwX/Ej4Ig4iX2y07KtMpH8kWtRVBzLZY= X-Received: by 2002:a67:f450:0:b0:3b5:23b1:e56 with SMTP id r16-20020a67f450000000b003b523b10e56mr3885992vsn.51.1672335722794; Thu, 29 Dec 2022 09:42:02 -0800 (PST) List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 From: Nuno Teixeira Date: Thu, 29 Dec 2022 17:41:51 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Would like to use ARCH (uname -p) but it's not always correct (e.g. arm64) To: FreeBSD Mailing List Content-Type: multipart/alternative; boundary="000000000000b3d37305f0fb00f6" X-ThisMailContainsUnwantedMimeParts: N --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
Hello all,

I'm looking f= or the best way to use `uname -m` on plist_sub:
---
UNA= ME_M_CMD=3D =C2=A0 =C2=A0${UNAME} -m
PLIST_SUB+=3D =C2=A0 =C2=A0 ARCH=3D= "$$(${UNAME_M_CMD})"
---
but I'm not sure= sure about -m and -p differences and effects on arm64/aarch64.
<= br>
It would be nicer to use:
---
PLIST_SUB+= =3D ARCH=3D${ARCH}
---
but it uses `uname -p`

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

= Thanks,

--
Nuno Teixeira
FreeBSD Committer (ports)
<= /div>
--000000000000b3d37305f0fb00f6--