qepcad-B/qepcad-B-env.patch
Jerry James 4dc2f4cc66 Fix total lockup (bz 1257471).
This consists of two separate changes:
- Run Singular in a separate session so it doesn't steal the TTY.
- Don't send data to bash through the (supposedly) Singular pipe.
2015-09-03 20:03:08 -06:00

13 lines
677 B
Diff

--- ./source/main/BEGINQEPCAD.c.orig 2012-03-16 06:49:30.000000000 -0600
+++ ./source/main/BEGINQEPCAD.c 2015-09-03 19:50:14.594696632 -0600
@@ -98,7 +98,8 @@ void BEGINQEPCAD(int &argc, char**& argv
void QEPCAD_ProcessRC(int argc, char **argv)
{
char *qepath = getenv("qe");
- if (qepath == NULL) { FAIL("QEPCAD_ProcessRC","Environment variable qe not defined!"); }
+ if (qepath == NULL) { setenv("qe", "/usr/share/qepcad", 1); qepath = getenv("qe"); }
+ if (getenv("SINGULARPATH") == NULL) { setenv("SINGULARPATH", "@LIBDIR@/Singular", 1); }
string rcFileName = qepath + string("/default.qepcadrc");
ifstream rcin(rcFileName.c_str());
if (!rcin) { return; }