diff options
author | Ruslan Makhmatkhanov <rm@FreeBSD.org> | 2013-06-11 18:28:30 +0000 |
---|---|---|
committer | Ruslan Makhmatkhanov <rm@FreeBSD.org> | 2013-06-11 18:28:30 +0000 |
commit | c04a63505f96b1079024b861118236b130212bf0 (patch) | |
tree | 85f36bc101cb816fdbd3dd63ed30e677381c6e83 /databases/py-swift/files/patch-utils.py | |
parent | ECDSA cryptographic signature library (pure python). (diff) |
- add rc.d script
- add the patch that fixes posix_fadvise64 linuxism: swift tries to call
posix_fadvise64, which does not exists on FreeBSD and does not needed
because off_t is 8 bytes on both 32 and 64-bit platforms, so posix_fadvise
should be called instead. This has been reported upstream (#1179268) but
there is no reaction so far.
- bump PORTREVISION
PR: 178738
Submitted by: trociny
Approved by: maintainer timeout (3 weeks)
Notes
Notes:
svn path=/head/; revision=320622
Diffstat (limited to 'databases/py-swift/files/patch-utils.py')
-rw-r--r-- | databases/py-swift/files/patch-utils.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/databases/py-swift/files/patch-utils.py b/databases/py-swift/files/patch-utils.py new file mode 100644 index 000000000000..4675a9812c2e --- /dev/null +++ b/databases/py-swift/files/patch-utils.py @@ -0,0 +1,17 @@ +--- swift/common/utils.py.orig 2013-05-18 14:10:21.000000000 +0300 ++++ swift/common/utils.py 2013-05-18 14:09:06.000000000 +0300 +@@ -274,12 +274,12 @@ def drop_buffer_cache(fd, offset, length + """ + global _posix_fadvise + if _posix_fadvise is None: +- _posix_fadvise = load_libc_function('posix_fadvise64') ++ _posix_fadvise = load_libc_function('posix_fadvise') + # 4 means "POSIX_FADV_DONTNEED" + ret = _posix_fadvise(fd, ctypes.c_uint64(offset), + ctypes.c_uint64(length), 4) + if ret != 0: +- logging.warn("posix_fadvise64(%s, %s, %s, 4) -> %s" ++ logging.warn("posix_fadvise(%s, %s, %s, 4) -> %s" + % (fd, offset, length, ret)) + + |