--- kernel-2.eclass 2013-04-30 00:31:16.000000000 +0200 +++ kernel-2.eclass.new 2013-05-14 13:09:14.413698109 +0200 @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.284 2013/04/29 22:14:23 tomwij Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v X.XXX 2013/XX/XX XX:XX:XX XXXXXX Exp $ # Description: kernel.eclass rewrite for a clean base regarding the 2.6 # series of kernel with back-compatibility for 2.4 @@ -415,19 +415,48 @@ kernel_is 2 6 || kernel_is 2 5 } -# Capture the sources type and set DEPENDs +# Capture the sources type and set some basic variables. +# See bug #469696 for discussion of *DEPEND, IUSE and more. if [[ ${ETYPE} == sources ]]; then - DEPEND="!build? ( sys-apps/sed - >=sys-devel/binutils-2.11.90.0.31 )" - RDEPEND="!build? ( >=sys-libs/ncurses-5.2 - sys-devel/make + DEPEND="!build? ( sys-apps/sed )" + RDEPEND="!build? ( sys-apps/sed + sys-apps/coreutils + sys-apps/diffutils + sys-apps/findutils + sys-apps/grep + sys-apps/net-tools + sys-apps/which + sys-devel/make + sys-devel/gcc + >=sys-devel/binutils-2.11.90.0.31 + sys-devel/bc + virtual/awk dev-lang/perl - sys-devel/bc )" + ncurses? ( >=sys-libs/ncurses-5.2 ) + modules? ( virtual/modutils ) + gtk? ( virtual/pkgconfig + dev-libs/glib:2 + x11-libs/gtk+:2 + gnome-base/libglade:2.0 + ) + qt4? ( virtual/pkgconfig + sys-devel/gcc[cxx] + dev-qt/qtcore:4[qt3support] + dev-qt/qtgui:4[qt3support] + dev-qt/qt3support:4 + ) + lzo? ( app-arch/lzop ) + lzma? ( app-arch/xz-utils ) + gzip? ( app-arch/gzip ) + bzip2? ( app-arch/bzip2 ) + initramfs? ( app-arch/cpio ) + )" PDEPEND="!build? ( virtual/dev-manager )" + REQUIRED_USE="!build? ( || ( lzo lzma gzip bzip2 ) )" SLOT="${PVR}" DESCRIPTION="Sources based on the Linux Kernel." - IUSE="symlink build" + IUSE="symlink build +modules ncurses gtk qt4 lzo lzma gzip bzip2 initramfs" # Bug #266157, deblob for libre support if [[ -z ${K_PREDEBLOBBED} ]] ; then @@ -770,7 +799,7 @@ use deblob && \ K_SECURITY_UNSUPPORTED=deblob - # if we are to forcably symlink, delete it if it already exists first. + # if we are to forcibly symlink, delete it if it already exists first. if [[ ${K_SYMLINK} > 0 ]]; then [[ -h ${ROOT}usr/src/linux ]] && rm ${ROOT}usr/src/linux MAKELINK=1 @@ -1231,7 +1260,16 @@ ABI="${KERNEL_ABI}" [[ ${ETYPE} == headers ]] && setup_headers - [[ ${ETYPE} == sources ]] && echo ">>> Preparing to unpack ..." + if [[ ${ETYPE} == sources ]]; then + if ! use ncurses && ! use gtk && ! use qt4; then + echo + ewarn "You have neither of the USE flags ncurses/gtk/qt4 turned on." + ewarn "Without these libraries you will be limited to very simple, line-based" + ewarn "kernel configuration means (make config, make oldconfig, ...)." + echo + fi + echo ">>> Preparing to unpack ..." + fi } kernel-2_pkg_postrm() {