Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 194737 - games-board/dreamchess (New Package)
Summary: games-board/dreamchess (New Package)
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://www.dreamchess.org/
Whiteboard: sunrise-removal
Keywords: EBUILD, InOverlay
Depends on:
Blocks:
 
Reported: 2007-10-04 21:15 UTC by Paul Bredbury
Modified: 2019-08-18 15:02 UTC (History)
4 users (show)

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


Attachments
dreamchess-0.1.0.ebuild (dreamchess-0.1.0.ebuild,842 bytes, text/plain)
2007-10-04 21:16 UTC, Paul Bredbury
Details
build.log (dreamchess-0.2.0:20150905-225634.log,91.23 KB, text/plain)
2015-09-05 23:05 UTC, Michael Weber (RETIRED)
Details
dreamchess-0.2.1_rc2.ebuild (dreamchess-0.2.1_rc2.ebuild,1022 bytes, text/plain)
2015-09-22 13:50 UTC, Samuel Bauer
Details
dreamchess.png (dreamchess.png,1.96 KB, image/png)
2015-09-22 13:51 UTC, Samuel Bauer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Bredbury 2007-10-04 21:15:10 UTC
Hi, here is an ebuild for DreamChess, a 3D OpenGL moderately-strong chess engine.
Comment 1 Paul Bredbury 2007-10-04 21:16:31 UTC
Created attachment 132594 [details]
dreamchess-0.1.0.ebuild
Comment 2 keenblade 2008-02-02 18:40:09 UTC
DreamChess 0.2.0 is out. But I can't compile it. I renamed this ebuil to dreamchess-0.2.0.ebuild, then within ebuild compile phase, it gives this error:

checking mxml.h usability... yes
checking mxml.h presence... yes
checking for mxml.h... yes
checking for mxmlLoadFile in -lmxml... no
configure: error: Cannot find Mini-XML library.

It is odd, because I have dev-libs/mini-xml-2.4.
dreamchess-0.1.0 works fine though.
Comment 3 Thomas Capricelli 2008-07-18 02:38:05 UTC
maybe this bug should be moved to 'ebuild wanted' or 'maintainer wanted' ?
Comment 4 Thomas Capricelli 2008-07-18 02:50:09 UTC
renaming 0.1.0 in 0.2.0 and adding dev-libs/mini-xml in dependencies, i have mini-xml installed (2.5) and same error :

configure: error: Cannot find Mini-XML library.

config.log says:

------------
configure:7075: x86_64-pc-linux-gnu-gcc -o conftest -march=native -O3 -pipe -msse3   conftest.c -lmxml   >&5
/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.4/../../../../lib64/libmxml.so: undefined reference to `pthread_key_create'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.4/../../../../lib64/libmxml.so: undefined reference to `pthread_once'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.4/../../../../lib64/libmxml.so: undefined reference to `pthread_getspecific'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.4/../../../../lib64/libmxml.so: undefined reference to `pthread_setspecific'

------------
Comment 5 Thomas Capricelli 2008-07-18 02:52:04 UTC
/usr/lib64/pkgconfig/mxml.pc file says 
Libs: -L/usr/lib64 -lmxml @PHTREAD_LIBS@

though i dont know how this is supposed to be put in the ebuild...
Comment 6 David Bitseff 2008-09-04 02:29:53 UTC
(In reply to comment #4)
> renaming 0.1.0 in 0.2.0 and adding dev-libs/mini-xml in dependencies, i have
> mini-xml installed (2.5) and same error :

I was able to compile 0.2.0 by adding dev-libs/mini-xml to RDEPEND in the renamed ebuild.  It built and ran using dev-libs/mini-xml-2.2.1.  I'm also using gcc 4.1.2 with CFLAGS="-O2 -march=nocona" on amd64.

Comment 7 Thomas Capricelli 2008-11-01 04:20:33 UTC
is there any overlay where this game could be available ?
Comment 8 David Bitseff 2008-11-28 05:31:47 UTC
This is now in the sunrise overlay. You can find it at:
http://overlays.gentoo.org/svn/proj/sunrise/reviewed/games-board/dreamchess/
Comment 9 Thomas Capricelli 2008-11-28 08:33:52 UTC
just had a try using the sunrise overlay. It fails with 

"configure: error: Cannot find Mini-XML library."

although this library has just been installed as a dependency 
(emerge -aqvt said:)

orzel@berlioz /home/orzel% emerge dreamchess   
[ebuild  N    ] games-board/dreamchess-0.2.0  USE="-music -sound" 
[ebuild  N    ]  dev-libs/mini-xml-2.5                            

Would you like to merge these packages? [Yes/No] 
>>> Verifying ebuild manifests                   
>>> Starting parallel fetch                      
>>> Emerging (1 of 2) dev-libs/mini-xml-2.5      
>>> Installing dev-libs/mini-xml-2.5             
>>> Emerging (2 of 2) games-board/dreamchess-0.2.0
>>> Failed to emerge games-board/dreamchess-0.2.0, Log file:
Comment 10 Walter van Niftrik 2008-11-29 20:19:58 UTC
(In reply to comment #9)
> "configure: error: Cannot find Mini-XML library."

There are several workarounds for this problem:

1) Use mxml 2.2.
2) Patch mxml to link with pthread (see e.g. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=467555).
3) Patch dreamchess configure script. This patch from debian might work: http://patch-tracking.debian.net/patch/series/dl/dreamchess/0.2.0-1/add-lpthread.diff
Comment 11 Thomas Capricelli 2008-12-01 00:31:27 UTC
adding this line to package.mask fixed the problem
>=dev-libs/mini-xml-2.3

though that seems weird, isn't it ?
emerge used dev-libs/mini-xml-2.2.1

I've tested the game, and it works.
Comment 12 David Bitseff 2008-12-02 21:45:59 UTC
(In reply to comment #10)
> 3) Patch dreamchess configure script. This patch from debian might work:
> http://patch-tracking.debian.net/patch/series/dl/dreamchess/0.2.0-1/add-lpthread.diff
> 

I've taken a fourth option to skip the -lxml configure test.  This links since libsdl needs pthreads as well.  The updated patch for this is in sunrise, so it should now build and run with any version of mini-xml currently in portage.

Option two is the best solution, so a new bug for mini-xml is in order.
Comment 13 Michael Weber (RETIRED) gentoo-dev 2015-09-05 22:51:10 UTC
Berlios went down, correct SRC_URI is now 
https://github.com/dreamchess/dreamchess/releases/download/0.2.0/dreamchess-0.2.0.tar.gz
Comment 14 Michael Weber (RETIRED) gentoo-dev 2015-09-05 23:05:16 UTC
Created attachment 411102 [details]
build.log

It needs an extra -lm in LDFLAGS,
and #include <math.h> in dreamchess-0.2.0/src/ui_sdlgl/ui_sdlgl_3d.c
Comment 15 Michael Weber (RETIRED) gentoo-dev 2015-09-05 23:16:03 UTC
(In reply to Michael Weber from comment #14)
> Created attachment 411102 [details]
> build.log
> 
> It needs an extra -lm in LDFLAGS,
> and #include <math.h> in dreamchess-0.2.0/src/ui_sdlgl/ui_sdlgl_3d.c

https://github.com/dreamchess/dreamchess/issues/6
Comment 16 Samuel Bauer 2015-09-22 13:50:03 UTC
Created attachment 412572 [details]
dreamchess-0.2.1_rc2.ebuild

Version bump for, [sunrise]games-board/dreamchess
Comment 17 Samuel Bauer 2015-09-22 13:51:28 UTC
Created attachment 412574 [details]
dreamchess.png
Comment 18 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-06-08 16:47:39 UTC
Hello, everyone.

It seems that at least one ebuild related to this bug exists in the Sunrise overlay at the moment. However, I have to regretfully announce that after a long inactivity period the Sunrise project has been discontinued and the related overlay will be eventually removed. For this reason, I'd like to ask you to reevaluate the ebuilds and consider moving them. If you'd like to maintain a package from Sunrise in Gentoo, please take a look at our Proxy Maintainers [1] project.

Please make sure to take ebuilds from the unreviewed developer Sunrise repository [2] rather than the -reviewed one, since the latter has not been updated for over a year. While at it, please note that:

1. Adding a package to Gentoo requires declaring yourself as an active maintainer for it. All bugs regarding the package will be assigned to you, and you will be expected to maintain it.

2. Some packages may not be suitable for addition anymore. While there's no strong rules that would prevent you from adding a package, it may be a bad idea to add old-unmaintained packages that will shortly result in a large number of bugs reported with no solution. If that is the case, please close the bug as RESOLVED/OBSOLETE to make it easier to find packages worth adding.

3. Some of the bugs were already closed as WONTFIX/OBSOLETE/... while the relevant ebuild was kept in Sunrise. If you disagree with the original decision, you still can add the ebuild via proxy-maint.

4. Pleaes note that many of the Sunrise ebuilds are old and may be buggy. If you decide to move them, please make sure to update/clean them up. The proxy-maint team will also review your ebuilds, therefore making sure they land in Gentoo in good quality.

Once again, thank you for your contribution. We hope that you will still want to contribute to Gentoo, through proxy-maint or otherwise.


[1]:https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers
[2]:https://gitweb.gentoo.org/proj/sunrise.git/
Comment 19 Thomas Capricelli 2019-08-18 15:02:19 UTC
They released a 0.3 recently, with cmake/ sdl2.

https://www.dreamchess.org/news/2019/03/18/dreamchess-0.3.0-released.html