public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Tom Hughes <tom@compton.nu>
To: git-commits@fedoraproject.org
Subject: [rpms/catch] f45: Drop use of -ffile-prefix-map for RISC-V compatibility
Date: Wed, 02 Sep 2026 21:21:40 GMT	[thread overview]
Message-ID: <178838410064.1.11912260279696403293.rpms-catch-d7d66a61f30e@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/catch
Branch : f45
Commit : d7d66a61f30e76aded42276aee46027f8ff74f48
Author : Tom Hughes <tom@compton.nu>
Date   : 2026-09-02T18:38:01+01:00
Stats  : +30/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/catch/c/d7d66a61f30e76aded42276aee46027f8ff74f48?branch=f45

Log:
Drop use of -ffile-prefix-map for RISC-V compatibility

---
diff --git a/catch.spec b/catch.spec
index 20948e5..2424f9f 100644
--- a/catch.spec
+++ b/catch.spec
@@ -6,6 +6,8 @@ Summary:        Modern, C++-native, header-only, framework for unit-tests, TDD a
 License:        BSL-1.0
 URL:            https://github.com/catchorg/Catch2
 Source:         https://github.com/catchorg/Catch2/archive/v%{version}/Catch2-%{version}.tar.gz
+# https://github.com/catchorg/Catch2/issues/3198
+Patch:          file-prefix-map.patch
 
 BuildRequires:  cmake
 BuildRequires:  gcc-c++

diff --git a/file-prefix-map.patch b/file-prefix-map.patch
new file mode 100644
index 0000000..2524556
--- /dev/null
+++ b/file-prefix-map.patch
@@ -0,0 +1,28 @@
+From afa021f7820f03a15c0f39da197129addbd5b93d Mon Sep 17 00:00:00 2001
+From: Tom Hughes <tom@compton.nu>
+Date: Wed, 2 Sep 2026 18:36:36 +0100
+Subject: [PATCH] Drop use of -ffile-prefix-map
+
+https://github.com/catchorg/Catch2/issues/3198
+---
+ CMake/CatchMiscFunctions.cmake | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/CMake/CatchMiscFunctions.cmake b/CMake/CatchMiscFunctions.cmake
+index d1cf5fc2..47f6f4bf 100644
+--- a/CMake/CatchMiscFunctions.cmake
++++ b/CMake/CatchMiscFunctions.cmake
+@@ -115,7 +115,7 @@ endfunction()
+ # Currently only supports GCC and Clang
+ function(add_build_reproducibility_settings target)
+   # Make the build reproducible on versions of g++ and clang that supports -ffile-prefix-map
+-  if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang"))
+-    add_cxx_flag_if_supported_to_targets("-ffile-prefix-map=${CATCH_DIR}/=" "${target}")
+-  endif()
++  #if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang"))
++  #  add_cxx_flag_if_supported_to_targets("-ffile-prefix-map=${CATCH_DIR}/=" "${target}")
++  #endif()
+ endfunction()
+-- 
+2.55.0
+

                 reply	other threads:[~2026-09-02 21:21 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=178838410064.1.11912260279696403293.rpms-catch-d7d66a61f30e@fedoraproject.org \
    --to=tom@compton.nu \
    --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