Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to tell Portage to ignore all linux-sources
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
rkrenzis
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2004
Posts: 135
Location: USA

PostPosted: Sat Mar 23, 2013 2:55 pm    Post subject: How to tell Portage to ignore all linux-sources Reply with quote

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
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3922
Location: Hamburg

PostPosted: Sat Mar 23, 2013 3:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Sat Mar 23, 2013 4:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3922
Location: Hamburg

PostPosted: Sat Mar 23, 2013 4:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6097
Location: Dallas area

PostPosted: Sat Mar 23, 2013 5:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum