diff options
author | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
---|---|---|
committer | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
commit | 709c4d66e0b107ca606941b988bad717c0b45d9b (patch) | |
tree | 37ee08b1eb308f3b2b6426d5793545c38396b838 /packages/gnuplot/gnuplot-4.0.0/debian-separate-x11-package.patch | |
parent | fa6cd5a3b993f16c27de4ff82b42684516d433ba (diff) |
rename packages/ to recipes/ per earlier agreement
See links below for more details:
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Acked-by: Mike Westerhof <mwester@dls.net>
Acked-by: Philip Balister <philip@balister.org>
Acked-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Marcin Juszkiewicz <hrw@openembedded.org>
Acked-by: Koen Kooi <koen@openembedded.org>
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'packages/gnuplot/gnuplot-4.0.0/debian-separate-x11-package.patch')
-rw-r--r-- | packages/gnuplot/gnuplot-4.0.0/debian-separate-x11-package.patch | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/packages/gnuplot/gnuplot-4.0.0/debian-separate-x11-package.patch b/packages/gnuplot/gnuplot-4.0.0/debian-separate-x11-package.patch deleted file mode 100644 index 7afa0ee00e..0000000000 --- a/packages/gnuplot/gnuplot-4.0.0/debian-separate-x11-package.patch +++ /dev/null @@ -1,59 +0,0 @@ ---- gnuplot-4.0.0.orig/src/term.c -+++ gnuplot-4.0.0/src/term.c -@@ -1278,6 +1278,33 @@ - return (t); - } - -+#ifdef X11 -+int -+x11driver_found() -+{ -+ char *binname = "/gnuplot_x11"; -+ char *fullname; -+ struct stat buf; -+ -+ fullname = (char*)malloc(sizeof(X11_DRIVER_DIR) + sizeof(binname) + 1); -+ strcat(fullname, X11_DRIVER_DIR); -+ strcat(fullname, binname); -+ -+ /* exists? */ -+ if (stat(fullname, &buf)) { -+ free(fullname); -+ return 0; -+ } -+ -+ free(fullname); -+ /* executable? */ -+ if (buf.st_mode && S_IXOTH) -+ return 1; -+ -+ return 0; -+} -+#endif -+ - /* - * Routine to detect what terminal is being used (or do anything else - * that would be nice). One anticipated (or allowed for) side effect -@@ -1356,12 +1383,18 @@ - env_term = getenv("TERM"); /* try $TERM */ - if (term_name == (char *) NULL - && env_term != (char *) NULL && strcmp(env_term, "xterm") == 0) -- term_name = "x11"; -+ term_name = "x11"; - display = getenv("DISPLAY"); - if (term_name == (char *) NULL && display != (char *) NULL) -- term_name = "x11"; -+ term_name = "x11"; - if (X11_Display) -- term_name = "x11"; -+ term_name = "x11"; -+ /* if x11 was selected check for driver */ -+ if (term_name && (strcmp(term_name, "x11") == 0) && !x11driver_found() && isatty(fileno(stdin))) { -+ printf("*** X11 output driver not found, switching to dumb terminal!\n"); -+ printf("*** If you want to use the X11 output, please install the ""gnuplot-x11"" package\n"); -+ term_name = "dumb"; -+ }; - #endif /* x11 */ - - #ifdef AMIGA - |