On 7/20/06, Alexander Puchmayr <[EMAIL PROTECTED]> wrote:
The problem came when I wanted to INSTALL the packages on the target
machine, where portage seems to ignore the VIDEO_CARDS variable
from /etc/make.conf for some reason.

Because it uses the VIDEO_CARDS variable from the binary package.  In
other words, the VIDEO_CARDS variable of your build system does not
match the target system.  As Randy said, you cannot change the
useflags (and VIDEO_CARDS are a kind of useflag) of a binary package.

A quick demonstration:

My normal xorg-x11 merging:

carcharias src # emerge -pv xorg-x11
[ebuild   R   ] x11-base/xorg-x11-7.0-r1  USE="-3dfx"
INPUT_DEVICES="evdev keyboard mouse synaptics -acecad -aiptek -calcomp
-citron -digitaledge -dmc -dynapro -elo2300 -elographics -fpit
-hyperpen -jamstudio -joystick -magellan -magictouch -microtouch
-mutouch -palmax -penmount -spaceorb -summa -tek4957 -ur98 -vmmouse
-void -wacom" VIDEO_CARDS="fbdev nv nvidia vesa -apm -ark -chips
-cirrus -cyrix -dummy -fglrx -glint -i128 -i740 -i810 -imstt -mach64
-mga -neomagic -nsc -r128 -radeon -rendition -s3 -s3virge -savage
-siliconmotion -sis -sisusb -tdfx -tga -trident -tseng -v4l -vga -via
-vmware -voodoo" 0 kB

Since my binary packages were built on this system, using the binary
package is the same:

carcharias src # emerge -pv -k xorg-x11
[binary   R   ] x11-base/xorg-x11-7.0-r1  USE="-3dfx"
INPUT_DEVICES="evdev keyboard mouse synaptics -acecad -aiptek -calcomp
-citron -digitaledge -dmc -dynapro -elo2300 -elographics -fpit
-hyperpen -jamstudio -joystick -magellan -magictouch -microtouch
-mutouch -palmax -penmount -spaceorb -summa -tek4957 -ur98 -vmmouse
-void -wacom" VIDEO_CARDS="fbdev nv nvidia vesa -apm -ark -chips
-cirrus -cyrix -dummy -fglrx -glint -i128 -i740 -i810 -imstt -mach64
-mga -neomagic -nsc -r128 -radeon -rendition -s3 -s3virge -savage
-siliconmotion -sis -sisusb -tdfx -tga -trident -tseng -v4l -vga -via
-vmware -voodoo"

Now "simulate" a system with different VIDEO_CARDS by adding fglrx:

carcharias src # VIDEO_CARDS="fbdev nv nvidia vesa fglrx" emerge -pv xorg-x11
[ebuild  N    ] x11-drivers/ati-drivers-8.26.18-r1  USE="-acpi -doc
-opengl" 23,160 kB
[ebuild   R   ] x11-base/xorg-x11-7.0-r1  USE="-3dfx"
INPUT_DEVICES="evdev keyboard mouse synaptics -acecad -aiptek -calcomp
-citron -digitaledge -dmc -dynapro -elo2300 -elographics -fpit
-hyperpen -jamstudio -joystick -magellan -magictouch -microtouch
-mutouch -palmax -penmount -spaceorb -summa -tek4957 -ur98 -vmmouse
-void -wacom" VIDEO_CARDS="fbdev fglrx* nv nvidia vesa -apm -ark
-chips -cirrus -cyrix -dummy -glint -i128 -i740 -i810 -imstt -mach64
-mga -neomagic -nsc -r128 -radeon -rendition -s3 -s3virge -savage
-siliconmotion -sis -sisusb -tdfx -tga -trident -tseng -v4l -vga -via
-vmware -voodoo" 0 kB

So it recognized that I added fglrx,and wants to add
x11-drivers/ati-drivers.  Now let's try that with the binary package,
that now does not match my "target" system:

carcharias src # VIDEO_CARDS="fbdev nv nvidia vesa fglrx" emerge -pv
--usepkgonly xorg-x11
[binary   R   ] x11-base/xorg-x11-7.0-r1  USE="-3dfx"
INPUT_DEVICES="evdev keyboard mouse synaptics -acecad -aiptek -calcomp
-citron -digitaledge -dmc -dynapro -elo2300 -elographics -fpit
-hyperpen -jamstudio -joystick -magellan -magictouch -microtouch
-mutouch -palmax -penmount -spaceorb -summa -tek4957 -ur98 -vmmouse
-void -wacom" VIDEO_CARDS="fbdev nv nvidia vesa -apm -ark -chips
-cirrus -cyrix -dummy -fglrx -glint -i128 -i740 -i810 -imstt -mach64
-mga -neomagic -nsc -r128 -radeon -rendition -s3 -s3virge -savage
-siliconmotion -sis -sisusb -tdfx -tga -trident -tseng -v4l -vga -via
-vmware -voodoo"

See, no fglrx and no merging of ati-drivers, even though fglrx is in
my VIDEO_CARDS.

HTH,
-Richard
--
gentoo-user@gentoo.org mailing list

Reply via email to