public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Artur Frenszek-Iwicki <fedora@svgames.pl>
To: git-commits@fedoraproject.org
Subject: [rpms/rmlint] f44: Update to v2.11.0
Date: Mon, 02 Nov 2026 10:47:40 GMT	[thread overview]
Message-ID: <179361646044.1.11712383512724520722.rpms-rmlint-293bb405d4d5@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rmlint
Branch : f44
Commit : 293bb405d4d525ed15e2ea5afa74afacfa01fc89
Author : Artur Frenszek-Iwicki <fedora@svgames.pl>
Date   : 2026-11-02T11:45:40+01:00
Stats  : +160/-33 in 5 file(s)
URL    : https://src.fedoraproject.org/rpms/rmlint/c/293bb405d4d525ed15e2ea5afa74afacfa01fc89?branch=f44

Log:
Update to v2.11.0

---
diff --git a/.gitignore b/.gitignore
index 71995a0..82cf077 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@
 /rmlint-2.10.1.tar.gz
 /rmlint-2.10.2.tar.gz
 /rmlint-2.10.3.tar.gz
+/rmlint-2.11.0.tar.gz

diff --git a/0001-Add-RPM_BUILD_ROOT-to-env.patch b/0001-Add-RPM_BUILD_ROOT-to-env.patch
index d6aaaf5..b6d05bd 100644
--- a/0001-Add-RPM_BUILD_ROOT-to-env.patch
+++ b/0001-Add-RPM_BUILD_ROOT-to-env.patch
@@ -1,25 +1,13 @@
-From fcf83b479620d5bea6b7c81bc1255ecc5b12daac Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= <zebob.m@gmail.com>
-Date: Tue, 21 Jun 2022 17:28:40 +0200
-Subject: [PATCH] Add RPM_BUILD_ROOT to env
-
----
- SConstruct | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/SConstruct b/SConstruct
-index 7e12d413..4a4f1497 100755
---- a/SConstruct
-+++ b/SConstruct
-@@ -538,7 +538,7 @@ options = dict(
-     PREFIX=GetOption('prefix'),
-     ENV = dict([ (key, os.environ[key])
-                  for key in os.environ
--                 if key in ['PATH', 'TERM', 'HOME', 'PKG_CONFIG_PATH']
-+                 if key in ['PATH', 'TERM', 'HOME', 'PKG_CONFIG_PATH', 'RPM_BUILD_ROOT']
-               ])
- )
+--- rmlint-2.11.0/SConstruct.orig	2026-11-02 00:30:58.000000000 +0100
++++ rmlint-2.11.0/SConstruct	2026-11-02 09:37:09.385109043 +0100
+@@ -190,9 +190,9 @@
+         key: os.environ[key]
+         for key in ('PATH', 'TERM', 'HOME',
+                     'PKG_CONFIG_PATH', 'PKG_CONFIG_LIBDIR', 'PKG_CONFIG_SYSROOT_DIR',
+                     'CPATH', 'C_INCLUDE_PATH', 'LIBRARY_PATH',
+-                    'SOURCE_DATE_EPOCH')
++                    'SOURCE_DATE_EPOCH', 'RPM_BUILD_ROOT')
+         if key in os.environ
+     } | {'TZ': 'UTC', 'LANG': 'C.UTF-8', 'LC_ALL': 'C.UTF-8'},
+ }
  
--- 
-2.36.1
-

diff --git a/0001-unbundle-blake3.patch b/0001-unbundle-blake3.patch
new file mode 100644
index 0000000..44430db
--- /dev/null
+++ b/0001-unbundle-blake3.patch
@@ -0,0 +1,131 @@
+diff -rU4 rmlint-2.11.0--orig/lib/checksum.c rmlint-2.11.0/lib/checksum.c
+--- rmlint-2.11.0--orig/lib/checksum.c	2026-11-02 00:30:58.000000000 +0100
++++ rmlint-2.11.0/lib/checksum.c	2026-11-02 10:29:27.927204908 +0100
+@@ -36,9 +36,9 @@
+ #include "utilities.h"
+ 
+ #include "checksums/highwayhash.h"
+ #include "checksums/blake2/blake2.h"
+-#include "checksums/blake3/blake3.h"
++#include <blake3.h>
+ #include "checksums/metrohash.h"
+ #include "checksums/murmur3.h"
+ #include "checksums/sha3/sha3.h"
+ #include "checksums/xxhash/xxhash.h"
+diff -rU4 rmlint-2.11.0--orig/lib/checksums/SConscript rmlint-2.11.0/lib/checksums/SConscript
+--- rmlint-2.11.0--orig/lib/checksums/SConscript	2026-11-02 00:30:58.000000000 +0100
++++ rmlint-2.11.0/lib/checksums/SConscript	2026-11-02 10:28:48.086770663 +0100
+@@ -1,73 +1,10 @@
+ Import('env')
+ 
+-# On x86 blake3 implements runtime CPU feature dispatch (via cpuid) to choose the
+-# best available SIMD implementation out of those compiled in. We build all of
+-# them unconditionally so the choice is made at runtime (based on the CPU that
+-# is executing rmlint) rather than at build time (based on the capabilities of
+-# the build host and/or the compilation flags which signify the baseline).
+-#
+-# On x86_64 we use the hand-written assembly sources which do not require any
+-# additional build flags. For i386 no assembly is provided, but the dispatch
+-# routine still looks for SIMD implementations, so we have to build the C sources
+-# and provide appropriate feature flags for each implementation.
+-#
+-# NB: We provide specific feature flags for each implementation (e.g. `-mavx2`
+-# for the AVX2 impl) *regardless* of the build target or the build CPU capabilities.
+-# This is safe and correct because the specific impl is chosen at runtime based
+-# on the executing CPU, and we do not "leak" the flags into other TUs.
+-#
+-# There is no runtime dispatch for aarch64 LE, compile-time BLAKE3_USE_NEON is used.
+-
+-blake3 = [
+-    File('blake3/blake3.c'),
+-    File('blake3/blake3_portable.c'),
+-]
+-
+-blake3_dispatch_flags = []
+-
+-if env['IS_X86_64']:
+-    print('Compiling BLAKE3 using x86_64 SIMD assembly')
+-    flavor = 'windows_gnu' if env['IS_WINDOWS'] or env['IS_CYGWIN'] else 'unix'
+-    blake3 += [
+-        File('blake3/blake3_%s_x86-64_%s.S' % (isa, flavor))
+-        for isa in ('sse2', 'sse41', 'avx2', 'avx512')
+-    ]
+-elif env['IS_X86']:
+-    print('Compiling BLAKE3 using x86 SIMD C intrinsics')
+-    blake3_simd_flags = {
+-        'sse2':   ['-msse2'],
+-        'sse41':  ['-msse4.1'],
+-        'avx2':   ['-mavx2'],
+-        'avx512': ['-mavx512f', '-mavx512vl'],
+-    }
+-    blake3 += [
+-        env.Object(
+-            'blake3/blake3_%s.c' % isa,
+-            CCFLAGS=env['CCFLAGS'] + flags,
+-        )
+-        for isa, flags in blake3_simd_flags.items()
+-    ]
+-elif env['IS_AARCH64_LE']:
+-    # We could manually set BLAKE3_USE_NEON, but blake3_impl.h autodetects
+-    # this at compile time, let it do it.
+-    print('Compiling BLAKE3 using AArch64 NEON')
+-    blake3 += [File('blake3/blake3_neon.c')]
+-    # Keep blake3 vendored verbatim for now, ignore the warning.
+-    # see https://github.com/BLAKE3-team/BLAKE3/pull/344
+-    if env['IS_CLANG']:
+-        blake3_dispatch_flags += ['-Wno-unreachable-code-aggressive']
+-else:
+-    print('Not compiling BLAKE3 SIMD implementations (none for this target)')
+-
+-blake3 += [env.Object('blake3/blake3_dispatch.c',
+-                      CCFLAGS=env['CCFLAGS'] + blake3_dispatch_flags)]
+-
+ sources = (
+     Glob('*.c') +
+     Glob('xxhash/*.c') +
+     Glob('blake2/*.c') +
+-    blake3 +
+     Glob('sha3/*.c')
+ )
+ 
+ Return('sources')
+diff -rU4 rmlint-2.11.0--orig/SConstruct rmlint-2.11.0/SConstruct
+--- rmlint-2.11.0--orig/SConstruct	2026-11-02 00:30:58.000000000 +0100
++++ rmlint-2.11.0/SConstruct	2026-11-02 10:35:09.326828051 +0100
+@@ -358,9 +358,9 @@
+ ])
+ 
+ 
+ conf.env.ParseConfig(PKG_CONFIG + ' --cflags --libs ' + ' '.join(packages))
+-conf.env.Append(_LIBFLAGS=['-lm'])
++conf.env.Append(_LIBFLAGS=['-lm', '-lblake3'])
+ 
+ conf.check_builtin_cpu_supports()
+ conf.check_blkid()
+ conf.check_sys_block()
+@@ -509,12 +509,8 @@
+ 
+     Find non-stripped binaries (needs libelf)             : {libelf}
+     Optimize using ioctl(FS_IOC_FIEMAP) (needs linux)     : {fiemap}
+     Metro SSE4.2 dispatch                                 : {crc_dispatch}
+-    BLAKE3 uses SIMD...
+-        ...x86_64 assembly                                : {blake3_simd_asm}
+-        ...x86 C intrinsics                               : {blake3_simd_c}
+-        ...AArch64 NEON                                   : {blake3_simd_neon}
+     Build manpage from docs/rmlint.1.rst                  : {sphinx}
+     Support for caching checksums in file's xattr         : {xattr}
+ 
+     Optimize non-rotational disks                         : {nonrotational}
+@@ -545,12 +541,8 @@
+         libelf=yesno(env['HAVE_LIBELF']),
+         fiemap=yesno(env['HAVE_FIEMAP']),
+         crc_dispatch=yesno(env['HAVE_BUILTIN_CPU_SUPPORTS'] & env['HAVE_MM_CRC32_U64']),
+ 
+-        blake3_simd_asm=yesno(env['IS_X86_64']),
+-        blake3_simd_c=yesno(env['IS_X86'] and not env['IS_X86_64']),
+-        blake3_simd_neon=yesno(env['IS_AARCH64_LE']),
+-
+         sphinx = f"{color('yes, using', 'green')}, {sphinx_bin}" if sphinx_bin else yesno(sphinx_bin),
+         xattr=yesno(env['HAVE_XATTR'] or env['HAVE_EXTATTR']),
+ 
+         nonrotational=yesno(env['HAVE_GIO_UNIX'] & env['HAVE_BLKID']),

diff --git a/rmlint.spec b/rmlint.spec
index f12aff4..9f0f363 100644
--- a/rmlint.spec
+++ b/rmlint.spec
@@ -1,7 +1,7 @@
 %undefine _package_note_file
 
 Name:           rmlint
-Version:        2.10.3
+Version:        2.11.0
 Release:        %autorelease
 Summary:        Find space waste and other broken things on your filesystem
 
@@ -16,19 +16,23 @@ License:        GPL-3.0-only AND LicenseRef-Callaway-MIT AND LicenseRef-Callaway
 URL:            https://rmlint.rtfd.org
 Source0:        https://github.com/sahib/rmlint/archive/v%{version}/%{name}-%{version}.tar.gz
 Patch0:         0001-Add-RPM_BUILD_ROOT-to-env.patch
+Patch1:         0001-unbundle-blake3.patch
 
 BuildRequires:  desktop-file-utils
 BuildRequires:  gcc
 BuildRequires:  gettext
 BuildRequires:  scons
 
+BuildRequires:  blake3-devel
 BuildRequires:  elfutils-libelf-devel
 BuildRequires:  glib2-devel
 BuildRequires:  json-glib-devel
 BuildRequires:  libblkid-devel
 BuildRequires:  sqlite-devel
 
+BuildRequires:  python3-build
 BuildRequires:  python3-devel
+BuildRequires:  python3-installer
 BuildRequires:  python3-setuptools
 BuildRequires:  python3-sphinx
 
@@ -53,6 +57,8 @@ Requires:       gtksourceview4
 # Can be removed in F44+.
 Obsoletes:      %{name} < 2.10.3
 
+%global shredder_rtld io.github.sahib.rmlint.Shredder
+
 %description gui
 rmlint-gui (a.k.a. Shredder) is a graphical user interface to rmlint.
 It uses rmlint to find space waste and other broken things on your filesystem
@@ -63,10 +69,12 @@ and offers to remove them.
 rmlint finds space waste and other broken things and offers to remove it.
 It is an extremely fast tool to remove duplicates from your filesystem.
 
-%global rmlint_scons_flags --prefix="%{buildroot}%{_prefix}" --actual-prefix="%{_prefix}" --libdir="%{_lib}" --without-compile-glib-schemas DEBUG=1 SYMBOLS=1 VERBOSE=1
+%global rmlint_scons_flags --without-compile-glib-schemas DEBUG=0 SYMBOLS=1 VERBOSE=1 PREFIX=%{_prefix} LIBDIR=%{_lib} DESTDIR=%{buildroot}
 
 %prep
 %autosetup -p1
+rm -rf lib/checksums/blake3/
+
 for f in `find gui/shredder -name "*.py"`; do
     sed '1{\@^#!/usr/bin/env python@d}' $f > $f.new &&
     touch -r $f $f.new &&
@@ -80,8 +88,7 @@ desktop-file-edit \
 
 
 %build
-scons config %{?_smp_mflags} %{rmlint_scons_flags}
-scons
+scons --show-config %{?_smp_mflags} %{rmlint_scons_flags}
 
 
 %install
@@ -90,7 +97,7 @@ scons install %{rmlint_scons_flags}
 
 
 %check
-desktop-file-validate %{buildroot}/%{_datadir}/applications/shredder.desktop
+desktop-file-validate %{buildroot}/%{_datadir}/applications/%{shredder_rtld}.desktop
 
 
 %files -f %{name}.lang
@@ -101,11 +108,11 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/shredder.desktop
 
 %files gui
 %{_bindir}/shredder
-%{_datadir}/applications/shredder.desktop
-%{_datadir}/glib-2.0/schemas/org.gnome.Shredder.gschema.xml
+%{_datadir}/applications/%{shredder_rtld}.desktop
+%{_datadir}/glib-2.0/schemas/%{shredder_rtld}.gschema.xml
 %{_datadir}/icons/hicolor/scalable/apps/shredder.svg
 %{python3_sitelib}/shredder/
-%{python3_sitelib}/shredder-%{version}-py*.egg-info
+%{python3_sitelib}/shredder-%{version}.dist-info/
 
 %changelog
 %autochangelog

diff --git a/sources b/sources
index 6360bbc..28618c3 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (rmlint-2.10.3.tar.gz) = b6b6522cf6bd98e9bd69134395f8088e620142cb99c88b5be0bfec5aeb0adbb4474f26a9f7c3a3c3ac4c909f362af7d77ea80e3e7495b07ccce5e38956a92bf4
+SHA512 (rmlint-2.11.0.tar.gz) = 09efdf22660c6b0e300b552f1730df59a2123f778bc02d45262f1c61f92df2845b36657a4b13ce04222a4e3aaf8c9c77d22c11838b3c647d238fc73ab176c387

                 reply	other threads:[~2026-11-02 10:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179361646044.1.11712383512724520722.rpms-rmlint-293bb405d4d5@fedoraproject.org \
    --to=fedora@svgames.pl \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox