public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michal Schorm <mschorm@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/mariadb-connector-c] f44: [bugfix] Disable '_FORTIFY_SOURCE' when building with '-O0' debug flags
Date: Thu, 25 Jun 2026 18:19:45 GMT [thread overview]
Message-ID: <178241158583.1.16815452019623482841.rpms-mariadb-connector-c-6bea6fee7a19@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/mariadb-connector-c
Branch : f44
Commit : 6bea6fee7a19a46592bdd56ee32723f0193f7e2a
Author : Michal Schorm <mschorm@redhat.com>
Date : 2026-06-24T20:21:38+02:00
Stats : +2/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/mariadb-connector-c/c/6bea6fee7a19a46592bdd56ee32723f0193f7e2a?branch=f44
Log:
[bugfix] Disable '_FORTIFY_SOURCE' when building with '-O0' debug flags
'-D_FORTIFY_SOURCE' requires at least '-O1' to function. The debug
build sets '-O0' via '%{_pkg_extra_cflags}', creating conflicting
flags. Undefine '%{_fortify_level}' so the fortification macro is
not emitted.
See b74fb13bdb57 in 'mariadb11.8' for the equivalent fix and
https://src.fedoraproject.org/rpms/redhat-rpm-config/blob/rawhide/f/buildflags.md
for the build flags macro reference.
Co-Authored-By: Claude AI <noreply@anthropic.com>
---
diff --git a/mariadb-connector-c.spec b/mariadb-connector-c.spec
index a8da2a1..fd941ab 100644
--- a/mariadb-connector-c.spec
+++ b/mariadb-connector-c.spec
@@ -7,6 +7,8 @@
%if %{with debug}
%global _pkg_extra_cflags -O0 -g
%global _pkg_extra_cxxflags -O0 -g
+# -D_FORTIFY_SOURCE requires some optimizations to be enabled. Disable the fortification.
+%undefine _fortify_level
%endif
reply other threads:[~2026-06-25 18:19 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=178241158583.1.16815452019623482841.rpms-mariadb-connector-c-6bea6fee7a19@fedoraproject.org \
--to=mschorm@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