[arch-commits] Commit in cgns/trunk (PKGBUILD fix_matherr.patch)

Bruno Pagani archange at archlinux.org
Fri Aug 24 15:48:12 UTC 2018


    Date: Friday, August 24, 2018 @ 15:48:11
  Author: archange
Revision: 373734

Add patch to fix building with newer glibc

Added:
  cgns/trunk/fix_matherr.patch
Modified:
  cgns/trunk/PKGBUILD

-------------------+
 PKGBUILD          |    8 ++++-
 fix_matherr.patch |   70 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 76 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-08-24 15:35:21 UTC (rev 373733)
+++ PKGBUILD	2018-08-24 15:48:11 UTC (rev 373734)
@@ -16,11 +16,15 @@
 depends=('tk' 'hdf5' 'libxmu' 'glu')
 makedepends=('gcc-fortran' 'cmake')
 options=(!makeflags)
-source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/${_pkgname}/${_pkgname}/archive/v${pkgver}.tar.gz")
-sha256sums=('81093693b2e21a99c5640b82b267a495625b663d7b8125d5f1e9e7aaa1f8d469')
+source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/${_pkgname}/${_pkgname}/archive/v${pkgver}.tar.gz"
+        'fix_matherr.patch')
+sha256sums=('81093693b2e21a99c5640b82b267a495625b663d7b8125d5f1e9e7aaa1f8d469'
+            'a45a77c0587f01c9ebf4bbd4bfb65d3fcd15257d566821f35d71dc51bdbe6c63')
 
 prepare(){
     mkdir -p build
+    cd ${_pkgname}-${pkgver}
+    patch -p1 -i ../fix_matherr.patch
 }
 
 build() {

Added: fix_matherr.patch
===================================================================
--- fix_matherr.patch	                        (rev 0)
+++ fix_matherr.patch	2018-08-24 15:48:11 UTC (rev 373734)
@@ -0,0 +1,70 @@
+--- a/src/cgnstools/cgnscalc/calcwish.c
++++ a/src/cgnstools/cgnscalc/calcwish.c
+@@ -15,14 +15,6 @@
+ #include "tk.h"
+ #include "locale.h"
+ 
+-/*
+- * The following variable is a special hack that is needed in order for
+- * Sun shared libraries to be used for Tcl.
+- */
+-
+-extern int matherr();
+-int *tclDummyMathPtr = (int *) matherr;
+-
+ #ifdef TK_TEST
+ extern int		Tcltest_Init _ANSI_ARGS_((Tcl_Interp *interp));
+ extern int		Tktest_Init _ANSI_ARGS_((Tcl_Interp *interp));
+--- a/src/cgnstools/cgnsplot/plotwish.c
++++ b/src/cgnstools/cgnsplot/plotwish.c
+@@ -15,14 +15,6 @@
+ #include "tk.h"
+ #include "locale.h"
+ 
+-/*
+- * The following variable is a special hack that is needed in order for
+- * Sun shared libraries to be used for Tcl.
+- */
+-
+-extern int matherr();
+-int *tclDummyMathPtr = (int *) matherr;
+-
+ extern int Cgnstcl_Init _ANSI_ARGS_((Tcl_Interp *interp));
+ extern int Tkogl_Init _ANSI_ARGS_((Tcl_Interp *interp));
+ 
+--- a/src/cgnstools/cgnsview/cgiowish.c
++++ b/src/cgnstools/cgnsview/cgiowish.c
+@@ -15,14 +15,6 @@
+ #include "tk.h"
+ #include "locale.h"
+ 
+-/*
+- * The following variable is a special hack that is needed in order for
+- * Sun shared libraries to be used for Tcl.
+- */
+-
+-extern int matherr();
+-int *tclDummyMathPtr = (int *) matherr;
+-
+ #ifdef TK_TEST
+ extern int		Tcltest_Init _ANSI_ARGS_((Tcl_Interp *interp));
+ extern int		Tktest_Init _ANSI_ARGS_((Tcl_Interp *interp));
+--- a/src/cgnstools/tkogl/tkAppInit.c
++++ b/src/cgnstools/tkogl/tkAppInit.c
+@@ -2,16 +2,6 @@
+ #include <GL/gl.h>
+ #include "tkogl.h"
+ 
+-/*
+- * The following variable is a special hack that is needed in order for
+- * Sun shared libraries to be used for Tcl.
+- */
+-
+-#ifdef NEED_MATHERR
+-extern int matherr();
+-int *tclDummyMathPtr = (int *) matherr;
+-#endif
+-
+ int Tcl_AppInit(Tcl_Interp *interp) 	/* Interpreter for application. */
+ {
+    if (Tcl_Init(interp) == TCL_ERROR)  return TCL_ERROR;



More information about the arch-commits mailing list