

Indeed the version of linux-headers and your kernel versions don't need to match each other.andersmusikka wrote:Perhaps it's expected behaviour? 2.4.x Kernel-sources must for some reason be present? But it seems strange!



Code: Select all
mkdir /etc/portage
Code: Select all
echo "media-gfx/gimp ~x86" >> /etc/portage/package.keywords
Code: Select all
echo "~media-gfx/gimp-2.0.0 ~x86" >> /etc/portage/package.keywords
Code: Select all
echo \<media-gfx/gimp-2.0.0 >> /etc/portage/package.mask

Code: Select all
cd /var/db/pkg
for p in $(grep -RiH KEYWORDS * | grep ~x86 | cut -d / -f -2); do echo ${p} ~x86; done >> /etc/portage/package.keywordsCode: Select all
bung@lappy pkg $ for p in $(grep -RiH KEYWORDS * | grep ~x86 | cut -d / -f -2); do echo ${p} ~x86; done
app-portage/gentoolkit-0.2.0_pre8 ~x86
dev-java/sun-j2sdk-1.4.2 ~x86
sys-apps/portage-2.0.50-r8 ~x86
sys-devel/gcc-3.3.3-r6 ~x86
sys-devel/gcc-3.3.3-r6 ~x86
sys-libs/glibc-2.3.3.20040420 ~x86
Code: Select all
root@lappy src # emerge -p gcc
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild R ] sys-devel/gcc-3.3.3-r6
Code: Select all
root@lappy src # emerge -p system
These are the packages that I would merge, in order:
Calculating system dependencies ...done!
root@lappy src # emerge -p world
These are the packages that I would merge, in order:
Calculating world dependencies ...done!
[ebuild U ] media-libs/alsa-lib-1.0.5 [0.9.8]
[ebuild U ] media-sound/alsa-utils-1.0.5 [0.9.8]
[ebuild U ] x11-misc/xscreensaver-4.15 [4.14-r1]
[ebuild U ] media-gfx/bootsplash-0.6-r16 [0.6-r11]
[ebuild N ] sys-kernel/gentoo-dev-sources-2.6.7-r8
[ebuild U ] dev-libs/libol-0.3.13 [0.3.9]
[ebuild U ] app-admin/syslog-ng-1.6.4 [1.6.0_rc3-r1]
[ebuild N ] sys-kernel/gentoo-sources-2.4.26-r3
[ebuild U ] app-editors/vim-core-6.3 [6.2-r7]
[ebuild U ] app-editors/gvim-6.3 [6.2-r7]
[ebuild U ] net-ftp/ncftp-3.1.7 [3.1.6]
[ebuild U ] sys-fs/reiserfsprogs-3.6.17 [3.6.11]
[ebuild U ] x11-base/xfree-4.3.0-r6 [4.3.0-r3]
[ebuild N ] media-libs/libexif-0.5.12-r1
[ebuild N ] x11-libs/gtkglarea-1.99.0
[ebuild N ] dev-python/pygtk-2.0.0-r1
[ebuild N ] media-gfx/gimp-2.0.0
[ebuild U ] app-editors/nano-1.3.2-r1 [1.2.2]
[ebuild U ] app-doc/howto-ps-20040317 [20021121]
[ebuild U ] sys-apps/cronbase-0.3 [0.2.1-r2]
[ebuild U ] sys-apps/vixie-cron-3.0.1-r4 [3.0.1-r3]
[ebuild U ] media-sound/alsaplayer-0.99.76 [0.99.75-r1]
[ebuild U ] media-video/mplayer-1.0_pre4 [0.92-r1]
[ebuild N ] net-www/mozilla-launcher-1.12
[ebuild U ] net-www/mozilla-firefox-0.8-r3 [0.7-r1]
[ebuild U ] net-fs/samba-3.0.4-r1 [2.2.8a]
[ebuild U ] x11-misc/xlockmore-5.12 [5.08.2]
[ebuild U ] app-editors/kile-1.6.3 [1.6.1]
[ebuild U ] gnome-extra/gcalctool-4.3.51 [4.3.16]
[ebuild U ] net-im/gaim-0.79-r1 [0.77]
[ebuild U ] x11-plugins/gaim-encryption-2.27 [2.25]
[ebuild U ] x11-libs/qt-3.3.2 [3.3.0-r1]
[ebuild N ] dev-java/java-gtk-0.8.3
[ebuild U ] dev-tex/preview-latex-0.8.1 [0.7.8]
[ebuild U ] sys-boot/grub-0.94-r1 [0.93.20030118]
[ebuild N ] media-sound/alsa-driver-1.0.5a
[ebuild N ] dev-libs/boost-1.31.0
[ebuild N ] dev-db/metakit-2.4.9.3-r2
[ebuild U ] media-sound/zinf-2.2.5-r1 [2.2.3]
[ebuild U ] sys-apps/pcmcia-cs-3.2.5-r1 [3.2.4]
[ebuild U ] net-p2p/gtk-gnutella-0.93.3 [0.92]
Code: Select all
root@lappy src # emerge -v gentoolkit
Code: Select all
bung@lappy pkg $ for p in $(grep -RiH KEYWORDS * | grep ~x86 | cut -d / -f -2); do echo ${p} ~x86; done
app-portage/gentoolkit-0.2.0_pre8 ~x86
dev-java/sun-j2sdk-1.4.2 ~x86
sys-apps/portage-2.0.50-r8 ~x86
sys-devel/gcc-3.3.3-r6 ~x86
sys-devel/gcc-3.3.3-r6 ~x86
sys-libs/glibc-2.3.3.20040420 ~x86

robmoss2k's hack was a little too filthy, it just greps for "~x86" in the package database. Since the term "~x86" appears in two comments in the ebuild of gcc, it is added to the list.bungernut wrote:I dont see my kernel in there (2.6.3) which had to ~x86Code: Select all
bung@lappy pkg $ for p in $(grep -RiH KEYWORDS * | grep ~x86 | cut -d / -f -2); do echo ${p} ~x86; done app-portage/gentoolkit-0.2.0_pre8 ~x86 dev-java/sun-j2sdk-1.4.2 ~x86 sys-apps/portage-2.0.50-r8 ~x86 sys-devel/gcc-3.3.3-r6 ~x86 sys-devel/gcc-3.3.3-r6 ~x86 sys-libs/glibc-2.3.3.20040420 ~x86
I know i dident use ~x86 for glibc and gcc and portage, i dont think im that stupid???
Code: Select all
emerge -puvD worldWhy do you do emerge -p ... and not emerge -pu ...? You want to update, don't you?Here is what im looking at:Code: Select all
root@lappy src # emerge -p system These are the packages that I would merge, in order: Calculating system dependencies ...done! root@lappy src # emerge -p world These are the packages that I would merge, in order: Calculating world dependencies ...done! [ebuild U ] media-libs/alsa-lib-1.0.5 [0.9.8] ...

I understood, why you use the "-p" switch, that's obvious. What I did not understand was, why you do not use "-u" switch.bungernut wrote:I was only intending to show you all what emerge was trying to do, hense pretend.
This'll work perfectly with one small alteration, add ^ before KEYWORDS and grep will only pick lines that begin with KEYWORDS and ignore the lines that start with comments. That way you get the true list of ebuilds that were build with ~86robmoss wrote:Nice little filthy hack for you...
Code: Select all
cd /var/db/pkg for p in $(grep -RiH KEYWORDS * | grep ~x86 | cut -d / -f -2); do echo ${p} ~x86; done >> /etc/portage/package.keywords
Code: Select all
ACCEPT_KEYWORDS=robmoss wrote:Nice little filthy hack for you...
Code: Select all
cd /var/db/pkg for p in $(grep -RiH KEYWORDS * | grep ~x86 | cut -d / -f -2); do echo ${p} ~x86; done >> /etc/portage/package.keywords