pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/35533: gnuplot: 'pause' command doesn't work on NetBSD



>Number:         35533
>Category:       pkg
>Synopsis:       gnuplot: 'pause' command doesn't work on NetBSD
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 31 22:15:00 +0000 2007
>Originator:     Mátyás János
>Release:        NetBSD 3.1.0 i386
>Organization:
>Environment:
>Description:
In graphics/gnuplot the 'pause' command does nothing.

I think the problem is with #define GP_SLEEP in src/stdfn.h, it doesn't detects 
properly how to sleep on this platform.

I didn't tested, but the same problem should present at graphics/gnuplot-nox11 
package.
>How-To-Repeat:
Start gnuplot, then type in:

gnuplot> pause 10

This should wait 10 seconds, but nothing hapens. You get back the prompt 
immediately.
>Fix:
This worked for me (apply it in work.*/gnuplot-4.0.0 directory):

--- src/command.c       2004-04-13 15:00:01.000000000 +0200
+++ /tmp/command.c      2007-01-30 14:47:50.000000000 +0100
@@ -994,7 +994,7 @@
 #endif /* !(_Windows || OS2 || _Macintosh || MTOS || ATARI) */
     }
     if (sleep_time > 0)
-       GP_SLEEP(sleep_time);
+       sleep(sleep_time);

     if (text != 0 && sleep_time >= 0)
        fputc('\n', stderr);




Home | Main Index | Thread Index | Old Index