Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 122250 - sys-kernel/gentoo-sources-2.6.15-r1 needed inside an UML image ?!
Summary: sys-kernel/gentoo-sources-2.6.15-r1 needed inside an UML image ?!
Status: RESOLVED DUPLICATE of bug 120233
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-09 06:57 UTC by Toralf Förster
Modified: 2006-02-17 01:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2006-02-09 06:57:23 UTC
Why suddenly gnupg needs sys-kernel/gentoo-sources ? I chrooted into my user mode linux image and got this:


n22 ~ # emerge --newuse --update --ask --verbose --deep --tree world

These are the packages that I would merge, in reverse order:

Calculating world dependencies ...done!
[nomerge      ] app-crypt/gnupg-1.4.2-r3  -X +bzip2 -caps -curl -ecc -idea -ldap +nls +readline (-selinux) -smartcard -static -usb +zlib
[ebuild  N    ]  sys-kernel/gentoo-sources-2.6.15-r1  -build -doc -symlink (-ultra1) 39,086 kB

Total size of downloads: 39,086 kB

Do you want me to merge these packages? [Yes/No] No

Quitting.

I use a different kernel to run this image so I cannot see the advantage.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-02-09 07:03:52 UTC
It inherits linux-info.eclass, which DEPENDs on virtual/linux-sources. So, which kernel are you using that doesn't provide this virtual?
Comment 2 Toralf Förster gentoo-dev 2006-02-09 08:49:51 UTC
This is my host kernel :

tfoerste@n22 ~ $ uname -a
Linux n22 2.6.15-gentoo-r1 #2 Sat Feb 4 19:44:25 CET 2006 i686 Intel(R) Pentium(R) M processor 1700MHz GenuineIntel GNU/Linux

I got the same behaviour either after chroot into the uml image or after booting the UML linux and running the emerge command inside UML (but that is slower, that's why I update the UML image under the chroot environment)

ok, here is the UML kernel, if it's needed:
tfoerste@n22 ~ $ /usr/local/bin/linux-2.6.15-usermode --version
2.6.15-usermode-bs1
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-02-09 09:09:46 UTC
Erm, if you are using homebrew kernel installed outside of portage, you need to take care of this yourself. Something like:

mkdir /etc/portage/profile
echo "sys-kernel/vanilla-sources-2.6.99" >> /etc/portage/profile/package.provided
echo "virtual/alsa sys-kernel/vanilla-sources" >> /etc/portage/profile/virtuals
echo "virtual/linux-sources sys-kernel/vanilla-sources" >>
/etc/portage/profile/virtuals

should work.

No bug here, closing.
Comment 4 Toralf Förster gentoo-dev 2006-02-09 11:39:42 UTC
I _emerged_ the gentoo kernel, believe me :

tfoerste@n22 ~/workspace/acpi $ equery --nocolor list -i gentoo-sources
[ Searching for package 'gentoo-sources' in all categories among: ]
 * installed packages
[I--] [  ] sys-kernel/gentoo-sources-2.6.15-r1 (2.6.15-r1)
tfoerste@n22 ~/workspace/acpi $                
Comment 5 Toralf Förster gentoo-dev 2006-02-11 07:25:53 UTC
reopened, here are the steps on my machine to reproduce it:

n22 ~ # modprobe loop; sleep 1; mount -o loop /opt/uml/root_fs /mnt/loop; mount -t proc none /mnt/loop/proc; chroot /mnt/loop/ /bin/bash
n22 / # source /etc/profile
n22 / # emerge --newuse --update --ask --verbose --deep --tree world

These are the packages that I would merge, in reverse order:

Calculating world dependencies ...done!
[nomerge      ] app-crypt/gnupg-1.4.2-r3  -X +bzip2 -caps -curl -ecc -idea -ldap +nls +readline (-selinux) -smartcard -static -usb +zlib
[ebuild  N    ]  sys-kernel/gentoo-sources-2.6.15-r1  -build -doc -symlink (-ultra1) 39,086 kB

Total size of downloads: 39,086 kB

Do you want me to merge these packages? [Yes/No] No

Quitting.


Here is the output from emerge info inside of the chrooted env :
n22 / # emerge info
Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 Intel(R) Pentium(R) M processor 1700MHz
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://85.25.128.62 ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo http://213.186.33.37/gentoo-distfiles/"
LINGUAS="de en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 alsa apache2 arts berkdb bitmap-fonts bzip2 crypt cups emboss encode expat fam foomaticdb fortran gdbm gif gstreamer gtk2 imlib ipv6 javascript jpeg libg++ libwww logrotate mad mhash mikmod mmx mmxext mp3 mpeg mysql ncurses nls ogg oggvorbis opengl oss pam pdflib perl php png python quicktime readline sdl spell sse sse2 ssl tcpd tiff udev userlocales vorbis xml2 xv zlib linguas_de linguas_en userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY

Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-02-11 07:31:50 UTC
(In reply to comment #5)
> n22 ~ # modprobe loop; sleep 1; mount -o loop /opt/uml/root_fs /mnt/loop; mount
> -t proc none /mnt/loop/proc; chroot /mnt/loop/ /bin/bash
> n22 / # source /etc/profile


Eh? What's above about? You did emerge the the kernel in your chroot? If not, I don't really see why are you wondering that it wants a kernel. Please, clarify what are you doing.
Comment 7 Toralf Förster gentoo-dev 2006-02-11 08:14:45 UTC
Sorry for not being clearly enough.

I am wondering why _suddenly_ I have to emerge a linux kernel inside my chroot environment whereas all the time before I updated that UML image it wasn't neccessary to emerge any linux kernel. I cannot see the needs to emerge a kernel b/c the kernel isn't neither used when I chrooted into the image nor it is used during booting that UML image.

I am wondering
 1) whether the described problem is a (unwanted) side effect of a change at another place somewhere of the Gentoo package management or not
 2) what changes outside of my configuration was made to make me emerging >= 250 MB (!) into my chroot image
 3) which package within my chroot environment needs an emerged kernel (I do npot pan to configure or build this kernel)

I would suspect that 1) is the root cause for my - little - problem. I did the steps you adviced in https://bugs.gentoo.org/show_bug.cgi?id=122250#c3 - thanks - but I would suspect that this is only a work on a symptom rather than a fix for a hidden bug.
 
BTW I changed the summary to more reflect the underlying topic.
Comment 8 Toralf Förster gentoo-dev 2006-02-17 01:37:31 UTC
forget to reopen after changing summary
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-02-17 01:55:06 UTC
(In reply to comment #7)
>  3) which package within my chroot environment needs an emerged kernel (I do
> npot pan to configure or build this kernel)

I've already pointed out in Comment #1 that gnupg inherits linux-info.eclass that depends on virtual/linux-sources, see the eclass.

> - but I would suspect that this is only a work on a symptom rather than a fix
> for a hidden bug.

Some packages need kernel sources to compile.


*** This bug has been marked as a duplicate of 120233 ***