Date: Thu, 18 Jan 2018 14:44:12 +0000 (UTC) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r459350 - head/archivers/py-borgbackup/files Message-ID: <201801181444.w0IEiCE9036048@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@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 +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801181444.w0IEiCE9036048>