Fix build on amd64, and make this port actually run on 5.x.

Submitted by:	maintainer
This commit is contained in:
Kris Kennaway 2004-03-18 12:06:59 +00:00
parent f469dea453
commit b32681a60b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=104433
3 changed files with 33 additions and 8 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= es
PORTVERSION= 0.9.b1
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= shells
MASTER_SITES= ftp://ftp.sys.toronto.edu/pub/es/
DISTNAME= es-0.9-beta1
@ -22,10 +22,4 @@ ALL_TARGET= es
MAN1= es.1
PLIST_FILES= bin/es
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64"
BROKEN= "Does not compile on amd64"
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -0,0 +1,15 @@
*** mksignal.orig Wed Dec 3 20:59:12 2003
--- mksignal Wed Dec 3 21:00:50 2003
***************
*** 106,111 ****
--- 106,115 ----
ignore["SIGRTMIN"] = 1
ignore["SIGSETS"] = 1
ignore["SIGSTKSZ"] = 1
+
+ # FreeBSD 5 added a signal beyond NSIG; es makes too many
+ # assumptions to make this worth fixing.
+ ignore["SIGTHR"] = 1
# upper to lowercase translation table: can someone give me an easier
# way to do this that works in ancient versions of awk?

View File

@ -0,0 +1,16 @@
*** print.c.orig Fri Apr 11 15:54:36 1997
--- print.c Mon Mar 15 18:55:13 2004
***************
*** 279,285 ****
--- 279,289 ----
VA_START(format->args, fmt);
n += printfmt(format, fmt);
va_end(format->args);
+ #if NO_VA_LIST_ASSIGN
+ memcpy(format->args, saveargs, sizeof(va_list));
+ #else
format->args = saveargs;
+ #endif
return n + format->flushed;
}