sys-cluster/ucx: Fix numa support
authorJustin Lecher <jlec@gentoo.org>
Sat, 23 Jun 2018 17:48:49 +0000 (18:48 +0100)
committerJustin Lecher <jlec@gentoo.org>
Sat, 23 Jun 2018 18:36:56 +0000 (19:36 +0100)
Closes: https://bugs.gentoo.org/654432
Signed-off-by: Justin Lecher <jlec@gentoo.org>
Package-Manager: Portage-2.3.40, Repoman-2.3.9

sys-cluster/ucx/metadata.xml
sys-cluster/ucx/ucx-1.2.2-r1.ebuild [moved from sys-cluster/ucx/ucx-1.2.2.ebuild with 73% similarity]

index d11a30befa7f84c570c8c9ebadc4ce39e2b055ee..6af00b86c7faccaab9c6d88b672bde5cbdd81030 100644 (file)
@@ -9,4 +9,7 @@
                <email>cluster@gentoo.org</email>
                <name>Gentoo Cluster Project</name>
        </maintainer>
+       <use>
+               <flag name="numa">Add support for numa memory allocation</flag>
+       </use>
 </pkgmetadata>
similarity index 73%
rename from sys-cluster/ucx/ucx-1.2.2.ebuild
rename to sys-cluster/ucx/ucx-1.2.2-r1.ebuild
index 0b581f7bf5663f800a8c12d051016aeeea62d679..c3bf36aa7359a74ae26ca02d5be2e36603fc5538 100644 (file)
@@ -12,12 +12,16 @@ SRC_URI="https://github.com/openucx/ucx/releases/download/v${PV}/${P}.tar.gz"
 SLOT="0"
 LICENSE="BSD"
 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE=""
+IUSE="+numa +openmp"
+
+RDEPEND="
+       numa? ( sys-process/numactl )
+"
 
 src_prepare() {
        default
        sed \
-               -e '/^BASE_CFLAGS/s:=.*:=:g' \
+               -e '/BASE_CFLAGS=/s:=".*":=:g' \
                -i config/m4/compiler.m4 || die
        eautoreconf
 }
@@ -25,5 +29,7 @@ src_prepare() {
 src_configure() {
        BASE_CFLAGS="" \
        econf \
-               --disable-compiler-opt
+               --disable-compiler-opt \
+               $(use_enable numa) \
+               $(use_enable openmp)
 }