Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rawtherapee for openSUSE:Factory checked in at 2026-04-12 18:47:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rawtherapee (Old) and /work/SRC/openSUSE:Factory/.rawtherapee.new.21863 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rawtherapee" Sun Apr 12 18:47:53 2026 rev:14 rq:1346204 version:5.12 Changes: -------- --- /work/SRC/openSUSE:Factory/rawtherapee/rawtherapee.changes 2025-11-27 15:21:56.653949060 +0100 +++ /work/SRC/openSUSE:Factory/.rawtherapee.new.21863/rawtherapee.changes 2026-04-12 18:48:00.303437772 +0200 @@ -1,0 +2,23 @@ +Tue Apr 7 13:13:18 UTC 2026 - Mia Herkt <[email protected]> + +- Add 0001-Fix-static-init-order-fiasco-crashes.patch + Fixes crash on application startup. + gh#RawTherapee/RawTherapee#7642 +- Spec file spring cleaning: + * Drop unsupported distros + Some of these have been EOL for a very long time, and non-SUSE + distros all have their own RawTherapee packages. + * Drop deprecated scriptlets/macros to match current packaging + guidelines + * Drop -fno-tree-vectorize workaround + This was drastically reducing performance and upstream already + applies appropriate flags for affected GCC versions. + * Use %cmake macros + * Avoid greedy wildcards in file list + * Mark license files for RPM metadata with %license and install + them to the correct directory +- Build with tcmalloc + Upstream explicitly supports this, and threaded applications + often see improvements in locality and memory fragmentation. + +------------------------------------------------------------------- New: ---- 0001-Fix-static-init-order-fiasco-crashes.patch ----------(New B)---------- New: - Add 0001-Fix-static-init-order-fiasco-crashes.patch Fixes crash on application startup. ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rawtherapee.spec ++++++ --- /var/tmp/diff_new_pack.uyeE0H/_old 2026-04-12 18:48:00.935463496 +0200 +++ /var/tmp/diff_new_pack.uyeE0H/_new 2026-04-12 18:48:00.939463659 +0200 @@ -1,7 +1,7 @@ # # spec file for package rawtherapee # -# Copyright (c) 2025 SUSE LLC and contributors +# Copyright (c) 2026 SUSE LLC and contributors # Copyright (c) 2022 Marcin Bajor # # All modifications and additions to the file contributed by third parties @@ -17,37 +17,40 @@ # -%define _name rawtherapee -%if (0%{?suse_version} || 0%{?sles_version}) -%define liblcms2_name liblcms2-2 -%else -%define liblcms2_name lcms2 -%endif +%define __builder ninja Name: rawtherapee Version: 5.12 -Release: 3%{?dist} +Release: 0 Summary: Cross-platform raw image processing program License: GPL-3.0-only -Group: Productivity/Graphics/Other URL: https://rawtherapee.com Source0: https://rawtherapee.com/shared/source/%{name}-%{version}.tar.xz +# PATCH-FIX-UPSTREAM -- Fixes crash on application startup -- https://github.com/RawTherapee/RawTherapee/issues/7642 +Patch0: https://raw.githubusercontent.com/digitalcarp/RawTherapee/refs/heads/meyer-5.12/patch/0001-Fix-static-init-order-fiasco-crashes.patch BuildRequires: cmake +BuildRequires: fdupes BuildRequires: gtk3-devel >= 3.24.3 +BuildRequires: ninja BuildRequires: pkgconfig BuildRequires: pkgconfig(exiv2) >= 0.24 +BuildRequires: pkgconfig(expat) BuildRequires: pkgconfig(fftw3) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(glibmm-2.4) -BuildRequires: pkgconfig(gtkmm-2.4) +BuildRequires: pkgconfig(gtkmm-3.0) +BuildRequires: pkgconfig(lcms2) >= 2.6 BuildRequires: pkgconfig(lensfun) +BuildRequires: pkgconfig(libcanberra-gtk3) BuildRequires: pkgconfig(libiptcdata) BuildRequires: pkgconfig(libjpeg) BuildRequires: pkgconfig(libjxl) BuildRequires: pkgconfig(libpng16) BuildRequires: pkgconfig(libraw) >= 0.21 +BuildRequires: pkgconfig(librsvg-2.0) >= 2.52 +BuildRequires: pkgconfig(libtcmalloc) BuildRequires: pkgconfig(libtiff-4) +BuildRequires: pkgconfig(sigc++-2.0) BuildRequires: pkgconfig(zlib) -Requires: %{liblcms2_name} >= 2.6 Conflicts: rawtherapee-gtk2 Conflicts: rawtherapee-gtk2-nosse Conflicts: rawtherapee-gtk2-nosse-unstable @@ -65,59 +68,6 @@ BuildRequires: gcc BuildRequires: gcc-c++ %endif -%if 0%{?suse_version} == 1315 -#!BuildIgnore: libgcc_s1 -%endif -%if 0%{?fedora_version} >= 24 -BuildRequires: libsigc++20-devel -%else -%if 0%{?mageia} -BuildRequires: libsigc++2.0-devel -%else -BuildRequires: pkgconfig(sigc++-2.0) -%endif -%endif -%if (0%{?suse_version} || 0%{?sles_version}) -BuildRequires: pkgconfig(gtkmm-3.0) -%else -%if 0%{?mageia} -BuildRequires: gtkmm3.0-devel -%else -BuildRequires: gtkmm30-devel -%endif -%endif -%if (0%{?suse_version} > 1320 || 0%{?sle_version} > 120100) || 0%{?mageia} -BuildRequires: pkgconfig(libcanberra-gtk3) -%else -BuildRequires: libcanberra-devel -%endif -%ifarch x86_64 -%if 0%{?fedora_version} -BuildRequires: libatomic -%endif -%endif -%if 0%{?mageia} -BuildRequires: libatomic-devel -%endif -%if (0%{?suse_version} || 0%{?fedora_version}) -BuildRequires: fdupes -%endif -%if (0%{?suse_version} || 0%{?sles_version}) -BuildRequires: update-desktop-files -BuildRequires: pkgconfig(expat) -BuildRequires: pkgconfig(lcms2) >= 2.6 -Requires(post): desktop-file-utils -Requires(postun): desktop-file-utils -%else -BuildRequires: desktop-file-utils -BuildRequires: expat-devel -BuildRequires: lcms2-devel >= 2.6 -%endif -%if 0%{?fedora_version} -BuildRequires: librsvg2-devel -%else -BuildRequires: pkgconfig(librsvg-2.0) >= 2.52 -%endif %description RawTherapee is a cross platform image processing software equipped with the essential tools for high quality and efficient RAW photo development. @@ -136,92 +86,49 @@ export CXX=g++-12 %endif -# Adding -fno-tree-loop-vectorize due to https://github.com/Beep6581/RawTherapee/issues/5749 -export CFLAGS="%(echo %{optflags} | sed 's/-O2/-O3/' | sed 's/-D_FORTIFY_SOURCE=2/-D_FORTIFY_SOURCE=3/') -fno-tree-loop-vectorize" +export CFLAGS="%(echo %{optflags} | sed 's/-O2/-O3/' | sed 's/-D_FORTIFY_SOURCE=2/-D_FORTIFY_SOURCE=3/')" export CXXFLAGS="$CFLAGS" %ifarch i386 i486 i586 i686 export CFLAGS+=" -msse2" export CXXFLAGS+=" -msse2" - -%if 0%{?fedora_version} == 24 - export CFLAGS=$(echo $CFLAGS | sed -e "s/\-mtune=atom//g") - export CXXFLAGS=$(echo $CXXFLAGS | sed -e "s/\-mtune=atom//g") -%endif - %endif echo "CFLAGS: "$CFLAGS echo "CXXFLAGS= "$CXXFLAGS -# FIXME: you should use the %%cmake macros -cmake \ - -DWITH_SYSTEM_LIBRAW=1 \ - -DCMAKE_INSTALL_PREFIX=%{_prefix} \ - -DLIBDIR=%{_libdir} \ - -DCMAKE_BUILD_TYPE=release \ - -DDOCDIR=%{_docdir}/%{_name} \ - -DCREDITSDIR=%{_docdir}/%{_name} \ - -DLICENCEDIR=%{_docdir}/%{_name} \ - -DCACHE_NAME_SUFFIX="" \ - -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ - -DCMAKE_C_FLAGS="$CFLAGS" . +# Because CMake variables have no implicit meaning and this project has a very +# liberal interpretation of “shared library”, BUILD_SHARED_LIBS will install a +# *static* library instead. Without headers. +%cmake \ + -DWITH_SYSTEM_LIBRAW=ON \ + -DENABLE_TCMALLOC=ON \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_SHARED_LIBS=OFF \ + -DDOCDIR=%{_docdir}/%{name} \ + -DCREDITSDIR=%{_docdir}/%{name} \ + -DLICENCEDIR=%{_datadir}/licenses/%{name} \ + -DCACHE_NAME_SUFFIX="" -%make_build +%cmake_build %install -%make_install - -%if (0%{?suse_version} || 0%{?sles_version}) -%suse_update_desktop_file %{_name} -%else -desktop-file-install --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/%{_name}.desktop -%endif +%cmake_install -%if (0%{?suse_version} || 0%{?fedora_version}) # create symlinks for man pages %fdupes -s %{buildroot}/%{_mandir} # create hardlinks for the rest %fdupes %{buildroot}/%{_prefix} -%endif - -%post - -%if (0%{?suse_version} || 0%{?sles_version}) -%desktop_database_post -%icon_theme_cache_post -%else -%{_bindir}/update-desktop-database &> /dev/null || : -/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : -%endif - -%postun - -%if (0%{?suse_version} || 0%{?sles_version}) -%desktop_database_postun -%icon_theme_cache_postun -%else -%{_bindir}/update-desktop-database &> /dev/null || : -if [ $1 -eq 0 ] ; then - /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null - %{_bindir}/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : -fi -%endif - -%posttrans - -%if !(0%{?suse_version} || 0%{?sles_version}) -%{_bindir}/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : -%endif %files - -%{_bindir}/* -%{_datadir}/applications/%{_name}.desktop -%dir %{_datadir}/metainfo/ +%dir %{_datadir}/licenses/%{name} +%license %{_datadir}/licenses/%{name}/* +%{_bindir}/%{name} +%{_bindir}/%{name}-cli +%{_datadir}/applications/%{name}.desktop %{_datadir}/metainfo/com.rawtherapee.RawTherapee.appdata.xml -%{_datadir}/%{_name}/ -%{_datadir}/icons/hicolor/*/apps/* -%{_docdir}/%{_name} -%{_mandir}/*/%{_name}* +%{_datadir}/%{name}/ +%{_datadir}/icons/hicolor/*/apps/%{name}.* +%{_docdir}/%{name} +%{_mandir}/man1/%{name}.1%{?ext_man} ++++++ 0001-Fix-static-init-order-fiasco-crashes.patch ++++++ ++++ 5811 lines (skipped)
