SHA256
1
0
forked from pool/gnuplot

Accepting request 48141 from Publishing

checked in (request 48141)

OBS-URL: https://build.opensuse.org/request/show/48141
OBS-URL: https://build.opensuse.org/package/show/Publishing/gnuplot?expand=0&rev=16
This commit is contained in:
OBS User autobuild 2010-09-17 23:08:12 +00:00 committed by Git OBS Bridge
parent bf67bf5954
commit 20934586cf
5 changed files with 17 additions and 50 deletions

View File

@ -104,8 +104,8 @@
else if (*buffer == 'A')
sscanf(buffer + 1, "%lf", &plot->angle);
--- src/plot.c
+++ src/plot.c 2010-09-14 17:08:15.836458107 +0200
@@ -220,6 +220,7 @@ static int asked_privi = 0;
+++ src/plot.c 2009-05-09 11:32:24.000000000 +0000
@@ -222,6 +222,7 @@ static int asked_privi = 0;
void
drop_privilege()
{
@ -113,7 +113,7 @@
if (!asked_privi) {
euid = geteuid();
egid = getegid();
@@ -233,11 +234,13 @@ drop_privilege()
@@ -235,11 +236,13 @@ drop_privilege()
if (seteuid(ruid) == -1)
(void) fprintf(stderr, "seteuid(%d): %s\n",
(int) ruid, strerror(errno));
@ -127,7 +127,7 @@
if (!asked_privi) {
euid = geteuid();
egid = getegid();
@@ -251,6 +254,7 @@ take_privilege()
@@ -253,6 +256,7 @@ take_privilege()
if (seteuid(euid) == -1)
(void) fprintf(stderr, "seteuid(%d): %s\n",
(int) euid, strerror(errno));
@ -135,7 +135,7 @@
}
#endif /* LINUXVGA */
@@ -276,8 +280,8 @@ main(int argc, char **argv)
@@ -278,8 +282,8 @@ main(int argc, char **argv)
int i;
#ifdef LINUXVGA
@ -145,22 +145,23 @@
#endif
/* make sure that we really have revoked root access, this might happen if
gnuplot is compiled without vga support but is installed suid by mistake */
@@ -344,6 +348,22 @@ main(int argc, char **argv)
@@ -345,6 +349,23 @@ main(int argc, char **argv)
#if defined(HAVE_LIBEDITLINE)
rl_getc_function = getc_wrapper;
#endif
+
+#ifdef __linux__
+ if (!getenv("GNUHELP")) {
+ const char* msg = setlocale(LC_MESSAGES, NULL);
+ if (msg) {
+ char hfile[64];
+ struct stat buf;
+
+
+ strcpy (hfile, "/usr/share/gnuplot/4.0/gnuplot-");
+ strncat(hfile, msg, 2);
+ strcat (hfile, ".gih");
+ if (stat(hfile, &buf) == 0)
+ setenv("GNUHELP", strdup(hfile), 0);
+ setenv("GNUHELP", strdup(hfile), 0);
+ }
+ }
+#endif

3
gnuplot-4.4.0.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1b2e3e9b84cfe0d24f6de72b460dcb0117cf1e2d89014726be672a9ec3145ad8
size 2736120

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:89894efd3a3ae49ad3b3fc5cb12e1fb387620de810dabe02ad896ca84ab0a187
size 2739578

View File

@ -1,34 +1,3 @@
-------------------------------------------------------------------
Tue Sep 14 17:22:26 CEST 2010 - werner@suse.de
- Make doc package noarch
-------------------------------------------------------------------
Tue Sep 14 17:00:07 CEST 2010 - werner@suse.de
- Update to gnuplot 4.4.0
* NEW Support the "%s" format specifier in strftime()
* NEW Optional 6th data column in candlesticks style to specific box width
* NEW If integer arithmetic i*j or i**j would overflow, return value as a real
* NEW "set style circle radius <default-radius>"
* FIX autoconfiguration of readline support in OSX
* FIX font problems in win terminal
* FIX Protect against runaway recursion by limiting depth of nested functions
* FIX metapost terminal: Fix inheritance of line thickness by text strings
* FIX cairo terminals could segfault on certain enhanced text strings
* FIX pdfcairo output to stdout now works
* FIX font ",size" in non-enhanced mode postscript terminals
* FIX Do a better job of estimating the width of UTF-8 encoded strings
* FIX baseline bug in canvas terminal rotation of enhanced text
* FIX Allow "with labels" to work for binary input data
* FIX update user GPVAL variables after plot in table mode
* CHANGE depth-sorting of pm3d surfaces now applies jointly to all in the plot
* CHANGE 3D impulses are now always drawn from z=0
* CHANGE Enable HIDDEN_QUADTREE by default
* CHANGE Enable "set fit errorvariables" by default
* CHANGE Regardless of current timefmt, read time from binary files as a binary
* CHANGE do not limit 3D rotation to 0<rotx<180
-------------------------------------------------------------------
Thu May 20 12:44:38 CEST 2010 - werner@suse.de

View File

@ -1,5 +1,5 @@
#
# spec file for package gnuplot (Version 4.4.1)
# spec file for package gnuplot (Version 4.4.0)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@ -34,13 +34,13 @@ Url: http://www.gnuplot.info/
License: BSD3c(or similar)
Group: Productivity/Graphics/Visualization/Graph
AutoReqProv: on
Version: 4.4.1
Release: 1
Version: 4.4.0
Release: 3
Summary: GNUplot a Function Plotting Utility
Source0: gnuplot-%{version}.tar.bz2
Source2: gnuplot-fr.doc.bz2
Source3: README.whynot
Patch0: gnuplot-4.4.1.dif
Patch0: gnuplot-4.4.0.dif
Patch1: gnuplot-4.4.0-x11ovf.dif
Patch2: gnuplot-4.4.0-fonts.dif
Patch3: gnuplot-4.4.0-wxt.dif
@ -75,9 +75,6 @@ Group: Productivity/Graphics/Visualization/Graph
Requires: %{name}
Requires(post): %install_info_prereq
Requires(postun): %install_info_prereq
%if 0%{?suse_version} >= 1120
BuildArch: noarch
%endif
%description doc
GNUplot documentation files including the man and info pages. GNUplot