Set -Db_ndebug=true

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2019-03-25 17:02:56 +01:00
parent cd690bca58
commit d74221c906
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C
2 changed files with 34 additions and 2 deletions

View File

@ -0,0 +1,27 @@
From 1afae5c4e8e5fcb3028bb36cd4e1fa9c41600dd7 Mon Sep 17 00:00:00 2001
From: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Date: Mon, 25 Mar 2019 17:00:32 +0100
Subject: [PATCH] rpm: Always set b_ndebug to true
'if-release' does not catch buildtype=plain, so we need to do this.
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
---
data/macros.meson | 1 +
1 file changed, 1 insertion(+)
diff --git a/data/macros.meson b/data/macros.meson
index 05d21e58..431a90c3 100644
--- a/data/macros.meson
+++ b/data/macros.meson
@@ -21,6 +21,7 @@
--sharedstatedir=%{_sharedstatedir} \
--wrap-mode=%{__meson_wrap_mode} \
--auto-features=%{__meson_auto_features} \
+ -Db_ndebug=true \
%{_vpath_srcdir} %{_vpath_builddir} \
%{nil}}
--
2.21.0

View File

@ -4,12 +4,14 @@
Name: meson
Version: 0.50.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: High productivity build system
License: ASL 2.0
URL: http://mesonbuild.com/
Source0: https://github.com/mesonbuild/meson/archive/%{version}/%{name}-%{version}.tar.gz
Source: https://github.com/mesonbuild/meson/archive/%{version}/%{name}-%{version}.tar.gz
# https://github.com/mesonbuild/meson/pull/5142
Patch0001: 0001-rpm-Always-set-b_ndebug-to-true.patch
BuildArch: noarch
Obsoletes: %{name}-gui < 0.31.0-3
@ -101,6 +103,9 @@ export MESON_PRINT_TEST_OUTPUT=1
%{_datadir}/polkit-1/actions/com.mesonbuild.install.policy
%changelog
* Mon Mar 25 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.50.0-2
- Set -Db_ndebug=true
* Sun Mar 10 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.50.0-1
- Update to 0.50.0