]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Allow selecting the git revision to be packaged by "make dist".
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 3 May 2024 15:08:50 +0000 (11:08 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 3 May 2024 15:08:50 +0000 (11:08 -0400)
commit01df14763431df1506cbae206945cd165c66d1d3
treefb76c1fc85ba29e2bdaf61dc91849575de86d456
parenta42fc1c903b54ba94374e5e0c08905b9a1479f19
Allow selecting the git revision to be packaged by "make dist".

Commit 619bc23a1 changed "make dist" to invoke "git archive",
but hard-wired the call to specify that the HEAD revision should
be packaged.  Our tarball building process needs to be able to
specify which git commit to package (notably, for packaging
back branches).  While we could make that work with some hackery
to operate in detached-HEAD state, it's a lot nicer just to expose
git archive's ability to specify what to package.  Hence, invent
a new make variable PG_GIT_REVISION.  This is undocumented, but
so is "make dist".

Also make corresponding changes in the meson scripts.  We have no
near-term intention of using that for package building, but it
will likely happen eventually, so stay prepared.

Discussion: https://postgr.es/m/3552543.1713909947@sss.pgh.pa.us
GNUmakefile.in
meson.build
meson_options.txt