Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 1894 - Nethack 3.4.0 r2 gives error on emerge.
Summary: Nethack 3.4.0 r2 gives error on emerge.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Spider (RETIRED)
URL:
Whiteboard:
Keywords:
: 1987 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-04-18 00:18 UTC by Jarrod Henry
Modified: 2003-02-04 19:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to get function with qt2 (nethack-3.4.0-r3.ebuild.diff,342 bytes, patch)
2002-04-22 11:10 UTC, Jason Draugluin Ritchie
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jarrod Henry 2002-04-18 00:18:23 UTC
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.
Comment 1 Jason Draugluin Ritchie 2002-04-18 00:20:48 UTC
It seems taking the ~ off the depend for qt fixes this.  Is the use of ~ deprecated?
Comment 2 Jarrod Henry 2002-04-18 00:39:02 UTC
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.

Comment 3 Jarrod Henry 2002-04-18 01:28:18 UTC
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! 
 
 
Comment 4 Jason Draugluin Ritchie 2002-04-18 03:37:06 UTC
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.
Comment 5 Jarrod Henry 2002-04-18 10:39:03 UTC
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.   
Comment 6 Spider (RETIRED) gentoo-dev 2002-04-21 20:17:04 UTC
try :
qt? ( =x11-libs/qt-2* )

instead, that should fix things, (it did for me in glib cases)
Comment 7 Spider (RETIRED) gentoo-dev 2002-04-21 20:20:13 UTC
*** Bug 1987 has been marked as a duplicate of this bug. ***
Comment 8 Jason Draugluin Ritchie 2002-04-22 11:10:21 UTC
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.
Comment 9 Spider (RETIRED) gentoo-dev 2002-04-23 04:24:28 UTC
applied, thanks.