Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 155132

Summary: app-text/tetex-3.0_p1-r3 inherits virtualx.eclass
Product: Gentoo Linux Reporter: Jérémy Just <jeremy_just>
Component: New packagesAssignee: TeX project <tex>
Status: RESOLVED CANTFIX    
Severity: normal CC: ehmsen, jakub, jeremy_just, truedfx
Priority: Highest    
Version: 2006.1   
Hardware: PPC   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Trivial patch to avoid unneeded dependencies on X server

Description Jérémy Just 2006-11-14 06:04:39 UTC
app-text/tetex-3.0_p1-r3 has an unneeded dependency on the server part of X.org, probably x11-base/xorg-server.

On a headless box (with only the client part of X installed), I get this list of packages when I try to upgrade from tetex-2.0.2-r8 to tetex-3.0_p1-r3:


# emerge -uD --pretend world

These are the packages that would be merged, in order:

Calculating world dependencies... done!
[ebuild  N    ] x11-proto/xf86miscproto-0.9.2  USE="-debug" 
[ebuild  N    ] x11-libs/libXxf86misc-1.0.1  USE="-debug" 
[ebuild  N    ] x11-libs/liblbxutil-1.0.1  USE="-debug" 
[ebuild  N    ] x11-libs/libxkbui-1.0.2  USE="-debug" 
[ebuild  N    ] x11-proto/resourceproto-1.0.2  USE="-debug" 
[ebuild  N    ] x11-libs/libXres-1.0.1  USE="-debug" 
[ebuild  N    ] x11-proto/xf86dgaproto-2.0.2  USE="-debug" 
[ebuild  N    ] x11-proto/videoproto-2.2.2  USE="-debug" 
[ebuild  N    ] x11-proto/fixesproto-4.0  USE="-debug" 
[ebuild  N    ] x11-proto/trapproto-3.4.3  USE="-debug" 
[ebuild  N    ] x11-proto/recordproto-1.13.2  USE="-debug" 
[ebuild  N    ] x11-libs/libXtst-1.0.1  USE="-debug" 
[ebuild  N    ] x11-proto/xineramaproto-1.1.2  USE="-debug" 
[ebuild  N    ] app-admin/eselect-opengl-1.0.3  
[ebuild  N    ] x11-apps/rgb-1.0.1  USE="-debug" 
[ebuild  N    ] x11-apps/iceauth-1.0.1  USE="-debug" 
[ebuild  N    ] x11-apps/mkfontscale-1.0.1  USE="-debug" 
[ebuild  N    ] media-fonts/encodings-1.0.0  USE="-debug" 
[ebuild  N    ] media-fonts/font-util-1.0.1  USE="-debug" 
[ebuild  N    ] x11-apps/bdftopcf-1.0.0  USE="-debug" 
[ebuild  N    ] x11-apps/mkfontdir-1.0.2  USE="-debug" 
[ebuild  N    ] media-fonts/font-adobe-75dpi-1.0.0  USE="X nls" 
[ebuild  N    ] media-fonts/font-alias-1.0.1  USE="-debug" 
[ebuild  N    ] x11-proto/xf86rushproto-1.1.2  USE="-debug" 
[ebuild  N    ] media-fonts/font-misc-misc-1.0.0  USE="X nls" 
[ebuild  N    ] x11-proto/damageproto-1.0.3  USE="-debug" 
[ebuild  N    ] media-fonts/font-cursor-misc-1.0.0  USE="X nls" 
[ebuild  N    ] x11-proto/xf86vidmodeproto-2.2.2  USE="-debug" 
[ebuild  N    ] x11-libs/libXxf86vm-1.0.1  USE="-debug" 
[ebuild  N    ] x11-apps/xkbcomp-1.0.2  USE="-debug" 
[ebuild  N    ] x11-misc/xkeyboard-config-0.8  
[ebuild  N    ] x11-proto/evieext-1.0.2  USE="-debug" 
[ebuild  N    ] x11-misc/xbitmaps-1.0.1  USE="-debug" 
[ebuild  N    ] x11-proto/xf86driproto-2.0.3  USE="-debug" 
[ebuild  N    ] x11-misc/makedepend-1.0.0  USE="-debug" 
[ebuild  N    ] x11-proto/glproto-1.4.8  USE="-debug" 
[ebuild  N    ] x11-libs/libdrm-2.0.2  USE="-debug" 
[ebuild  N    ] x11-libs/libXi-1.0.1  USE="-debug" 
[ebuild  N    ] media-libs/mesa-6.5.1-r1  USE="hardened nptl -debug -doc -motif" VIDEO_CARDS="(-i810) -mach64 -mga -none -r128 -radeon -s3virge -savage (-sis) (-sunffb) -tdfx -trident (-via)" 
[ebuild  N    ] x11-apps/xclock-1.0.2  USE="-debug -xprint" 
[ebuild  N    ] net-misc/netkit-rsh-0.17-r7  USE="pam" 
[ebuild  N    ] x11-apps/xsm-1.0.1  USE="-debug -xprint" 
[ebuild  N    ] x11-apps/xrdb-1.0.2  USE="-debug" 
[ebuild  N    ] x11-wm/twm-1.0.1  USE="-debug" 
[ebuild  N    ] x11-apps/xinit-1.0.2-r6  USE="-debug -minimal" 
[ebuild  N    ] x11-proto/compositeproto-0.3.1  USE="-debug" 
[ebuild  N    ] x11-proto/scrnsaverproto-1.1.0  USE="-debug" 
[ebuild  N    ] x11-proto/randrproto-1.1.2  USE="-debug" 
[ebuild  N    ] x11-base/xorg-server-1.1.1-r1  USE="dri nptl sdl xorg (-3dfx) -aiglx -debug -dmx -ipv6 -kdrive -minimal -xprint" INPUT_DEVICES="evdev keyboard mouse -acecad -aiptek -calcomp -citron -digitaledge -dmc -dynapro -elo2300 -elographics -fpit -hyperpen -jamstudio -joystick -magellan -microtouch -mutouch -palmax -penmount -spaceorb -summa -synaptics -tek4957 -ur98 (-vmmouse) -void -wacom" VIDEO_CARDS="chips dummy fbdev glint imstt v4l (-apm) (-ark) -cirrus (-cyrix) -epson (-fglrx) (-i128) (-i740) (-i810) (-impact) -mach64 -mga (-neomagic) (-newport) (-nsc) -nv (-nvidia) -r128 -radeon (-rendition) -s3 -s3virge -savage (-siliconmotion) (-sis) -sisusb (-sunbw2) (-suncg14) (-suncg3) (-suncg6) (-sunffb) (-sunleo) (-suntcx) -tdfx (-tga) -trident (-tseng) (-vesa) (-vga) (-via) (-vmware) -voodoo" 
[ebuild  N    ] x11-drivers/xf86-video-dummy-0.2.0  USE="-debug" 
[ebuild  N    ] x11-drivers/xf86-video-imstt-1.1.0  USE="-debug" 
[ebuild  N    ] x11-drivers/xf86-input-evdev-1.1.2-r2  USE="-debug" 
[ebuild  N    ] x11-drivers/xf86-input-mouse-1.1.1  USE="-debug" 
[ebuild  N    ] x11-drivers/xf86-video-chips-1.1.1  USE="-debug" 
[ebuild  N    ] x11-drivers/xf86-video-fbdev-0.3.0  USE="-debug" 
[ebuild  N    ] x11-drivers/xf86-video-glint-1.1.1  USE="dri -debug" 
[ebuild  N    ] x11-drivers/xf86-video-v4l-0.1.1  USE="-debug" 
[ebuild  N    ] x11-drivers/xf86-input-keyboard-1.1.0  USE="-debug" 
[ebuild     U ] app-text/tetex-3.0_p1-r3 [2.0.2-r8] USE="-Xaw3d% -lesstif% -motif% -neXt%"
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-11-14 11:28:01 UTC
How about that you remove X from your use flags...
Comment 2 Harald van Dijk (RETIRED) gentoo-dev 2006-11-14 13:01:37 UTC
Just to add: this is not actually INVALID, since USE=X is supposed to be set for such a system. However, this problem has come up before with for example gtk+, and the decision was not to fix it, since unfortunately there's simply not a good way to do so, and you can work around it by using /etc/portage/package.use to turn off the X flag for the few packages that pull in a server.
Comment 3 Jérémy Just 2006-11-14 13:23:55 UTC
(In reply to comment #2)

> Just to add: this is not actually INVALID, since USE=X is supposed to be set
> for such a system.

  Yes, I have set USE=X, so I can export xterms through ssh, for example.


> you can work around it by using /etc/portage/package.use to turn off
> the X flag for the few packages that pull in a server.

  That's the temporary fix I have choosen. But as a side effect, I
lose "xdvi".


> However, this problem has come up before with for example
> gtk+, and the decision was not to fix it, since unfortunately
> there's simply not a good way to do so

  I hoped this were related to this topic:
http://www.gentoo.org/proj/en/desktop/x/x11/porting-modular-x-howto.xml

  Thank you.
Comment 4 Jérémy Just 2006-11-15 03:04:53 UTC
Created attachment 101970 [details, diff]
Trivial patch to avoid unneeded dependencies on X server
Comment 5 Harald van Dijk (RETIRED) gentoo-dev 2006-11-15 03:11:52 UTC
No, the virtualx eclass is needed. The ebuild already explains why.
Comment 6 Jérémy Just 2006-11-15 03:28:22 UTC
I think the bug comes from an undue call to "virtualx.eclass" in the inherit line.

"tetex.class" sets properly the X dependencies (mentionning only the minimal set of libraries), and I don't understand why "virtualx.eclass" should also be called (in the changelog, Martin Ehmsen explains it is for make test [#69439]; I add him in CC, so he can confirm).

Everything seems to compile/run fine for me with the trivial patch I've attached.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-11-15 03:33:30 UTC
Comment on attachment 101970 [details, diff]
Trivial patch to avoid unneeded dependencies on X server

As said, the inherit is needed.
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-11-15 03:40:36 UTC
(In reply to comment #6)
> I think the bug comes from an undue call to "virtualx.eclass" in the inherit
> line.

Either fix the tests properly (read Bug 69439) or stick 'app-text/tetex -X' into /etc/portage/package.use.
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2007-08-04 12:02:03 UTC
Closing this. Feel free to reopen with a *real* patch so that the tests don't require this eclass.