aboutsummaryrefslogtreecommitdiffstats
path: root/devel/ElectricFence
diff options
context:
space:
mode:
authormi <mi@FreeBSD.org>2007-07-27 21:00:52 +0800
committermi <mi@FreeBSD.org>2007-07-27 21:00:52 +0800
commit31fc4c43c299cbdc427d1d2fcacbdac9d56bc445 (patch)
treef8711f549c35bd7e29418fcf3b29be1d87001cdb /devel/ElectricFence
parent5a8dbf6d35c17d086af3a3a755ff16165554a197 (diff)
downloadfreebsd-ports-graphics-31fc4c43c299cbdc427d1d2fcacbdac9d56bc445.tar.gz
freebsd-ports-graphics-31fc4c43c299cbdc427d1d2fcacbdac9d56bc445.tar.zst
freebsd-ports-graphics-31fc4c43c299cbdc427d1d2fcacbdac9d56bc445.zip
Add a patch found on RedHat mailing list. It is quite important,
where size_t is wider than int... Bump PORTREVISION.
Diffstat (limited to 'devel/ElectricFence')
-rw-r--r--devel/ElectricFence/Makefile2
-rw-r--r--devel/ElectricFence/files/patch-mmap-size28
2 files changed, 29 insertions, 1 deletions
diff --git a/devel/ElectricFence/Makefile b/devel/ElectricFence/Makefile
index a34d70311c8..490fc093a7f 100644
--- a/devel/ElectricFence/Makefile
+++ b/devel/ElectricFence/Makefile
@@ -8,7 +8,7 @@
PORTNAME= electricfence
PORTVERSION= 2.2.2
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_PACKETSTORM}
MASTER_SITE_SUBDIR= UNIX/misc
diff --git a/devel/ElectricFence/files/patch-mmap-size b/devel/ElectricFence/files/patch-mmap-size
new file mode 100644
index 00000000000..e94b0b802a9
--- /dev/null
+++ b/devel/ElectricFence/files/patch-mmap-size
@@ -0,0 +1,28 @@
+Found at:
+ http://www.redhat.com/archives/fedora-cvs-commits/2007-March/msg00788.html
+
+Size is, correctly, size_t and mmap, correctly, takes
+size_t as the size argument; the cast to int flunks
+64bit thinking.
+
+diff -Naur ElectricFence-2.2.2/page.c ElectricFence-2.2.3/page.c
+--- page.c 2007-03-16 13:20:44.000000000 -0400
++++ page.c 2007-03-16 13:23:28.000000000 -0400
+@@ -70,7 +70,7 @@
+ */
+ allocation = (caddr_t) mmap(
+ startAddr
+- ,(int)size
++ ,size
+ ,PROT_READ|PROT_WRITE
+ ,MAP_PRIVATE|MAP_ANONYMOUS
+ ,-1
+@@ -122,7 +122,7 @@
+ */
+ allocation = (caddr_t) mmap(
+ startAddr
+- ,(int)size
++ ,size
+ ,PROT_READ|PROT_WRITE
+ ,MAP_PRIVATE
+ ,devZeroFd