[gforth] another try to fix the build with -O2

Adrian Reber adrian at fedoraproject.org
Fri Jul 27 15:08:24 UTC 2012


commit 6c3622bd01b228d84ad32b7cf5e1e4bae7ac2c68
Author: Adrian Reber <adrian at lisas.de>
Date:   Fri Jul 27 17:08:21 2012 +0200

    another try to fix the build with -O2

 gforth-newline-null-local-array.patch |   24 +++++++++++++++++++++++-
 gforth.spec                           |    8 +++++++-
 2 files changed, 30 insertions(+), 2 deletions(-)
---
diff --git a/gforth-newline-null-local-array.patch b/gforth-newline-null-local-array.patch
index 5da7476..4e0e99d 100644
--- a/gforth-newline-null-local-array.patch
+++ b/gforth-newline-null-local-array.patch
@@ -1,5 +1,27 @@
+--- gforth-0.7.0/prim.b	2008-10-15 16:34:28.000000000 +0200
++++ gforth-0.7.0/prim.b	2008-07-27 16:35:35.134393648 +0200
+@@ -2889,7 +2889,7 @@
+ 
+ newline	( -- c_addr u )	gforth
+ ""String containing the newline sequence of the host OS""
+-char newline[] = {
++static const char newline[] = {
+ #if DIRSEP=='/'
+ /* Unix */
+ '\n'
+--- a/engine/prim.i	Wed Apr 18 14:16:09 2012 +0100
++++ b/engine/prim.i	Wed Apr 18 14:19:53 2012 +0100
+@@ -9766,7 +9766,7 @@
+ sp += -2;
+ {
+ #line 1954 "./prim"
+-char newline[] = {
++static const char newline[] = {
+ #if DIRSEP=='/'
+ /* Unix */
+ '\n'
 --- a/prim.old	2012-04-18 09:37:15.656620436 +0200
-+++ b/prim	2012-04-18 09:37:19.177624128 +0200
++++ b/prim	2008-04-18 09:37:19.177624128 +0200
 @@ -1950,7 +1950,7 @@
  
  newline	( -- c_addr u )	gforth
diff --git a/gforth.spec b/gforth.spec
index 2c4e1ca..a1360f0 100644
--- a/gforth.spec
+++ b/gforth.spec
@@ -1,6 +1,6 @@
 Name:           gforth
 Version:        0.7.0
-Release:        10%{?dist}
+Release:        11%{?dist}
 Summary:        Fast and portable implementation of the ANS Forth language
 
 Group:          Development/Languages
@@ -13,6 +13,7 @@ Patch1:		gforth-0.7.0-shebang.patch
 Patch2:		gforth-0.7.0-compile-fix.patch
 Patch3:		gforth-broken-disassembler.patch
 Patch4:		gforth-newline-null-local-array.patch
+Patch5:		gforth-libtool-build.patch
 BuildRequires:  m4 libtool-ltdl-devel
 BuildRequires:  libffi-devel
 Requires(post): /sbin/install-info
@@ -42,9 +43,11 @@ you can also use a traditional-style indirect threaded interpreter.
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
 #sed -i 's/-fforce-mem//' configure
 iconv -f latin1 -t utf8 AUTHORS > AUTHORS.new
 mv -f AUTHORS.new AUTHORS
+touch -d 2008-10-01 prim prim.b engine/prim.i
 
 
 %build
@@ -132,6 +135,9 @@ fi
 
 
 %changelog
+* Fri Jul 27 2012 Adrian Reber <adrian at lisas.de> - 0.7.0-11
+- another try to fix the build with -O2
+
 * Thu Jul 19 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.7.0-10
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 


More information about the scm-commits mailing list