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.94.2) (envelope-from ) id 1rx5ZX-006KSy-4s for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Apr 2024 13:43:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rx5YX-00Bd7J-Pn for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Apr 2024 13:42:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rx5YX-00Bd7B-G9 for pgsql-hackers@lists.postgresql.org; Wed, 17 Apr 2024 13:42:33 +0000 Received: from feynman.df7cb.de ([195.49.152.168]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rx5YU-001Swl-E3 for pgsql-hackers@lists.postgresql.org; Wed, 17 Apr 2024 13:42:32 +0000 Received: from msg.df7cb.de (unknown [IPv6:2a02:908:1482:3660:9040:dbc4:d54f:9910]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 4VKMXj28rQz3G9Y; Wed, 17 Apr 2024 15:42:29 +0200 (CEST) Date: Wed, 17 Apr 2024 15:42:28 +0200 From: Christoph Berg To: Andres Freund Cc: pgsql-hackers@lists.postgresql.org Subject: Re: pgsql: meson: Add initial version of meson based build system Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Re: Andres Freund > https://git.postgresql.org/pg/commitdiff/e6927270cd18d535b77cbe79c55c6584351524be This commit broke VPATH builds when the original source directory contains symlinks. The $PWD is /home/myon/postgresql/pg/master, but the actual directory is /home/myon/projects/postgresql/pg/postgresql. When I mkdir build; cd build && ../configure there, I get a build directory missing a lot of files/directories: $ ls build/ config.log config.status* GNUmakefile meson.build src/ $ ls build/src/ backend/ include/ interfaces/ Makefile.global Makefile.port@ $ ls build/src/backend/ port/ Given there are no other changes I think this bit is at fault: > Modified Files > -------------- > configure.ac | 6 + +# Ensure that any meson build directories would reconfigure and see that +# there's a conflicting in-tree build and can error out. +if test "$vpath_build"="no"; then + touch meson.build +fi Christoph