public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michel Lind <salimma@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/et] epel9: Unbundle Catch2 again
Date: Wed, 11 Nov 2026 21:16:06 GMT	[thread overview]
Message-ID: <179443176685.1.7018766014276089131.rpms-et-93ddfd01b0fa@fedoraproject.org> (raw)

            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

                 reply	other threads:[~2026-11-11 21:16 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=179443176685.1.7018766014276089131.rpms-et-93ddfd01b0fa@fedoraproject.org \
    --to=salimma@fedoraproject.org \
    --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