FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Development

 
 
LinkBack Thread Tools
 
Old 09-17-2010, 09:34 AM
"Robin H. Johnson"
 
Default virtual/linux-sources DEPEND non-inclusion reminder

Just since it bit me on some infra boxes this evening, a quick reminder
that you should generally never DEPEND on virtual/linux-sources in your
ebuilds.

It's trivial to build a fully working system, and never have /usr/src
get populated.

1. Never RDEPEND on virtual/linux-sources, it will bring kernel sources
in during binpkg installs.
2. linux-mod.eclass does correctly bring in virtual/linux-sources as
needed, so if you are building kernel modules, inherit it rather than
including your own DEPEND for sources.
3. kernel_is: Version-specific virtual/linux-sources statements are generally
useless, as you have no idea what kernel version is at /usr/src/linux
or is pointed to by the various build variables. You should use the
kernel_is function of linux-info.eclass instead.

--
Robin Hugh Johnson
Gentoo Linux: Developer, Trustee & Infrastructure Lead
E-Mail : robbat2@gentoo.org
GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85
 
Old 09-17-2010, 06:39 PM
Mike Frysinger
 
Default virtual/linux-sources DEPEND non-inclusion reminder

On Friday, September 17, 2010 05:34:32 Robin H. Johnson wrote:
> 1. Never RDEPEND on virtual/linux-sources, it will bring kernel sources
> in during binpkg installs.

repoman time ?
-mike
 
Old 09-18-2010, 04:00 AM
Zac Medico
 
Default virtual/linux-sources DEPEND non-inclusion reminder

On 09/17/2010 11:39 AM, Mike Frysinger wrote:
> On Friday, September 17, 2010 05:34:32 Robin H. Johnson wrote:
>> 1. Never RDEPEND on virtual/linux-sources, it will bring kernel sources
>> in during binpkg installs.
>
> repoman time ?
> -mike

It's in git now:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=e92dcbd987138da6d728ccfd8e6 dededc215c05d
--
Thanks,
Zac
 

Thread Tools




All times are GMT. The time now is 07:05 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org