The ebuild nvidia-cg-toolkit everytime emerges the 32bit libraries available from nvidia.com. This is a bit unwanted behavior on AMD64 systems, because there is 64bit version available. Reproducible: Always Steps to Reproduce: 1. emerge nvidia-cg-toolkit 2. file /usr/lib/libCg.so Actual Results: TheWide ~ # file /usr/lib/libCg.so /usr/lib/libCg.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), stripped Expected Results: /usr/lib/libCg.so: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), stripped Portage 2.0.51-r8 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r10 x86_64) ================================================================= System uname: 2.6.9-gentoo-r10 x86_64 AMD Athlon(tm) 64 Processor 3400+ Gentoo Base System version 1.6.8 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Dec 16 2004, 19:39:58)] ccache version 2.3 [enabled] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.3 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r2 virtual/os-headers: 2.6.8.1-r1 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-O3 -pipe -fomit-frame-pointer -march=k8 -mtune=k8" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -pipe -fomit-frame-pointer -march=k8 -mtune=k8" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox" GENTOO_MIRRORS="http://gentoo.ynet.sk/pub" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="amd64 X aalib acl acpi aim alsa apache2 avi bash-completion bcmath berkdb bitmap-fonts bonobo bzlib calendar caps cdr clibpdf crypt cscope ctype cups curl curlwrappers dba dbx dga dio directfb doc dvd dvdr encode esd ethereal evo f77 fam fbcon fftw flac flash foomaticdb fortran ftp gb gd gdbm ggi gif ginac gmp gnome gnustep gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml iconv icq imagemagick imap imlib innodb ipv6 jabber java jikes joystick jp2 jpeg junit ladcca lcms ldap libedit libg++ libgda libwww lzw lzw-tiff mad maildir mbox mcal mhash mime ming mmap mng mnogosearch mozilla mpeg mpi multilib mysql mysqli nas ncurses nis nls nptl oggvorbis openal opengl oscar oss pam pcmcia pcntl pcre pda pdflib perl php plotutils png pnp portaudio posix postgres ppds python qdbm quicktime readline recode ruby samba scanner sdl session shared sharedmem slang slp sndfile snmp soap sockets sox speex spell spl sqlite ssl svg sysvipc szip tcltk tcpd tetex theora tidy tiff tokenizer truetype trusted unicode usb userlocales vhosts videos wavelan wmf xface xine xinerama xml2 xmlrpc xmms xosd xpm xprint xrandr xsl xv xvid zeo zlib"
Of course, i'm having this problem too. Latest release is 1.3.0501-0700 so a version for amd64 is needed.
Created attachment 52830 [details] ebuild for 1.3.0501-0700 This ebuild is a version bump and installs the correct 64 bits version. There is a problem: i don't know how to make the use of 64 bits and 32 bits libraries conditional, so right now is *exclusively* aimed for amd64.
Created attachment 52845 [details] ebuild for 1.3.0501-0700 I've made the SRC_URI and the dolib target conditional. Now should download and install well on both x86 and amd64.
Thanks for your contribution. The ebuild is now in cvs, please allow some time for it to be available on the mirrors. if you spot any problem please report them here. Thanks, Bart
It should use $(get_libdir) as in ${D}/usr/$(get_libdir) instead of the conditional with x86 and amd64. For instance, see usbutils ebuilds for example usage. The current versions do work fine tho. Just 4 line longer than necessary :D
The actual amd64 portage still installs 32 Bit version of nvidia-cg-toolkit- 1.2 , you must use ~amd64 to use the 1.3 wich is 64 bit.