public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/python-pyroaring] f43: Respect system compiler flags (no -O3)
Date: Thu, 08 Oct 2026 14:02:28 GMT [thread overview]
Message-ID: <179146814868.1.6555147180696791623.rpms-python-pyroaring-6d7ab316a291@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-pyroaring
Branch : f43
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=f43
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++
reply other threads:[~2026-10-08 14:02 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=179146814868.1.6555147180696791623.rpms-python-pyroaring-6d7ab316a291@fedoraproject.org \
--to=code@musicinmybrain.net \
--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