From nobody Fri Dec 30 08:22:39 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 4Njytg6mZ4z2cJtW for ; Fri, 30 Dec 2022 08:22:51 +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 4Njytg6Dbcz3kxQ for ; Fri, 30 Dec 2022 08:22:51 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672388571; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=SXDoMrh1uKOTh5jgE1osZ7dfcMPI1QWf/S0fi51sM9Y=; b=wX4ckHhoRQb7HHlqtXKe2Z1Ga/4f1D0R6oqSoN6YyI2oUChNXmMEYfLBXhQU7Z5C/Oh6s7 fBrCM+39gp0xQuiWFUsXbpAIeWj41+LTYRcghUu2GKG7sOvlQuVc1c2OuVLks/enwm1LM2 8C5zW7XDSeMLMs9K40CU5IwXC1y1UxN7XplyB216KApkIsbakQ4IOirqjJVBW0IxdRd/VE /VBm1+k/BWx5NsMalxQRHDTWRkX72XwMZtn2poAfGB9F9GADptjqmWIqGbQaP6/SbNz1jO UX8vXmsrZxYIGS5I39fDJpMtuDC3OYjg6JVjO6FPPMMYiJvQkkKrB9im8aBgfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672388571; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=SXDoMrh1uKOTh5jgE1osZ7dfcMPI1QWf/S0fi51sM9Y=; b=iR0K/0/mDqiGnM162fd5mTHCKt1lS77q3Nb1bpiCII2fex9DoiJVOlb8Ifwg9GzLTD6+rz 3pgYDzVimROWMXeLV/cwFceRVXAyUoFTI0NF8F5k9c9BcgpzpLBO/olcvrrYssFr7QOSQU 3GLvNbvcDIBCyKBspWgyTCBWauZ+FVYAHXPdp3laBll1Li9vTDCP9l0uuaCh/b3WIHrYo6 hFXHI1FGPU9QEJ/uZ/ubVwAwRDjDQKpCh/PYM3w94pRMBYtQbT8c/2MNhYpdo20iOXGZsM bZOzX7a7vTJ5lpzdDZKZUv5GOvdPVmjunYpHoZPcG9ZrLBaBOlbw13VbbJfuiA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1672388571; a=rsa-sha256; cv=none; b=qEAMpmwzJar9h2chgYBqVsf2Y0LrWs94AFuRnFUzlkBmSIIwsfNmItqbDEHNeo9qRZv4VI 2Wnu/7VAbvUgj9zwrv3ljC9XOdrq2qoQ8uxNfirUWk7zvYEnXrtuNTjYhlTNCxfQN/iu7t PAwj/6Z4k/HaSQLppIcx+j81p2YQi3+eXTwLgqaecfTClwhTbQXKH4gPTQ4tRldVHMUHJ7 MZ98DxQHR8B/Q42FA5hVX/uEd6YqfdHUqXJDFWT+ql+tlSERpUsLwRkQDjNqzlUOKqrJCI qXeEmW5Dthiw+HN7NVFCFcPrF6giU1DkcCqhuDFZuLL0bep0GNDIvdC1CQ8AwQ== Received: from mail-vs1-f46.google.com (mail-vs1-f46.google.com [209.85.217.46]) (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 4Njytg5Hxnz1Cn3 for ; Fri, 30 Dec 2022 08:22:51 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-vs1-f46.google.com with SMTP id p30so15025257vsr.1 for ; Fri, 30 Dec 2022 00:22:51 -0800 (PST) X-Gm-Message-State: AFqh2krXNSFHJxQXQ6YejcAPgclyRPXGtFEN4IHvcUAhbmeuZlZrTk7e Kj95wH7cEofQC978zEhuc2qo5k2nLYSoDGt3ITM= X-Google-Smtp-Source: AMrXdXvsYqKXyG4NVitpMI5s9Jiu83LjscntuHejIrVaLK0IbcozygALL2q06r36mzKnauCguP011q0OeqU7hZ3EKGY= X-Received: by 2002:a67:5e87:0:b0:3b2:e469:d125 with SMTP id s129-20020a675e87000000b003b2e469d125mr3513777vsb.11.1672388570947; Fri, 30 Dec 2022 00:22:50 -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 References: In-Reply-To: From: Nuno Teixeira Date: Fri, 30 Dec 2022 08:22:39 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Would like to use ARCH (uname -p) but it's not always correct (e.g. arm64) To: Tatsuki Makino Cc: FreeBSD Mailing List Content-Type: multipart/alternative; boundary="000000000000b2a8a005f1074e22" X-ThisMailContainsUnwantedMimeParts: N --000000000000b2a8a005f1074e22 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Tatsuki! I't seems that you dig it into source configs, I will take a look into this too. I was talking using ARCH (and OSREL, OSVERSION, etc) in a more generic way and only related to ports framework to easier some tasks like dinamic plist for some files that change with this vars: --- PLIST_SUB=3D ARCH=3D${ARCH} plist: libexec/NsCDE/FreeBSD_%%ARCH%%/colorpicker --- --- PLIST_SUB+=3D SHLIB_SHVER=3D"${DISTVERSION:R}" \ SHLIB_VER=3D"${DISTVERSION}" plist: lib/root/libRHTTPSniff.so.%%SHLIB_SHVER%% lib/root/libRHTTPSniff.so.%%SHLIB_VER%% --- So my question is why people often choose a hack to `uname -m` instead of using ARCH (uname -p). Thanks Tatsuki Makino escreveu no dia quinta, 29/12/2022 =C3=A0(s) 21:41: > Tatsuki Makino wrote on 2022/12/30 06:17: > > For x11-wm/nscde, this is present in ${WRCSRC}/configure.ac. > > > > OS_PLUS_MACHINE_ARCH=3D`uname -sm | tr ' ' '_'` > > AC_SUBST(OS_PLUS_MACHINE_ARCH) > > > > Then, in the case of security/zeek, it seems that uname -m is used in > zeek-5.0.4/cmake/GetArchitecture.cmake of distfile. > That's also where FreeBSD gets lowercased. > > Regards. > > --=20 Nuno Teixeira FreeBSD Committer (ports) --000000000000b2a8a005f1074e22 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello Tatsuki!

I't seems= that you dig it into source configs, I will take a look into this too.

I was talking using ARCH (and OSREL, OSVERSION, etc) = in a more generic way and only related to ports framework to easier some ta= sks like dinamic plist for some files that change with this vars:

---
PLIST_SUB=3D ARCH=3D${ARCH}
plist:
libexec/NsCDE/FreeBSD_%%ARCH%%/colorpicker
= ---
---
PLIST_SUB+=3D SHLIB_SHVER=3D"${DISTVERSION:R}" \<= br>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 SHLIB_VE= R=3D"${DISTVERSION}"
plist:
lib/root/libR= HTTPSniff.so.%%SHLIB_SHVER%%
lib/root/libRHTTPSniff.so.%%SHLIB_VER%%
---

So my question is why people often choo= se a hack to `uname -m` instead of using ARCH (uname -p).

Thanks

Tatsuki Makino <tatsuki_makino@hotmail.com> escreveu no dia quinta, 29= /12/2022 =C3=A0(s) 21:41:
Tatsuki Makino wrote on 2022/12/30 06:17:
> For x11-wm/nscde, this is present in ${WRCSRC}/configure.ac.
>
> OS_PLUS_MACHINE_ARCH=3D`uname -sm | tr ' ' '_'`
> AC_SUBST(OS_PLUS_MACHINE_ARCH)
>

Then, in the case of security/zeek, it seems that uname -m is used in zeek-= 5.0.4/cmake/GetArchitecture.cmake of distfile.
That's also where FreeBSD gets lowercased.

Regards.



--
Nun= o Teixeira
FreeBSD Committer (ports)
--000000000000b2a8a005f1074e22--