[arch-commits] Commit in ucblogo/trunk (2 files)

Evangelos Foutras foutrelis at archlinux.org
Wed Sep 9 16:52:11 UTC 2015


    Date: Wednesday, September 9, 2015 @ 18:52:10
  Author: foutrelis
Revision: 139691

Fix compilation failure due to random 'exp' define

Added:
  ucblogo/trunk/ucblogo-6.0-include-math.h-earlier.patch
Modified:
  ucblogo/trunk/PKGBUILD

------------------------------------------+
 PKGBUILD                                 |    3 ++
 ucblogo-6.0-include-math.h-earlier.patch |   34 +++++++++++++++++++++++++++++
 2 files changed, 37 insertions(+)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-09-09 16:05:55 UTC (rev 139690)
+++ PKGBUILD	2015-09-09 16:52:10 UTC (rev 139691)
@@ -13,15 +13,18 @@
 source=("http://www.cs.berkeley.edu/~bh/downloads/$pkgname.tar.gz"
         "$pkgname-$pkgver-no-wxWidgets.patch"
         "$pkgname-$pkgver-no-texinfo.patch"
+        "$pkgname-$pkgver-include-math.h-earlier.patch"
         'logo.sh')
 sha256sums=('c659e989e9284efc0f904ebd7de24b559c2d7434a98bb9c92c23e6c11b49cef3'
             'e360ac71ac785fa8b00b89ff0c5bf8ed738114013143245d3bc0e62eb7d0333d'
             'e83fb9d656a9064685cde5ebc0ee36242ac848228380b0567fe683901435707c'
+            '1e33b748bdf74550963c4052bf6feab8019cea34afa7b0d4eac71aa60c486583'
             '3dcf0a5472acda2343ff7d4942ff6589149929a50af92b0994fbb0520d2a3849')
 
 prepare() {
   patch -Np1 -i "$pkgname-$pkgver-no-wxWidgets.patch"
   patch -Np1 -i "$pkgname-$pkgver-no-texinfo.patch"
+  patch -Np0 -i "$pkgname-$pkgver-include-math.h-earlier.patch"
 }
 
 build() {

Added: ucblogo-6.0-include-math.h-earlier.patch
===================================================================
--- ucblogo-6.0-include-math.h-earlier.patch	                        (rev 0)
+++ ucblogo-6.0-include-math.h-earlier.patch	2015-09-09 16:52:10 UTC (rev 139691)
@@ -0,0 +1,34 @@
+diff -upr ucblogo-6.0.orig/coms.c ucblogo-6.0/coms.c
+--- ucblogo-6.0.orig/coms.c	2008-08-23 22:51:14.000000000 +0300
++++ ucblogo-6.0/coms.c	2015-09-09 19:48:45.375415764 +0300
+@@ -24,10 +24,11 @@
+ extern int check_wx_stop(int force_yield);
+ #endif
+ 
++#include <math.h>
++
+ #define WANT_EVAL_REGS 1
+ #include "logo.h"
+ #include "globals.h"
+-#include <math.h>
+ #ifdef HAVE_UNISTD_H
+ #include <unistd.h>
+ #endif
+diff -upr ucblogo-6.0.orig/graphics.c ucblogo-6.0/graphics.c
+--- ucblogo-6.0.orig/graphics.c	2008-09-03 20:58:13.000000000 +0300
++++ ucblogo-6.0/graphics.c	2015-09-09 19:49:04.289294029 +0300
+@@ -22,11 +22,12 @@
+ #ifdef WIN32
+ #include <windows.h>
+ #endif /* WIN32 */
+- 
++
++#include <math.h>
++
+ #define WANT_EVAL_REGS 1
+ #include "logo.h"
+ /*   #include "globals.h"   has been moved further down */
+-#include <math.h>
+ 
+ #ifdef HAVE_WX
+ #include "wxGraphics.h"



More information about the arch-commits mailing list