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 1rnihq-00EhoN-V8 for pgsql-hackers@arkaria.postgresql.org; Fri, 22 Mar 2024 17:29:27 +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 1rnihp-005yxB-GR for pgsql-hackers@arkaria.postgresql.org; Fri, 22 Mar 2024 17:29:26 +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.94.2) (envelope-from ) id 1rnihp-005yx3-6R for pgsql-hackers@lists.postgresql.org; Fri, 22 Mar 2024 17:29:25 +0000 Received: from mail-oa1-x29.google.com ([2001:4860:4864:20::29]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rnihl-005t9c-Ou for pgsql-hackers@postgresql.org; Fri, 22 Mar 2024 17:29:24 +0000 Received: by mail-oa1-x29.google.com with SMTP id 586e51a60fabf-229661f57cbso1372301fac.1 for ; Fri, 22 Mar 2024 10:29:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=neon.tech; s=google; t=1711128562; x=1711733362; 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=wI2qDmpuZuB7yvjDQuhmmcO2wGubPwhxg+TL9YeGOYs=; b=Fj5DZsrvdKnwXfO2Hz0RqG1IKZkwx8+5Gl+pQKYzb8/fHmvjr4ZFCirwoZKwD5e91u uJjsDoUTURj1/opl68SGV2tRz8tFkgq7scSk8X+gUZ99RP3S76AQ8syEae+9JYiraTSe A6KKidHdTJNIKAqGkpfLK46adCrHa5B/66dcs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711128562; x=1711733362; 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=wI2qDmpuZuB7yvjDQuhmmcO2wGubPwhxg+TL9YeGOYs=; b=qkbW8xSC8gCf0lX3+R3lR2amJ41J+aOgAyVjGs17KhqZrkqxE5wFs1uhGPlsTkV551 RhcfOLMrE+XJb2LtmrXA1IRx0fHydUaClUuB26JH53zbdKZaz9oo29I51Q2I1hxmOrff iYN8sL6Qh7V4GpL2DCcS33kSih9rcMhKL11v6AYivMWz1l7htEA3a9v/O67eBxeys3HU PVfv4SyMpl0j9qoqMFdgTzQmdLSa8a5+2jDOiQ+lJo/qloB4oGbBtQzaI+gMSCCV5HMb 5VrBqGeHjx3sh1e+6KegNl2M30RqpWxxFn0Jlvptd+uO/x//odzzPuUKw2kzcbBjBDcs 5p0A== X-Gm-Message-State: AOJu0YyK4CxJLrcm+w50rdHvVxE7U5eAWszJ9cxNYdEnwmP+hmXjhAcF AMBqmQw/zxZNHR3DN1g85CIQhFZZjOx7YkabnYxseAshYKNIMu8byU60s/9ePuc5peGdZnqLbFa 7 X-Google-Smtp-Source: AGHT+IGPHo9T36AJzLekLH8XpLXKZhK2ihBGHFOpI9F5LwCm4ucNLk0hmjKKwvpnCDguDJ/A8BtRpA== X-Received: by 2002:a05:6870:8a0b:b0:229:e78c:e700 with SMTP id p11-20020a0568708a0b00b00229e78ce700mr455273oaq.7.1711128562200; Fri, 22 Mar 2024 10:29:22 -0700 (PDT) Received: from localhost ([2607:fb91:1281:8489:3996:e070:71ee:42fb]) by smtp.gmail.com with ESMTPSA id ld21-20020a0568702b1500b0022130a9652asm24343oab.5.2024.03.22.10.29.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 Mar 2024 10:29:21 -0700 (PDT) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8; format=Flowed Date: Fri, 22 Mar 2024 12:29:21 -0500 Message-Id: Cc: "pgsql-hackers" Subject: Re: make dist using git archive To: "Peter Eisentraut" From: "Tristan Partin" X-Mailer: aerc 0.17.0-78-g4ffbaa6b3946 References: <40e80f77-a294-4f29-a16f-e21bc7bc75fc@eisentraut.org> <673bbcc2-3e38-44b6-9710-e7c1b2446334@eisentraut.org> In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu Mar 21, 2024 at 3:44 AM CDT, Peter Eisentraut wrote: > Here is an updated version of this patch set. You should add 'disabler: true' to the git find_program in Meson. If Git=20 doesn't exist on the system with the way your patch is currently=20 written, the targets would be defined, even though they would never=20 succeed. You may also want to make sure that we are actually in a Git repository.=20 I don't think git-archive works outside one. Re the autoclrf, is this something we could throw in a .gitattributes=20 files? > I have removed the "dirty check" stuff. It didn't really work well/was= =20 > buggy under meson, and it failed mysteriously on the Linux CI tasks. So= =20 > let's just drop that functionality for now. > > I have also added a more complete commit message and some more code=20 > comments. > Meson has its own distribution building command (meson dist), but we > are not using that at this point. The main problem is that the way > they have implemented it, it is not deterministic in the above sense. > Also, we want a "make" version for the time being. But the target > name "dist" in meson is reserved for that reason, so we call the > custom target "pgdist" (so call something like "meson compile -C build > pgdist"). I would suggest poisoning `meson dist` in the following way: if not meson.is_subproject() # Maybe edit the comment...Maybe tell perl to print this message=20 # instead and then exit non-zero? # # Meson has its own distribution building command (meson dist), but we # are not using that at this point. The main problem is that the way # they have implemented it, it is not deterministic in the above sense. # Also, we want a "make" version for the time being. But the target # name "dist" in meson is reserved for that reason, so we call the # custom target "pgdist" (so call something like "meson compile -C build # pgdist"). # # We don't poison the dist if we are a subproject because it is=20 # possible that the parent project may want to create a dist using=20 # the builtin Meson method. meson.add_dist_script(perl, '-e', 'exit 1') endif > I have extracted the freebsd CI script fix into a separate patch (0002).= =20 > I think this is useful even if we don't take the full CI patch (0003). 0002 looks pretty reasonable to me. > About the 0003 patch: It seems useful in principle to test these things= =20 > continuously. The dist script runs about 10 seconds in each task, and=20 > takes a bit of disk space for the artifacts. I'm not sure to what=20 > degree this might bother someone. 0003 works for me :). --=20 Tristan Partin Neon (https://neon.tech)