Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 318337 - games-board/stockfish: new ebuild (best free software chess engine)
Summary: games-board/stockfish: new ebuild (best free software chess engine)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High enhancement with 1 vote (vote)
Assignee: Gentoo Games
URL:
Whiteboard: [hasufell-overlay]
Keywords: EBUILD, PATCH
Depends on:
Blocks:
 
Reported: 2010-05-03 21:59 UTC by Thomas Capricelli
Modified: 2015-02-06 14:58 UTC (History)
5 users (show)

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


Attachments
Ebuild for stockfish-1.9.1 (stockfish-1.9.1.ebuild,1.06 KB, text/plain)
2010-10-09 05:59 UTC, Tim Harder
Details
Patch to fix makefile issues (stockfish-1.9.1-makefile.patch,952 bytes, patch)
2010-10-09 06:01 UTC, Tim Harder
Details | Diff
updated stockfish 2.11 ebuild (stockfish-2.1.1.ebuild,1.01 KB, text/plain)
2011-07-12 19:16 UTC, Pascal de Bruijn
Details
stockfish-20131129.ebuild (stockfish-20131129.ebuild,1.12 KB, text/plain)
2014-04-15 13:11 UTC, Julian Ospald
Details
stockfish-20131129-make.patch (stockfish-20131129-make.patch,8.02 KB, patch)
2014-04-15 13:12 UTC, Julian Ospald
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Capricelli 2010-05-03 21:59:27 UTC
http://www.stockfishchess.com/
http://www.stockfishchess.com/about/

It's almost as good as the best chess engine (commercial). It's GPLv3 and has definitely its place next to crafty and other engines already in gentoo.

Reproducible: Always
Comment 1 Tim Harder gentoo-dev 2010-10-09 05:59:54 UTC
Created attachment 249989 [details]
Ebuild for stockfish-1.9.1

I'll probably get this into the main tree at some point in the near future.
Comment 2 Tim Harder gentoo-dev 2010-10-09 06:01:30 UTC
Created attachment 249991 [details, diff]
Patch to fix makefile issues

This patch fixes a few makefile issues such as respecting CXXFLAGS, LDFLAGS, and not stripping the binaries.
Comment 3 Thomas Capricelli 2010-10-09 10:04:54 UTC
Hi.

It emerges here and install the binary which seems to work.
stockfish --help does not tell me how to use the opening book, even though the Readme.txt file tells 
      The book file can be selected by setting the
      UCI parameter "Book File".
Which i dont understand :/

But those is 'usage' problem, thanks a lot for the ebuild.

Why did you remove the 'config-sanity' step in the Makefile ?
Comment 4 Tim Harder gentoo-dev 2010-10-10 05:36:26 UTC
(In reply to comment #3)
> stockfish --help does not tell me how to use the opening book, even though the
> Readme.txt file tells 
>       The book file can be selected by setting the
>       UCI parameter "Book File".
> Which i dont understand :/

Yeah, I suppose I could add a USE flag to install the opening book available on stockfish's website in the correct place.

Anyway, stockfish is just a UCI chess engine so you'll need to use some UCI compatible GUI such as xboard with polyglot, eboard, or any of the others mentioned in the readme file in order to use it.

> Why did you remove the 'config-sanity' step in the Makefile ?

Because it isn't very sane and causes the compile to fail. :)

Basically it checks if certain variables are set relating to the build architecture, OS, optimizations, etc and fails since none are set in the ebuild since the patch just makes the compile run with the user's CXXFLAGS and LDFLAGS.

I could probably handle this better, but I chose the quick fix to respect a user's CXXFLAGS and LDFLAGS for now.
Comment 5 Pascal de Bruijn 2011-07-12 19:16:07 UTC
Created attachment 279903 [details]
updated stockfish 2.11 ebuild

I updated the previously attached stockfish ebuild, and tested it on my Yeeloong netbook (with Loongson MIPS64el CPU).

Because I built/tested it on a weird CPU you'll note my ARCH=general-32 addition, which probably isn't required for regular builds.
Comment 6 Thomas Capricelli 2011-08-13 14:14:32 UTC
hi. It compiles/installs and runs fine. Still, i find the ARCH=general-32 really weird.
It works well too if use instead ARCH=general-64. (i'm on ~amd64)
Comment 7 Patrick Lauer gentoo-dev 2014-04-15 04:03:40 UTC
Current version is:

SRC_URI="https://s3.amazonaws.com/stockfish/stockfish-dd-src.zip"
S="${WORKDIR}/stockfish-dd-src/src"

I have no idea what version number one would guess for that.

The src_compile phase ends up especially horrible:

emake build ARCH=x86-64-modern

and other platform-specific values. I see no way to get that into a useful shape ...
Comment 8 Julian Ospald 2014-04-15 13:10:32 UTC
afais we need polyglot to run this with xboard/eboard, am I wrong?

http://wbec-ridderkerk.nl/html/details1/PolyGlot.html
Comment 9 Julian Ospald 2014-04-15 13:11:41 UTC
Created attachment 374992 [details]
stockfish-20131129.ebuild
Comment 10 Julian Ospald 2014-04-15 13:12:03 UTC
Created attachment 374994 [details, diff]
stockfish-20131129-make.patch
Comment 11 Julian Ospald 2014-04-19 11:14:11 UTC
in my own overlay until upstream uses proper versioning
Comment 12 Evgeniy 2014-09-14 17:05:18 UTC
Latest version on github: https://github.com/syzygy1/Stockfish
Comment 13 Julian Ospald 2014-09-14 17:21:20 UTC
(In reply to Evgeniy from comment #12)
> Latest version on github: https://github.com/syzygy1/Stockfish

that's a fork
Comment 14 Evgeniy 2014-09-15 06:34:11 UTC
(In reply to Julian Ospald (hasufell) from comment #13)
> (In reply to Evgeniy from comment #12)
> > Latest version on github: https://github.com/syzygy1/Stockfish
> 
> that's a fork

Official one, with added functionality (Syzygy tablebases support).
Comment 15 Ben de Groot (RETIRED) gentoo-dev 2015-01-30 02:47:59 UTC
There is a new version, now with a properly versioned file: https://stockfish.s3.amazonaws.com/stockfish-6-src.zip

We should probably drop games.eclass usage, and implement CPU_FLAGS_X86 as being discussed on gentoo-dev mailing list.

Also, shouldn't this be in games-engines category? It's a chess engine, and needs a separate GUI package.
Comment 16 Ben de Groot (RETIRED) gentoo-dev 2015-02-05 20:10:28 UTC
+  05 Feb 2015; Ben de Groot <yngwin@gentoo.org> +metadata.xml,
+  +stockfish-6.ebuild:
+  Initial commit (bug #318337)
Comment 17 Evgeniy 2015-02-06 09:43:05 UTC
(In reply to Ben de Groot from comment #16)
> +  05 Feb 2015; Ben de Groot <yngwin@gentoo.org> +metadata.xml,
> +  +stockfish-6.ebuild:
> +  Initial commit (bug #318337)

What about -9999 version? stockfish is constantly developed and improved, new vereion is out each few days(see github link I've posted earlier)
Comment 18 Ben de Groot (RETIRED) gentoo-dev 2015-02-06 14:58:47 UTC
(In reply to Evgeniy from comment #17)
> What about -9999 version? stockfish is constantly developed and improved,
> new vereion is out each few days(see github link I've posted earlier)

Good idea! I've put a live ebuild in the betagarden overlay.