Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q1THe-0000Mi-HA for pgsql-hackers@arkaria.postgresql.org; Tue, 23 May 2023 14:46:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1q1THd-0005lX-Dz for pgsql-hackers@arkaria.postgresql.org; Tue, 23 May 2023 14:46:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q1THc-0005im-W3; Tue, 23 May 2023 14:46:40 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q1THZ-001fbr-QQ; Tue, 23 May 2023 14:46:40 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 34NEkUPM933500; Tue, 23 May 2023 10:46:30 -0400 From: Tom Lane To: Christoph Berg cc: Andres Freund , PostgreSQL Hackers , PostgreSQL Packagers Subject: Re: pgsql: Move snowball_create.sql creation into perl file In-reply-to: References: Comments: In-reply-to Christoph Berg message dated "Tue, 23 May 2023 16:06:26 +0200" MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----- =_aaaaaaaaaa0" Content-ID: <933419.1684853162.0@sss.pgh.pa.us> Date: Tue, 23 May 2023 10:46:30 -0400 Message-ID: <933499.1684853190@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk ------- =_aaaaaaaaaa0 Content-Type: text/plain; charset="us-ascii" Content-ID: <933419.1684853162.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Christoph Berg writes: >> this seems to have broken out-of-tree builds from tarballs: >> = >> /usr/bin/install -c -m 644 snowball_create.sql '/srv/projects/postgresq= l/debian/16/build/tmp_install/usr/share/postgresql/16' >> /usr/bin/install: cannot stat 'snowball_create.sql': No such file or di= rectory I think the attached will do for a proper fix. I'm not inclined to re-wrap just for this. regards, tom lane ------- =_aaaaaaaaaa0 Content-Type: text/x-diff; name="fix-snowball-install-rule.patch"; charset="us-ascii" Content-ID: <933419.1684853162.2@sss.pgh.pa.us> Content-Description: fix-snowball-install-rule.patch Content-Transfer-Encoding: quoted-printable 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.i= n 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)) '$(DESTD= IR)$(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)' = ------- =_aaaaaaaaaa0--