diff --git a/eterm/.md5sum b/eterm/.md5sum index f5b22f648..dacb47b5a 100644 --- a/eterm/.md5sum +++ b/eterm/.md5sum @@ -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 diff --git a/eterm/Pkgfile b/eterm/Pkgfile index 1a36ec151..782d53ffb 100644 --- a/eterm/Pkgfile +++ b/eterm/Pkgfile @@ -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 diff --git a/eterm/eterm-0.9.3-gcc4.patch b/eterm/eterm-0.9.3-gcc4.patch new file mode 100644 index 000000000..4b72fd38e --- /dev/null +++ b/eterm/eterm-0.9.3-gcc4.patch @@ -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");