mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 04:53:07 -04:00
sys-kernel/rte_kni-kmod: add pyelfutils to DEPEND
fix crazy python dependency chaos Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
This commit is contained in:
@@ -21,7 +21,10 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
|||||||
RESTRICT="test"
|
RESTRICT="test"
|
||||||
|
|
||||||
DEPEND="${PYTHON_DEPS}
|
DEPEND="${PYTHON_DEPS}
|
||||||
~sys-kernel/rte_kni-kmod-${PV}
|
$(python_gen_cond_dep '
|
||||||
|
dev-python/pyelftools[${PYTHON_USEDEP}]
|
||||||
|
')
|
||||||
|
~sys-kernel/rte_kni-kmod-${PV}[${PYTHON_SINGLE_USEDEP}]
|
||||||
app-crypt/intel-ipsec-mb
|
app-crypt/intel-ipsec-mb
|
||||||
dev-libs/elfutils
|
dev-libs/elfutils
|
||||||
dev-libs/isa-l
|
dev-libs/isa-l
|
||||||
@@ -38,12 +41,10 @@ DEPEND="${PYTHON_DEPS}
|
|||||||
RDEPEND="${DEPEND}"
|
RDEPEND="${DEPEND}"
|
||||||
BDEPEND="
|
BDEPEND="
|
||||||
dev-lang/nasm
|
dev-lang/nasm
|
||||||
test? ( $(python_gen_cond_dep '
|
|
||||||
dev-python/pyelftools[${PYTHON_USEDEP}]
|
|
||||||
') )
|
|
||||||
"
|
"
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
|
python-single-r1_pkg_setup
|
||||||
local emesonargs=(
|
local emesonargs=(
|
||||||
-Denable_kmods=false
|
-Denable_kmods=false
|
||||||
-Dmachine=default
|
-Dmachine=default
|
||||||
@@ -51,7 +52,6 @@ src_configure() {
|
|||||||
$(meson_use test tests)
|
$(meson_use test tests)
|
||||||
)
|
)
|
||||||
meson_src_configure
|
meson_src_configure
|
||||||
python_setup
|
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
EAPI=7
|
EAPI=7
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{8..10} )
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
inherit linux-mod python-any-r1 meson
|
inherit linux-mod python-single-r1 meson
|
||||||
|
|
||||||
DESCRIPTION="DPDK Kernel Nic Interface module"
|
DESCRIPTION="DPDK Kernel Nic Interface module"
|
||||||
HOMEPAGE="https://dpdk.org/"
|
HOMEPAGE="https://dpdk.org/"
|
||||||
@@ -14,9 +14,15 @@ S="${WORKDIR}/dpdk-${PV}"
|
|||||||
LICENSE="BSD GPL-2"
|
LICENSE="BSD GPL-2"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="~amd64"
|
KEYWORDS="~amd64"
|
||||||
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||||
|
|
||||||
DEPEND="
|
DEPEND="${PYTHON_DEPS}
|
||||||
|
$(python_gen_cond_dep '
|
||||||
|
dev-python/pyelftools[${PYTHON_USEDEP}]
|
||||||
|
')
|
||||||
|
app-crypt/intel-ipsec-mb
|
||||||
dev-libs/elfutils
|
dev-libs/elfutils
|
||||||
|
dev-libs/isa-l
|
||||||
dev-libs/jansson
|
dev-libs/jansson
|
||||||
dev-libs/libbpf
|
dev-libs/libbpf
|
||||||
dev-libs/libbsd
|
dev-libs/libbsd
|
||||||
@@ -35,10 +41,12 @@ CONFIG_CHECK="~IOMMU_SUPPORT ~AMD_IOMMU ~VFIO ~VFIO_PCI ~UIO ~UIO_PDRV_GENIRQ ~U
|
|||||||
|
|
||||||
pkg_setup() {
|
pkg_setup() {
|
||||||
linux-mod_pkg_setup
|
linux-mod_pkg_setup
|
||||||
python-any-r1_pkg_setup
|
python-single-r1_pkg_setup
|
||||||
}
|
}
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
|
linux-mod_pkg_setup
|
||||||
|
python-single-r1_pkg_setup
|
||||||
# we still have to do meson configuration as it creates
|
# we still have to do meson configuration as it creates
|
||||||
# header files needed for compiling the rte_kni module
|
# header files needed for compiling the rte_kni module
|
||||||
local emesonargs=(
|
local emesonargs=(
|
||||||
|
|||||||
Reference in New Issue
Block a user