diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-mathematics/euler/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-mathematics/euler/files')
-rw-r--r-- | sci-mathematics/euler/files/command-gcc4-gentoo.patch | 12 | ||||
-rw-r--r-- | sci-mathematics/euler/files/configure-gentoo.patch | 37 | ||||
-rw-r--r-- | sci-mathematics/euler/files/euler-fortify.patch | 36 | ||||
-rw-r--r-- | sci-mathematics/euler/files/euler-glibc-2.4-gentoo.patch | 13 | ||||
-rw-r--r-- | sci-mathematics/euler/files/euler-xdg.patch | 23 |
5 files changed, 121 insertions, 0 deletions
diff --git a/sci-mathematics/euler/files/command-gcc4-gentoo.patch b/sci-mathematics/euler/files/command-gcc4-gentoo.patch new file mode 100644 index 000000000000..c405d65bd76e --- /dev/null +++ b/sci-mathematics/euler/files/command-gcc4-gentoo.patch @@ -0,0 +1,12 @@ +diff -Naur euler-1.61.0/src/command.c euler-1.61.0-new/src/command.c +--- euler-1.61.0/src/command.c 2005-10-24 00:38:24.000000000 +0000 ++++ euler-1.61.0-new/src/command.c 2006-02-08 23:30:43.000000000 +0000 +@@ -732,7 +732,7 @@ + } + + +-static int command_count; ++int command_count; + + commandtyp command_list[] = { + {"quit",c_quit,do_quit}, diff --git a/sci-mathematics/euler/files/configure-gentoo.patch b/sci-mathematics/euler/files/configure-gentoo.patch new file mode 100644 index 000000000000..e1e7c6ef1e6b --- /dev/null +++ b/sci-mathematics/euler/files/configure-gentoo.patch @@ -0,0 +1,37 @@ +diff -Naur euler-1.61.0/configure.in euler-1.61.0-new/configure.in +--- euler-1.61.0/configure.in 2005-10-30 16:40:27.000000000 +0000 ++++ euler-1.61.0-new/configure.in 2006-02-08 23:38:54.000000000 +0000 +@@ -8,8 +8,6 @@ + AM_CONFIG_HEADER(config.h) + + AC_ISC_POSIX +-CFLAGS="" +-AC_SUBST(CFLAGS) + AC_PROG_CC + AM_PROG_CC_STDC + AC_HEADER_STDC +@@ -21,6 +19,10 @@ + + + dnl Checks for libraries. ++dnl Check for libm for fmod() ++AC_SEARCH_LIBS([fmod], [m], [], [ ++ AC_MSG_ERROR([unable to find the fmod() function]) ++]) + + + dnl Checks for header files. +diff -Naur euler-1.61.0/src/Makefile.am euler-1.61.0-new/src/Makefile.am +--- euler-1.61.0/src/Makefile.am 2005-10-30 22:48:35.000000000 +0000 ++++ euler-1.61.0-new/src/Makefile.am 2006-02-08 23:41:32.000000000 +0000 +@@ -7,10 +7,6 @@ + INCLUDES = \ + $(GTK_CFLAGS) + +-AM_CFLAGS =\ +- -Wall\ +- -O3 +- + bin_PROGRAMS = euler + + euler_SOURCES = \ diff --git a/sci-mathematics/euler/files/euler-fortify.patch b/sci-mathematics/euler/files/euler-fortify.patch new file mode 100644 index 000000000000..efb366e2cc04 --- /dev/null +++ b/sci-mathematics/euler/files/euler-fortify.patch @@ -0,0 +1,36 @@ +diff -Nur euler-1.61.0.orig/src/command.c euler-1.61.0/src/command.c +--- euler-1.61.0.orig/src/command.c 2010-11-19 17:50:54.000000000 +0000 ++++ euler-1.61.0/src/command.c 2010-11-19 18:23:11.000000000 +0000 +@@ -606,7 +606,7 @@ + void do_help (void) + { char name[256]; + header *hd; +- int count,i,defaults; ++ size_t count,i,defaults; + char *p,*end,*pnote; + builtintyp *b; + scan_space(); +diff -Nur euler-1.61.0.orig/src/stack.h euler-1.61.0/src/stack.h +--- euler-1.61.0.orig/src/stack.h 2010-11-19 17:50:54.000000000 +0000 ++++ euler-1.61.0/src/stack.h 2010-11-19 18:19:23.000000000 +0000 +@@ -63,7 +63,7 @@ + #endif + } dims; + +-typedef struct { unsigned long s; } inttyp; ++typedef struct { size_t s; } inttyp; + + typedef struct { header hd; double val; } realtyp; + +diff -Nur euler-1.61.0.orig/src/udf.c euler-1.61.0/src/udf.c +--- euler-1.61.0.orig/src/udf.c 2010-11-19 17:50:54.000000000 +0000 ++++ euler-1.61.0/src/udf.c 2010-11-19 18:21:20.000000000 +0000 +@@ -334,7 +334,7 @@ + { char name[16]; + header *hd; + char *p,*pnote; +- int i,count,defaults; ++ size_t i,count,defaults; + builtintyp *b; + scan_space(); + scan_name(name); hd=searchudf(name); diff --git a/sci-mathematics/euler/files/euler-glibc-2.4-gentoo.patch b/sci-mathematics/euler/files/euler-glibc-2.4-gentoo.patch new file mode 100644 index 000000000000..da377bd5f3ba --- /dev/null +++ b/sci-mathematics/euler/files/euler-glibc-2.4-gentoo.patch @@ -0,0 +1,13 @@ +# patch to fix missing CLK_TCK in glibc 2.4 + +--- src/main.c. 2006-04-04 15:05:34.000000000 +0200 ++++ src/main.c 2006-04-04 15:09:20.000000000 +0200 +@@ -439,7 +439,7 @@ + gettimer(TIMEOFDAY,&t); + return (t.tv_sec+t.tv_nsec/1000000000.0); + #else +- return ((double)(times(NULL)))/CLK_TCK; ++ return ((double)(times(NULL)))/CLOCKS_PER_SEC; + #endif + } + diff --git a/sci-mathematics/euler/files/euler-xdg.patch b/sci-mathematics/euler/files/euler-xdg.patch new file mode 100644 index 000000000000..cb1bf54a2bbb --- /dev/null +++ b/sci-mathematics/euler/files/euler-xdg.patch @@ -0,0 +1,23 @@ +--- docs/doc.html.orig 2008-01-07 23:11:25.490634852 +0000 ++++ docs/doc.html 2008-01-07 23:13:57.652980222 +0000 +@@ -184,7 +184,8 @@ + <div align=center><img src="images/pref3.gif"></div> + + <p align="justify">Finally, You can set a flag to let Euler save preferences at exit (the default). +-You may choose another browser than the one suggested (netscape by default). And ++You may choose another browser than the one suggested (your default ++ desktop browser is selected with xdg-open by default). And + You can also reset the preferences to the default values.</p> + <div align=center><img src="images/pref4.gif"></div> + +--- src/rc.h.orig 2008-01-07 23:15:36.617118688 +0000 ++++ src/rc.h 2008-01-07 23:15:54.097371330 +0000 +@@ -26,7 +26,7 @@ + #define E_GSTACK_DEFAULT 4*1024l + #define E_GLINES_DEFAULT 40 + +-#define E_BROWSER_DEFAULT "netscape" ++#define E_BROWSER_DEFAULT "xdg-open" + + #define MAX_COLORS 16 + |