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 1vPIoS-00ERzp-1t for pgsql-hackers@arkaria.postgresql.org; Sat, 29 Nov 2025 11:08:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vPInQ-00EW4G-1d for pgsql-hackers@arkaria.postgresql.org; Sat, 29 Nov 2025 11:07:20 +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 1vPInQ-00EW47-0S for pgsql-hackers@lists.postgresql.org; Sat, 29 Nov 2025 11:07:20 +0000 Received: from mail-qt1-x82d.google.com ([2607:f8b0:4864:20::82d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vPInN-002BIZ-37 for pgsql-hackers@lists.postgresql.org; Sat, 29 Nov 2025 11:07:19 +0000 Received: by mail-qt1-x82d.google.com with SMTP id d75a77b69052e-4ed9c19248bso22694721cf.1 for ; Sat, 29 Nov 2025 03:07:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764414436; x=1765019236; 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=bD1Amu6zCDmoNjlFvIGE6T1mfIYRxhjn43eeX0icOrM=; b=c7eFjTlKhXpkEXtfjpi1nFAPsrVhifajv1FrR6SdY5wVYb9pwf32Sb061zuJH2mnod VXX6q4Ttk0yFnrziiEVcagfRamXfSxDZHjjL7srfC3tDlkq2cOyMQiSt49ASAMLTgTkD Rb9NaeQ4wBPwZuvglbVygRV0ByxyQ9I/lgzCdqwfOyOuAe/2HUeXMQ3GV8CSk/ehj1Q3 zKwsmjpngGAPfhw0uXFUbocF+JeFRVUidC6za5QqZg4rO4V4f5q/Y9tB3/JWKzn/S/MO trjR7JleJqhuBx/zyN6ppGiFN5nSjwHZv5MR27oBPGtjdcJpn3ER/R4CJhKQDKLFLOyH GGNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764414436; x=1765019236; 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=bD1Amu6zCDmoNjlFvIGE6T1mfIYRxhjn43eeX0icOrM=; b=Two2OrgYn0QZ21qGNyubWHR66j/m0hVMw8SeP1X1gERWP5Xc75wnw6pQA43sqyzi5k eqM4+jjTEmqagAmt3R27lzHUlXlO37IkNgP2xS1HOdcMWm7r/xTkJtWgZaTsBzktz12d 48OoZER6OdvetIJkBGpkgXMPQ8k/u3IlUJKh6M+Ip4T25k2oJ3r/Jxwapyg4jJG2IdyZ IINiI4rIvQfB5z1pYtJDb6q3NLH/O9DJgeH4qWtn3efZhozlzBC1PoIXfnjgVUjln2YJ W0g3XqtZzR0zuGkAGIN3mSLBIRnCkOaX+S8n2s+8hue8AhwY6DZzKn2qkc9N8ObB0XfN S93Q== X-Forwarded-Encrypted: i=1; AJvYcCWIxvnGQXKfC2xVeVuSEE651k3leHbut08RfMsnAe7+z6k3ORfzQqxQlwDGa4t1p9bvf1eETSpKNFD7peQg@lists.postgresql.org X-Gm-Message-State: AOJu0YxnvN9wnzJhTpFSoH8XBftlABuxJOeczsIA4a1rBXB8qhzHIU2/ N4raIxJ0KUHPYu8EffTFC0MUSc5XKf9WCEBqYXT5h1+96l5iWmGRkLh8RhY0kwjETDdDd8Thjor /DBKs8l2ITJTuHrCwCe70Alax/8vELwI= X-Gm-Gg: ASbGncujrI8d6auzzBvdUS6qf4dK2QCoHDoDoAYDlgSSM99mdqPzDCtnhybAuzKfU+T 0a75NJFJrHp6/VhXYZbR44eeqv+W1je5kJp7wCRkUYrimHB+k/EsO2UJK6R0tdIZxGryhb8jtY6 hNokGeirKyzATTCZJF27X4LxGGwyO1B9GlG8m5CTJlq1ozGYVs5xddo+aIVjR0yShDa19iD7bsP wk/qJtF1s4UIXdD3PSz2I2rMhDL3ufa2gkeoS07Wi5QQBF/EFsHx1GDMvBum5oLnOv4UCg6 X-Google-Smtp-Source: AGHT+IHTOGf8DZU2fhGpbLk3jix/WsfkIiO5+qi92l5U3X22+rWpVu8GnS166PRGdG+BIUFM07QHFj166k70ByG1+bk= X-Received: by 2002:ac8:5acf:0:b0:4ed:bb39:9a60 with SMTP id d75a77b69052e-4ee588e087amr433057991cf.40.1764414436583; Sat, 29 Nov 2025 03:07:16 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?Q?Mi=C5=82osz_Bieniek?= Date: Sat, 29 Nov 2025 12:07:05 +0100 X-Gm-Features: AWmQ_bkeKQcNzX5dHBYSSzl4mafetCYemjn7UQB6xFbMnsd7uOstwo6II7ap7oA Message-ID: Subject: Re: [PATCH] Add `headerscheck` run_target to meson To: Nazir Bilal Yavuz 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 pt., 28 lis 2025 o 16:17 Nazir Bilal Yavuz napisa=C5= =82(a): > > Hi, > > On Fri, 28 Nov 2025 at 18:05, Nazir Bilal Yavuz wrot= e: > > > > On Fri, 28 Nov 2025 at 17:03, Mi=C5=82osz Bieniek wrote: > > > > > > pt., 28 lis 2025 o 12:53 Peter Eisentraut napi= sa=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 headers= check` > > > > > but there is no equivalent in meson. > > > > > I prepared a small patch that adds `headerscheck` and `cplusplusc= heck` > > > > > 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 argument= s 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 scri= pt. > > Any thoughts or suggestions? Thank you for the detailed response. I initially thought the errors with `#include ` and `#include ` were only an issue with my local setup. If I understand correctly, your first proposal would address this problem without requiring integration with the headerscheck script, which in my opinion would be a cleaner solution. However, I would definitely like to hear what others think as well.