public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-pyroaring] f45: Respect system compiler flags (no -O3)
@ 2026-10-08 13:38 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-10-08 13:38 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-pyroaring
Branch : f45
Commit : 6d7ab316a2912c9dfbaabf777fc87e2afe2de35a
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-10-08T13:26:47+01:00
Stats  : +34/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/python-pyroaring/c/6d7ab316a2912c9dfbaabf777fc87e2afe2de35a?branch=f45

Log:
Respect system compiler flags (no -O3)

---
diff --git a/0001-Respect-system-compiler-flags-no-O3.patch b/0001-Respect-system-compiler-flags-no-O3.patch
new file mode 100644
index 0000000..444ebff
--- /dev/null
+++ b/0001-Respect-system-compiler-flags-no-O3.patch
@@ -0,0 +1,28 @@
+From 28694e93817bbfff0b04e2a72ce71b51dcbcb104 Mon Sep 17 00:00:00 2001
+From: "Benjamin A. Beasley" <code@musicinmybrain.net>
+Date: Thu, 8 Oct 2026 13:25:11 +0100
+Subject: [PATCH] Respect system compiler flags (no -O3)
+
+---
+ setup.py | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index 68e663b..9105dc3 100755
+--- a/setup.py
++++ b/setup.py
+@@ -47,8 +47,9 @@ else:
+         compile_args.append('-mmacosx-version-min=10.14')
+     if 'DEBUG' in os.environ:
+         compile_args.extend(['-O0', '-g'])
+-    else:
+-        compile_args.append('-O3')
++    # https://docs.fedoraproject.org/en-US/packaging-guidelines/#_compiler_flags
++    # else:
++    #     compile_args.append('-O3')
+     if 'ARCHI' in os.environ:
+         if os.environ['ARCHI'] != "generic":
+             compile_args.extend(['-march=%s' % os.environ['ARCHI']])
+-- 
+2.55.0
+

diff --git a/python-pyroaring.spec b/python-pyroaring.spec
index cd4afe9..2adddab 100644
--- a/python-pyroaring.spec
+++ b/python-pyroaring.spec
@@ -8,6 +8,12 @@ License:        MIT or Apache-2.0
 URL:            https://github.com/Ezibenroc/PyRoaringBitMap
 Source:         %{url}/archive/%{version}/PyRoaringBitMap-%{version}.tar.gz
 
+# Respect system compiler flags (no -O3)
+#
+# Downstream-only because upstream validly wants to add -O3 (but we have not
+# proven it is justified).
+Patch:          0001-Respect-system-compiler-flags-no-O3.patch
+
 BuildRequires:  gcc
 BuildRequires:  gcc-c++
 

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

only message in thread, other threads:[~2026-10-08 13:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-08 13:38 [rpms/python-pyroaring] f45: Respect system compiler flags (no -O3) Benjamin A. Beasley

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