ports/110386: [net/openldap*] Use <termios.h> when available

Ed Schouten ed at fxq.nl
Fri Mar 16 13:00:27 UTC 2007


>Number:         110386
>Category:       ports
>Synopsis:       [net/openldap*] Use <termios.h> when available
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 16 13:00:26 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Ed Schouten
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD palm.hoeg.nl 6.2-STABLE FreeBSD 6.2-STABLE #0: Sun Feb 11 22:32:09 CET 2007 root at palm.hoeg.nl:/usr/obj/usr/src/sys/PALM i386
>Description:
OpenLDAP's configure scripts see if <termios.h> and <sgtty.h> are
available. For some reason, no checks for HAVE_TERMIOS_H are done in the
sourcecode, HAVE_POSIX_TERMIOS is done instead. This causes OpenLDAP to
use <sgtty.h>, which breaks when a kernel without COMPAT_43TTY is used.
>How-To-Repeat:
>Fix:
Place the following file in net/openldap23-server/files/ and
net/openldap24-server/files/:

--- include/ac/termios.h	Tue Jan  2 22:43:47 2007
+++ include/ac/termios.h	Fri Mar 16 13:48:00 2007
@@ -17,7 +17,7 @@
 #ifndef _AC_TERMIOS_H
 #define _AC_TERMIOS_H
 
-#ifdef HAVE_POSIX_TERMIOS
+#ifdef HAVE_TERMIOS_H
 #include <termios.h>
 
 #ifdef GCWINSZ_IN_SYS_IOCTL
--- libraries/liblutil/getpass.c	Tue Jan  2 22:43:52 2007
+++ libraries/liblutil/getpass.c	Fri Mar 16 13:47:52 2007
@@ -60,7 +60,7 @@
 char *
 lutil_getpass( const char *prompt )
 {
-#if !defined(HAVE_POSIX_TERMIOS) && !defined(HAVE_SGTTY_H)
+#if !defined(HAVE_TERMIOS_H) && !defined(HAVE_SGTTY_H)
 	static char buf[256];
 	int i, c;
 
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list