Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ad2JV-0005cr-A5 for pgsql-committers@arkaria.postgresql.org; Mon, 07 Mar 2016 21:03:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ad2JU-000264-Sm for pgsql-committers@arkaria.postgresql.org; Mon, 07 Mar 2016 21:03:36 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ad2JI-0001sT-DV for pgsql-committers@postgresql.org; Mon, 07 Mar 2016 21:03:24 +0000 Received: from newmail.postgrespro.ru ([93.174.131.138] helo=mail.postgrespro.ru) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ad2JE-0004UL-8e for pgsql-committers@postgresql.org; Mon, 07 Mar 2016 21:03:23 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id D36C721C67E9; Tue, 8 Mar 2016 00:03:17 +0300 (MSK) Received: from mail.postgrespro.ru ([127.0.0.1]) by localhost (mail.postgrespro.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YvVBueLt1Fvj; Tue, 8 Mar 2016 00:03:16 +0300 (MSK) Received: from [192.168.1.68] (ppp91-76-150-57.pppoe.mtu-net.ru [91.76.150.57]) by mail.postgrespro.ru (Postfix) with ESMTPSA id 2A95521C5D90; Tue, 8 Mar 2016 00:03:16 +0300 (MSK) Subject: Re: pgsql: Improve support of Hunspell in ispell dictionary. To: Peter Eisentraut , Teodor Sigaev , pgsql-committers@postgresql.org References: <56DD94F3.5050806@gmx.net> From: Artur Zakirov Message-ID: <56DDEC93.50302@postgrespro.ru> Date: Tue, 8 Mar 2016 00:03:15 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <56DD94F3.5050806@gmx.net> Content-Type: multipart/mixed; boundary="------------090401030407090105070803" X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org This is a multi-part message in MIME format. --------------090401030407090105070803 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 07.03.2016 17:49, Peter Eisentraut wrote: > On 3/4/16 12:08 PM, Teodor Sigaev wrote: >> Improve support of Hunspell in ispell dictionary. >> >> Now it's possible to load recent version of Hunspell for several languages. >> To handle these dictionaries Hunspell patch adds support for: >> * FLAG long - sets the double extended ASCII character flag type >> * FLAG num - sets the decimal number flag type (from 1 to 65535) >> * AF parameter - alias for flag's set >> >> Also it moves test dictionaries into separate directory. > > The uninstall target in src/backend/tsearch/Makefile doesn't work > anymore, because it tries to uninstall from, e.g., > share/tsearch_data/dicts/hunspell_sample_long.dict, but the files are at > share/tsearch_data/dicts/hunspell_sample_long.dict . > > > Thank you for notice that. Indeed. It is my fault. Attached patch should fix it. -- Artur Zakirov Postgres Professional: http://www.postgrespro.com Russian Postgres Company --------------090401030407090105070803 Content-Type: text/x-patch; name="tsearch-makefile-uninstall-data.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="tsearch-makefile-uninstall-data.patch" *** a/src/backend/tsearch/Makefile --- b/src/backend/tsearch/Makefile *************** *** 13,23 **** include $(top_builddir)/src/Makefile.global DICTDIR=tsearch_data ! DICTFILES=dicts/synonym_sample.syn dicts/thesaurus_sample.ths \ ! dicts/hunspell_sample.affix \ ! dicts/ispell_sample.affix dicts/ispell_sample.dict \ ! dicts/hunspell_sample_long.affix dicts/hunspell_sample_long.dict \ ! dicts/hunspell_sample_num.affix dicts/hunspell_sample_num.dict OBJS = ts_locale.o ts_parse.o wparser.o wparser_def.o dict.o \ dict_simple.o dict_synonym.o dict_thesaurus.o \ --- 13,27 ---- DICTDIR=tsearch_data ! # List of dictionaries files ! DICTFILES=synonym_sample.syn thesaurus_sample.ths \ ! hunspell_sample.affix \ ! ispell_sample.affix ispell_sample.dict \ ! hunspell_sample_long.affix hunspell_sample_long.dict \ ! hunspell_sample_num.affix hunspell_sample_num.dict ! ! # Local paths to dictionaries files ! DICTFILES_PATH=$(addprefix dicts/,$(DICTFILES)) OBJS = ts_locale.o ts_parse.o wparser.o wparser_def.o dict.o \ dict_simple.o dict_synonym.o dict_thesaurus.o \ *************** *** 27,34 **** OBJS = ts_locale.o ts_parse.o wparser.o wparser_def.o dict.o \ include $(top_srcdir)/src/backend/common.mk .PHONY: install-data ! install-data: $(DICTFILES) installdirs ! $(INSTALL_DATA) $(addprefix $(srcdir)/,$(DICTFILES)) '$(DESTDIR)$(datadir)/$(DICTDIR)/' installdirs: $(MKDIR_P) '$(DESTDIR)$(datadir)' '$(DESTDIR)$(datadir)/$(DICTDIR)' --- 31,38 ---- include $(top_srcdir)/src/backend/common.mk .PHONY: install-data ! install-data: $(DICTFILES_PATH) installdirs ! $(INSTALL_DATA) $(addprefix $(srcdir)/,$(DICTFILES_PATH)) '$(DESTDIR)$(datadir)/$(DICTDIR)/' installdirs: $(MKDIR_P) '$(DESTDIR)$(datadir)' '$(DESTDIR)$(datadir)/$(DICTDIR)' --------------090401030407090105070803 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers --------------090401030407090105070803--