pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Artur Zakirov <a.zakirov@postgrespro.ru>
To: Peter Eisentraut <peter_e@gmx.net>
To: Teodor Sigaev <teodor@sigaev.ru>
To: pgsql-committers@postgresql.org
Subject: Re: pgsql: Improve support of Hunspell in ispell dictionary.
Date: Tue, 8 Mar 2016 00:03:15 +0300
Message-ID: <56DDEC93.50302@postgrespro.ru> (raw)
In-Reply-To: <56DD94F3.5050806@gmx.net>
References: <E1abtDg-0003kT-7C@gemulon.postgresql.org>
	<56DD94F3.5050806@gmx.net>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

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

-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

Attachments:

tsearch-makefile-uninstall-data.patch (text/x-patch, 1.8K) download *** 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)'

view thread (8+ messages)  latest in thread

Message-ID: <56DDEC93.50302@postgrespro.ru>
Permalink:  ../56DDEC93.50302@postgrespro.ru/
Also on:    postgresql.org/message-id/56DDEC93.50302@postgrespro.ru

 ·  · 

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-committers@postgresql.org
  Cc: a.zakirov@postgrespro.ru, peter_e@gmx.net, teodor@sigaev.ru
  Subject: Re: pgsql: Improve support of Hunspell in ispell dictionary.
  In-Reply-To: <56DDEC93.50302@postgrespro.ru>
  References: <E1abtDg-0003kT-7C@gemulon.postgresql.org> <56DD94F3.5050806@gmx.net> <56DDEC93.50302@postgrespro.ru>

* 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