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 1vP0E3-00H8uo-2Z for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Nov 2025 15:17:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vP0E1-00C2DV-1q for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Nov 2025 15:17:33 +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 1vP0E1-00C2DL-0q for pgsql-hackers@lists.postgresql.org; Fri, 28 Nov 2025 15:17:33 +0000 Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vP0Dz-001xl6-0I for pgsql-hackers@lists.postgresql.org; Fri, 28 Nov 2025 15:17:32 +0000 Received: by mail-pg1-x52f.google.com with SMTP id 41be03b00d2f7-b99bfb451e5so1350434a12.2 for ; Fri, 28 Nov 2025 07:17:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764343051; x=1764947851; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=4YL2H+66Iuityb8xzcobMI6wTpRsjnEra8slKZWJqRU=; b=fJjgMcC6U0JZDFt9Cp5lETCmLeVP0YlCm/0ewsdxZkTmm4PZK8k4QnDtff1M1TEild rObWnWM2ZHE30qopaSz3+iwM3nK0AXXIDaTNsjeY/v0j+rKVzIHFh3f4Oh4IKuPzpJrd qgS6PN/ywSgmGGsrLjYfgUa2PCup1us8conxGF3ofef9XjPfXlEbOZEg/3qJ6wJeUWBV jw8lHZcAtBcISHGr9azzznm4BeAw7eCDU3jG+SFwY4H7cUJjq6JoyYjk6TDEfc3se0mx 5LI9YeVM84SgfM7+hanQHBHMQNNz0ciIVWk1sAfEclDrdG74xDYrTRz5asaLLmeUk1s6 cQNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764343051; x=1764947851; h=content-transfer-encoding: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=4YL2H+66Iuityb8xzcobMI6wTpRsjnEra8slKZWJqRU=; b=DsNe1PUZCe9wSWl88PhEeQI+rrpd5QogAvuEOLdJVha6UKvrnW4LcJGA2bCTvJOiDJ z42UoxXHrTS4q6zxB/tUgD34XFyZ1LLiC2XOIeYWKOrBTyEhe5l6X8Om2ob4JgEsVM+b foeMTnVBCwLKR5JuTxodlVJzZCXKYSNaYwPcIO/gc9N9g1R0qr1SGdnY2fuddXamBvD3 3R5ZeEudVe+8fUEJZYcrx+Q3okRYTvTs5mr4ZuWXoe2nM6k7s4MXSiK/kvS/NB42qRsn aaGeHvTp/2WdKJLnHktRY3uF3j2IOC8DgD2mYZtZP94FjKOv7eWsNb2XB6O+Ij/jt5da S3ow== X-Forwarded-Encrypted: i=1; AJvYcCVo+fhntDsy8cVoTfPg1OOrZVrmXfAyB7bZjqltfv1kcyc275xQGteo/IDOnlV2w/0TmoikYCvU8dc1QN6d@lists.postgresql.org X-Gm-Message-State: AOJu0Yz9zDJhN33wuKrsNx+2rLFd5flWTQ5S3fplMDoSPldQVyLnfAIh XgyTvhj3AyWAGU5crK5tYEflH8YK6JFz7deXQXSmjBEcLyLDTrz9Ukne+tX7QHn2xnArVfkRwAM W0rz67pNh0jvGH0sRSOO2AjQbqT6ec88= X-Gm-Gg: ASbGncuaFtKmPqPQTpVc6t+dwQTly5H9zDCR8SUoGPLOn5Y/nXOJFgcrZEPqMqI+CfK OKlvxJ3KtEP+OuXgc77KArW9tTFnSd3f90lJ7dFqpsBciWJubU5GfmAyBnOA3m0YqlGfDMrCdqZ mIm6sQyJeKfEQkIBAXl+w1o4S+V2h6lLv7pEhMOAM7qsR+5qp4M5oqp6fT7bGouK+qG86yjM/FD ZPDgtsQRU0T9e03GogCwFRvmcCmd5OrZduPOkKU/xijVY9Nt9OhMD/5fnf/07zQ1xFG5BUko6I3 W8NE X-Google-Smtp-Source: AGHT+IHON6+SFzteKCZhXCG+6H1BWAYc5WyzZE4NcR9JhsFRV+l20WjrvAi2G6ekNsabIWKVOOGyKq1Vsx8+PmfZWz4= X-Received: by 2002:a05:7301:6587:b0:2a4:7cb9:b7da with SMTP id 5a478bee46e88-2a94174db4emr11141530eec.25.1764343050621; Fri, 28 Nov 2025 07:17:30 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Nazir Bilal Yavuz Date: Fri, 28 Nov 2025 18:17:19 +0300 X-Gm-Features: AWmQ_bm7AZbfeUTuAlkQIigr9HYeVTa-y4rY0WXTDzUVKJV7TiD-jeReI-U_vtw Message-ID: Subject: Re: [PATCH] Add `headerscheck` run_target to meson To: =?UTF-8?Q?Mi=C5=82osz_Bieniek?= Cc: Peter Eisentraut , pgsql-hackers@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On Fri, 28 Nov 2025 at 18:05, Nazir Bilal Yavuz wrote: > > On Fri, 28 Nov 2025 at 17:03, Mi=C5=82osz Bieniek wrote: > > > > pt., 28 lis 2025 o 12:53 Peter Eisentraut napisa= =C5=82(a): > > > > > > On 27.11.25 10:28, Mi=C5=82osz Bieniek wrote: > > > > While reviewing a patch I noticed that we have a `make -s headersch= eck` > > > > but there is no equivalent in meson. > > > > I prepared a small patch that adds `headerscheck` and `cplusplusche= ck` > > > > targets. > > > > > > This would be good to have, but I don't think your patch works. It > > > seems you need to add the srcdir and builddir command-line arguments = to > > > the invocations. > > > > > > > I think you are right. I added srcdir and builddir arguments. > > The headerscheck script pulls some information from Makefile.global > after the configure [1] but meson does not generate a full version of > Makefile.global [2], so it does not have the required information to > check perl and python headers. If you run 'meson compile > headerscheck', you get errors like: Sorry, I clicked send early. Two solutions came to my mind but I am not sure which one is better: 1) We can add missing information to the generated Makefile.global in the meson.build. 2) We can send required information as arguments to the headerscheck script= . Any thoughts or suggestions? --=20 Regards, Nazir Bilal Yavuz Microsoft