1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00

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
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2018-01-18 14:44:11 +00:00
parent 5444edbb65
commit 5e63fae51e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=459350

View File

@ -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