Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jBgC0-00078R-7I for pgsql-committers@arkaria.postgresql.org; Tue, 10 Mar 2020 14:49:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jBgBz-000566-0T for pgsql-committers@arkaria.postgresql.org; Tue, 10 Mar 2020 14:49:11 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jBgBy-00055y-Lm for pgsql-committers@lists.postgresql.org; Tue, 10 Mar 2020 14:49:10 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jBgBw-0000OC-8X for pgsql-committers@lists.postgresql.org; Tue, 10 Mar 2020 14:49:09 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 02AEn5Xr019049; Tue, 10 Mar 2020 10:49:05 -0400 From: Tom Lane To: Peter Eisentraut cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Remove win32ver.rc from version_stamp.pl In-reply-to: <50ecb345-4dc5-1f7d-64ca-7018195fcc8d@2ndquadrant.com> References: <50ecb345-4dc5-1f7d-64ca-7018195fcc8d@2ndquadrant.com> Comments: In-reply-to Peter Eisentraut message dated "Tue, 10 Mar 2020 13:35:43 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <19047.1583851745.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 10 Mar 2020 10:49:05 -0400 Message-ID: <19048.1583851745@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Peter Eisentraut writes: > This created some seemingly unrelated build farm failures. I suspect = > this must have something to do with the new shell code in configure > +PG_MINORVERSION=3D`expr "$PACKAGE_VERSION" : '.*\.\([0-9][0-9]*\)'` > +test -n "$PG_MINORVERSION" || PG_MINORVERSION=3D0 > ending up with some nonsense being assigned to PG_MINORVERSION, perhaps = > due to a not-quite-mainstream Bourne shell being used. Looking at the configure log on gharial, the only incorrect symbol seems to be PG_VERSION_NUM: #define PG_MAJORVERSION "13" #define PG_MAJORVERSION_NUM 13 #define PG_MINORVERSION_NUM 0 #define PG_VERSION "13devel" #define PG_VERSION_STR "PostgreSQL 13devel on ia64-hp-hpux11.31, compiled = by gcc (GCC) 4.6.0, 64-bit" #define PG_VERSION_NUM = which squares with the compile error that's being thrown (it's pointing at a macro that uses PG_VERSION_NUM). I'd suggest reverting the change in how PG_VERSION_NUM is computed in configure.in --- that was certainly not necessary to the patch, and evidently you're falling foul of some weird behavior around nesting double-quotes and backquotes. regards, tom lane