From nobody Thu Dec 29 21:17:03 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 4Njh6q3nMWz1HwxZ for ; Thu, 29 Dec 2022 21:17:23 +0000 (UTC) (envelope-from tatsuki_makino@hotmail.com) Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01olkn2032.outbound.protection.outlook.com [40.92.107.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Njh6p6sdGz3nZg; Thu, 29 Dec 2022 21:17:22 +0000 (UTC) (envelope-from tatsuki_makino@hotmail.com) Authentication-Results: mx1.freebsd.org; none ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bP+JLNQc+/8bdzX/yaQ1W6TTgwjC5GwgIGplGjSdAkZNsvVAekKBHpSmMauX04iGn+F/ozXwrNgY+X06Ot7KymifjKxJBfQUeFET7MhUSaGAXw2zXaR+OhZqODQXHvlMgrGY2z2YcFq2m+IIofRbMvqDIorzY9KFpKqjDiCvMvHGOiNhdoEScXOq1IgygHokf897yiDmKVOY4EOx0aFpeWVZLQ5qjvIZw0tr3BhqAupRJhedEhNuwU9rzO8iIyb+FEXWpHsvw+/faYfbGSwDiIVHPMSDdkza+6s7U7Bd39y+9vyiWioTG9ieIpzxrN7+ksk935+cUujQqs3eY/6pfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=63hFKWtDs+SaMvwJB4k8m9w/kpdzj5DM6lybiZkeVSM=; b=P/g0vfulbtmlz7myC4PHZOriLHK6YYep6grBMRFTsxlGJcgZwIWQRJow0BpxiSrLcUjgePHCUQRcnP6HtszhpSmORR+PqSDnwIAs/mCSCLN4iqUW1LMDXo4mnQZKbOhFBwjDSW75E7UW1ec18JbGk3Ac3cSL5pLZ9izM0IQbIMqmZlqWuTtbnAGg0MsebiChTAh83O7Mt8BT6mIIc2ar81iivVc8SfCRVNYlPlQ8hd5OUnsEyxKDUU3Uk2n+a7x7AyG0fyQFwzqwxKF9R4t9hpl57CQ62JZRqytuLNwxvuX0+XL2RhtyDeovcz9JOrZ6JPZJDokk7mXeoF9DxcF5Kg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=63hFKWtDs+SaMvwJB4k8m9w/kpdzj5DM6lybiZkeVSM=; b=pomMkJmbko7fM/hQdtp5k9gHSxURfvIGil/Ai5mpWbLoYmd32NTunTYUeBd7pSFtEHSlhFVNrafYZQZUrkjI81EEYm5QOfSTXHNBqq1p/crV/cAyCTEcitig8GDKkDI0W8L8sulm+QeLDwobOupAApBLpyqd6I81iCuJgECuQI7Ju1FZB9xeEP2eFpg40325kIeNRgozgYHeu5U0epj+aRyKaKhDh6uUHfRgWlpOVBf/uq6ynR77XGzQoMLxKCSvA3fL+eFa/Ju4Ox2wKD+0B/CqDlM/q/D7n8PTM3Nx3z0jweRglqh9KBIZMbIS1DJNVRBo7+InZru587XMKTh4Jg== Received: from PSAPR03MB5639.apcprd03.prod.outlook.com (2603:1096:301:66::13) by KL1PR0302MB5314.apcprd03.prod.outlook.com (2603:1096:820:36::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.16; Thu, 29 Dec 2022 21:17:18 +0000 Received: from PSAPR03MB5639.apcprd03.prod.outlook.com ([fe80::b8b1:ec60:3d5d:ce02]) by PSAPR03MB5639.apcprd03.prod.outlook.com ([fe80::b8b1:ec60:3d5d:ce02%4]) with mapi id 15.20.5944.016; Thu, 29 Dec 2022 21:17:18 +0000 Subject: Re: Would like to use ARCH (uname -p) but it's not always correct (e.g. arm64) To: Nuno Teixeira , FreeBSD Mailing List References: From: Tatsuki Makino Message-ID: Date: Fri, 30 Dec 2022 06:17:03 +0900 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.4 In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-TMN: [kmh7wrNi7glqQ6niFZM3M6+/vmy0ab6V] X-ClientProxiedBy: TY2PR02CA0064.apcprd02.prod.outlook.com (2603:1096:404:e2::28) To PSAPR03MB5639.apcprd03.prod.outlook.com (2603:1096:301:66::13) X-Microsoft-Original-Message-ID: <6ee83e01-9d25-23d8-1f87-74afb622b497@hotmail.com> 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 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PSAPR03MB5639:EE_|KL1PR0302MB5314:EE_ X-MS-Office365-Filtering-Correlation-Id: 31af25df-7aed-4fc0-cada-08dae9e210e4 X-MS-Exchange-SLBlob-MailProps: C/ir7cSdGluIPeAomc2qDM108vgWjRfqt5ITPkL88+CEk4EphNH0cV3yG7B72sHZin+kmdjIJ4VVaWlRCSsbwEHV1gJQdKTJ48HfBf56+BTObVXPVrHcowri3nwDgxqO0ykwKhbxAId7jw1hQV1iQgIIvbalhDN/m8uhBNPgWO/OgfXm36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gvbnRDNjJTVmRETE1CWUhrTnpnc0NxNnBvcUdsSy9raVN0?= =?utf-8?B?bnhONWFzOTBCTzlHWWVDV2pjSmJrbnU1UVZ3aWxSYUUwcU9DMHJoQWJHRGdl?= =?utf-8?B?WEthdUNFTXFyQy92b1M2VjdTMzJOcnpCRDQ0dVBQRlpLRWdCVmNFVFFTMnVR?= =?utf-8?B?aUliYWtsdTFScHRDRVZ0SkVLMEM2RWRhYi9OU3U4ZzArYmdZTnh3KzNldXpH?= =?utf-8?Q?wBfHtrr6NOE6E/gfIM=3D?= X-OriginatorOrg: sct-15-20-4734-24-msonline-outlook-c0b75.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 31af25df-7aed-4fc0-cada-08dae9e210e4 X-MS-Exchange-CrossTenant-AuthSource: PSAPR03MB5639.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Dec 2022 21:17:18.6032 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0302MB5314 X-Rspamd-Queue-Id: 4Njh6p6sdGz3nZg X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:8075, ipnet:40.80.0.0/12, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N 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.