[packages/neomutt] make sure compiler flags are not overridden

atler atler at pld-linux.org
Mon Oct 6 18:18:59 CEST 2025


commit 76dc572e8ba0b2b00ed9c71b056b2edcfebc194f
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Oct 6 18:17:57 2025 +0200

    make sure compiler flags are not overridden

 flags.patch  | 17 +++++++++++++++++
 neomutt.spec |  2 ++
 2 files changed, 19 insertions(+)
---
diff --git a/neomutt.spec b/neomutt.spec
index b17e494..cb83281 100644
--- a/neomutt.spec
+++ b/neomutt.spec
@@ -27,6 +27,7 @@ License:	GPL v2+
 Group:		Applications/Mail
 Source0:	https://github.com/neomutt/neomutt/archive/%{version}.tar.gz
 # Source0-md5:	95aa466aad9d3305ec81b429f0950616
+Patch0:		flags.patch
 Source1:	%{name}.desktop
 URL:		http://www.mutt.org/
 BuildRequires:	autoconf >= 2.54
@@ -147,6 +148,7 @@ Utility to add S/MIME certificate to the database used by neomutt.
 
 %prep
 %setup -q
+%patch -P0 -p1
 
 %{__sed} -i -e '1 s,#!.*env python3,#!%{__python3},' contrib/oauth2/mutt_oauth2.py
 
diff --git a/flags.patch b/flags.patch
new file mode 100644
index 0000000..365ebb5
--- /dev/null
+++ b/flags.patch
@@ -0,0 +1,17 @@
+--- neomutt-20250905/auto.def.orig	2025-09-05 15:38:48.000000000 +0200
++++ neomutt-20250905/auto.def	2025-10-06 14:01:38.268913954 +0200
+@@ -1139,14 +1139,6 @@
+ }
+ 
+ ###############################################################################
+-# Debug or Release build?
+-if {[get-define debug_build]} {
+-  define-append CFLAGS -g -O0
+-} else {
+-  define-append CFLAGS -O2
+-}
+-
+-###############################################################################
+ # Generate conststrings.c
+ proc remove-paths-from-cflags {} {
+   lkill [get-define CFLAGS] {{x} {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/neomutt.git/commitdiff/76dc572e8ba0b2b00ed9c71b056b2edcfebc194f



More information about the pld-cvs-commit mailing list