Typing emerge in gives the following error: !!! Error: couldn't find match for ~x11-libs/qt-2 in app-games/nethack-3.4.0-r2 I think possibly it could have to do with the naming schemea of qt-2.3.2 within the portage system . Also, when I tried to do a "-QT" in the USES, it did not work.. though.. I might have messed up the syntax of the USES myself. Possibly we might look at splitting qt3 and qt2 up, as some still depend on the latter. However, the original error still exists. Thanks.
It seems taking the ~ off the depend for qt fixes this. Is the use of ~ deprecated?
Okay.. I cannot seem to update files up to the bugs.. but.. basically, removing the ~ seems to allow it to go further, though, it still does not seem to do dependency checking for qt, gnome, or xfree. So.. one problem solved, two remain.
Two courses of fixation for this bug. Method one.. link /usr/qt/3/lib/libqt.so to /usr/qt/3/lib/libqt-mt.so and apply following patch. Note that a symbolic link is needed here. This is the method I used. It breaks anything non compatible with qt3, though. Also.. and quite oddly, might I add.. this gives errors about conencting to the XServer. Perhaps there is something else in the makefile? ######## 16c16 < qt? ( ~x11-libs/qt-2 ) --- > qt? ( >=x11-libs/qt-3 ) 99c101 < -e 's:$(QTDIR):/usr/qt/2:' \ --- > -e 's:$(QTDIR):/usr/qt/3:' \ ######### Method two.. edit Makefile and replace instances of -libqt with -libqt-mt. I recommend this method be undertaken (as well as the patch file used) to make it better. This way we can also knock out whatever is causing the permissions error on running. I must get sleep now, though.. heh. Good luck!
Thanks Jarrod! Update Follows: I checked by editing my make.conf and the ebuild is looking at the deps correctly. But, I have the incorrect syntax for specifying "any version of qt-2". Please advise. The docs say '~x11-libs/qt-2' should work as "the newest version of qt-2" but that's what started this mess. As a test I built NetHack using /usr/qt/3 and -lqt-mt and got: --paste-- jason@roland jason $ nethack Xlib: connection to ":0.0" refused by server Xlib: No protocol specified nethack: cannot connect to X server :0.0 jason@roland jason $ --end paste-- TTY, Gnome, and X windowtypes do not give any errors. Compiling with qt2 fixes the "cannot connect to X server" error; verified. Action: The only fix needed to our current ebuild is changing the depend line to specify the newest version of qt2 until we, or the nethack team, can get it to work with qt3.
Hmm.. I got the error regarding thw unable to connect to Zserver, however doing a xhost + does solve that and lets the nethack qt connect. X permissions are out of my league, though..but when the xhost + is executed , it does fire up qt-nethack.
try : qt? ( =x11-libs/qt-2* ) instead, that should fix things, (it did for me in glib cases)
*** Bug 1987 has been marked as a duplicate of this bug. ***
Created attachment 638 [details, diff] patch to get function with qt2 Until qt3 support, this will have to work with qt2. This patches the dependancy per Spider's recommendation.
applied, thanks.