svn commit: r459350 - head/archivers/py-borgbackup/files
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Thu Jan 18 14:44:17 UTC 2018
Author: sunpoet
Date: Thu Jan 18 14:44:11 2018
New Revision: 459350
URL: https://svnweb.freebsd.org/changeset/ports/459350
Log:
Fix build with include/lz4.h which is in UTF-8 format
This can be removed with newer liblz4 since the file format has been changed back to ASCII.
PR: 225235
Submitted by: Jose Garcia Juanino <jjuanino at gmail.com> (maintainer)
Reference: https://github.com/lz4/lz4/pull/454
Added:
head/archivers/py-borgbackup/files/
head/archivers/py-borgbackup/files/patch-setup_lz4.py (contents, props changed)
Added: head/archivers/py-borgbackup/files/patch-setup_lz4.py
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/archivers/py-borgbackup/files/patch-setup_lz4.py Thu Jan 18 14:44:11 2018 (r459350)
@@ -0,0 +1,11 @@
+--- setup_lz4.py.orig 2017-12-30 09:14:25 UTC
++++ setup_lz4.py
+@@ -24,7 +24,7 @@ def lz4_system_prefix(prefixes):
+ for prefix in prefixes:
+ filename = os.path.join(prefix, 'include', 'lz4.h')
+ if os.path.exists(filename):
+- with open(filename, 'r') as fd:
++ with open(filename, 'r', encoding='utf-8') as fd:
+ if 'LZ4_compress_default' in fd.read(): # requires lz4 >= 1.7.0 (r129)
+ return prefix
+
More information about the svn-ports-head
mailing list