From f53bcac83d10715a996a5b2c807e4cc1ccf8f7f1 Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Fri, 25 Sep 2020 09:31:09 +0300 Subject: [PATCH] dev-libs/olm: patch lib dirs for python bindings Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Alfred Wingate --- dev-libs/olm/files/olmlib.patch | 12 ++++++++++++ dev-libs/olm/olm-3.1.5-r1.ebuild | 4 ++++ 2 files changed, 16 insertions(+) create mode 100644 dev-libs/olm/files/olmlib.patch diff --git a/dev-libs/olm/files/olmlib.patch b/dev-libs/olm/files/olmlib.patch new file mode 100644 index 0000000..e18e7a2 --- /dev/null +++ b/dev-libs/olm/files/olmlib.patch @@ -0,0 +1,12 @@ +diff --git a/python/olm_build.py b/python/olm_build.py +index 0606337..1032da0 100644 +--- a/python/olm_build.py ++++ b/python/olm_build.py +@@ -46,6 +46,7 @@ ffibuilder.set_source( + #include + """, + libraries=["olm"], ++ library_dirs = ["../lib64"], + extra_compile_args=compile_args, + extra_link_args=link_args) + diff --git a/dev-libs/olm/olm-3.1.5-r1.ebuild b/dev-libs/olm/olm-3.1.5-r1.ebuild index 6a49278..f1440cd 100644 --- a/dev-libs/olm/olm-3.1.5-r1.ebuild +++ b/dev-libs/olm/olm-3.1.5-r1.ebuild @@ -30,6 +30,10 @@ DEPEND=" ) " +CMAKE_IN_SOURCE_BUILD=1 + +PATCHES=( "${FILESDIR}/olmlib.patch" ) + src_prepare() { cmake_src_prepare use python && (cd python; distutils-r1_src_prepare)