pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Christoph Berg <myon@debian.org>
Cc: Andres Freund <andres@anarazel.de>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Cc: PostgreSQL Packagers <pgsql-packagers@lists.postgresql.org>
Subject: Re: pgsql: Move snowball_create.sql creation into perl file
Date: Tue, 23 May 2023 10:46:30 -0400
Message-ID: <933499.1684853190@sss.pgh.pa.us> (raw)
In-Reply-To: <ZGzIYsCF0cpeAPWP@msg.df7cb.de>
References: <E1oDWqn-000ADG-P9@gemulon.postgresql.org>
	<ZGzEAqjxkkoY3ooH@msg.df7cb.de>
	<ZGzIYsCF0cpeAPWP@msg.df7cb.de>

Christoph Berg <myon@debian.org> writes:
>> this seems to have broken out-of-tree builds from tarballs:
>> 
>> /usr/bin/install -c -m 644 snowball_create.sql '/srv/projects/postgresql/debian/16/build/tmp_install/usr/share/postgresql/16'
>> /usr/bin/install: cannot stat 'snowball_create.sql': No such file or directory

I think the attached will do for a proper fix.  I'm not inclined
to re-wrap just for this.

			regards, tom lane

Attachments:

fix-snowball-install-rule.patch (text/x-diff, 784B) download diff --git a/src/backend/snowball/Makefile b/src/backend/snowball/Makefile index 29076371db..4bebfa0250 100644 --- a/src/backend/snowball/Makefile +++ b/src/backend/snowball/Makefile @@ -106,10 +106,13 @@ $(SQLSCRIPT): snowball_create.pl snowball_func.sql.in snowball.sql.in distprep: $(SQLSCRIPT) -install: all installdirs install-lib - $(INSTALL_DATA) $(SQLSCRIPT) '$(DESTDIR)$(datadir)' +install: all installdirs install-lib install-script $(INSTALL_DATA) $(addprefix $(srcdir)/stopwords/,$(stop_files)) '$(DESTDIR)$(datadir)/$(DICTDIR)' +# $(SQLSCRIPT) might be in the srcdir or the build dir +install-script: $(SQLSCRIPT) + $(INSTALL_DATA) $< '$(DESTDIR)$(datadir)' + installdirs: installdirs-lib $(MKDIR_P) '$(DESTDIR)$(datadir)' '$(DESTDIR)$(datadir)/$(DICTDIR)' =

view thread (7+ messages)  latest in thread

Message-ID: <933499.1684853190@sss.pgh.pa.us>
Permalink:  ../933499.1684853190@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/933499.1684853190@sss.pgh.pa.us

 ·  · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, myon@debian.org, andres@anarazel.de, pgsql-hackers@lists.postgresql.org, pgsql-packagers@lists.postgresql.org
  Subject: Re: pgsql: Move snowball_create.sql creation into perl file
  In-Reply-To: <933499.1684853190@sss.pgh.pa.us>

* 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