public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Marcin Juszkiewicz <mjuszkiewicz@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-ssh-python] f45: Do not override RPM compiler flags - fixes build on non-LTO RISC-V
Date: Thu, 08 Oct 2026 13:44:17 GMT	[thread overview]
Message-ID: <179146705787.1.8265804328663295982.rpms-python-ssh-python-47ca624d9239@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/python-ssh-python
Branch : f45
Commit : 47ca624d92397ea93f75317a1cb0cf0df25fc0b9
Author : Marcin Juszkiewicz <mjuszkiewicz@redhat.com>
Date   : 2026-10-08T11:44:37+02:00
Stats  : +7/-1 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/python-ssh-python/c/47ca624d92397ea93f75317a1cb0cf0df25fc0b9?branch=f45

Log:
Do not override RPM compiler flags - fixes build on non-LTO RISC-V

---
diff --git a/python-ssh-python.spec b/python-ssh-python.spec
index b58d022..5428435 100644
--- a/python-ssh-python.spec
+++ b/python-ssh-python.spec
@@ -4,7 +4,7 @@
 
 Name:           python-%{modname}
 Version:        1.1.1
-Release:        11%{?dist}
+Release:        12%{?dist}
 Summary:        Bindings for libssh C library
 
 License:        GPL-2.0-or-later
@@ -44,6 +44,9 @@ Python 3 version.
 # No bundled libs
 rm -vrf libssh krb5-1.21.3 zlib-1.2.11
 sed -i -r 's:build_ssh[(].*:pass:' setup.py
+# Do not override RPM compiler flags - upstream -g0 -s strips debug info
+# It is a problem on RISC-V where we have LTO disabled (slow builders).
+sed -i "s/\['-O2', '-g0', '-s'\]/None/" setup.py
 # Remove pre-generated sources
 rm $(grep -rl '/\* Generated by Cython')
 
@@ -84,6 +87,9 @@ Summary:        %{summary} documentation
 %doc examples/ _build/html/
 
 %changelog
+* Thu Oct 08 2026 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 1.1.1-12
+- Do not override RPM compiler flags - fixes build on non-LTO RISC-V
+
 * Wed Jul 22 2026 Python Maint <python-maint@redhat.com> - 1.1.1-11
 - Rebuilt for Python 3.15.0b4 ABI change
 

                 reply	other threads:[~2026-10-08 13:44 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=179146705787.1.8265804328663295982.rpms-python-ssh-python-47ca624d9239@fedoraproject.org \
    --to=mjuszkiewicz@redhat.com \
    --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