[packages/ruby-ncurses] add ruby-ncurses-fix-missing-tz-prototypes.patch
glen
glen at pld-linux.org
Sun Mar 20 13:24:40 CET 2016
commit 07ec780d07cdce9d75c676a6c72186dae583a4b6
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Mar 20 14:23:14 2016 +0200
add ruby-ncurses-fix-missing-tz-prototypes.patch
patch from fedora repo
ruby-ncurses-fix-missing-tz-prototypes.patch | 34 ++++++++++++++++++++++++++++
ruby-ncurses.spec | 2 ++
2 files changed, 36 insertions(+)
---
diff --git a/ruby-ncurses.spec b/ruby-ncurses.spec
index 4cb6ad0..6d6bb13 100644
--- a/ruby-ncurses.spec
+++ b/ruby-ncurses.spec
@@ -10,6 +10,7 @@ Source0: https://sourceforge.net/projects/ncurses-ruby.berlios/files/%{pkgname}-
# Source0-md5: 63fd3d09a51cdd745e1ed37f85621ea2
Patch0: %{name}-utf8.patch
Patch1: format-security.patch
+Patch2: ruby-ncurses-fix-missing-tz-prototypes.patch
URL: https://sourceforge.net/projects/ncurses-ruby.berlios/
BuildRequires: ncurses-devel
BuildRequires: rpm-rubyprov
@@ -67,6 +68,7 @@ Dokumentacji w formacie ri dla %{pkgname}.
%setup -q -n %{pkgname}-ruby-%{version}
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
ruby extconf.rb \
diff --git a/ruby-ncurses-fix-missing-tz-prototypes.patch b/ruby-ncurses-fix-missing-tz-prototypes.patch
new file mode 100644
index 0000000..c8c4ed9
--- /dev/null
+++ b/ruby-ncurses-fix-missing-tz-prototypes.patch
@@ -0,0 +1,34 @@
+From d3e59724601b2aabb231f2e12e16ebf00ba79ab1 Mon Sep 17 00:00:00 2001
+From: Caleb Marble <cm at marblenix.com>
+Date: Sun, 2 Mar 2014 13:53:05 -0600
+Subject: [PATCH] modified: ext/ncurses/ncurses_wrap.h
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Fixes the following compiler error:
+
+ext/ncurses/ncurses_wrap.c: In function ‘rbncurshelper_nonblocking_wgetch’:
+ext/ncurses/ncurses_wrap.c:807:12: error: variable ‘tz’ has initializer but incomplete type
+ struct timezone tz = {0,0};
+
+Also closes #6
+---
+ ncurses_wrap.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/ncurses_wrap.h b/ncurses_wrap.h
+index 85da4f8..92583c0 100644
+--- a/ncurses_wrap.h
++++ b/ncurses_wrap.h
+@@ -84,6 +84,7 @@ int close(int);
+ #endif
+
+ #include <ruby.h>
++#include <sys/time.h>
+
+ extern VALUE mNcurses; /* module Ncurses */
+ extern VALUE cWINDOW; /* class Ncurses::WINDOW */
+--
+1.9.1
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ruby-ncurses.git/commitdiff/07ec780d07cdce9d75c676a6c72186dae583a4b6
More information about the pld-cvs-commit
mailing list