Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w2sxN-000hO2-2C for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Mar 2026 15:37:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w2sxM-00C2AS-1e for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Mar 2026 15:37:12 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w2sxM-00C2AJ-0Y for pgsql-hackers@lists.postgresql.org; Wed, 18 Mar 2026 15:37:12 +0000 Received: from mail-dl1-x122e.google.com ([2607:f8b0:4864:20::122e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w2sxH-00000000Ng3-2lxh for pgsql-hackers@lists.postgresql.org; Wed, 18 Mar 2026 15:37:09 +0000 Received: by mail-dl1-x122e.google.com with SMTP id a92af1059eb24-12732e6a123so2521257c88.1 for ; Wed, 18 Mar 2026 08:37:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1773848228; cv=none; d=google.com; s=arc-20240605; b=UPkPBLePfepNlbCsRUP0WuSsuqpty9uIzoRkxpysyYnWvyrKzQ/Sj8ElthpnSt8OFa ev1tBRmA1mOje592pxKL5sl6TPH3EwOg7HQ3HgLd3jQPB5CktordAEInwNwguWHU7YqW www2MMBvvkmgX9qWz40oI8zSv34Dhab5xrOVzmSJs2qPY/u7nxd4rrdf/ZOK5SRcR7IK HpvgI9bFy0o28eAeL7IgX/dpQWjKm/gBozdWiRRV697DQpi+4t8RzKm/mz6BxW3CinOU nf8fq4CYnw/xiHN9LvK+1qtthBJ035e2maGfBewXuu8vofin5MKbu/QqtttWQKzSehj2 85yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=29LUFZ01vn4GdzPqtCM/vqxXMdU2uIAoi79xPwX4izo=; fh=GUdKFfIcL7pPouRr38UnTWUfxBQL26Mbvioza2G3pm4=; b=Rp8P0ibH31ftewwuwm2szRLwZLwyFoX8QQkYVHFvTTz82z2JCOMgU+o4Mv1fTeqFSt L9xh5szrBe/Q7uGDvSdIeDOzZQUudTVttRbQt7alI/2c1+WBBNxHwhzbXFL2E6cb1DI6 Fpl1ZLTSlrBA+l8fHh84xWdNeqzVlwKW8Rbb4Kbor5U1j5YsNA1hBjDvAPHKtLZfePnE o+bY5e9ecNeDiWyRrH4GDT2C9pi4b0HREkDN5Sw/YBdMjxrYqqFHv2i0NS2wpBZ1zzKQ m+JV3wEiE4q/GtpQJvgy4PPM9fAK+64qtXUuoBwLHysuwYw/3sktrMrTONDIwRoTkaJh 4N/w==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773848228; x=1774453028; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=29LUFZ01vn4GdzPqtCM/vqxXMdU2uIAoi79xPwX4izo=; b=CrCLJaPLiXTlNTRijiEzHqUvzTD7TJ61gs6B6pqf3VX8uWi5+bOUgc2V0dEroBKbMh 0cG13rXoSc8HU4oLSZ1xcF+fd1A+rHZE4tbSQiA72nCV0JbjSInzX5IVuB5kjOsrv6Dg eh4dSS63XOUSvKp5Nlr/HeWXZG4en9hvlnbcAf3CwbY9RX180VbcUKxwqaTF8nfL/bZB 3KxbedU2EPm1/U8IPgiZIbeS3S6LuBbXYJGtu8m0tsG6MtRjDWJRSwO5leHE749Pto85 2OJRsu8v2HBgvJlZubL2K+BuTuBS3cqxmV6MztXorcaG+XG2SRm4J5mBrWR4/pNLPX9M gL3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773848228; x=1774453028; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=29LUFZ01vn4GdzPqtCM/vqxXMdU2uIAoi79xPwX4izo=; b=OYCCg2UMNLlkq0dOOVsiiSfwEG9vb3MR6PgCbT37EGiPSNPq+AzuFtYD2d+QtqcCbM AhYFSvLTrP0bgobCge6BroTWhcL1B4GGxeLLdD9Q/lY+WYpJMZjbHqgTRCJlfdIgYZok tQrpjiSSTWP1LuzEktrpiet6AgXFslMlm+aNo8cpIKPc8ZshDGBvWcDhgFdgjbp01fBy aSqt0hL7cv5jirAoOcnOnN4qK9F4A7OC3Y9L2k5trLoseHJaV9G/4dZhA1Q1PxNO35rI l7WPzqmr7wLSr184hEJ0Y3vVrj19N72tbTEwFNNoI91am7wsqjBsy6im+Qa+ey9KhuY4 W9Tg== X-Forwarded-Encrypted: i=1; AJvYcCUeCuoqLHOeWV91bdHt9fjLo09nMWGYVqXCgTyGuu9m+YHQYUaipJBoo6Mb/hXXQa8dMmDyGFFMS9EafzdT@lists.postgresql.org X-Gm-Message-State: AOJu0YzNdeH6KZtUjolu4glif7u+mRBR2Lu9NvvOFNCgXuuT6g7Lk8eP YC6adVheb/DHxjvmsDCpA1rzv3jeBXhi1vwuvzTOJzOWA5sfxPnRPXn80/QltZVIhhBmGRDyP8W lXyh5gFSryfLbqWsvnswoK68hvDA4Fkw= X-Gm-Gg: ATEYQzyPDeHYXFmqWn263xk6h48WACnxhl9sCr4l/vnTHxzUp73V7rUC+Wo6FVLq0A/ gt8vHaOVlN5n//brPCjzpfxBtHdyP7EEdz+QofRvRtfMNIoi0cfuZv7Fe0uAdrF48qwsmmZBZj0 EcYSnVze/EKrYZuA5g8iahziJnTV79YaMIfSjcktDUTVL/pyKg4XJmn0LELPhoOVLQmr6bbCxwd dRNDw6OR2kHibtkuQ3QehJ2bLr1zDDWj/38tAEJhercMgY8UCpLN60rPGRmL01c9WzGilV5RsPZ 2RDkNPA= X-Received: by 2002:a05:7301:168b:b0:2be:1544:5c40 with SMTP id 5a478bee46e88-2c0e508312amr1880060eec.31.1773848228164; Wed, 18 Mar 2026 08:37:08 -0700 (PDT) MIME-Version: 1.0 References: <49c98509-e415-49cb-8842-475994661e04@eisentraut.org> <8ade4a93-26d2-4995-94c9-ee3f8f794a24@eisentraut.org> In-Reply-To: <8ade4a93-26d2-4995-94c9-ee3f8f794a24@eisentraut.org> From: Nazir Bilal Yavuz Date: Wed, 18 Mar 2026 18:36:56 +0300 X-Gm-Features: AaiRm53akQFhfz2NYc0zxj-BJo7wzZbYhbqnAgDr7flRNB9GFxuOCf9adchuKp8 Message-ID: Subject: Re: [PATCH] Add `headerscheck` run_target to meson To: Peter Eisentraut Cc: =?UTF-8?Q?Mi=C5=82osz_Bieniek?= , pgsql-hackers@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On Wed, 18 Mar 2026 at 14:59, Peter Eisentraut wrote: > > On 18.03.26 11:56, Peter Eisentraut wrote: > > > > Committed that, but without the regular expression changes. I don't > > understand why those would be needed. Please provide more information > > if necessary. It worked for me without it. It is working now. I can't reproduce the problem, it looks like it is already fixed. > I need another tweak for the cpluspluscheck. > > In meson, the distribution of the include flags between CPPFLAGS, > CFLAGS, and CXXFLAGS ends up being a bit different, and we need to get a > few -I options from CXXFLAGS in my case. > > I have attached two different variants for how to do this. The first > one just gets the -D and -I flags from CXXFLAGS. This preserves most of > the existing behavior. The second aligns more with how CFLAGS works and > removes the ability to override CXXFLAGS from the command line. This is > probably now better since we have more support for getting correct CXX > and CXXFLAGS in the build system. But it might be a change for some users. > > Thoughts? I think we can go with the second variant first. If there is a complaint, we can then consider switching to the first one. Does that sound good? Also, second patch probably needs to remove lines below from the src/tools/pginclude/README: ``` If you are using a non-g++-compatible C++ compiler, you may need to override the script's CXXFLAGS setting by setting a suitable environment value. ``` -- Regards, Nazir Bilal Yavuz Microsoft