diff options
author | Mamoru Komachi <usata@gentoo.org> | 2004-10-23 07:58:00 +0000 |
---|---|---|
committer | Mamoru Komachi <usata@gentoo.org> | 2004-10-23 07:58:00 +0000 |
commit | 39f83625d07b3ac113c57c4892e9966c58dd873f (patch) | |
tree | a7775dcc41dc86216be4c95acdef29a64004697f /x11-terms | |
parent | removed macos (diff) | |
download | gentoo-2-39f83625d07b3ac113c57c4892e9966c58dd873f.tar.gz gentoo-2-39f83625d07b3ac113c57c4892e9966c58dd873f.tar.bz2 gentoo-2-39f83625d07b3ac113c57c4892e9966c58dd873f.zip |
Fixed compilation problem. Thanks to Bernhard Schmidt <bs@netsrc.de> and Olivier Galibert <galibert@pobox.com>; bug #62632.
Diffstat (limited to 'x11-terms')
-rw-r--r-- | x11-terms/kterm/ChangeLog | 6 | ||||
-rw-r--r-- | x11-terms/kterm/files/kterm-6.2.0-openpty.patch | 59 | ||||
-rw-r--r-- | x11-terms/kterm/kterm-6.2.0-r3.ebuild | 3 |
3 files changed, 66 insertions, 2 deletions
diff --git a/x11-terms/kterm/ChangeLog b/x11-terms/kterm/ChangeLog index 22f02a66ae73..0eb38d5be1d6 100644 --- a/x11-terms/kterm/ChangeLog +++ b/x11-terms/kterm/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for x11-terms/kterm # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-terms/kterm/ChangeLog,v 1.14 2004/10/14 10:08:03 usata Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-terms/kterm/ChangeLog,v 1.15 2004/10/23 07:58:00 usata Exp $ + + 23 Oct 2004; Mamoru KOMACHI <usata@gentoo.org> kterm-6.2.0-r3.ebuild: + Fixed compilation problem. Thanks to Bernhard Schmidt <bs@netsrc.de> and + Olivier Galibert <galibert@pobox.com>; bug #62632. 14 Oct 2004; Mamoru KOMACHI <usata@gentoo.org> kterm-6.2.0-r2.ebuild, kterm-6.2.0-r3.ebuild: diff --git a/x11-terms/kterm/files/kterm-6.2.0-openpty.patch b/x11-terms/kterm/files/kterm-6.2.0-openpty.patch new file mode 100644 index 000000000000..ee8bc1814ae0 --- /dev/null +++ b/x11-terms/kterm/files/kterm-6.2.0-openpty.patch @@ -0,0 +1,59 @@ +diff -ru kterm-orig/Imakefile kterm-6.2.0/Imakefile +--- kterm-orig/Imakefile 2004-10-12 01:23:25.000000000 +0200 ++++ kterm-6.2.0/Imakefile 2004-10-12 01:37:59.100764752 +0200 +@@ -23,6 +23,11 @@ + PUCCPTYDDEF = -DPUCC_PTYD /* does not need to be setuid */ + PTYLIB = -lpucc + #endif ++#ifdef LinuxArchitecture ++ PTYLIB = -lutil ++#undef InstallXtermSetUID ++#define InstallXtermSetUID 0 ++#endif + + OSMAJORVERSION = OSMajorVersion + OSMINORVERSION = OSMinorVersion +diff -ru kterm-orig/button.c kterm-6.2.0/button.c +--- kterm-orig/button.c 1996-07-02 07:01:46.000000000 +0200 ++++ kterm-6.2.0/button.c 2004-10-12 01:29:59.420687208 +0200 +@@ -41,8 +41,6 @@ + #include "error.h" + #include "menu.h" + +-extern char *malloc(); +- + extern void DoSecureKeyboard(); + + #define KeyState(x) (((x) & (ShiftMask|ControlMask)) + (((x) & Mod1Mask) ? 2 : 0)) +diff -ru kterm-orig/charproc.c kterm-6.2.0/charproc.c +--- kterm-orig/charproc.c 2004-10-12 01:23:25.000000000 +0200 ++++ kterm-6.2.0/charproc.c 2004-10-12 01:30:29.640093160 +0200 +@@ -102,8 +102,6 @@ + extern XtAppContext app_con; + extern Widget toplevel; + extern void exit(); +-extern char *malloc(); +-extern char *realloc(); + extern fd_set Select_mask; + extern fd_set X_mask; + extern fd_set pty_mask; +diff -ru kterm-orig/main.c kterm-6.2.0/main.c +--- kterm-orig/main.c 2004-10-12 01:23:25.000000000 +0200 ++++ kterm-6.2.0/main.c 2004-10-12 01:32:56.697737000 +0200 +@@ -143,6 +143,7 @@ + #define HAS_UTMP_UT_HOST + #define LASTLOG + #define WTMP ++#include <pty.h> + #endif + + #include <sys/ioctl.h> +@@ -1871,7 +1872,7 @@ + get_pty (pty) + int *pty; + { +-#ifdef __osf__ ++#if defined(__osf__) || defined(linux) + int tty; + return (openpty(pty, &tty, ttydev, NULL, NULL)); + #endif diff --git a/x11-terms/kterm/kterm-6.2.0-r3.ebuild b/x11-terms/kterm/kterm-6.2.0-r3.ebuild index 142aed502c22..68324ab7aabe 100644 --- a/x11-terms/kterm/kterm-6.2.0-r3.ebuild +++ b/x11-terms/kterm/kterm-6.2.0-r3.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/x11-terms/kterm/kterm-6.2.0-r3.ebuild,v 1.2 2004/10/14 10:08:03 usata Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-terms/kterm/kterm-6.2.0-r3.ebuild,v 1.3 2004/10/23 07:58:00 usata Exp $ inherit eutils flag-o-matic @@ -26,6 +26,7 @@ src_unpack(){ cd ${S} epatch ${WORKDIR}/${P}-wpi.patch # wallpaper patch epatch ${WORKDIR}/${P}.ext02.patch # JIS 0213 support + epatch ${FILESDIR}/${P}-openpty.patch epatch ${FILESDIR}/${P}-gentoo.patch epatch ${FILESDIR}/${PN}-ad-gentoo.diff |