[ucviewer] Fix rh#992831 - ucviewer: FTBFS in rawhide
paragn
paragn at fedoraproject.org
Wed Sep 18 10:10:39 UTC 2013
commit 557c8cd079f87222073610749d9c1c662e068bb6
Author: Parag Nemade <paragn at fedoraproject.org>
Date: Wed Sep 18 15:40:05 2013 +0530
Fix rh#992831 - ucviewer: FTBFS in rawhide
- Added patch which replaced lua_open by luaL_newstate function
ucviewer-20101019-lua_open-to-luaL_newstate.patch | 12 ++++++++++++
ucviewer.spec | 12 +++++++++---
2 files changed, 21 insertions(+), 3 deletions(-)
---
diff --git a/ucviewer-20101019-lua_open-to-luaL_newstate.patch b/ucviewer-20101019-lua_open-to-luaL_newstate.patch
new file mode 100644
index 0000000..944d26d
--- /dev/null
+++ b/ucviewer-20101019-lua_open-to-luaL_newstate.patch
@@ -0,0 +1,12 @@
+diff -urN ucviewer-20101019.old/src/controller/LuaController.cpp ucviewer-20101019/src/controller/LuaController.cpp
+--- ucviewer-20101019.old/src/controller/LuaController.cpp 2010-09-26 22:04:58.000000000 +0530
++++ ucviewer-20101019/src/controller/LuaController.cpp 2013-09-18 13:47:29.866668026 +0530
+@@ -152,7 +152,7 @@
+ void LuaController::init ()
+ {
+ // initialize Lua
+- L_ = lua_open();
++ L_ = luaL_newstate();
+
+ // load Lua base libraries
+ luaL_openlibs ( L_ );
diff --git a/ucviewer.spec b/ucviewer.spec
index 9116be6..b122cc7 100644
--- a/ucviewer.spec
+++ b/ucviewer.spec
@@ -4,7 +4,7 @@
Name: ucviewer
# The only place I could find a version was in the documentation.
Version: 0.1
-Release: 0.7.%{svndate}svn%{svnrev}%{?dist}
+Release: 0.8.%{svndate}svn%{svnrev}%{?dist}
Summary: A tool for browsing Unicode tables
Group: Applications/System
License: GPLv2+
@@ -21,6 +21,8 @@ Source1: %{name}.desktop
Patch0: %{name}-20101019-system-lua.patch
# Don't prompt on buildtype (and use sane system paths)
Patch1: %{name}-20101019-no-prompting.patch
+# lua_open() changed to luaL_newstate()
+Patch2: %{name}-20101019-lua_open-to-luaL_newstate.patch
BuildRequires: lua-devel, qt-devel
BuildRequires: desktop-file-utils
@@ -35,6 +37,7 @@ allows sorting according to an order specified in an allkeys.txt-File.
%setup -q -n %{name}-%{svndate}
%patch0 -p1 -b .system
%patch1 -p1 -b .no-prompting
+%patch2 -p1 -b .lua_open
%build
qmake-qt4
@@ -49,7 +52,6 @@ popd
desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE1}
%files
-%defattr(-,root,root,-)
%doc License.txt ReadMe.txt
%{_bindir}/UnicodeViewer
%{_datadir}/applications/ucviewer.desktop
@@ -57,6 +59,10 @@ desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE1}
%{_datadir}/UnicodeViewer/
%changelog
+* Wed Sep 18 2013 Parag <paragn AT fedoraproject DOT org> - 0.1-0.8.20101019svn4
+- Fix rh#992831 - ucviewer: FTBFS in rawhide
+- Added patch which replaced lua_open by luaL_newstate function
+
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.1-0.7.20101019svn4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
@@ -72,7 +78,7 @@ desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE1}
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.1-0.3.20101019svn4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
-* Wed Oct 19 2010 Tom "spot" Callaway <tcallawa at redhat.com> 0.1-0.2.20101019svn4
+* Tue Oct 19 2010 Tom "spot" Callaway <tcallawa at redhat.com> 0.1-0.2.20101019svn4
- fix license tag
- fix desktop file
More information about the fonts-bugs
mailing list