sys-apps/portage: add linux-info check for namespace support
authorZac Medico <zmedico@gentoo.org>
Sun, 30 Dec 2018 07:34:56 +0000 (23:34 -0800)
committerZac Medico <zmedico@gentoo.org>
Sun, 30 Dec 2018 07:38:51 +0000 (23:38 -0800)
Bug: https://bugs.gentoo.org/673900
Package-Manager: Portage-2.3.53, Repoman-2.3.12
Signed-off-by: Zac Medico <zmedico@gentoo.org>
sys-apps/portage/portage-9999.ebuild

index b1da4eee48b8dfd8654fac3ca8c62866cdd135c2..a483b5524449d0490c0215d5fac89a65f9c952fd 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -10,7 +10,7 @@ PYTHON_COMPAT=(
 )
 PYTHON_REQ_USE='bzip2(+),threads(+)'
 
-inherit distutils-r1 git-r3 systemd
+inherit distutils-r1 git-r3 linux-info systemd
 
 DESCRIPTION="Portage is the package management and distribution system for Gentoo"
 HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage"
@@ -86,6 +86,12 @@ prefix_src_archives() {
 EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/portage.git
        https://github.com/gentoo/portage.git"
 
+pkg_pretend() {
+       local CONFIG_CHECK="~IPC_NS ~PID_NS ~NET_NS"
+
+       check_extra_config
+}
+
 pkg_setup() {
        use epydoc && DISTUTILS_ALL_SUBPHASE_IMPLS=( python2.7 )
 }