Hello All, Doing a make distprep doesn't seem to work anymore: $ make -f Makefile.in distprep make: @SH@: Command not found make: *** [catman-do] Error 127 I've seen this on AIX & Redhat (gnu make) and Solaris (native make). I suspect this occurs on most platforms. Is this still the recommended way of autoreconf'ing CVS releases for building? -Daz.
On Thu, 9 May 2002, Darren Tucker wrote:> Hello All, > > Doing a make distprep doesn't seem to work anymore: > > $ make -f Makefile.in distprep > make: @SH@: Command not found > make: *** [catman-do] Error 127 > > I've seen this on AIX & Redhat (gnu make) and Solaris (native make). I > suspect this occurs on most platforms. Is this still the recommended way > of autoreconf'ing CVS releases for building?hmmm, that is broken. Tim - you committed that change, is there anyway to default to /bin/sh if @SH@ isn't substituted? In the meantime, you can do "make -f Makefile.in distprep SHELL=/bin/sh" -d
Anyone have a problem with this patch?
It fixes stty problems on SCO with broken (most PC) clients.
It only effects systems that use BSD-style ptys.
Ie. running "egrep "PTY|DEV" config.h" produces
/* #undef HAVE_DEV_PTMX */
/* #undef HAVE_DEV_PTS_AND_PTC */
/* #undef HAVE_OPENPTY */
/* #undef HAVE_PTY_H */
/* #undef HAVE__GETPTY */
----------< cut >----------
--- sshpty.c.old Tue Jan 15 17:06:39 2002
+++ sshpty.c Thu May 9 12:19:06 2002
@@ -199,6 +199,7 @@
const char *ptyminors = "0123456789abcdef";
int num_minors = strlen(ptyminors);
int num_ptys = strlen(ptymajors) * num_minors;
+ struct termios tio;
for (i = 0; i < num_ptys; i++) {
snprintf(buf, sizeof buf, "/dev/pty%c%c", ptymajors[i /
num_minors],
@@ -223,6 +224,19 @@
close(*ptyfd);
return 0;
}
+ /* set tty modes to a sane state for broken clients */
+ if (tcgetattr(*ptyfd, &tio) < 0)
+ log("Getting tty modes for pty failed: %.100s", strerror(errno));
+ else {
+ tio.c_lflag |= (ECHO | ISIG | ICANON);
+ tio.c_oflag |= (OPOST | ONLCR);
+ tio.c_iflag |= ICRNL;
+
+ /* Set the new modes for the terminal. */
+ if (tcsetattr(*ptyfd, TCSANOW, &tio) < 0)
+ log("Setting tty modes for pty failed: %.100s", strerror(errno));
+ }
+
return 1;
}
return 0;
----------< end cut >----------
--
Tim Rice Multitalents (707) 887-1469
tim at multitalents.net
Sorry, forgot to fix the subject.
On Thu, 9 May 2002, Tim Rice wrote:
Anyone have a problem with this patch?
It fixes stty problems on SCO with broken (most PC) clients.
It only effects systems that use BSD-style ptys.
Ie. running "egrep "PTY|DEV" config.h" produces
/* #undef HAVE_DEV_PTMX */
/* #undef HAVE_DEV_PTS_AND_PTC */
/* #undef HAVE_OPENPTY */
/* #undef HAVE_PTY_H */
/* #undef HAVE__GETPTY */
----------< cut >----------
--- sshpty.c.old Tue Jan 15 17:06:39 2002
+++ sshpty.c Thu May 9 12:19:06 2002
@@ -199,6 +199,7 @@
const char *ptyminors = "0123456789abcdef";
int num_minors = strlen(ptyminors);
int num_ptys = strlen(ptymajors) * num_minors;
+ struct termios tio;
for (i = 0; i < num_ptys; i++) {
snprintf(buf, sizeof buf, "/dev/pty%c%c", ptymajors[i /
num_minors],
@@ -223,6 +224,19 @@
close(*ptyfd);
return 0;
}
+ /* set tty modes to a sane state for broken clients */
+ if (tcgetattr(*ptyfd, &tio) < 0)
+ log("Getting tty modes for pty failed: %.100s", strerror(errno));
+ else {
+ tio.c_lflag |= (ECHO | ISIG | ICANON);
+ tio.c_oflag |= (OPOST | ONLCR);
+ tio.c_iflag |= ICRNL;
+
+ /* Set the new modes for the terminal. */
+ if (tcsetattr(*ptyfd, TCSANOW, &tio) < 0)
+ log("Setting tty modes for pty failed: %.100s", strerror(errno));
+ }
+
return 1;
}
return 0;
----------< end cut >----------
--
Tim Rice Multitalents (707) 887-1469
tim at multitalents.net
Hi, On Thu, May 09, 2002 at 12:47:51PM -0700, Tim Rice wrote:> Anyone have a problem with this patch?Looks good to me (and explains why I needed "stty onlcr opost" when connecting with MindTerm to my SCO box). gert -- USENET is *not* the non-clickable part of WWW! //www.muc.de/~gert/ Gert Doering - Munich, Germany gert at greenie.muc.de fax: +49-89-35655025 gert.doering at physik.tu-muenchen.de