aboutsummaryrefslogtreecommitdiff
path: root/devel/ElectricFence
diff options
context:
space:
mode:
authorMikhail Teterin <mi@FreeBSD.org>2007-07-27 13:00:52 +0000
committerMikhail Teterin <mi@FreeBSD.org>2007-07-27 13:00:52 +0000
commit0b7c87f9e9e1a165e5b75165e237040ac829c8d6 (patch)
tree4691726adf140af66417a3b2388daf512d7b3522 /devel/ElectricFence
parentd5d84a5f88bed2ee4c71eac94864ad9027bea136 (diff)
downloadports-0b7c87f9e9e1a165e5b75165e237040ac829c8d6.tar.gz
ports-0b7c87f9e9e1a165e5b75165e237040ac829c8d6.zip
Add a patch found on RedHat mailing list. It is quite important,
where size_t is wider than int... Bump PORTREVISION.
Notes
Notes: svn path=/head/; revision=196386
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 a34d70311c84..490fc093a7fe 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 000000000000..e94b0b802a98
--- /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