2.2: gcc4 fix for eterm
This commit is contained in:
parent
88995df33b
commit
b17c2790b9
@ -1,2 +1,3 @@
|
||||
dd089fa7768f945341d721dd4942c702 Eterm-0.9.3.tar.gz
|
||||
da95c4485e2244c440ece3da5a9dfca3 eterm-0.9.3-deadkeys.patch
|
||||
9a9a163d99af109f688f84b04d1e83e8 eterm-0.9.3-gcc4.patch
|
||||
|
@ -6,13 +6,14 @@
|
||||
|
||||
name=eterm
|
||||
version=0.9.3
|
||||
release=1
|
||||
release=2
|
||||
source=(http://www.eterm.org/download/Eterm-$version.tar.gz
|
||||
eterm-0.9.3-deadkeys.patch)
|
||||
eterm-0.9.3-deadkeys.patch eterm-0.9.3-gcc4.patch)
|
||||
|
||||
build() {
|
||||
cd Eterm-$version
|
||||
patch -p0 < $SRC/eterm-0.9.3-deadkeys.patch
|
||||
patch -p1 < $SRC/eterm-0.9.3-gcc4.patch
|
||||
./configure --prefix=/usr --disable-nls
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
|
17
eterm/eterm-0.9.3-gcc4.patch
Normal file
17
eterm/eterm-0.9.3-gcc4.patch
Normal file
@ -0,0 +1,17 @@
|
||||
Fix building with GCC4. Patch by Aaron Walker.
|
||||
http://bugs.gentoo.org/92485
|
||||
|
||||
--- Eterm-0.9.3/src/command.c
|
||||
+++ Eterm-0.9.3/src/command.c
|
||||
@@ -3002,9 +3002,9 @@
|
||||
Xfd = XConnectionNumber(Xdisplay);
|
||||
D_CMD(("Xfd = %d\n", Xfd));
|
||||
cmdbuf_ptr = cmdbuf_endp = cmdbuf_base;
|
||||
- AT_LEAST((int) num_fds, Xfd + 1);
|
||||
+ AT_LEAST(num_fds, Xfd + 1);
|
||||
if (pipe_fd >= 0) {
|
||||
- AT_LEAST((int) num_fds, pipe_fd + 1);
|
||||
+ AT_LEAST(num_fds, pipe_fd + 1);
|
||||
}
|
||||
if ((cmd_fd = command_func(argv)) < 0) {
|
||||
print_error("Unable to run sub-command.\n");
|
Loading…
x
Reference in New Issue
Block a user