From 7cacaca9972252dcb628d876ef2a1920d7f4029e Mon Sep 17 00:00:00 2001 From: AlmaLinux RelEng Bot Date: Tue, 19 May 2026 18:34:05 -0400 Subject: [PATCH] import UBI libsolv-0.7.33-2.el10 --- .gitignore | 2 +- ...t-for-computing-hashes-using-OpenSSL.patch | 60 +++++++-------- ...-color-filtering-when-adding-update-.patch | 74 +++++++++++++++++++ libsolv.spec | 66 +++++++++++++---- sources | 2 +- 5 files changed, 154 insertions(+), 50 deletions(-) create mode 100644 0002-Add-testcase-for-color-filtering-when-adding-update-.patch diff --git a/.gitignore b/.gitignore index 855fc45..fcd8695 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -libsolv-0.7.29.tar.gz +libsolv-0.7.33.tar.gz diff --git a/0001-Add-support-for-computing-hashes-using-OpenSSL.patch b/0001-Add-support-for-computing-hashes-using-OpenSSL.patch index b1af556..77e5bce 100644 --- a/0001-Add-support-for-computing-hashes-using-OpenSSL.patch +++ b/0001-Add-support-for-computing-hashes-using-OpenSSL.patch @@ -1,3 +1,7 @@ +From: Jonathan Wright +Date: Fri Jun 6 16:47:14 2025 -0500 +Subject: Rebase patch to libsolv-0.7.32 + From 49859c1ad32487de6adb65eedf4b81f021e1b0e8 Mon Sep 17 00:00:00 2001 From: Jaroslav Rohel Date: Fri, 25 Oct 2019 14:33:22 +0200 @@ -6,26 +10,20 @@ Subject: [PATCH] Add support for computing hashes using OpenSSL It adds WITH_OPENSSL build option. If it is ON, OpenSSL will be used instead of internal implementation of computing hashes (MD5, SHA1, SHA224, SHA256, SHA384, SHA512). ---- - CMakeLists.txt | 13 +++++++++++-- - src/CMakeLists.txt | 13 ++++++++++--- - src/chksum.c | 32 ++++++++++++++++++++++++++++++++ - tools/CMakeLists.txt | 2 +- - 4 files changed, 54 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt -index f899c49..23615bd 100644 +index 5ba5ed5..16750ae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -40,6 +40,7 @@ OPTION (ENABLE_ZCHUNK_COMPRESSION "Build with zchunk compression support?" OFF) +@@ -42,6 +42,7 @@ OPTION (ENABLE_ZCHUNK_COMPRESSION "Build with zchunk compression support?" OFF) OPTION (WITH_SYSTEM_ZCHUNK "Use system zchunk library?" OFF) OPTION (WITH_LIBXML2 "Build with libxml2 instead of libexpat?" OFF) OPTION (WITHOUT_COOKIEOPEN "Disable the use of stdio cookie opens?" OFF) +OPTION (WITH_OPENSSL "Use OpenSSL instead of internal implementation of hashes?" OFF) - include (GNUInstallDirs) - message (STATUS "Libraries will be installed in ${CMAKE_INSTALL_FULL_LIBDIR}") -@@ -164,6 +165,11 @@ INCLUDE_DIRECTORIES (${EXPAT_INCLUDE_DIRS}) + OPTION (ENABLE_STATIC_TOOLS "Link the tools against the static version of the libraries?" OFF) + OPTION (ENABLE_STATIC_BINDINGS "Link the bindings against the static version of the libraries?" OFF) +@@ -173,6 +174,11 @@ INCLUDE_DIRECTORIES (${EXPAT_INCLUDE_DIRS}) ENDIF (WITH_LIBXML2 ) ENDIF (ENABLE_RPMMD OR ENABLE_SUSEREPO OR ENABLE_APPDATA OR ENABLE_COMPS OR ENABLE_HELIXREPO OR ENABLE_MDKREPO) @@ -37,7 +35,7 @@ index f899c49..23615bd 100644 IF (ENABLE_ZLIB_COMPRESSION) FIND_PACKAGE (ZLIB REQUIRED) INCLUDE_DIRECTORIES (${ZLIB_INCLUDE_DIRS}) -@@ -288,8 +294,8 @@ ENDIF (${CMAKE_MAJOR_VERSION} GREATER 2) +@@ -292,8 +298,8 @@ check_linker_flag("-Wl,--version-script=${CMAKE_SOURCE_DIR}/src/libsolv.ver" HAV # should create config.h with #cmakedefine instead... FOREACH (VAR HAVE_STRCHRNUL HAVE_FOPENCOOKIE HAVE_FUNOPEN WORDS_BIGENDIAN @@ -48,7 +46,7 @@ index f899c49..23615bd 100644 IF(${VAR}) ADD_DEFINITIONS (-D${VAR}=1) SET (SWIG_FLAGS ${SWIG_FLAGS} -D${VAR}) -@@ -426,6 +432,9 @@ ENDIF (ENABLE_ZSTD_COMPRESSION) +@@ -432,6 +438,9 @@ ENDIF (ENABLE_ZSTD_COMPRESSION) IF (WITH_SYSTEM_ZCHUNK) SET (SYSTEM_LIBRARIES ${SYSTEM_LIBRARIES} ${ZCHUNK_LIBRARIES}) ENDIF (WITH_SYSTEM_ZCHUNK) @@ -59,23 +57,19 @@ index f899c49..23615bd 100644 SET (SYSTEM_LIBRARIES ${RPMDB_LIBRARY} ${SYSTEM_LIBRARIES}) ENDIF (ENABLE_RPMDB) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt -index ca04b39..a0ce267 100644 +index 25ad09b..4265dfb 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt -@@ -18,9 +18,9 @@ SET (libsolv_SRCS +@@ -18,7 +18,7 @@ SET (libsolv_SRCS solver.c solverdebug.c repo_solv.c repo_write.c evr.c pool.c queue.c repo.c repodata.c repopage.c util.c policy.c solvable.c transaction.c order.c rules.c problems.c linkedpkg.c cplxdeps.c - chksum.c md5.c sha1.c sha2.c solvversion.c selection.c -- fileprovides.c diskusage.c suse.c solver_util.c cleandeps.c -- userinstalled.c filelistfilter.c decision.c) -+ chksum.c solvversion.c selection.c fileprovides.c diskusage.c -+ suse.c solver_util.c cleandeps.c userinstalled.c -+ filelistfilter.c decision.c) ++ chksum.c solvversion.c selection.c + fileprovides.c diskusage.c suse.c solver_util.c cleandeps.c + userinstalled.c filelistfilter.c decision.c) - SET (libsolv_HEADERS - bitmap.h evr.h hash.h policy.h poolarch.h poolvendor.h pool.h -@@ -43,14 +43,21 @@ IF (WIN32) +@@ -47,6 +47,10 @@ IF (WIN32) LIST (APPEND libsolv_SRCS ${WIN32_COMPAT_SOURCES}) ENDIF (WIN32) @@ -86,8 +80,7 @@ index ca04b39..a0ce267 100644 IF (HAVE_LINKER_VERSION_SCRIPT) SET (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${LINK_FLAGS} -Wl,--version-script=${CMAKE_SOURCE_DIR}/src/libsolv.ver") ENDIF (HAVE_LINKER_VERSION_SCRIPT) - - IF (DISABLE_SHARED) +@@ -55,6 +59,9 @@ IF (DISABLE_SHARED) ADD_LIBRARY (libsolv STATIC ${libsolv_SRCS}) ELSE (DISABLE_SHARED) ADD_LIBRARY (libsolv SHARED ${libsolv_SRCS}) @@ -145,18 +138,15 @@ index 1f8ab47..9189b74 100644 #include "strfncs.h" #endif diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt -index f19030e..d477e19 100644 +index 4b3548a..c405743 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt -@@ -116,7 +116,7 @@ SET(tools_list ${tools_list} repo2solv) - ENDIF (NOT WIN32) +@@ -19,7 +19,7 @@ ENDIF (WIN32) + SET (tools_list testsolv mergesolv dumpsolv installcheck testsolv) ADD_EXECUTABLE (dumpsolv dumpsolv.c ) --TARGET_LINK_LIBRARIES (dumpsolv libsolv) -+TARGET_LINK_LIBRARIES (dumpsolv libsolv ${SYSTEM_LIBRARIES}) +-TARGET_LINK_LIBRARIES (dumpsolv ${LIBSOLV_TOOLS_LIBRARY}) ++TARGET_LINK_LIBRARIES (dumpsolv ${LIBSOLV_TOOLS_LIBRARY} ${SYSTEM_LIBRARIES}) - ADD_EXECUTABLE (mergesolv mergesolv.c ) - TARGET_LINK_LIBRARIES (mergesolv toolstuff libsolvext libsolv ${SYSTEM_LIBRARIES}) --- -libgit2 1.3.2 - + IF (ENABLE_RPMDB) + ADD_EXECUTABLE (rpmdb2solv rpmdb2solv.c) diff --git a/0002-Add-testcase-for-color-filtering-when-adding-update-.patch b/0002-Add-testcase-for-color-filtering-when-adding-update-.patch new file mode 100644 index 0000000..89470a4 --- /dev/null +++ b/0002-Add-testcase-for-color-filtering-when-adding-update-.patch @@ -0,0 +1,74 @@ +From 24a7a79595a1f7e35a4ac430d3075e27a9a1fc2f Mon Sep 17 00:00:00 2001 +From: Evan Goode +Date: Tue, 20 Jan 2026 14:11:40 -0500 +Subject: [PATCH] Add testcase for color filtering when adding update targets + +Related: https://github.com/openSUSE/libsolv/issues/583 +--- + ...est_multiarch_implicitobsoleteusescolors.t | 54 +++++++++++++++++++ + 1 file changed, 54 insertions(+) + create mode 100644 test/testcases/forcebest/forcebest_multiarch_implicitobsoleteusescolors.t + +diff --git a/test/testcases/forcebest/forcebest_multiarch_implicitobsoleteusescolors.t b/test/testcases/forcebest/forcebest_multiarch_implicitobsoleteusescolors.t +new file mode 100644 +index 00000000..97660e36 +--- /dev/null ++++ b/test/testcases/forcebest/forcebest_multiarch_implicitobsoleteusescolors.t +@@ -0,0 +1,54 @@ ++repo @System 0 testtags ++#>=Ver: 3.0 ++#>=Pkg: a 1 1 x86_64 ++#>=Prv: a = 1-1 ++#>=Con: c < 1-1 ++#> ++#>=Pkg: c 1 1 x86_64 ++#>=Req: c-dep = 1-1 ++#>=Prv: c = 1-1 ++#> ++#>=Pkg: c-dep 1 1 x86_64 ++#>=Prv: c-dep = 1-1 ++#> ++#>=Pkg: d 1 1 x86_64 ++#>=Req: c = 1-1 ++#>=Req: multiarch = 1-1 ++#>=Prv: d = 1-1 ++#> ++#>=Pkg: multiarch 1 1 x86_64 ++#>=Prv: multiarch = 1-1 ++ ++repo available 0 testtags ++#>=Ver: 3.0 ++#>=Pkg: a 2 2 x86_64 ++#>=Prv: a = 2-2 ++#>=Con: c < 2-2 ++#> ++#>=Pkg: c 2 2 x86_64 ++#>=Req: c-dep = 2-2 ++#>=Prv: c = 2-2 ++#> ++#>=Pkg: c-dep 2 2 x86_64 ++#>=Prv: c-dep = 2-2 ++#> ++#>=Pkg: d 2 2 x86_64 ++#>=Req: multiarch >= 2-2 ++#>=Prv: d = 2-2 ++#> ++#>=Pkg: multiarch 2 2 x86_64 ++#>=Prv: multiarch = 2-2 ++#> ++#>=Pkg: multiarch 2 2 i686 ++#>=Prv: multiarch = 2-2 ++ ++system x86_64 rpm @System ++poolflags implicitobsoleteusescolors ++solverflags bestobeypolicy ++job update oneof a-2-2.x86_64@available multiarch-1-1.x86_64@@System multiarch-2-2.i686@available [forcebest,targeted,setevr,setarch] ++result transaction,problems ++#>upgrade a-1-1.x86_64@@System a-2-2.x86_64@available ++#>upgrade multiarch-1-1.x86_64@@System multiarch-2-2.x86_64@available ++#>upgrade c-dep-1-1.x86_64@@System c-dep-2-2.x86_64@available ++#>upgrade c-1-1.x86_64@@System c-2-2.x86_64@available ++#>upgrade d-1-1.x86_64@@System d-2-2.x86_64@available +-- +2.52.0 + diff --git a/libsolv.spec b/libsolv.spec index 577a148..9f88f28 100644 --- a/libsolv.spec +++ b/libsolv.spec @@ -1,8 +1,8 @@ ## START: Set by rpmautospec -## (rpmautospec version 0.6.5) +## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: - release_number = 8; + release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} @@ -24,6 +24,7 @@ %bcond_without suse_repo %bcond_without debian_repo %bcond_without arch_repo +%bcond_without apk_repo # For handling deb + rpm at the same time %bcond_without multi_semantics %if %{defined rhel} @@ -36,17 +37,41 @@ %define __cmake_switch(b:) %[%{expand:%%{?with_%{-b*}}} ? "ON" : "OFF"] Name: lib%{libname} -Version: 0.7.29 +Version: 0.7.33 Release: %autorelease Summary: Package dependency solver +# LICENSE.BSD: BSD-3-Clause text +# other files: "read LICENSE.BSD" +# src/sha2.c: BSD-3-Clause +# src/sha2.h: BSD-3-Clause +## Used at build time but not in any binary package +# cmake/modules/_CMakeParseArguments.cmake: BSD-3-Clause +# cmake/modules/FindPackageHandleStandardArgs.cmake: BSD-3-Clause +# cmake/modules/FindRuby.cmake: BSD-3-Clause +# package/libsolv.spec.in: (project's license IF open-source) XOR (MIT IF not in open-source project) +## Not used at build time and not in any binary package +# src/qsort_r.c: BSD-3-Clause +# win32/LICENSE: MIT text AND BSD-2-Clause text +# win32/regcomp.c: BSD-2-Clause +# win32/regexec.c: BSD-2-Clause +# win32/tre.h: BSD-2-Clause +# win32/tre-mem.c: BSD-2-Clause + License: BSD-3-Clause +SourceLicense: %{license} AND BSD-2-Clause AND MIT URL: https://github.com/openSUSE/libsolv Source: %{url}/archive/%{version}/%{name}-%{version}.tar.gz + # Downstream-only, RHEL-41048 +# Submitted upstream https://github.com/openSUSE/libsolv/pull/598 Patch0: 0001-Add-support-for-computing-hashes-using-OpenSSL.patch -BuildRequires: cmake +# Downstream-only, RHEL-86205 +# Submitted upstream https://github.com/openSUSE/libsolv/pull/604 +Patch1: 0002-Add-testcase-for-color-filtering-when-adding-update-.patch + +BuildRequires: cmake >= 3.5 BuildRequires: gcc-c++ BuildRequires: ninja-build BuildRequires: pkgconfig(rpm) @@ -59,7 +84,7 @@ BuildRequires: pkgconfig(openssl) BuildRequires: xz-devel # -DENABLE_BZIP2_COMPRESSION=ON BuildRequires: bzip2-devel -%if %{with zstd} +%if %{with zchunk} || %{with zstd} || %{with apk} # -DENABLE_ZSTD_COMPRESSION=ON BuildRequires: libzstd-devel %endif @@ -90,6 +115,7 @@ Development files for %{name}. Summary: Utilities used by libzypp to manage .solv files Requires: %{name}%{?_isa} = %{version}-%{release} Provides: libsolv-tools:%{_bindir}/repo2solv +Conflicts: libsolv-tools < %{version} %description tools-base This subpackage contains utilities used by libzypp to manage solv files. @@ -98,7 +124,6 @@ This subpackage contains utilities used by libzypp to manage solv files. Summary: Package dependency solver tools Requires: %{name}%{?_isa} = %{version}-%{release} # repo2solv dependencies. Used as execl() -Requires: /usr/bin/find Requires: libsolv-tools-base = %{version}-%{release} %description tools @@ -164,6 +189,8 @@ rm src/{md5,sha1,sha2}.{c,h} -DENABLE_RPMDB_LIBRPM=ON \ -DENABLE_RPMPKG_LIBRPM=ON \ -DENABLE_RPMMD=ON \ + -DENABLE_STATIC_BINDINGS=OFF \ + -DENABLE_STATIC_TOOLS=OFF \ -DENABLE_COMPS=%{__cmake_switch -b comps} \ -DENABLE_APPDATA=%{__cmake_switch -b appdata} \ -DUSE_VENDORDIRS=ON \ @@ -180,6 +207,7 @@ rm src/{md5,sha1,sha2}.{c,h} -DENABLE_SUSEREPO=%{__cmake_switch -b suse_repo} \ -DENABLE_DEBIAN=%{__cmake_switch -b debian_repo} \ -DENABLE_ARCHREPO=%{__cmake_switch -b arch_repo} \ + -DENABLE_APK=%{__cmake_switch -b apk_repo} \ -DMULTI_SEMANTICS=%{__cmake_switch -b multi_semantics} \ -DENABLE_COMPLEX_DEPS=%{__cmake_switch -b complex_deps} \ -DENABLE_CONDA=%{__cmake_switch -b conda} \ @@ -205,7 +233,7 @@ export LD_LIBRARY_PATH=%{buildroot}%{_libdir} %files %license LICENSE* -%doc README +%doc NEWS README %{_libdir}/%{name}.so.* %{_libdir}/%{name}ext.so.* @@ -252,6 +280,9 @@ export LD_LIBRARY_PATH=%{buildroot}%{_libdir} %solv_tool archpkgs2solv %solv_tool archrepo2solv %endif +%if %{with apk_repo} + %solv_tool apk2solv +%endif %if %{with helix_repo} %solv_tool helix2solv %endif @@ -285,6 +316,15 @@ export LD_LIBRARY_PATH=%{buildroot}%{_libdir} %changelog ## START: Generated by rpmautospec +* Tue Jan 20 2026 Evan Goode - 0.7.33-2 +- Add testcase for color filtering when adding update targets + +* Mon Sep 08 2025 Jonathan Wright - 0.7.33-1 +- Rebase to 0.7.33 + +* Wed Nov 13 2024 Martin Banas - 0.7.29-9 +- Run dnf CI-Tier-1 tests for gating of libsolv as well + * Tue Oct 29 2024 Troy Dawson - 0.7.29-8 - Bump release for October 2024 mass rebuild: @@ -721,7 +761,7 @@ export LD_LIBRARY_PATH=%{buildroot}%{_libdir} * Wed Jul 20 2016 Igor Gnatenko - 0.6.22-5 - fix typo -* Wed Jul 20 2016 Igor Gnatenko +* Wed Jul 20 2016 Igor Gnatenko - 0.6.22-4 - Backport couple of patches from upstream * Tue Jul 19 2016 Fedora Release Engineering - 0.6.22-3 @@ -822,16 +862,16 @@ export LD_LIBRARY_PATH=%{buildroot}%{_libdir} * Wed Aug 05 2015 Colin Walters - 0.6.11-7 - Add missing leading 0 in conditional -* Wed Aug 05 2015 Jan Silhan +* Wed Aug 05 2015 Jan Silhan - 0.6.11-6 - uploaded new source for 1f9abfb -* Wed Aug 05 2015 Jan Silhan +* Wed Aug 05 2015 Jan Silhan - 0.6.11-5 - uploaded new source for 1f9abfb -* Wed Aug 05 2015 Jan Silhan +* Wed Aug 05 2015 Jan Silhan - 0.6.11-4 - uploaded new source for 1f9abfb -* Wed Aug 05 2015 Igor Gnatenko +* Wed Aug 05 2015 Igor Gnatenko - 0.6.11-3 - New version: 1f9abfb * Tue Aug 04 2015 Adam Williamson - 0.6.11-2 @@ -994,7 +1034,7 @@ export LD_LIBRARY_PATH=%{buildroot}%{_libdir} * Thu Jun 07 2012 Ales Kozumplik - 0.0.0-9 - Rebase to the latest upstream. -* Fri May 18 2012 Ales Kozumplik +* Fri May 18 2012 Ales Kozumplik - 0.0.0-8 - Rebase to upstream 8cf7650. * Thu Apr 12 2012 Ales Kozumplik - 0.0.0-7 diff --git a/sources b/sources index bd3d5d9..46f4891 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libsolv-0.7.29.tar.gz) = 5c76a4f2173999a7741ba613368209ee98942a82ca910ab455d19690ddade06d69a791406495a4bd50988c032fc6aa94b613fb00d54e1a5d36d6db1e8912599c +SHA512 (libsolv-0.7.33.tar.gz) = 10cbbe58c3c084593cccd3dfed9931296f8a3fe92843d7d42f732365039c1ab42ebca91a9778f991013650cd59f73f13b5d4de9ba3bb7cb845af98fe12256bee