Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package snowball for openSUSE:Factory checked in at 2026-11-25 16:11:39 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/snowball (Old) and /work/SRC/openSUSE:Factory/.snowball.new.1340718 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "snowball" Wed Nov 25 16:11:39 2026 rev:6 rq:1400239 version:3.2.0 Changes: -------- --- /work/SRC/openSUSE:Factory/snowball/snowball.changes 2026-10-30 18:11:00.686030038 +0100 +++ /work/SRC/openSUSE:Factory/.snowball.new.1340718/snowball.changes 2026-11-25 16:11:54.936711189 +0100 @@ -1,0 +2,269 @@ +Mon Nov 23 16:04:54 UTC 2026 - Dominique Leuenberger <[email protected]> + +- Rebase shared-library.diff. + +------------------------------------------------------------------- +Sun Nov 22 19:47:03 UTC 2026 - Bjørn Lie <[email protected]> + +- Update to version 3.2.0: + * Compiler changes: + + Bug fixes: + - Stop rejecting `->` and `=>` inside `reverse`. These operations are + both safe as they modify a string variable not the working string. + - Fix detection of read errors for piped input which were effectively + being ignored. Bug introduced in 3.1.0. + - The coverage counts for among functions were one too low. + - Drop use of `restrict` in compiler source as it seems it isn't + supported by MSVC 2019 and earlier. + + Compiler command-line options: + - Change how `-coverage` reports among functions. If the string matched + we used to always report a string match, and additionally either + "func-f" or "func-t" depending what the function signalled. Now we + only report one thing - if the string matches but the function signals + f we report "func-f"; if the string matches and the function signals t + we report a string match. This gives a report that seems clearer, and + requires logging and collating less data. + + Diagnostics: + - Report an "info" diagnostic when we don't localise a variable into a + recursive routine. + - Fix spurious extra output of variable name on a line by itself after an + "info" diagnostic saying we couldn't localise it. + - Routine "not reachable" warnings are now reported at the definition + which seems a better location than the declaration. + + Optimisations: + - Grow large symbol strings exponentially, like we already do for byte + strings. + - Eliminate some unnecessary copying when growing strings during + compilation. + + Code quality: + - Fix compiler memory leak when an unreachable routine contains an + `among`. + * Generic code generation changes: + + Optimisations: + - Improve variable localisation machinery, and fix some contrived cases + it was getting wrong. All variables which are only used in one + function after inlining in the shipped stemmers are now successfully + localised. + - Extend inlining to all calls to routines which consists of a single + non-compound Snowball command. The target language code generated for + such commands should be comparable in size to the target language code + to call a routine, and inlining may enable other optimisations + (variable localisation and folding `not` into integer tests, for + example). + - Inline any non-recursive routine which is only used once (where that + use is not as an among function). When there's only one use this + should if anything reduce the code size, and for target languages which + don't inline themselves it eliminates the overhead of a call. It may + also enable more variables to be localised. + - Normalise comparison with an integer literal so we merge equivalent + among actions such as this example from arabic.sbl: [substring] among ( + // [...] '{a}{n}' '{w}{n}' '{y}{n}' ($(len > 5) delete) // present + '{t}{m}{a}' ($(len >= 6) delete) ) + - Check for identical amongs and merge their tables. There are several + instances of this in tamil.sbl. + + Code quality: + - The Snowball manual says: For any string, the slice ends should be + assumed to be unset until they are set with the two commands `[` and + `]`. For many target languages, we actually initialise the slice ends + (either because the target language requires doing so, or because the + author of that generator thought it cleaner to do so, or perhaps just + followed an existing target language generator which did this). In + these situations, what the slice is set to does not matter since the + Snowball language doesn't define values, so we now simply set both the + slice start and end to 0 which is slightly simpler than the previous + setting of the slice end to the length of the string. + * Ada: + + Bug fixes: + - Generate valid Ada code for a Snowball routine/variable name which + contains `__`. + - Fix code generated for `=>`. We deprecated `=>` in 3.0.0, but ideally + we should generate code for it which actually compiles, and it was easy + to fix. + + Code quality: + - Use consistent case for `Debug()` helper function name. C - + * See also C/C++ section for changes affecting both C and C++.: + + Optimisations: + - We now statically check if errors from a command are possible, and if + not avoid generating extra code to propagate errors. + - Reduce the work done when creating a stemmer. We now memset() the + whole allocation to zero which also takes care of initialising + non-localised integer and boolean variables to 0. If there's only one + string variable we now skip pre-initialising it to NULL before we try + to allocate it (this preallocation is done to facilitate cleaning up if + we fail after partially allocating, but with only one string variable + this can't happen). We could skip this entirely if we know the + implementation uses all-zero-bits in memory representation for NULL + pointers, which all modern platforms seem to but the C standard doesn't + guarantee. However none of the current stemmers use more than one + string variable, so we now always avoid the overhead in practice. + - If an algorithm doesn't have any non-localised Snowball variables, then + its create_env() will just be `return SN_new_env(sizeof(struct + SN_env));` so create a common implementation of that (named + SN_new_env_no_vars) which we #define create_env to in the header. This + reduces code size for 31 of the 38 stemmers we currently ship. + - If an algorithm doesn't use strings then its close_env() only needs to + call `SN_delete_env()`. Both take the same parameters and return void, + so we now `#define` the close_env function to `SN_delete_env` in the + header which reduces code size and eliminates a small runtime overhead + for closing a stemmer. 35 of the 38 stemmers we currently ship benefit + from this. + - Use a more sensible initial string size. We were allocating only + enough space for a single character which meant we'd have to reallocate + as soon as we stem a word. + - Use putc() in debug() helper to write single characters. + + Code quality: + - Limit generated internal C identifier lengths. C90 only guarantees 31 + significant initial characters in an internal identifier. C99 raised + this to 63, and modern implementations are likely to have a high limit + or not impose one, but it is easy to instead generate a short + identifier using a number when the Snowball name is long. + - The code now compiles cleanly with MSVC with warning level `-W3` (which + is apparently the default warning level when using the IDE). C++ + * See also C/C++ section for changes affecting both C and C++.: + + Bug fixes: + - Generate valid C++ code for a Snowball routine/variable name which + contains `__`. + + Code quality: + - Fix location of comment which should be at the start of the generated + C++ stemmer source but was actually after all the generated header + includes. + + Documentation: + - Remove -c from C++ stemwords help. We don't support specifying the + character set in the C++ version. + + Other changes: + - Support generating wide-character stemmers which take and return + std::wstring and work in wchar_t. To use: make SNOWBALL_WIDE=1 clean + make SNOWBALL_WIDE=1 cxx make SNOWBALL_WIDE=1 check_cxx See #267 + * C/C++: + + Optimisations: + - Snowball `among` is now implemented as a state-machine. This gives a + better theoretical performance (the new implementation is O in the + number of cases instead of O(log(n)), and is also faster for the + current stemmers in benchmarks. The generated among tables are smaller + than those for the existing implementation. The generated among tables + are now just arrays of unsigned short, so require no dynamic load-time + relocations if Snowball-generated C/C++ code is included in a shared + library. Among gating functions are now called by generated code, which + means the C/C++ compiler can inline them and optimise better. The + Snowball generated code for non-widechars now needs to know the + endianness of the platform it is being built on. The runtime code + includes checks that should automatically detect this for GCC, clang + and MSVC. If the code can't determine the endianness it will #error at + C/C++ compile-time. In this case, if your platform has the POSIX + endian.h header then you can define HAVE_ENDIAN_H. Otherwise you'll + need to define either SNOWBALL_BIGENDIAN or SNOWBALL_LITTLEENDIAN. + - We now combine Snowball string literals which are identical to or a + substring of another literal, or where the end of one literal can be + overlapped with the start of another. This reduces the size of the + string data, which should improve CPU cache utilisation. Fixes #262. + + Documentation: + - Libstemmer_c_README: Document that libstemmer aims to support C90. + + Other changes: + - Flush stdout after each debug() call. The debug command (`?`) is not + performance sensitive, and it can be confusing if its output is delayed + by buffering. + * C: + + Other changes: + - Support Snowball debug command (`?`). + * Dart: + + Other changes: + - Support Snowball debug command (`?`). + * Go: + + Other changes: + - Properly implement Snowball debug command (`?`). + * Java: + + Other changes: + - Support Snowball debug command (`?`). + * Javascript: + + Code quality: + - Improve JSDoc TypeScript annotations. Closes #300, reported by + alex-kinokon. + - Replace most @ts-expect-error annotations with JSDoc cast annotations. + A cast is better as it is more targetted, and also more + self-documenting. + + Other changes: + - Support Snowball debug command (`?`). + * Pascal: + + Other changes: + - Support Snowball debug command (`?`). + * PHP: + + Code quality: + - Emit minimum length Unicode escapes. + + Other changes: + - Support Snowball debug command (`?`). + * Python: + + Documentation: + - Libstemmer_python_README: Note that Python 3.8 is the oldest version we + CI test with. + - Libstemmer_python_README: Fix typo. + + Other changes: + - Include classifier for pt_BR since we document that our Portuguese + stemmer "aims to work with both European Portuguese and Brazilian + Portuguese". + - Support Snowball debug command (`?`). + * Rust: + + Code quality: + - Emit minimum length Unicode escapes. + + Other changes: + - Support Snowball debug command (`?`). + * Zig: + + Other changes: + - Properly implement Snowball debug command (`?`). + * Snowball Language Changes: Handle `<-` in an arithmetic expression more + gracefully. In this context, the symbol `<-` isn't meaningful, so we now + interpret it as `<` followed by `-`. Examples such as `$x<-1` now parse + the same way as `$x < -1` instead of giving a syntax error. + * New stemming algorithms: + + Add stemmer for Early Modern English. This is a variant of the English + stemmer which was previously only described on the website, but seems + sufficiently useful to include in the distribution. Fixes #261. The + merged version includes some additional rules: + - Remove th'-, t'- + - Replace o'vr- with over- + - Replace -e'er with -ever + - Remove -edst (suggested by E. Timothy Uy in 2012!) + - Remove -'d, -'dly, -'dst, -'st, -'t + - Replace -'n, -'nd with -en + - Replace -'r, -'rous with -er + - Replace -'ri with -eri + - Replace -'li with -ili + - Replace -lie with -ly + - Normalise `æ` and `œ` and long-s. These ligatures appear in texts from + this era significantly more than in modern English. (Including `œ` + here means there's not an iso-8859-1 version of this stemmer.) + + Add Ukrainian stemmer from Dmitry Prudnikov. + * Behavioural changes to existing algorithms: + + French: + - Remove z'- which is a colloquial, non-standard elision (for "vous"), + and also a prefix used to represent a non-standard liaison within a + plural noun phrase, or eye dialect for a standard liaison. + https://en.wiktionary.org/wiki/z%27#French + * Build system: + + `make clean_runtime_tests` now first runs `make clean` for smoother + switching to runtime test mode. + + The build system now supports MSVC better. If CC matches `*cl` then it + uses Microsoft's `LIB` instead of `ar`, and Microsoft's non-standard + `-Fo:` and `-Fe:` instead of `-o` (which avoids lots of deprecation + warnings). Extensions `.o` and `.a` are still used (which triggers + warnings from MSVC). + + C++: Add missing dependency for runtime code. + + C/C++: Rename utilities.{c,cxx} to snowball_runtime.{c,cxx} to matches + the header snowball_runtime.h which contains the prototypes for the + external functions here. + + Modules.txt: Fix alphabetical ordering of entries. + * Libstemmer: + + Fix incorrect ISO 639-2/B code "pers" for Persian. This should be "per" + (these codes are all 3 letters long). + + Reduce load time relocations in libstemmer by using a suitably sized + char[] array in struct stemmer_encoding instead of const char*. + + Eliminate sentinel NULL entry at end of encodings array. We know the + length of the encodings list at compile time, so use that to limit + iteration. + * Testsuite: + + Expand runtime test coverage. Partly addresses #301. + + Add runtime test coverage for `?` (debug command). + + Fix compilation errors in stemtest.c, and actually run stemtest. + Regression introduced in v3.1.0. Fixes #295, reported by Duncan Bellamy. + * Documentation: NEWS: Removed unused subheading in old entry. + +------------------------------------------------------------------- Old: ---- snowball-3.1.1.tar.gz New: ---- snowball-3.2.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ snowball.spec ++++++ --- /var/tmp/diff_new_pack.KokazA/_old 2026-11-25 16:11:55.740745871 +0100 +++ /var/tmp/diff_new_pack.KokazA/_new 2026-11-25 16:11:55.742745957 +0100 @@ -19,7 +19,7 @@ %define library_name libstemmer1d Name: snowball -Version: 3.1.1 +Version: 3.2.0 Release: 0 Summary: Snowball compiler and stemming algorithms License: BSD-3-Clause ++++++ _scmsync.obsinfo ++++++ --- /var/tmp/diff_new_pack.KokazA/_old 2026-11-25 16:11:55.772747251 +0100 +++ /var/tmp/diff_new_pack.KokazA/_new 2026-11-25 16:11:55.774747337 +0100 @@ -1,7 +1,7 @@ -mtime: 1787241517 -commit: 3927a7a2dd17a36edf26a5e9b83fa3e8d2e88cc066754101b9247fe426d4235b +mtime: 1795450266 +commit: ea4910cfcebfc9ee0d0e4e950672317260759b420e4c6b1a253bfb702ac08d0f url: https://src.opensuse.org/GNOME/snowball -revision: 3927a7a2dd17a36edf26a5e9b83fa3e8d2e88cc066754101b9247fe426d4235b +revision: ea4910cfcebfc9ee0d0e4e950672317260759b420e4c6b1a253bfb702ac08d0f trackingbranch: factory projectscmsync: https://src.opensuse.org/GNOME/_ObsPrj ++++++ build.specials.obscpio ++++++ --- old/.gitignore 2026-08-20 17:58:37.000000000 +0200 +++ new/.gitignore 2026-11-23 17:11:06.000000000 +0100 @@ -2,3 +2,4 @@ *.osc _build.* .pbuild +osc-collab.* ++++++ build.specials.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.gitignore new/.gitignore --- old/.gitignore 1970-01-01 01:00:00.000000000 +0100 +++ new/.gitignore 2026-11-23 17:11:06.000000000 +0100 @@ -0,0 +1,5 @@ +*.obscpio +*.osc +_build.* +.pbuild +osc-collab.* ++++++ shared-library.diff ++++++ --- /var/tmp/diff_new_pack.KokazA/_old 2026-11-25 16:11:55.910753204 +0100 +++ /var/tmp/diff_new_pack.KokazA/_new 2026-11-25 16:11:55.912753290 +0100 @@ -9,27 +9,29 @@ Index: snowball-3.1.1/GNUmakefile =================================================================== ---- snowball-3.1.1.orig/GNUmakefile -+++ snowball-3.1.1/GNUmakefile -@@ -131,6 +131,8 @@ ICONV ?= iconv +diff --git a/GNUmakefile b/GNUmakefile +index 0ec11ae..ed9917c 100644 +--- a/GNUmakefile ++++ b/GNUmakefile +@@ -152,6 +152,8 @@ ICONV ?= iconv STEMMING_DATA ?= ../snowball-data STEMMING_DATA_ABS := $(abspath $(STEMMING_DATA)) - + +STEMWORDS=LD_LIBRARY_PATH=.:$(LD_LIBRARY_PATH) ./stemwords$(EXEEXT) + # Keep one in $(THIN_FACTOR) entries from gzipped vocabularies. THIN_FACTOR ?= 3 - -@@ -316,7 +318,7 @@ CPPFLAGS?= - + +@@ -337,7 +339,7 @@ CPPFLAGS?= + INCLUDES=-Iinclude - + -all: snowball$(EXEEXT) libstemmer.a stemwords$(EXEEXT) $(C_OTHER_SOURCES) $(C_OTHER_HEADERS) $(C_OTHER_OBJECTS) +all: snowball$(EXEEXT) libstemmer.a libstemmer.so stemwords$(EXEEXT) $(C_OTHER_SOURCES) $(C_OTHER_HEADERS) $(C_OTHER_OBJECTS) - + algorithms.mk: GNUmakefile libstemmer/mkalgorithms.pl $(MODULES) libstemmer/mkalgorithms.pl algorithms.mk $(MODULES) -@@ -377,7 +379,7 @@ $(COMPILER_OBJECTS): $(COMPILER_HEADERS) +@@ -398,7 +400,7 @@ $(COMPILER_OBJECTS): $(COMPILER_HEADERS) # each target language section. CLEANFILES := $(COMPILER_OBJECTS) $(RUNTIME_OBJECTS) \ $(LIBSTEMMER_OBJECTS) $(LIBSTEMMER_UTF8_OBJECTS) $(STEMWORDS_OBJECTS) snowball$(EXEEXT) \ @@ -38,63 +40,63 @@ libstemmer/modules.h \ libstemmer/modules_utf8.h \ stemtest$(EXEEXT) $(STEMTEST_OBJECTS) \ -@@ -426,17 +428,25 @@ libstemmer/libstemmer.o: libstemmer/modu +@@ -447,17 +449,25 @@ libstemmer/libstemmer.o: libstemmer/modules.h $(C_LIB_HEADERS) libstemmer.a: libstemmer/libstemmer.o $(RUNTIME_OBJECTS) $(C_LIB_OBJECTS) - $(AR) $(ARFLAGS) $@ $^ - + $(AR) $(ARFLAGS_)$@ $^ + +libstemmer.so: libstemmer/libstemmer.o $(RUNTIME_OBJECTS) $(C_LIB_OBJECTS) + $(CC) $(CFLAGS) -shared $(LDFLAGS) \ -+ -Wl,--version-script=debian/libstemmer.ver,-soname,libstemmer.so.0d \ -+ -o [email protected] ${^:%=.shared/%} -+ ln -s [email protected] [email protected] -+ ln -s [email protected] $@ ++ -Wl,--version-script=debian/libstemmer.ver,-soname,libstemmer.so.1d \ ++ -o [email protected] ${^:%=.shared/%} ++ ln -s [email protected] [email protected] ++ ln -s [email protected] $@ + $(AR) -crs ${@:.so=.a} $^ + examples/%.o: examples/%.c - $(CC) $(CFLAGS) $(INCLUDES) $(CPPFLAGS) -c -o $@ $< - + $(CC) $(CFLAGS) $(INCLUDES) $(CPPFLAGS) -c $(o_for_obj) $@ $< + -stemwords$(EXEEXT): $(STEMWORDS_OBJECTS) libstemmer.a -- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ +- $(CC) $(CFLAGS) $(LDFLAGS) $(o_for_exe) $@ $^ +stemwords$(EXEEXT): $(STEMWORDS_OBJECTS) libstemmer.so + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(STEMWORDS_OBJECTS) -L. -lstemmer - + tests/%.o: tests/%.c - $(CC) $(CFLAGS) $(INCLUDES) $(CPPFLAGS) -c -o $@ $< - + $(CC) $(CFLAGS) $(INCLUDES) $(CPPFLAGS) -c $(o_for_obj) $@ $< + -stemtest$(EXEEXT): $(STEMTEST_OBJECTS) libstemmer.a -- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ +- $(CC) $(CFLAGS) $(LDFLAGS) $(o_for_exe) $@ $^ +stemtest$(EXEEXT): $(STEMTEST_OBJECTS) libstemmer.so + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(STEMTEST_OBJECTS) -L. -lstemmer - + $(c_src_dir)/stem_UTF_8_%.c $(c_src_dir)/stem_UTF_8_%.h: $(ALGORITHMS)/%.sbl snowball$(EXEEXT) @mkdir -p $(c_src_dir) -@@ -455,7 +465,6 @@ $(c_src_dir)/stem_ISO_8859_2_%.c $(c_src +@@ -476,7 +486,6 @@ $(c_src_dir)/stem_ISO_8859_2_%.c $(c_src_dir)/stem_ISO_8859_2_%.h: $(ALGORITHMS) $(SNOWBALL_COMPILE) charsets/ISO-8859-2.sbl $< -o $@ -eprefix $*_ISO_8859_2_ -r ../runtime - + $(c_src_dir)/stem_%.o: $(c_src_dir)/stem_%.c $(c_src_dir)/stem_%.h -- $(CC) $(CFLAGS) $(INCLUDES) $(CPPFLAGS) -c -o $@ $< - +- $(CC) $(CFLAGS) $(INCLUDES) $(CPPFLAGS) -c $(o_for_obj) $@ $< + # C++ - -@@ -824,7 +833,7 @@ check_compilertest: tests/compilertest + +@@ -853,7 +862,7 @@ check_compilertest: tests/compilertest cd tests && ./compilertest - + check_stemtest: stemtest$(EXEEXT) - ./stemtest + LD_LIBRARY_PATH=.:$(LD_LIBRARY_PATH) ./stemtest - + check_utf8: $(libstemmer_algorithms:%=check_utf8_%) - -@@ -997,6 +1006,11 @@ CLEANFILES += $(go_src_main_dir)/stemwor - + +@@ -1026,6 +1035,11 @@ CLEANFILES += $(go_src_main_dir)/stemwords/algorithms.go + .PHONY: java check_java do_check_java - + +%.o: %.c + @mkdir -p $(shell dirname ${@:%=.shared/%}) + $(CC) $(CFLAGS) $(CPPFLAGS) -c -fPIC -o ${@:%=.shared/%} $< + $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< + .SUFFIXES: .class .java - + java: $(JAVA_CLASSES) $(JAVA_RUNTIME_CLASSES) ++++++ snowball-3.1.1.tar.gz -> snowball-3.2.0.tar.gz ++++++ ++++ 10245 lines of diff (skipped)
