pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: pgsql-hackers@postgresql.org
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Michael Paquier <michael@paquier.xyz>
Subject: Re: Clean up MinGW def file generation
Date: Mon, 21 Oct 2019 00:07:02 +0200
Message-ID: <87d95052-3780-b833-9953-27eab80186cf@2ndquadrant.com> (raw)
In-Reply-To: <90cd400d-16a7-67c9-777f-3aea58edacb0@2ndquadrant.com>
References: <20191018120758.GA1661@alvherre.pgsql>
	<29378.1571403614@sss.pgh.pa.us>
	<90cd400d-16a7-67c9-777f-3aea58edacb0@2ndquadrant.com>

On 2019-10-20 10:26, Peter Eisentraut wrote:
> On 2019-10-18 15:00, Tom Lane wrote:
>> Yeah, the comment that Peter complained about is mine.  I believe the
>> desire to avoid depending on "sed" at build time was focused on our
>> old support for building libpq with Borland C (and not much else).
>> Since this makefile infrastructure is now only used for MinGW, I agree
>> we ought to be able to quit shipping those files in tarballs.
> 
> Yeah, it all makes sense now.  I have committed my patch now.

Very related, I believe the file libpq-dist.rc is also obsolete; see
attached patch.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Attachments:

0001-Remove-libpq-dist.rc.patch (text/plain, 1.6K) download From a098f5edc3477c774d06ddd9324364c2bad2c6fe Mon Sep 17 00:00:00 2001 From: Peter Eisentraut <peter@eisentraut.org> Date: Sun, 20 Oct 2019 23:57:57 +0200 Subject: [PATCH] Remove libpq-dist.rc The use of this was removed by 6da56f3f84d430671d5edd8f9336bd744c089e31. --- src/interfaces/libpq/.gitignore | 1 - src/interfaces/libpq/Makefile | 7 +------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/interfaces/libpq/.gitignore b/src/interfaces/libpq/.gitignore index 38779b23a4..9be338dec8 100644 --- a/src/interfaces/libpq/.gitignore +++ b/src/interfaces/libpq/.gitignore @@ -1,6 +1,5 @@ /exports.list /libpq.rc -/libpq-dist.rc # .c files that are symlinked in from elsewhere /encnames.c /wchar.c diff --git a/src/interfaces/libpq/Makefile b/src/interfaces/libpq/Makefile index 6626f87e76..2fad1bc44c 100644 --- a/src/interfaces/libpq/Makefile +++ b/src/interfaces/libpq/Makefile @@ -94,14 +94,10 @@ encnames.c wchar.c: % : $(backend_src)/utils/mb/% rm -f $@ && $(LN_S) $< . -distprep: libpq-dist.rc - -libpq.rc libpq-dist.rc: libpq.rc.in +libpq.rc: libpq.rc.in sed -e 's/\(VERSION.*\),0 *$$/\1,'`date '+%y%j' | sed 's/^0*//'`'/' $< >$@ # Depend on Makefile.global to force rebuild on re-run of configure. -# (But libpq-dist.rc is shipped in the distribution for shell-less -# installations and is only updated by distprep.) libpq.rc: $(top_builddir)/src/Makefile.global # Make dependencies on pg_config_paths.h visible, too. @@ -141,4 +137,3 @@ clean distclean: clean-lib maintainer-clean: distclean $(MAKE) -C test $@ - rm -f libpq-dist.rc -- 2.23.0

view thread (7+ messages)  latest in thread

Message-ID: <87d95052-3780-b833-9953-27eab80186cf@2ndquadrant.com>
Permalink:  ../87d95052-3780-b833-9953-27eab80186cf@2ndquadrant.com/
Also on:    postgresql.org/message-id/87d95052-3780-b833-9953-27eab80186cf@2ndquadrant.com

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: peter.eisentraut@2ndquadrant.com, tgl@sss.pgh.pa.us, alvherre@2ndquadrant.com, michael@paquier.xyz
  Subject: Re: Clean up MinGW def file generation
  In-Reply-To: <87d95052-3780-b833-9953-27eab80186cf@2ndquadrant.com>
  References: <20191018120758.GA1661@alvherre.pgsql> <29378.1571403614@sss.pgh.pa.us> <90cd400d-16a7-67c9-777f-3aea58edacb0@2ndquadrant.com> <87d95052-3780-b833-9953-27eab80186cf@2ndquadrant.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox