Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 36908 - knights can't load emerged engine
Summary: knights can't load emerged engine
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-31 11:53 UTC by Benjamin Schulz
Modified: 2004-01-05 07:16 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Schulz 2003-12-31 11:53:05 UTC
emerge crafty
emerge gnuchess
installs chess engines. 
emerge knights installs a kde board
emerge xboard installs an XFree board.
first, before using gnuchess with xboad one has to copy gnuchess into /usr/src/bin or make a symlink. Otherwise Xboard doesn't find the engine per default.

second, one can specify engine paths in the kde board knights. It doesn't matter where the executables of the engines are and what options are set. Knights does give a debug message when starting a new game:

mcop warning: user defined signal handler found for SIG_PIPE, overriding
QFile::open: No file name specified
QFile::open: No file name specified
QFile::open: No file name specified
QFile::open: No file name specified
QFile::open: No file name specified
QFile::open: No file name specified
QFile::open: No file name specified
QFile::open: No file name specified
QMetaObject::findSignal:io_engine: Conflict with io_base::sendCMD(const Command&)

it does not call any engine when one starts to play at all. knights in this ebuild is useless.


Reproducible: Always
Steps to Reproduce:
1.emerge knights
2.energe gnuches or emerge crafty
3.start knights and set the path to the engines
4.make a move

Actual Results:  
knights doesn't call the engines

Expected Results:  
knights should call the engines
Comment 1 SpanKY gentoo-dev 2004-01-04 20:57:07 UTC
xboard works fine here w/out messing around with symlinks like you say

i did this:
`emerge crafty gnuchess xboard knights`
then i ran `xboard` and played a little and it worked fine
then i ran `knights` and played a little and it worked fine

those QFile warnings/errors are because knights keeps trying to read an image file that doesnt exist:
24785 access("/usr/kde/3.1/share/apps/knights/players.img", R_OK) = -1 ENOENT (No such file or directory)
24785 write(2, "QFile::open: No file name specif"..., 35) = 35
(repeat a few times)
i'd image it's related to the theme, but that file is nowhere to be found in the source tarballs, so whatever

perhaps you're not in the games group like many of the ebuilds warned ?
Comment 2 Benjamin Schulz 2004-01-04 23:16:45 UTC
yes, the "no filename specified" is irrelevant.
What is interesting is:
QMetaObject::findSignal:io_engine: Conflict with io_base::sendCMD(const Command&)

Here Knights states that it can't communicate with the engine.
I get this error when ever I want to play.
Comment 3 SpanKY gentoo-dev 2004-01-04 23:25:51 UTC
i get the same warning/error over here yet the game works

i move my piece and bam he moves his (well, after i set the time limit allowed the computer to a 'quicker' value)

are you in the games group ?  you didnt say either way
Comment 4 Benjamin Schulz 2004-01-04 23:56:24 UTC
What is with this warning:

mcop warning: user defined signal handler found for SIG_PIPE, overriding

i set the time limit to 1 minute. Everytime knight says that I win. The computer doesn't make any moves. knight reports: Black's flag was called. White wins

(and the only thing that I did was one simple move)
No I'm not in any "Group" just a User that reported some strange behaviour.  I have Kerne 2.6. Maybe that there are some problems with QT and KDE? 

(jes knight seems to be correctly configured)
Comment 5 SpanKY gentoo-dev 2004-01-05 04:48:33 UTC
mcop warning: user defined signal handler found for SIG_PIPE, overriding

that is simply a KDE thing ... launch kmail or something, you'll see it ... means nothing to the end user

you have to be in the 'games' group in order to play games
everytime you emerge a game you see this warning:
    ewarn "Remember, in order to play games, you have to"
    ewarn "be in the '${GAMES_GROUP}' group."
    echo
    einfo "See the usermod(8) manpage for more information."

what does `groups` show ?
Comment 6 Benjamin Schulz 2004-01-05 05:10:13 UTC
groups shows 
root bin daemon sys adm disk wheel floppy dialout tape video

thank you. 
I'll try the forum to search for an intro how to get into the games group.

BTW:
When I am not in that group, why I am able to play crafty and gnuchess from the command line?
Comment 7 SpanKY gentoo-dev 2004-01-05 05:35:11 UTC
what does `which  gnuchess` and `which crafty` show ?
it probably works becaause you're root
although knights works just fine for me as root ...
Comment 8 Benjamin Schulz 2004-01-05 06:49:26 UTC
Well, you are right. I'm only allowed to play crafty on the command line. Crafty is installed via emerge in
 /usr/bin
instead of /usr/games/bin

someone should change this in the crafty ebuild
Comment 9 Benjamin Schulz 2004-01-05 06:50:43 UTC
BTW
Why do I only see xboard and gnuchess but not knights in the games directory
Comment 10 SpanKY gentoo-dev 2004-01-05 07:09:25 UTC
i had fixed crafty, but only version 19.8 ...
i just unmasked that, sync up in a bit and try emerging that

knights is not found in /usr/games/bin because it is pretty integrated with kde ... atm, we dont force apps that heavily integrate with gnome/kde to use games.eclass ... just too many headaches
Comment 11 Benjamin Schulz 2004-01-05 07:16:18 UTC
OK. Ill consider that bug as closed.

Thanks
Comment 12 Benjamin Schulz 2004-01-05 07:16:48 UTC
closed