public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/et] epel9: Unbundle Catch2 again
@ 2026-11-11 21:16 Michel Lind
0 siblings, 0 replies; only message in thread
From: Michel Lind @ 2026-11-11 21:16 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/et
Branch : epel9
Commit : 93ddfd01b0fa7f2e612492f55ed66d0021ecb827
Author : Michel Lind <salimma@fedoraproject.org>
Date : 2024-04-30T21:47:56-05:00
Stats : +6/-24 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/et/c/93ddfd01b0fa7f2e612492f55ed66d0021ecb827?branch=epel9
Log:
Unbundle Catch2 again
Signed-off-by: Michel Lind <salimma@fedoraproject.org>
---
diff --git a/et-unbundle-deps.diff b/et-unbundle-deps.diff
index cc5b599..81d105b 100644
--- a/et-unbundle-deps.diff
+++ b/et-unbundle-deps.diff
@@ -9,14 +9,7 @@
add_subdirectory(${EXTERNAL_DIR}/Catch2)
add_subdirectory(${EXTERNAL_DIR}/cxxopts)
add_subdirectory(${EXTERNAL_DIR}/cpp-httplib)
-@@ -118,11 +118,29 @@ include_directories(
- ${EXTERNAL_DIR}/cxxopts/include
- )
- else()
--find_package(Catch2 CONFIG REQUIRED)
-+if (NOT DISABLE_VCPKG)
-+ find_package(Catch2 CONFIG REQUIRED)
-+endif()
+@@ -122,7 +122,15 @@ find_package(Catch2 CONFIG REQUIRED)
find_package(httplib CONFIG REQUIRED)
find_package(cxxopts CONFIG REQUIRED)
find_package(nlohmann_json CONFIG REQUIRED)
@@ -24,24 +17,16 @@
+endif()
+
+if(USE_SYSTEM_PKGS)
-+# Fedora's Catch2 is too old
+# nlohmann_json packaging is broken
+# simpleini system package does not ship ConvertUTF.{c,h}
-+add_subdirectory(${EXTERNAL_DIR}/Catch2)
+include_directories(
+ ${EXTERNAL_DIR}/simpleini
+ ${INCLUDE_INSTALL_DIR}/nlohmann
+)
-+
-+get_cmake_property(_variableNames VARIABLES)
-+list (SORT _variableNames)
-+foreach (_variableName ${_variableNames})
-+ message(STATUS "${_variableName}=${${_variableName}}")
-+endforeach()
endif()
# Optional packages
-@@ -353,7 +371,6 @@ macro(DECORATE_FUZZER TARGET_NAME)
+@@ -353,7 +361,6 @@ macro(DECORATE_FUZZER TARGET_NAME)
endmacro()
include_directories(
@@ -49,7 +34,7 @@
${EXTERNAL_DIR}/PlatformFolders
${EXTERNAL_DIR}/ThreadPool
${EXTERNAL_DIR}/sole
-@@ -381,8 +398,8 @@ endif()
+@@ -381,8 +388,8 @@ endif()
add_library(
et-lib STATIC
diff --git a/et.spec b/et.spec
index 4535e27..9794af5 100644
--- a/et.spec
+++ b/et.spec
@@ -25,7 +25,7 @@ License: Apache-2.0
URL: https://mistertea.github.io/EternalTerminal/
Source0: https://github.com/MisterTea/EternalTerminal/archive/et-v%{version}.tar.gz
Source1: et.xml
-Patch2: et-unbundle-deps.diff
+Patch: et-unbundle-deps.diff
BuildRequires: boost-devel
BuildRequires: cmake3
@@ -38,6 +38,7 @@ BuildRequires: cxxopts-devel
BuildRequires: cxxopts-static
BuildRequires: easyloggingpp-devel
BuildRequires: easyloggingpp-static
+BuildRequires: catch-devel
BuildRequires: gflags-devel
BuildRequires: json-devel
BuildRequires: json-static
@@ -59,9 +60,6 @@ BuildRequires: systemd
# cat .gitmodules | grep submodule | sort
# for tarball, s/external/external_imported
Provides: bundled(base64) = 0
-# external_imported/catch2/meson.build
-# see rhbz#2278059 for upgrading the system Catch2
-Provides: bundled(catch2) = 3.3.2
# external_imported/cotire/CMake/cotire.cmake
Provides: bundled(cotire) = 1.8.0
# external/msgpack-c/include/msgpack/version_master.h
@@ -96,8 +94,7 @@ interrupting the session.
# %%setup -q -n EternalTerminal-et-v%%{version}
# Remove bundled Catch2 test framework
-# TODO: reenable after upgrading catch2 >= 3.3.2
-# rm -rf external_imported/Catch2
+rm -rf external_imported/Catch2
# Unbundle cpp-httplib
rm -rf external_imported/cpp-httplib
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-11 21:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-11 21:16 [rpms/et] epel9: Unbundle Catch2 again Michel Lind
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox