Gentoo Archives: gentoo-genkernel

From: Richard Farina <sidhayn@×××××.com>
To: gentoo-genkernel@l.g.o
Subject: [gentoo-genkernel] patch for bashcompletion-r1
Date: Wed, 16 May 2012 12:48:59
Message-Id: 4FB3A29E.9050608@gmail.com
This has been driving me nuts for a while

Get rid of deprecation warning by using bash-completion-r1 instead of
bash-completion. Simple and logical migration.

Thanks,
Zero

--- genkernel-3.4.30.ebuild	2012-05-14 22:30:47.348296737 -0400
+++ genkernel-3.4.32.ebuild	2012-05-16 08:48:23.444013089 -0400
@@ -1,6 +1,6 @@
 # Copyright 1999-2012 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header:
/var/cvsroot/gentoo-x86/sys-kernel/genkernel/genkernel-3.4.30.ebuild,v
1.2 2012/05/03 22:26:18 sping Exp $
+# $Header:
/var/cvsroot/gentoo-x86/sys-kernel/genkernel/genkernel-3.4.32.ebuild,v
1.1 2012/05/14 00:20:53 sping Exp $

 # genkernel-9999        -> latest Git branch "master"
 # genkernel-VERSION     -> normal genkernel release
@@ -38,12 +38,12 @@
 then
 	EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/${PN}.git
 		http://git.overlays.gentoo.org/gitroot/proj/${PN}.git"
-	inherit git-2 bash-completion-r1 eutils
+	inherit git-2 bash-completion eutils
 	S="${WORKDIR}/${PN}"
 	SRC_URI="${COMMON_URI}"
 	KEYWORDS=""
 else
-	inherit bash-completion-r1 eutils
+	inherit bash-completion eutils
 	SRC_URI="mirror://gentoo/${P}.tar.bz2
 		${MY_HOME}/sources/genkernel/${P}.tar.bz2
 		${COMMON_URI}"
@@ -134,7 +134,7 @@
 		"${DISTDIR}"/open-iscsi-${VERSION_ISCSI}.tar.gz \
 		"${D}"/var/cache/genkernel/src || die "Copying distfiles..."

-	newbashcomp "${FILESDIR}"/genkernel.bash "${PN}"
+	dobashcompletion "${FILESDIR}"/genkernel.bash
 	insinto /etc
 	doins "${FILESDIR}"/initramfs.mounts
 }

Replies

Subject Author
[gentoo-genkernel] Re: patch for bashcompletion-r1 Richard Farina <sidhayn@×××××.com>