pkgsrc/editors/TeXmacs/patches/patch-aj
wiz cb20f71334 Update TeXmacs to 1.99.5.
Explicitly does not support guile20, so let it use guile18 for now.

Changes from version 1.99.3 to 1.99.5
    Support for retina screens (1.99.5).
    Implementation of a better, still experimental, page breaking algorithm (1.99.5).
    Various improvements for the laptop presentation mode (1.99.5).
    Simplified editor for graphical slides in laptop presentations (1.99.5).
    Highly improved animations (1.99.5).
    An editing mode for simple animations based on morphing (1.99.5).
    Various graphical effects and font effects (1.99.5).
    Reorganizations in the configuration of TeXmacs (1.99.5).
    Improved rendering of pages, including a mode for double sided rendering, and a panorama mode (1.99.5).
    High quality mathematical typesetting for many standard fonts (1.99.5); see also the paper “Mathematical Font Art” presented at ICMS 2016.
    Rudimentary support for inking (1.99.5).
    Customizable snapping in graphics mode (1.99.5).
    Various enhancements and fixes for graphics mode (1.99.5).
    Various bug fixes (1.99.4).
    Various improvements for the table editor (1.99.4).
    Greek language support, with the help of Alkis Akritas (1.99.4).
    Experimental math editing mode that enforces syntactic correctness (1.99.3).
    A series of improvements in the converter to LaTeX (1.99.3).
    Tool for examining errors in the LaTeX export (1.99.3).
    High quality support of STIX fonts (1.99.3).
    Various improvements concerning mathematical typesetting (1.99.3).
    Improved punctuation, including support for French punctuation rules (1.99.3).
    Improved experimental client-server support (1.99.3).
    Encrypting/decrypting pieces of documents (1.99.3).
    New experimental bibliographic database management (1.99.3).
    New experimental database facilities (1.99.3).
    Added style package for literate programming (1.99.3).
    Consistent support for multiple bibliographies, indexes, glossaries, etc. (1.99.3).
2016-07-16 21:13:22 +00:00

40 lines
1.2 KiB
Text

$NetBSD: patch-aj,v 1.8 2016/07/16 21:13:22 wiz Exp $
--- plugins/r/src/tm_r.c.orig 2016-05-26 01:33:18.000000000 +0000
+++ plugins/r/src/tm_r.c
@@ -18,6 +18,7 @@
#include <util.h>
#endif
+#include <util.h>
#include <utmp.h>
#include <unistd.h>
#include <termios.h>
@@ -844,7 +845,11 @@ int main(int argc, char *argv[])
char *TEXMACS_HOME_PATH, *TEXMACS_R, *TEXMACS_SEND_E, *TEXMACS_LIB, *HOME ;
struct termios termi ;
sigset_t sigmask, orig_sigmask;
-
+#if defined(__DragonFly__)
+ sigset_t cur_sigmask;
+ int select_retval;
+#endif
+
struct stat stat_buf;
name = getenv("TEXMACS_R_SESSION") ;
@@ -1007,7 +1012,14 @@ unsetenv( "DYLD_LIBRARY_PATH") ;
// We will wait till something happens using pselect.
+#if defined(__DragonFly__)
+ sigprocmask(SIG_SETMASK, &orig_sigmask, &cur_sigmask);
+ select_retval = select( subprocess+1, &rd, &wr, &er, NULL );
+ sigprocmask(SIG_SETMASK, &cur_sigmask, NULL);
+ if ( select_retval > 0) {
+#else
if( (pselect( subprocess+1, &rd, &wr, &er, NULL, &orig_sigmask )) > 0 ) {
+#endif
if( FD_ISSET( STDIN_FILENO, &er) ) exit(0) ;
if( FD_ISSET( STDOUT_FILENO, &er) ) exit(0) ;
if( FD_ISSET( subprocess, &er) ) exit(0) ;