lucene-pylucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andi Vajda <va...@apache.org>
Subject Re: pylucene-6.4.1: Missing/Can't unzip jars Under lucene-java-6.4.1 Directory
Date Thu, 16 Mar 2017 19:43:42 GMT

On Wed, 15 Mar 2017, Ruediger Meier wrote:

> On Wednesday 15 March 2017, Junjie Wei wrote:
>> Hi,
>>
>> When I was trying to build pylucene-6.4.1 in Cygwin on Windows, the
>> "$ make build" exit with errors complaining that some jar files
>> cannot be open. It seems because some of the jars under
>> lucene-java-6.4.1 are symbolic links with size of 1k instead of
>> concrete ones. Here is a list that I located them with find command:
>>
>> $ find ./lucene-java-6.4.1/ -name *.jar -size 1k
>> ./test/pylucene-6.4.1/lucene-java-6.4.1/lucene/analysis/icu/lib/icu4j
>> -56.1.jar
>> ./test/pylucene-6.4.1/lucene-java-6.4.1/lucene/analysis/morfologik/li
>> b/morfologik-fsa-2.1.1.jar
>> ./test/pylucene-6.4.1/lucene-java-6.4.1/lucene/analysis/morfologik/li
>> b/morfologik-polish-2.1.1.jar
>> ./test/pylucene-6.4.1/lucene-java-6.4.1/lucene/analysis/morfologik/li
>> b/morfologik-stemming-2.1.1.jar
>> ./test/pylucene-6.4.1/lucene-java-6.4.1/lucene/analysis/phonetic/lib/
>> commons-codec-1.10.jar
>> ./test/pylucene-6.4.1/lucene-java-6.4.1/lucene/analysis/uima/lib/Tagg
>> er-2.3.1.jar
>> ./test/pylucene-6.4.1/lucene-java-6.4.1/lucene/analysis/uima/lib/uima
>> j-core-2.3.1.jar
>> ./test/pylucene-6.4.1/lucene-java-6.4.1/lucene/analysis/uima/lib/Whit
>> espaceTokenizer-2.3.1.jar
>> ./test/pylucene-6.4.1/lucene-java-6.4.1/lucene/expressions/lib/antlr4
>> -runtime-4.5.1-1.jar
>> ./test/pylucene-6.4.1/lucene-java-6.4.1/lucene/expressions/lib/asm-5.
>> 1.jar
>> ./test/pylucene-6.4.1/lucene-java-6.4.1/lucene/expressions/lib/asm-co
>> mmons-5.1.jar
>>
>>
>> After downloaded and replaced lucene-java-6.4.1 from
>> https://archive.apache.org/dist/lucene/java/6.4.1/, things went all
>> good.
>>
>> Is it an issue in the release, or I have missed something before
>> built?
>
> Yes this is a minor but annoying issue of this realease. There are some
> dead links packaged, pointing to Andi's home. like this one
>
> ./lucene-java-6.4.1/lucene/analysis/morfologik/lib/morfologik-stemming-2.1.1.jar ->
/Users/vajda/.ivy2/cache/org.carrot2/morfologik-stemming/bundles/morfologik-stemming-2.1.1.jar
>
> Maybe the "make release/distrib" target has a bug or these links where
> commited to svn by mistake.
>
> BTW this is no real issue on a real POSIX system. Cygwin seems to make
> this worse as it has to emulate symlinks somehow. I guess instead of
> downloading lucene manually you could have fixed it by just removing
> all the bad links.

Indeed, this is a bug of mine.
What would you prefer:
   - include the actual .jar files in the distribution archive (tell tar to
     follow the symlinks when I build the PyLucene distribution)
   - or exclude the symlinks (tell tar to exclude symlinks); your
     running build would then use ivy to fetch them

Andi..

>
> cu,
> Rudi
>
>

Mime
View raw message