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 1rT2Xi-00006W-9Q for pgsql-hackers@arkaria.postgresql.org; Thu, 25 Jan 2024 16:25:30 +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 1rT2Xh-001BW4-1F for pgsql-hackers@arkaria.postgresql.org; Thu, 25 Jan 2024 16:25:29 +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 1rT2Xg-001BVw-Ml for pgsql-hackers@lists.postgresql.org; Thu, 25 Jan 2024 16:25:28 +0000 Received: from mail-oa1-x33.google.com ([2001:4860:4864:20::33]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rT2Xb-003g59-Au for pgsql-hackers@postgresql.org; Thu, 25 Jan 2024 16:25:27 +0000 Received: by mail-oa1-x33.google.com with SMTP id 586e51a60fabf-2144c37f3d3so1819038fac.0 for ; Thu, 25 Jan 2024 08:25:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=neon.tech; s=google; t=1706199921; x=1706804721; darn=postgresql.org; h=in-reply-to:references:from:to:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=OhNkexLg4UZtKAFJ3AtyFo0O2rYPF+GvvT8hYNdIyJ8=; b=PYKypvbtdpqlgmc3Uq0ux7d0jFE9YI+LAAS0TRpemhA1WVnppcoMVN98DE1fB1QdmE XrcmcXLZXqp6ZVmha20TfnTDk7DOfqRLidDysSYabEUehZToLRwOl3Na7xahRda/o/hH 0Jy0TRK7xkbJ+oiqICtKEEIc3GduaNerVJCgI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706199921; x=1706804721; h=in-reply-to:references:from:to:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=OhNkexLg4UZtKAFJ3AtyFo0O2rYPF+GvvT8hYNdIyJ8=; b=nTghrK1mZ9W3EQjRZz4RR7HZRcYCWaUqg8D1IkIj4YvQU2C2tRmdySzIpnDg5hTrvM l0Ml7Bn9T0/bIKfcLryih58vn7lei8rquMZot1pvzzhybluJEwh/QNbDzrDp/A0PiJLt l6DR1WIuCXW6RInnoWz38rH0E3LD28DxfHCJNAqaZdnBROyiKswG6asev1Tj1qb7ANBH tCwvmRvS+NDEU3EmRYHBPevnIvWGQvERPkRuvFue9MtH5ZJ8597i47Lkut+Xmmkv4b9E SYrUM6Kyrb6GrsHHbS55ZwkN50dOmcUgo8GBo1+gSbeGXJw8Aq860v4NeDSrQt1VcmfG tYHw== X-Gm-Message-State: AOJu0Yx6zar/73CbFR2SaYpAbJdvmID+oqYU8riY7viU/MbgdVMU7Do0 jHCARI5fy1E1eipQ7NmNdp8S+xe0Pzowfa6OqvijVLRg/j2f4tmZfD7ZVzEjR5oSdB46Sdr0P1K U X-Google-Smtp-Source: AGHT+IEKk35PBS+Z2VkPiFqIGaeK+m5dxyjqbFnZogRCiEP9uU27P561mC85T2QE2fHRjeB0m3eFEg== X-Received: by 2002:a05:6870:c90d:b0:214:d2cb:e41 with SMTP id hj13-20020a056870c90d00b00214d2cb0e41mr881324oab.72.1706199920523; Thu, 25 Jan 2024 08:25:20 -0800 (PST) Received: from localhost ([2607:fb90:e683:8cf6:3996:e070:71ee:42fb]) by smtp.gmail.com with ESMTPSA id cz2-20020a0568306a0200b006dde30f0c9csm3108683otb.81.2024.01.25.08.25.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Jan 2024 08:25:20 -0800 (PST) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8; format=Flowed Date: Thu, 25 Jan 2024 10:25:19 -0600 Message-Id: Cc: "pgsql-hackers" Subject: Re: make dist using git archive To: "Peter Eisentraut" From: "Tristan Partin" X-Mailer: aerc 0.16.0-149-g2d8b81f619fc References: <40e80f77-a294-4f29-a16f-e21bc7bc75fc@eisentraut.org> <673bbcc2-3e38-44b6-9710-e7c1b2446334@eisentraut.org> In-Reply-To: <673bbcc2-3e38-44b6-9710-e7c1b2446334@eisentraut.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu Jan 25, 2024 at 10:04 AM CST, Peter Eisentraut wrote: > On 22.01.24 21:04, Tristan Partin wrote: > >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 'H= EAD', '.'], > >> +=C2=A0 install: false, > >> +=C2=A0 output: distdir + '.tar.bz2', > >> +) > >=20 > > The bz2 target should be wrapped in an `if bzip2.found()`. The way that this currently works is that you will fail at configure=20 time if bz2 doesn't exist on the system. Meson will try to resolve=20 a .path() method on a NotFoundProgram. You might want to define the bz2=20 target to just call `exit 1` in this case. if bzip2.found() # do your current target else bz2 =3D run_target('tar.bz2', command: ['exit', 1]) endif This should cause pgdist to appropriately fail at run time when=20 generating the bz2 tarball. > Well, I think we want the dist step to fail if bzip2 is not there. At=20 > least that is the current expectation. > > >> +alias_target('pgdist', [check_dirty_index, tar_gz, tar_bz2]) > >=20 > > Are you intending for the check_dirty_index target to prohibit the othe= r=20 > > two targets from running? Currently that is not the case. > > Yes, that was the hope, and that's how the make dist variant works. But= =20 > I couldn't figure this out with meson. Also, the above actually also=20 > doesn't work with older meson versions, so I had to comment this out to= =20 > get CI to work. > > > If it is what=20 > > you intend, use a stamp file or something to indicate a relationship.= =20 > > Alternatively, inline the git diff-index into the other commands. These= =20 > > might also do better as external scripts. It would reduce duplication= =20 > > between the autotools and Meson builds. > > Yeah, maybe that's a direction. For what it's worth, I run Meson 1.3, and the behavior of generating the=20 tarballs even though it is a dirty tree still occurred. In the new patch=20 you seem to say it was fixed in 0.60. --=20 Tristan Partin Neon (https://neon.tech)