[packages/aegisub] - do not override optimization CFLAGS - rel 14

baggins baggins at pld-linux.org
Wed Mar 18 19:49:11 CET 2020


commit 2787e333498ec6114111226144b8ca3b0da5b334
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Mar 18 19:46:45 2020 +0100

    - do not override optimization CFLAGS
    - rel 14

 aegisub.spec |  7 ++++++-
 cflags.patch | 22 ++++++++++++++++++++++
 2 files changed, 28 insertions(+), 1 deletion(-)
---
diff --git a/aegisub.spec b/aegisub.spec
index e2401ee..4e238f2 100644
--- a/aegisub.spec
+++ b/aegisub.spec
@@ -11,7 +11,7 @@ Summary:	Subtitle editor
 Summary(pl.UTF-8):	Edytor napisów
 Name:		aegisub
 Version:	3.2.2
-Release:	13
+Release:	14
 License:	BSD
 Group:		X11/Applications
 Source0:	http://ftp.aegisub.org/pub/releases/%{name}-%{version}.tar.xz
@@ -20,6 +20,7 @@ Patch0:		pthread.patch
 Patch1:		%{name}-icu.patch
 Patch2:		%{name}-icu64.patch
 Patch3:		%{name}-boost-1.70.patch
+Patch4:		cflags.patch
 URL:		http://www.aegisub.org/
 # AC_AGI_COMPILE tries to run test program which tries to open device and most likely fails
 #BuildRequires:	OpenAL-devel >= 0.0.8
@@ -90,12 +91,16 @@ obsługa tych zaawansowanych funkcji.
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 
 %{__mv} vendor{,.keep}
 mkdir vendor
 %{__mv} vendor.keep/{luabins,luajit,universalchardet} vendor
 
 %build
+%{__aclocal} -I m4macros
+%{__autoconf}
+%{__autoheader}
 %configure \
 	--disable-update-checker \
 	%{__with_without ffms2} \
diff --git a/cflags.patch b/cflags.patch
new file mode 100644
index 0000000..4aa2ebc
--- /dev/null
+++ b/cflags.patch
@@ -0,0 +1,22 @@
+--- aegisub-3.2.2/configure.ac~	2014-12-08 01:07:09.000000000 +0100
++++ aegisub-3.2.2/configure.ac	2020-03-18 14:58:15.307035878 +0100
+@@ -142,7 +142,7 @@
+   CFLAGS="$CFLAGS -Wall -Wextra -Wno-unused-parameter -std=gnu99 -pipe -g"
+   CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wno-unused-parameter -fno-strict-aliasing -pipe -g"
+   AC_CXX_FLAG([-std=c++11])
+-  AC_CXX_FLAG([-Wno-c++11-narrowing])
++  AC_CXX_FLAG([-Wno-narrowing])
+   AC_C_FLAG([-Wno-unused-local-typedefs])
+   AC_CXX_FLAG([-Wno-unused-local-typedefs])
+ 
+@@ -151,8 +151,8 @@
+     CFLAGS="$CFLAGS -O0"
+     CXXFLAGS="$CXXFLAGS -O0"
+   ], [
+-    CFLAGS="$CFLAGS -O3"
+-    CXXFLAGS="$CXXFLAGS -O3"
++    CFLAGS="$CFLAGS"
++    CXXFLAGS="$CXXFLAGS"
+   ])
+ ])
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/aegisub.git/commitdiff/2787e333498ec6114111226144b8ca3b0da5b334



More information about the pld-cvs-commit mailing list