View previous topic :: View next topic |
Author |
Message |
rkrenzis Tux's lil' helper
Joined: 22 Jul 2004 Posts: 135 Location: USA
|
Posted: Sat Mar 23, 2013 2:55 pm Post subject: How to tell Portage to ignore all linux-sources |
|
|
emerge wants to merge the linux-sources. I have blacklisted the linux-source meta packages because I build my own sources from kernel.org. I'm sure there is a way to do this but, can you tell emerge to ignore all linux-sources/kernel ebuilds?
Example:
[ebuild N ] sys-kernel/gentoo-sources-3.7.10 USE="-build -deblob -symlink"
[ebuild N #] virtual/linux-sources-1 USE="-firmware"
It's obnoxious because it pulls the sources down but they never get used because the /usr/src/linux set with eselect kernel is pointing to some other custom kernel source directory. Search against the forums do not bring up anything relevant. |
|
Back to top |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3922 Location: Hamburg
|
Posted: Sat Mar 23, 2013 3:19 pm Post subject: |
|
|
Maybe you need something like this : Code: | # cat /etc/portage/profile/package.provided
# package.provided
#
sys-kernel/vanilla-sources-3.7.9
|
(OT but BTW - are you really need an animated avatar ?) |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Sat Mar 23, 2013 4:18 pm Post subject: |
|
|
Probably better to put the virtual in package.provided.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3922 Location: Hamburg
|
Posted: Sat Mar 23, 2013 4:34 pm Post subject: |
|
|
John R. Graham wrote: | Probably better to put the virtual in package.provided.
- John | Sure ?
With these settings : Code: | # cat /etc/portage/profile/package.provided
# package.provided
#
#sys-kernel/vanilla-sources-3.7.9
virtual/linux-sources-0
| I get this Code: | [nomerge ] virtual/linux-sources-0
[ebuild N ] sys-kernel/gentoo-sources-3.7.10 USE="-build -deblob -symlink"
|
|
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6098 Location: Dallas area
|
Posted: Sat Mar 23, 2013 5:00 pm Post subject: |
|
|
I found (googling) that someone had created a dummy-sources a while back.
I copied virtual/linux-sources-0 to my local portage and added
Code: | sys-kernel/dummy-sources |
to it, inside the RDEPEND
then added a file /sys-kernel/dummy-sources/dummy-sources-3.4.10.ebuild
and ran ebuild manifest against it.
dummy-sources-3.4.10.ebuild
Code: | # Copyright 1999-2003 Gentoo Technologies, Inc.
# Written by Florian Huber <florian.huber@mnet-online.de>
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
#CKV="${PV/_p[0-9]*}"
#ETYPE="sources"
#inherit kernel-2
detect_version
K_NOSETEXTRAVERSION="don't_set_it"
DESCRIPTION="Dummy kernel package to provide virtual/linux-sources v3.4"
KEYWORDS="amd64"
HOMEPAGE="http://www.gentoo.org/"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
IUSE=""
PROVIDE="virtual/linux-sources"
DEPEND=""
RDEPEND=""
S="${WORKDIR}/${P}"
src_install() {
einfo "******************************************************************"
einfo " ${P} installed..."
einfo " This ebuild does nothing except"
einfo " satisfying virtual/linux-sources dependencies"
einfo "******************************************************************"
} |
It doesn't prompt me to put down sources that I never use anyway (I build my own kernel also)
Edit to add: I've since upgraded the kernel to 3.8.1 but it doesn't complain about it. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
|