diff options
author | ru <ru@FreeBSD.org> | 2006-04-17 21:48:10 +0800 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2006-04-17 21:48:10 +0800 |
commit | 83b10576c4840aaf4032700e0a74250ea1e4aa3a (patch) | |
tree | b8cfea658ea1d07769d737e7abd1833b1b001db5 /lang/ezm3 | |
parent | 1967c2f8e26a588c2e30002aa07d2ca86734d0ae (diff) | |
download | freebsd-ports-gnome-83b10576c4840aaf4032700e0a74250ea1e4aa3a.tar.gz freebsd-ports-gnome-83b10576c4840aaf4032700e0a74250ea1e4aa3a.tar.zst freebsd-ports-gnome-83b10576c4840aaf4032700e0a74250ea1e4aa3a.zip |
Fix fcntl(2) support on 64-bit platforms (alpha, amd64, sparc64).
This makes "cvsup -l" work on them in particular.
PR: ports/75015
Approved by: jdp
Reviewed by: bz, jdp
Diffstat (limited to 'lang/ezm3')
-rw-r--r-- | lang/ezm3/Makefile | 4 | ||||
-rw-r--r-- | lang/ezm3/files/patch-libs::m3core::src::unix::freebsd-4.alpha::Unix.i3 | 20 | ||||
-rw-r--r-- | lang/ezm3/files/patch-libs::m3core::src::unix::freebsd-4.sparc64::Unix.i3 | 20 |
3 files changed, 44 insertions, 0 deletions
diff --git a/lang/ezm3/Makefile b/lang/ezm3/Makefile index 3495c08fafa3..842561741672 100644 --- a/lang/ezm3/Makefile +++ b/lang/ezm3/Makefile @@ -7,6 +7,7 @@ PORTNAME= ezm3 PORTVERSION= 1.2 +PORTREVISION= 1 CATEGORIES= lang MASTER_SITES= ftp://ftp.FreeBSD.org/pub/FreeBSD/development/CVSup/ezm3/:src \ @@ -90,6 +91,9 @@ post-patch: .if ${ARCH} == "sparc64" && ${OSVERSION} < 502107 @${REINPLACE_CMD} -E -e 's|(^.*time_t.*=.*)int64_t;|\1int32_t;|' \ ${WRKSRC}/libs/m3core/src/unix/freebsd-4.sparc64/Utypes.i3 +.elif ${ARCH} == "amd64" + @${CP} ${WRKSRC}/libs/m3core/src/unix/freebsd-4.alpha/Unix.i3 \ + ${WRKSRC}/libs/m3core/src/unix/freebsd-4.amd64/Unix.i3 .endif do-build: diff --git a/lang/ezm3/files/patch-libs::m3core::src::unix::freebsd-4.alpha::Unix.i3 b/lang/ezm3/files/patch-libs::m3core::src::unix::freebsd-4.alpha::Unix.i3 new file mode 100644 index 000000000000..6b34063f83e6 --- /dev/null +++ b/lang/ezm3/files/patch-libs::m3core::src::unix::freebsd-4.alpha::Unix.i3 @@ -0,0 +1,20 @@ +--- libs/m3core/src/unix/freebsd-4.alpha/Unix.i3 Sat Mar 23 04:28:45 2002 ++++ libs/m3core/src/unix/freebsd-4.alpha/Unix.i3 Mon Apr 17 13:03:44 2006 +@@ -128,7 +128,7 @@ + F_GETFL = 3; (* Get fd status flags *) + F_SETFL = 4; (* Set fd status flags *) + +- (* in these three cases, you need to pass LOOPHOLE (ADR (v), int) ++ (* in these three cases, you need to pass LOOPHOLE (ADR (v), long) + for arg, where v is a variable of type struct_flock *) + F_GETOWN = 5; (* Set owner *) + F_SETOWN = 6; (* Get owner *) +@@ -155,7 +155,7 @@ + F_WRLCK = 3; (* Write lock *) + F_UNLCK = 2; (* Remove lock(s) *) + +-<*EXTERNAL*> PROCEDURE fcntl (fd, request, arg: int): int; ++<*EXTERNAL*> PROCEDURE fcntl (fd, request: int; arg: long): int; + (* ok *) + + (*** flock - apply or remove an advisory lock on an open file ***) diff --git a/lang/ezm3/files/patch-libs::m3core::src::unix::freebsd-4.sparc64::Unix.i3 b/lang/ezm3/files/patch-libs::m3core::src::unix::freebsd-4.sparc64::Unix.i3 new file mode 100644 index 000000000000..4d6c503a2eb5 --- /dev/null +++ b/lang/ezm3/files/patch-libs::m3core::src::unix::freebsd-4.sparc64::Unix.i3 @@ -0,0 +1,20 @@ +--- libs/m3core/src/unix/freebsd-4.sparc64/Unix.i3 Sat Mar 23 04:28:45 2002 ++++ libs/m3core/src/unix/freebsd-4.sparc64/Unix.i3 Mon Apr 17 13:04:12 2006 +@@ -128,7 +128,7 @@ + F_GETFL = 3; (* Get fd status flags *) + F_SETFL = 4; (* Set fd status flags *) + +- (* in these three cases, you need to pass LOOPHOLE (ADR (v), int) ++ (* in these three cases, you need to pass LOOPHOLE (ADR (v), long) + for arg, where v is a variable of type struct_flock *) + F_GETOWN = 5; (* Set owner *) + F_SETOWN = 6; (* Get owner *) +@@ -155,7 +155,7 @@ + F_WRLCK = 3; (* Write lock *) + F_UNLCK = 2; (* Remove lock(s) *) + +-<*EXTERNAL*> PROCEDURE fcntl (fd, request, arg: int): int; ++<*EXTERNAL*> PROCEDURE fcntl (fd, request: int; arg: long): int; + (* ok *) + + (*** flock - apply or remove an advisory lock on an open file ***) |