Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package chasen for openSUSE:Factory checked in at 2025-06-23 15:02:18 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/chasen (Old) and /work/SRC/openSUSE:Factory/.chasen.new.7067 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "chasen" Mon Jun 23 15:02:18 2025 rev:26 rq:1287527 version:2.4.5 Changes: -------- --- /work/SRC/openSUSE:Factory/chasen/chasen.changes 2024-02-26 19:51:03.942217915 +0100 +++ /work/SRC/openSUSE:Factory/.chasen.new.7067/chasen.changes 2025-06-23 15:02:41.043324559 +0200 @@ -1,0 +2,8 @@ +Sat Jun 21 04:34:32 UTC 2025 - Marguerite Su <i...@marguerite.su> + +- add chasen-2.4.5-gcc15.patch + * C23 removes unprototyped functions and + void foo() starts to mean void foo(void) + rather than "foo takes any arguments" + +------------------------------------------------------------------- New: ---- chasen-2.4.5-gcc15.patch ----------(New B)---------- New: - add chasen-2.4.5-gcc15.patch * C23 removes unprototyped functions and ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ chasen.spec ++++++ --- /var/tmp/diff_new_pack.E2yD9N/_old 2025-06-23 15:02:41.615347798 +0200 +++ /var/tmp/diff_new_pack.E2yD9N/_new 2025-06-23 15:02:41.615347798 +0200 @@ -1,7 +1,7 @@ # # spec file for package chasen # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,16 +17,18 @@ Name: chasen -License: BSD-3-Clause -Group: System/I18n/Japanese Version: 2.4.5 Release: 0 Summary: Japanese Morphological Analysis System +License: BSD-3-Clause +Group: System/I18n/Japanese URL: https://osdn.net/projects/chasen-legacy Source0: %{URL}/downloads/56305/chasen-%{version}.tar.xz Patch1: chasen-decls.diff # PATCH-FIX-UPSTREAM Patch2: chasen-initialize-memory.patch +#PATCH-FIX-UPSTREAM fix arbitrary arguments +Patch3: chasen-2.4.5-gcc15.patch BuildRequires: darts BuildRequires: gcc-c++ BuildRequires: libtool @@ -86,9 +88,8 @@ ChaSen is a Japanese morphological analysis system. %package devel -License: BSD-3-Clause -Group: Development/Libraries/C and C++ Summary: Libraries and header files for ChaSen developers +Group: Development/Libraries/C and C++ Requires: %{name} = %{version} # Summary(ja): 茶筌のライブラリとヘッダファイルです. # %description -l ja devel @@ -99,13 +100,12 @@ Libraries and header files for ChaSen developers. %package -n perl-Text-ChaSen -License: BSD-3-Clause +Summary: ChaSen Perl Module Group: Development/Libraries/Perl Requires: %{name} = %{version} Requires: perl = %{perl_version} Provides: chasen-perl Obsoletes: chasen-perl -Summary: ChaSen Perl Module # Summary(ja): このモジュールは、「茶筌」をperlから扱うためのものです. # %description -l ja perl-Text-ChaSen # @@ -119,6 +119,7 @@ %setup -q %patch -P 1 %patch -P 2 -p1 +%patch -P 3 -p1 %build autoreconf --force --install @@ -129,33 +130,34 @@ %make_build pushd perl perl Makefile.PL - make INC="-I../src -I%{_prefix}/include -I/usr/include" \ + %make_build INC="-I../src -I%{_includedir} -I/usr/include" \ LDDLFLAGS="-shared -Wl,-rpath -Wl,%{_prefix}/lib -L../lib/.libs -lchasen" CCFLAGS="$CCFLAGS -Dna=PL_na -Dsv_undef=PL_sv_undef" popd %install %make_install -make -C perl DESTDIR="%{buildroot}" install_vendor +make -C perl DESTDIR=%{buildroot} install_vendor %perl_process_packlist -rm -f %{buildroot}%{_libdir}/*.la +find %{buildroot} -type f -name "*.la" -delete -print %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files -%doc AUTHORS COPYING ChangeLog NEWS README* +%license COPYING +%doc AUTHORS ChangeLog NEWS README* %doc doc/*.tex doc/*.pdf %{_bindir}/chasen %{_libdir}/*.so.* %{_libexecdir}/chasen %if 0%{?suse_version} < 1140 -%ghost /var/adm/perl-modules/chasen +%ghost %{_localstatedir}/adm/perl-modules/chasen %endif %files devel %{_bindir}/chasen-config -%{_prefix}/include/* +%{_includedir}/* %{_libdir}/*.so %files -n perl-Text-ChaSen ++++++ chasen-2.4.5-gcc15.patch ++++++ Index: chasen-2.4.5/lib/connect.c =================================================================== --- chasen-2.4.5.orig/lib/connect.c +++ chasen-2.4.5/lib/connect.c @@ -203,11 +203,11 @@ cha_check_table(lexicon_t * mrph) if (rensetu_tbl[0].hinsi == 0) qsort(rensetu_tbl, tbl_num, sizeof(rensetu_pair_t), - (int (*)()) cmp_pair); + (int (*)(const void *, const void *)) cmp_pair); ret = (rensetu_pair_t *) bsearch(mrph, rensetu_tbl, tbl_num_goi, - sizeof(rensetu_pair_t), (int (*)()) find_table); + sizeof(rensetu_pair_t), (int (*)(const void *, const void *)) find_table); if (ret) { mrph->con_tbl = ret->index; return 1; @@ -215,7 +215,7 @@ cha_check_table(lexicon_t * mrph) ret = (rensetu_pair_t *) bsearch(mrph, rensetu_tbl + tbl_num_goi, tbl_num - tbl_num_goi, - sizeof(rensetu_pair_t), (int (*)()) find_table); + sizeof(rensetu_pair_t), (int (*)(const void *, const void *)) find_table); if (ret) { mrph->con_tbl = ret->index; return 1; /* if no error, return 1 */ Index: chasen-2.4.5/lib/iotool.c =================================================================== --- chasen-2.4.5.orig/lib/iotool.c +++ chasen-2.4.5/lib/iotool.c @@ -362,7 +362,7 @@ FILE * cha_fopen_rcfile(void) { FILE *fp; - char *home_dir, *rc_env, *getenv(); + char *home_dir, *rc_env; /* * -R option (standard alone) Index: chasen-2.4.5/lib/print.c =================================================================== --- chasen-2.4.5.orig/lib/print.c +++ chasen-2.4.5/lib/print.c @@ -47,7 +47,7 @@ static int path_buffer[CHA_INPUT_SIZE]; static int pos_end = 0; -static void (*cha_putc) (), (*cha_puts) (), (*cha_printf) (), (*cha_write) (); +static void (*cha_putc) (int, char*), (*cha_puts) (char*, char*), (*cha_printf) (char*, char*, ...), (*cha_write) (void*, size_t, size_t, char*); void cha_print_reset(void)