From nobody Thu Sep 14 00:17:04 2023 X-Original-To: freebsd-doc@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 4RmHvN40SKz4tcsv for ; Thu, 14 Sep 2023 00:17:20 +0000 (UTC) (envelope-from mirror176@hotmail.com) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11olkn2034.outbound.protection.outlook.com [40.92.18.34]) (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 4RmHvM1D46z4fVT for ; Thu, 14 Sep 2023 00:17:19 +0000 (UTC) (envelope-from mirror176@hotmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hotmail.com header.s=selector1 header.b=HVdzUbCq; spf=pass (mx1.freebsd.org: domain of mirror176@hotmail.com designates 40.92.18.34 as permitted sender) smtp.mailfrom=mirror176@hotmail.com; dmarc=pass (policy=none) header.from=hotmail.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dzUi96b4EZoagsC+oMT4k2ZNFLqtm8k438pbUJBtL8gF3BuLHn3A54oZNqWxHecbTVQ0OeDepSBBIiZQ36godg5c9coktQ4+hwPmrD6sVBjj9aYaaO08JLjKlTH6kAX63G+LeCHuZdd6l7RG4ZOPBV1EWIPga5Meu45hcNfo3GasBKTVyZLMjov+AJO3F3iLGbpoRU5EARcrBtPYNCHrEn/y+3KTIatnxvwTZ1rDKn7L5b+KUE/FLwfiRs+T5D3cw8lpz2EqLKnV4/ZhM5GyAE6GPqan+OxWPKksIG7zRMzNslHY+PBbQqhxWSXkiuUjanuda6Z4R8eohaJfAF2kGg== 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=8rudGEDhfcxkegOwtaqLFyrX1X0yEMGTa3p9UhfkzLw=; b=IE8biz68EseVyxo7DRWqlATJxLW9GDAfw4ubzQX/bdqWS32p82nRb82Kn+2vT8jXg+65O6tPCCIh5VwRj3ziGHdCzqdL1QhbPUHLWkJxNmT65bd8jVhXujLNdgCgbEzvJbqrtCLvS47JqbwopJ/iL6vbZosTgTZAiuDkDdolxYFk5AlR3DXzN8dL0/rIkPYBW7krlAGoIAWfJ8pZmfuHwiVkBcEgIy+Wtv1X7B6HkXzTt0l/eD6vAXLsHPl6j1saM98t98/OzWJcpoaSHsS29ynlyhrahHUz0/yndmkI0a3RlsKxt/TIkM6FIylcIh+j/AUuSPrd9GsjjC/FjQIe4w== 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=8rudGEDhfcxkegOwtaqLFyrX1X0yEMGTa3p9UhfkzLw=; b=HVdzUbCq7YVpY9DsFP975bieLK1xudSdUS7UHVjqnq7tQAm5kZO8z35WfSeUEup0/CvTXUWJNJGRZObVh8xpL7pLJKIsgUdA0Id5dULXIPsq64750i4o8rp+UPdYDdf04Yw+o76d41S5eLv0eWabSvJQ+tZ8FCVOKW9Sq2co9kU0/Z9Yumx7C33AnCZ2j3jKaGlmJKbXA39KzWlr33LrruMkbzK0D9L2PmWCOTunvM8NcVtnSCKtiHHa2WboftDY0q0DOKH7WRghM1Ns9+s7RdfxT+4xkE4sPc2TWSJG1AW03nAV696fATd36LBiIqWep46CaMquG02tmQJbqHMPjw== Received: from CO1PR11MB4770.namprd11.prod.outlook.com (2603:10b6:303:94::19) by IA1PR11MB7890.namprd11.prod.outlook.com (2603:10b6:208:3ff::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6768.31; Thu, 14 Sep 2023 00:17:16 +0000 Received: from CO1PR11MB4770.namprd11.prod.outlook.com ([fe80::4ed5:6fd:4aee:7ea8]) by CO1PR11MB4770.namprd11.prod.outlook.com ([fe80::4ed5:6fd:4aee:7ea8%5]) with mapi id 15.20.6768.036; Thu, 14 Sep 2023 00:17:16 +0000 Message-ID: Date: Wed, 13 Sep 2023 17:17:04 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Content-Language: en-US From: "Edward Sanford Sutton, III" Subject: USE_CSTD and USE_CXXSTD not discussed in porters handbook To: freebsd-doc@FreeBSD.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TMN: [I2Ofa+lX+xOCzddlI2u68uWvSTLpVvtb] X-ClientProxiedBy: BN0PR02CA0046.namprd02.prod.outlook.com (2603:10b6:408:e5::21) To CO1PR11MB4770.namprd11.prod.outlook.com (2603:10b6:303:94::19) X-Microsoft-Original-Message-ID: <8a89509e-2f7f-dab2-aa1a-1651c7c7b5ea@hotmail.com> List-Id: Documentation project List-Archive: https://lists.freebsd.org/archives/freebsd-doc List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-doc@freebsd.org MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR11MB4770:EE_|IA1PR11MB7890:EE_ X-MS-Office365-Filtering-Correlation-Id: e21a8aa0-9b9e-4ccc-3c79-08dbb4b7efd0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Bu4GNrHzUL8soqSdToHHRKgObKIDfMnn5NKt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?= =?utf-8?B?ZkhjWWxXdC9OR2twQ0tOcGIwMXpPUE1SZWZpY2o5TWo4YXNObXJKSEZJVWxS?= =?utf-8?B?a0xhUlpaYVkwalV3eDkvdDczaytWSnI3MXo1Zzh0Umx4Z2JJbkphdTNsdktQ?= =?utf-8?B?RStSQml1R2hCRlUrbExXSkNTU0ZjdlRMR3dYSm9URVZRV01pbTNrR0lYcUJs?= =?utf-8?B?RDdkeWRKenV5QVcxRVhzY2JUYTNiVnpnUEYvM2NqOEZTdEtZSGk3dGtjeXZa?= =?utf-8?B?L2JubXE3bFJiUWU2RnVHa215Q2dGRWpidzAxaDJoMWp0enlNSTIwcUI4SmZi?= =?utf-8?B?S0tDSW95Q1pxbTd1UGpBN3ZxZldEWjZMemk5TzdsRVdiS0JGMnA0SGhPalRK?= =?utf-8?Q?P52FTfjj+5jQ2f1PohlKvnvAKxBxplb5iEX13ShCsGko=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-e8f36.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: e21a8aa0-9b9e-4ccc-3c79-08dbb4b7efd0 X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB4770.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Sep 2023 00:17:16.4121 (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: IA1PR11MB7890 X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.08 / 15.00]; FORGED_MUA_THUNDERBIRD_MSGID_UNKNOWN(2.50)[]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; NEURAL_HAM_SHORT(-0.58)[-0.579]; DMARC_POLICY_ALLOW(-0.50)[hotmail.com,none]; R_DKIM_ALLOW(-0.20)[hotmail.com:s=selector1]; R_SPF_ALLOW(-0.20)[+ip4:40.92.0.0/16]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-doc@FreeBSD.org]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:8075, ipnet:40.80.0.0/12, country:US]; RCVD_IN_DNSWL_NONE(0.00)[40.92.18.34:from]; FREEMAIL_ENVFROM(0.00)[hotmail.com]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[40.92.18.34:from]; DKIM_TRACE(0.00)[hotmail.com:+]; DWL_DNSWL_NONE(0.00)[hotmail.com:dkim]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_FROM(0.00)[hotmail.com]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4RmHvM1D46z4fVT I learned about USE_CSTD and USE_CXXSTD more recently. From what I can guess, it makes sense to include those variables in ports when the original authors have not yet setup passing that to the compiler and it is needed for their current code standard or the porter is manually providing the build instructions. I know some programs already track the standard so that a cmake entry of set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_STANDARD_REQUIRED ON) in games/warzone but USES=compiler:c++11-lib is set; I'd guess a porting error of not updated or a typo, came with a patch October 7th so first applied to v4.3.5, but maybe -lib and -lang have a different requirement or it controls something different? Another example is audio/mumble where both USES and USE_CXXSTD is defined where the cmake build system has an entry for 14 as a dependency but before the recent update which moved to cmake it was not set or defined in its make system and only documented to the user for manually building. Porters handbook '17.13.' (trailing dot added why?) mentions things like USES=compiler:C++11-lib but I didn't find it clear when I should use USES and/or USE_*. It was also not made clear when we need to restate that in the ports tree to force proper build environment dependencies as opposed to just passing a flag to the compiler. While here, anyone mind pointing me in the direction of identifying when compiler should be -lang vs -lib other than blind trial and error or original author said so?