[cuneiform] Workaround for buffer owerfloy issue.
Dmitrij S. Kryzhevich
krege at fedoraproject.org
Thu Oct 13 05:27:52 UTC 2011
commit c395961bb6c28afa8b5c16788a625863289a2500
Author: Dmitrij S. Kryzhevich <krege at land.ru>
Date: Thu Oct 13 12:27:12 2011 +0700
Workaround for buffer owerfloy issue.
cuneiform.spec | 23 +++++++++++++++++++----
1 files changed, 19 insertions(+), 4 deletions(-)
---
diff --git a/cuneiform.spec b/cuneiform.spec
index 8157e9b..db6de68 100644
--- a/cuneiform.spec
+++ b/cuneiform.spec
@@ -2,7 +2,7 @@ Name: cuneiform
License: BSD
Group: Applications/Productivity
Version: 1.1.0
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Command-line OCR system
Source: http://launchpad.net/cuneiform-linux/1.1/1.1/+download/%{name}-linux-%{version}.tar.bz2
@@ -30,10 +30,23 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
%setup -qn %{name}-linux-%{version}
%build
-mkdir builddir
-cd builddir
-%{cmake} -DCMAKE_BUILD_TYPE=relwithdebinfo ..
+
+export CFLAGS=`echo %{optflags} | sed -e s,-O2,,`
+export CXXFLAGS=`echo %{optflags} | sed -e s,-O2,,`
+export FFLAGS=`echo %{optflags} | sed -e s,-O2,,`
+
+mkdir %{_target_platform}
+pushd %{_target_platform}
+# old build string
+#%%{cmake} -DCMAKE_BUILD_TYPE=relwithdebinfo ..
+/usr/bin/cmake \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DCMAKE_INSTALL_PREFIX:PATH=/usr \
+ ..
+# "relwithdebinfo" will add -O2 to flags
+# -DCMAKE_BUILD_TYPE=relwithdebinfo \
make
+popd
%install
rm -rf %{buildroot}
@@ -60,6 +73,8 @@ rm -rf %{buildroot}
%{_libdir}/lib*.so
%changelog
+* Wed Oct 12 2011 Dmitrij S. Kryzhevich <krege at land.ru> - 1.1.0-4
+- Workaround buffer overflow problem.
* Mon Jun 06 2011 Dmitrij S. Kryzhevich <krege at land.ru> - 1.1.0-3
- Fix -devel Requires.
* Thu Apr 21 2011 Dmitrij S. Kryzhevich <krege at land.ru> - 1.1.0-2
More information about the scm-commits
mailing list