From 3c8d6648ff028f879a01813259540ae7bd8b02fc Mon Sep 17 00:00:00 2001 From: tommat Date: Tue, 30 Jun 2009 09:04:22 +0000 Subject: [PATCH] - fix building on new gcc Changed files: clisp-gcc4.patch -> 1.1 clisp.spec -> 1.59 --- clisp-gcc4.patch | 11 +++++++++++ clisp.spec | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 clisp-gcc4.patch diff --git a/clisp-gcc4.patch b/clisp-gcc4.patch new file mode 100644 index 0000000..c8a9845 --- /dev/null +++ b/clisp-gcc4.patch @@ -0,0 +1,11 @@ +--- clisp-2.47/src/time.d.orig 2008-07-22 19:10:25.000000000 +0200 ++++ clisp-2.47/src/time.d 2009-06-30 10:53:19.000000000 +0200 +@@ -302,7 +302,7 @@ + #ifdef TIME_WIN32 + return L2_to_I(tp->dwHighDateTime,tp->dwLowDateTime); + #endif +-#elif TIME_METHOD = 1 ++#elif TIME_METHOD == 1 + return UL_to_I(*tp); + #else + #error internal_time_to_I: invalid TIME_METHOD diff --git a/clisp.spec b/clisp.spec index e4c078c..94b1815 100644 --- a/clisp.spec +++ b/clisp.spec @@ -16,6 +16,7 @@ Source0: http://dl.sourceforge.net/clisp/%{name}-%{version}.tar.bz2 # Source0-md5: 8fa89bb13e865fc7c7150b82682f35af Patch0: %{name}-shell.patch Patch1: %{name}-alpha.patch +Patch2: %{name}-gcc4.patch URL: http://clisp.cons.org/ BuildRequires: ffcall-devel BuildRequires: gettext-devel @@ -79,6 +80,7 @@ software livre, distribuído sob os termos da GNU GPL. %setup -q %patch0 -p1 #%patch1 -p1 +%patch2 -p1 # changing default -O to optflags causes memory fault on amd64 # - so something is broken... code or compiler -- 2.44.0