dev-util/tup: warn if important kernel options are not enabled
authorAndrey Utkin <andrey_utkin@gentoo.org>
Sun, 2 Dec 2018 01:47:51 +0000 (01:47 +0000)
committerAndrey Utkin <andrey_utkin@gentoo.org>
Sun, 2 Dec 2018 02:46:22 +0000 (02:46 +0000)
No revbump for 0.7.7 as the change doesn't affect successful
installations.

Bug: https://bugs.gentoo.org/664768
Package-Manager: Portage-2.3.49, Repoman-2.3.12
Signed-off-by: Andrey Utkin <andrey_utkin@gentoo.org>
dev-util/tup/tup-0.7.7.ebuild
dev-util/tup/tup-9999.ebuild

index 104dd83a9dbda9af40797783cb49091dbd00eb8c..e248bb29dc6c08ec627e0dc52300db2729971c44 100644 (file)
@@ -1,9 +1,9 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-inherit toolchain-funcs
+inherit linux-info toolchain-funcs
 
 DESCRIPTION="A file-based build system"
 HOMEPAGE="http://gittup.org/tup"
@@ -30,6 +30,10 @@ DEPEND="
 "
 RDEPEND="${DEPEND}"
 
+CONFIG_CHECK="~FUSE_FS ~NAMESPACES"
+WARNING_FUSE_FS="CONFIG_FUSE_FS is required for tup to work"
+WARNING_NAMESPACES="CONFIG_NAMESPACES is required for tup to work as intended (workaround: set TUP_NO_NAMESPACING env var when running tup)"
+
 src_prepare() {
        # Use our toolchain
        sed -i Tuprules.tup \
index 104dd83a9dbda9af40797783cb49091dbd00eb8c..e248bb29dc6c08ec627e0dc52300db2729971c44 100644 (file)
@@ -1,9 +1,9 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-inherit toolchain-funcs
+inherit linux-info toolchain-funcs
 
 DESCRIPTION="A file-based build system"
 HOMEPAGE="http://gittup.org/tup"
@@ -30,6 +30,10 @@ DEPEND="
 "
 RDEPEND="${DEPEND}"
 
+CONFIG_CHECK="~FUSE_FS ~NAMESPACES"
+WARNING_FUSE_FS="CONFIG_FUSE_FS is required for tup to work"
+WARNING_NAMESPACES="CONFIG_NAMESPACES is required for tup to work as intended (workaround: set TUP_NO_NAMESPACING env var when running tup)"
+
 src_prepare() {
        # Use our toolchain
        sed -i Tuprules.tup \