Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package snapraid for openSUSE:Factory checked in at 2025-05-12 16:50:58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/snapraid (Old) and /work/SRC/openSUSE:Factory/.snapraid.new.30101 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "snapraid" Mon May 12 16:50:58 2025 rev:2 rq:1276713 version:12.4 Changes: -------- --- /work/SRC/openSUSE:Factory/snapraid/snapraid.changes 2024-03-20 21:21:42.642281159 +0100 +++ /work/SRC/openSUSE:Factory/.snapraid.new.30101/snapraid.changes 2025-05-12 16:54:54.871873971 +0200 @@ -1,0 +2,8 @@ +Sat May 10 18:16:35 UTC 2025 - Andrea Manzini <[email protected]> + +- update to 12.4: + * Avoid a warning about function pointer conversion + +- added %check section to run internal test suite at build time + +------------------------------------------------------------------- Old: ---- snapraid-12.3.tar.gz New: ---- snapraid-12.4.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ snapraid.spec ++++++ --- /var/tmp/diff_new_pack.ddVEuU/_old 2025-05-12 16:54:56.291932748 +0200 +++ /var/tmp/diff_new_pack.ddVEuU/_new 2025-05-12 16:54:56.307933411 +0200 @@ -1,7 +1,7 @@ # # spec file for package snapraid # -# Copyright (c) 2024 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,7 +17,7 @@ Name: snapraid -Version: 12.3 +Version: 12.4 Release: 0 Summary: Disk array backup for many large rarely-changed files License: GPL-3.0-or-later @@ -38,6 +38,9 @@ %configure %make_build +%check +%make_build check + %install %make_install sed -i '/^#/! s/^/#/' snapraid.conf.example @@ -45,8 +48,8 @@ %files %license COPYING -%doc HISTORY README AUTHORS +%doc HISTORY README AUTHORS %{name}.txt %config %{_sysconfdir}/snapraid.conf %{_bindir}/snapraid -%{_mandir}/man1/snapraid.1* +%{_mandir}/man1/snapraid.1%{?ext_man} ++++++ snapraid-12.3.tar.gz -> snapraid-12.4.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/snapraid-12.3/.version new/snapraid-12.4/.version --- old/snapraid-12.3/.version 2024-01-22 22:00:58.000000000 +0100 +++ new/snapraid-12.4/.version 2025-01-23 20:44:18.000000000 +0100 @@ -1 +1 @@ -12.3 \ No newline at end of file +12.4 \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/snapraid-12.3/HISTORY new/snapraid-12.4/HISTORY --- old/snapraid-12.3/HISTORY 2024-01-10 14:22:09.000000000 +0100 +++ new/snapraid-12.4/HISTORY 2025-01-23 20:22:06.000000000 +0100 @@ -1,6 +1,10 @@ SnapRAID HISTORY ================ +12.4 2025/01 +============ + * Avoid a warning about function pointer conversion. No functional changes. + 12.3 2024/01 ============ * Fix potential integer overflow when computing the completion percentage. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/snapraid-12.3/TODO new/snapraid-12.4/TODO --- old/snapraid-12.3/TODO 2023-06-04 15:29:15.000000000 +0200 +++ new/snapraid-12.4/TODO 2025-01-23 20:22:06.000000000 +0100 @@ -5,10 +5,18 @@ - Next +* Add an option to ignore a specific Smart attribute. This solves PullRequest #17 an #21 + * Support BTRFS subvolumes. Keep track of the subvolumeid, along with the inode, and use it when searching/comparing inodes. The value 0 can be used for the root volume, like a normal filesystem. See: https://github.com/kdave/btrfs-progs/tree/master/libbtrfsutil +* A "dependents" output option to [--test-fmt file|disk|path|dependents] for LIST. +Example, snapraid LIST --test-fmt dependents >FileList_with_dependents.txt +The goal is a filelist that, for every file, includes full paths to the dependent files +on other data disks needed to repair that file (in addition to the parity data). + +I created a thread about it here: https://sourceforge.net/p/snapraid/discussion/1677233/thread/6e872fdae0/ - Minor * Add a new -u, --filter-updated command that filters files diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/snapraid-12.3/cmdline/scan.c new/snapraid-12.4/cmdline/scan.c --- old/snapraid-12.3/cmdline/scan.c 2023-12-09 11:41:02.000000000 +0100 +++ new/snapraid-12.4/cmdline/scan.c 2025-01-23 20:22:06.000000000 +0100 @@ -1674,7 +1674,6 @@ struct snapraid_scan* scan = i->data; struct snapraid_disk* disk = scan->disk; tommy_node* node; - unsigned phy_count; unsigned phy_dup; uint64_t phy_last; struct snapraid_file* phy_file_last; @@ -1757,7 +1756,6 @@ /* to reuse the just freed space */ /* also check if the physical offset reported are fakes or not */ node = scan->file_insert_list; - phy_count = 0; phy_dup = 0; phy_last = FILEPHY_UNREAD_OFFSET; phy_file_last = 0; @@ -1779,7 +1777,6 @@ } phy_file_last = file; phy_last = file->physical; - ++phy_count; } /* next node */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/snapraid-12.3/configure new/snapraid-12.4/configure --- old/snapraid-12.3/configure 2024-01-22 21:59:32.000000000 +0100 +++ new/snapraid-12.4/configure 2025-01-23 20:33:07.000000000 +0100 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for snapraid 12.3. +# Generated by GNU Autoconf 2.69 for snapraid 12.4. # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. @@ -577,8 +577,8 @@ # Identity of this package. PACKAGE_NAME='snapraid' PACKAGE_TARNAME='snapraid' -PACKAGE_VERSION='12.3' -PACKAGE_STRING='snapraid 12.3' +PACKAGE_VERSION='12.4' +PACKAGE_STRING='snapraid 12.4' PACKAGE_BUGREPORT='' PACKAGE_URL='http://www.snapraid.it' @@ -1304,7 +1304,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures snapraid 12.3 to adapt to many kinds of systems. +\`configure' configures snapraid 12.4 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1374,7 +1374,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of snapraid 12.3:";; + short | recursive ) echo "Configuration of snapraid 12.4:";; esac cat <<\_ACEOF @@ -1496,7 +1496,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -snapraid configure 12.3 +snapraid configure 12.4 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -2148,7 +2148,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by snapraid $as_me 12.3, which was +It was created by snapraid $as_me 12.4, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -3011,7 +3011,7 @@ # Define the identity of the package. PACKAGE='snapraid' - VERSION='12.3' + VERSION='12.4' cat >>confdefs.h <<_ACEOF @@ -4523,8 +4523,8 @@ fi -# Extract the first word of "wine", so it can be a program name with args. -set dummy wine; ac_word=$2 +# Extract the first word of "wine64", so it can be a program name with args. +set dummy wine64; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_WINE+:} false; then : @@ -4540,7 +4540,7 @@ test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_WINE="wine" + ac_cv_prog_WINE="wine64" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi @@ -7466,7 +7466,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by snapraid $as_me 12.3, which was +This file was extended by snapraid $as_me 12.4, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -7529,7 +7529,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -snapraid config.status 12.3 +snapraid config.status 12.4 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/snapraid-12.3/configure.ac new/snapraid-12.4/configure.ac --- old/snapraid-12.3/configure.ac 2022-08-17 17:30:58.000000000 +0200 +++ new/snapraid-12.4/configure.ac 2025-01-23 20:31:06.000000000 +0100 @@ -12,7 +12,7 @@ AC_PROG_CC AC_USE_SYSTEM_EXTENSIONS AC_CHECK_PROG([VALGRIND],[valgrind],[valgrind],[]) -AC_CHECK_PROG([WINE],[wine],[wine],[]) +AC_CHECK_PROG([WINE],[wine64],[wine64],[]) AC_CHECK_PROG([SDE],[sde],[sde],[]) AC_CHECK_PROG([ADVD2],[advd2],[advd2],[]) AM_CONDITIONAL(HAVE_ADVD2, [test x"$ADVD2" != x]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/snapraid-12.3/raid/tag.c new/snapraid-12.4/raid/tag.c --- old/snapraid-12.3/raid/tag.c 2015-08-04 07:44:00.000000000 +0200 +++ new/snapraid-12.4/raid/tag.c 2025-01-23 20:22:06.000000000 +0100 @@ -14,76 +14,78 @@ #include "internal.h" +typedef void (void_f)(void); + static struct raid_func { const char *name; - void (*p)(); + void_f* func; } RAID_FUNC[] = { - { "int8", raid_gen3_int8 }, - { "int8", raid_gen4_int8 }, - { "int8", raid_gen5_int8 }, - { "int8", raid_gen6_int8 }, - { "int32", raid_gen1_int32 }, - { "int64", raid_gen1_int64 }, - { "int32", raid_gen2_int32 }, - { "int64", raid_gen2_int64 }, - { "int32", raid_genz_int32 }, - { "int64", raid_genz_int64 }, - { "int8", raid_rec1_int8 }, - { "int8", raid_rec2_int8 }, - { "int8", raid_recX_int8 }, + { "int8", (void_f*)raid_gen3_int8 }, + { "int8", (void_f*)raid_gen4_int8 }, + { "int8", (void_f*)raid_gen5_int8 }, + { "int8", (void_f*)raid_gen6_int8 }, + { "int32", (void_f*)raid_gen1_int32 }, + { "int64", (void_f*)raid_gen1_int64 }, + { "int32", (void_f*)raid_gen2_int32 }, + { "int64", (void_f*)raid_gen2_int64 }, + { "int32", (void_f*)raid_genz_int32 }, + { "int64", (void_f*)raid_genz_int64 }, + { "int8", (void_f*)raid_rec1_int8 }, + { "int8", (void_f*)raid_rec2_int8 }, + { "int8", (void_f*)raid_recX_int8 }, #ifdef CONFIG_X86 #ifdef CONFIG_SSE2 - { "sse2", raid_gen1_sse2 }, - { "sse2", raid_gen2_sse2 }, - { "sse2", raid_genz_sse2 }, + { "sse2", (void_f*)raid_gen1_sse2 }, + { "sse2", (void_f*)raid_gen2_sse2 }, + { "sse2", (void_f*)raid_genz_sse2 }, #endif #ifdef CONFIG_SSSE3 - { "ssse3", raid_gen3_ssse3 }, - { "ssse3", raid_gen4_ssse3 }, - { "ssse3", raid_gen5_ssse3 }, - { "ssse3", raid_gen6_ssse3 }, - { "ssse3", raid_rec1_ssse3 }, - { "ssse3", raid_rec2_ssse3 }, - { "ssse3", raid_recX_ssse3 }, + { "ssse3", (void_f*)raid_gen3_ssse3 }, + { "ssse3", (void_f*)raid_gen4_ssse3 }, + { "ssse3", (void_f*)raid_gen5_ssse3 }, + { "ssse3", (void_f*)raid_gen6_ssse3 }, + { "ssse3", (void_f*)raid_rec1_ssse3 }, + { "ssse3", (void_f*)raid_rec2_ssse3 }, + { "ssse3", (void_f*)raid_recX_ssse3 }, #endif #ifdef CONFIG_AVX2 - { "avx2", raid_gen1_avx2 }, - { "avx2", raid_gen2_avx2 }, - { "avx2", raid_rec1_avx2 }, - { "avx2", raid_rec2_avx2 }, - { "avx2", raid_recX_avx2 }, + { "avx2", (void_f*)raid_gen1_avx2 }, + { "avx2", (void_f*)raid_gen2_avx2 }, + { "avx2", (void_f*)raid_rec1_avx2 }, + { "avx2", (void_f*)raid_rec2_avx2 }, + { "avx2", (void_f*)raid_recX_avx2 }, #endif #endif #ifdef CONFIG_X86_64 #ifdef CONFIG_SSE2 - { "sse2e", raid_gen2_sse2ext }, - { "sse2e", raid_genz_sse2ext }, + { "sse2e", (void_f*)raid_gen2_sse2ext }, + { "sse2e", (void_f*)raid_genz_sse2ext }, #endif #ifdef CONFIG_SSSE3 - { "ssse3e", raid_gen3_ssse3ext }, - { "ssse3e", raid_gen4_ssse3ext }, - { "ssse3e", raid_gen5_ssse3ext }, - { "ssse3e", raid_gen6_ssse3ext }, + { "ssse3e", (void_f*)raid_gen3_ssse3ext }, + { "ssse3e", (void_f*)raid_gen4_ssse3ext }, + { "ssse3e", (void_f*)raid_gen5_ssse3ext }, + { "ssse3e", (void_f*)raid_gen6_ssse3ext }, #endif #ifdef CONFIG_AVX2 - { "avx2e", raid_gen3_avx2ext }, - { "avx2e", raid_genz_avx2ext }, - { "avx2e", raid_gen4_avx2ext }, - { "avx2e", raid_gen5_avx2ext }, - { "avx2e", raid_gen6_avx2ext }, + { "avx2e", (void_f*)raid_gen3_avx2ext }, + { "avx2e", (void_f*)raid_genz_avx2ext }, + { "avx2e", (void_f*)raid_gen4_avx2ext }, + { "avx2e", (void_f*)raid_gen5_avx2ext }, + { "avx2e", (void_f*)raid_gen6_avx2ext }, #endif #endif { 0, 0 } }; -static const char *raid_tag(void (*func)()) +static const char *raid_tag(void_f* func) { struct raid_func *i = RAID_FUNC; while (i->name != 0) { - if (i->p == func) + if (i->func == func) return i->name; ++i; } @@ -95,51 +97,51 @@ const char *raid_gen1_tag(void) { - return raid_tag(raid_gen_ptr[0]); + return raid_tag((void_f*)raid_gen_ptr[0]); } const char *raid_gen2_tag(void) { - return raid_tag(raid_gen_ptr[1]); + return raid_tag((void_f*)raid_gen_ptr[1]); } const char *raid_genz_tag(void) { - return raid_tag(raid_genz_ptr); + return raid_tag((void_f*)raid_genz_ptr); } const char *raid_gen3_tag(void) { - return raid_tag(raid_gen_ptr[2]); + return raid_tag((void_f*)raid_gen_ptr[2]); } const char *raid_gen4_tag(void) { - return raid_tag(raid_gen_ptr[3]); + return raid_tag((void_f*)raid_gen_ptr[3]); } const char *raid_gen5_tag(void) { - return raid_tag(raid_gen_ptr[4]); + return raid_tag((void_f*)raid_gen_ptr[4]); } const char *raid_gen6_tag(void) { - return raid_tag(raid_gen_ptr[5]); + return raid_tag((void_f*)raid_gen_ptr[5]); } const char *raid_rec1_tag(void) { - return raid_tag(raid_rec_ptr[0]); + return raid_tag((void_f*)raid_rec_ptr[0]); } const char *raid_rec2_tag(void) { - return raid_tag(raid_rec_ptr[1]); + return raid_tag((void_f*)raid_rec_ptr[1]); } const char *raid_recX_tag(void) { - return raid_tag(raid_rec_ptr[2]); + return raid_tag((void_f*)raid_rec_ptr[2]); }
