From nobody Wed Mar 01 17:14:46 2023 X-Original-To: dev-commits-ports-main@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 4PRgpM5GpTz3v6P4; Wed, 1 Mar 2023 17:14:51 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (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 "freefall.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PRgpM4jFSz40rX; Wed, 1 Mar 2023 17:14:51 +0000 (UTC) (envelope-from jbeich@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677690891; 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=NVz+cpR3YvzIFPOd+eJd93olN24Vy+kxhQtDcmvVJ8M=; b=Q1MV3CnjIc0WHP4JAZTG1AIKa/c+xItH/lgU67qzB1F5sfyXR4LsL7lMtJi1bwdSVrd2wj r9+8wQ07ouyJ6Fs8AQ9UQjzlhaFo2KPPSnhhj0htjPVymOadooVuDwkIfdmu+TCbZ7oiUP 1pnhZjJCAIe0oO4YJYvwYL0tKSq0fiClFcxtDjssd96hdBs+Jmgz/eaVFr9D4Oh7mVnRhZ Wy/bSm5x4Mf0aAF/rPtNcnwyRfu3fcO/QmHZK69hDQeLTX0K6txJr+Xml5n/57ORtkdPF5 mewJsSn/jn630FEOE5qYtKagU5uYi3RfmSAgN0EWTrvSi4Ao3oVGwmaAri/srA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677690891; 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=NVz+cpR3YvzIFPOd+eJd93olN24Vy+kxhQtDcmvVJ8M=; b=IUfKRCP1cNV0m3xMb7OYf+yVH+/SA/fCJm/wi+zbtdVja26O1Dj20WBJ309HsQabW6/JBj yrmbc1FwxbQXdSnWmcyIU3XsK2tVKCn6IFuhPSYWJMXnFgv625dbHpUltY6G8Cz6Jf/v7m Muhj40yRmpGPKB6fk8cu63MEifxwpyg4kaGIkMvmveULsIElbRczYTcrIrD0ZLMzjjqJSx ZOnV0mpFrTtUDF+QtjM5KUjbpEwWKHDznQn3nT/No7j++eDg/O9fLEVVpNJcvNoH3UfFVO cuNR8X0T8ePHB8pqwX4rPk+mtVxIlX3qkS6DHD1XdR7jHLfMBUwd7zzXfjLiTg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677690891; a=rsa-sha256; cv=none; b=l9d+fwaQhVlMnkQif5sAIBLb8IrD7mCTVGxBqjYmIyCLMxMETeXTee6g9nIXDS4xU4WOsQ ZSQv7xOiSqtfFFKDgL3YzeiOEA3eG9mpFolShLb9Ml5LSRUIGr2s8mWSsoi/Tu8LPTrjfH AM8EkDlIAughmWjb3RaD4VbslJVzu3XmXARda5PsRJRn8kBctCzh0BF9dvgWKP9IDQTrdx tuOZN53FkuKlVixpA3IOwCi7zFLTT5zV17WeoZxW3cNnRRgE3mlzWhUrCiY84Flv0pJYcQ fOsZZakIdT9oqi06M3l8zGVya+TPu3Z6HIUkgV0Oix9bTGhHAt7peRkDjK8Xew== Received: by freefall.freebsd.org (Postfix, from userid 1354) id 7DBAEB0D5; Wed, 1 Mar 2023 17:14:51 +0000 (UTC) From: Jan Beich To: Robert Nagy Cc: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: Re: git: bf4345746390 - main - www/*chromium: add missing osreldate.h header tighten the version check In-Reply-To: <202303011311.321DBwbt069432@gitrepo.freebsd.org> (Robert Nagy's message of "Wed, 1 Mar 2023 13:11:58 GMT") References: <202303011311.321DBwbt069432@gitrepo.freebsd.org> Date: Wed, 01 Mar 2023 18:14:46 +0100 Message-ID: List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain X-ThisMailContainsUnwantedMimeParts: N Robert Nagy writes: > -+#if __FreeBSD__version > 1300000 > - #define HAVE_MEMFD_CREATE > -+#else > ++#if defined(__FreeBSD__) > ++#include > ++#if defined(__FreeBSD_version) && __FreeBSD_version < 1300048 > +#undef HAVE_MEMFD_CREATE > ++#else > + #define HAVE_MEMFD_CREATE > ++#endif > +#endif A more simple way is to check __FreeBSD__ value. ports/ tree doesn't support EOL -RELEASEs, let alone old -CURRENT snapshots. $ git -C /usr/src show release/13.0.0:sys/sys/param.h | grep '#define.*_version' #define __FreeBSD_version 1300139 /* Master, propagated to newvers */ #if defined(__linux__) || (defined(__FreeBSD__) && __FreeBSD__ >= 13) #define HAVE_MEMFD_CREATE #else #undef HAVE_MEMFD_CREATE #endif