public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/opensurge] rawhide: Drop upstream -ffile-prefix-map flag to fix empty debugsource package
@ 2026-10-12 10:15 Marcin Juszkiewicz
  0 siblings, 0 replies; only message in thread
From: Marcin Juszkiewicz @ 2026-10-12 10:15 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/opensurge
Branch : rawhide
Commit : 9b2b5354a21e6c4d6d9b9957d7db45efe5e5dc67
Author : Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
Date   : 2026-10-08T10:47:28+02:00
Stats  : +27/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/opensurge/c/9b2b5354a21e6c4d6d9b9957d7db45efe5e5dc67?branch=rawhide

Log:
Drop upstream -ffile-prefix-map flag to fix empty debugsource package

---
diff --git a/opensurge-0.6.1.3-no-file-prefix-map.patch b/opensurge-0.6.1.3-no-file-prefix-map.patch
new file mode 100644
index 0000000..01975d3
--- /dev/null
+++ b/opensurge-0.6.1.3-no-file-prefix-map.patch
@@ -0,0 +1,19 @@
+From: Marcin Juszkiewicz <mjuszkiewicz@redhat.com>
+
+Upstream status: https://github.com/alemart/opensurge/issues/154
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 1234567..abcdefg 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -297,10 +297,6 @@ if(GAME_RUNINPLACE)
+   set_target_properties(${GAME_UNIXNAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}")
+ endif()
+
+-# Use relative paths in __FILE__ (reproducible builds)
+-if(NOT MSVC)
+-  target_compile_options(${GAME_UNIXNAME} PUBLIC "-ffile-prefix-map=${CMAKE_SOURCE_DIR}=.")
+-endif()
+
+
+

diff --git a/opensurge.spec b/opensurge.spec
index b6e7265..828b71d 100644
--- a/opensurge.spec
+++ b/opensurge.spec
@@ -15,11 +15,15 @@ Summary: 2D retro platformer inspired by Sonic games
 License: GPL-3.0-or-later AND BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
 
 Version: 0.6.1.3
-Release: 2%{?dist}
+Release: 3%{?dist}
 
 URL: https://opensurge2d.org
 Source0: https://github.com/alemart/opensurge/archive/v%{version}/%{name}-%{version}.tar.gz
 
+# Upstream sets -ffile-prefix-map which remaps source paths to "." in DWARF,
+# breaking RPM debugsource package generation (empty debugsourcefiles.list)
+Patch0: opensurge-0.6.1.3-no-file-prefix-map.patch
+
 BuildRequires: cmake
 BuildRequires: desktop-file-utils
 BuildRequires: gcc
@@ -136,6 +140,9 @@ appstream-util validate-relax --nonet %{buildroot}/%{_metainfodir}/%{name}.appda
 
 
 %changelog
+* Thu Oct 08 2026 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 0.6.1.3-3
+- Drop upstream -ffile-prefix-map flag to fix empty debugsource package
+
 * Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1.3-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-12 10:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-12 10:15 [rpms/opensurge] rawhide: Drop upstream -ffile-prefix-map flag to fix empty debugsource package Marcin Juszkiewicz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox