diff options
author | Rosen Penev <rosenp@gmail.com> | 2020-07-21 14:06:39 -0700 |
---|---|---|
committer | Rosen Penev <rosenp@gmail.com> | 2020-07-21 14:06:39 -0700 |
commit | cb44cd60c499d78592170d88a3c9f03991071e10 (patch) | |
tree | 7d4ad9162d8cc1250c7803415cd8bfd23b4f65e3 /libs/liblz4 | |
parent | 53ed852684752e5c454d0303b45df1b76fb3b848 (diff) |
liblz4: add patch removing distutils requirement
Allows meson to compile on systems that lack distutils.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'libs/liblz4')
-rw-r--r-- | libs/liblz4/Makefile | 2 | ||||
-rw-r--r-- | libs/liblz4/patches/020-distutils.patch | 13 |
2 files changed, 14 insertions, 1 deletions
diff --git a/libs/liblz4/Makefile b/libs/liblz4/Makefile index 9bf064669..2e70f1d13 100644 --- a/libs/liblz4/Makefile +++ b/libs/liblz4/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=liblz4 PKG_VERSION:=1.9.2 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/lz4/lz4/tar.gz/v$(PKG_VERSION)? diff --git a/libs/liblz4/patches/020-distutils.patch b/libs/liblz4/patches/020-distutils.patch new file mode 100644 index 000000000..d0ac62b40 --- /dev/null +++ b/libs/liblz4/patches/020-distutils.patch @@ -0,0 +1,13 @@ +--- a/contrib/meson/meson.build ++++ b/contrib/meson/meson.build +@@ -35,8 +35,8 @@ compiler_msvc = 'msvc' + lz4_version = meson.project_version() + + lz4_h_file = join_paths(meson.current_source_dir(), '../../lib/lz4.h') +-GetLz4LibraryVersion_py = files('GetLz4LibraryVersion.py') +-r = run_command(python3, GetLz4LibraryVersion_py, lz4_h_file) ++GetLz4LibraryVersion_py = find_program('GetLz4LibraryVersion.py', native : true) ++r = run_command(GetLz4LibraryVersion_py, lz4_h_file) + if r.returncode() == 0 + lz4_version = r.stdout().strip() + message('Project version is now: @0@'.format(lz4_version)) |