Bug 16041

Summary: dreamchess does not start
Product: Mageia Reporter: Marc Lattemann <marc.lattemann>
Component: RPM PackagesAssignee: Rémi Verschelde <rverschelde>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: Normal CC: thierry.vignaud, wilsona
Version: CauldronKeywords: PATCH
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: dreamchess-0.2.1-0.rc2.2.mga5 CVE:
Status comment:

Description Marc Lattemann 2015-05-26 20:16:18 CEST
On contact@mageia.org a user informed that he cannot start dreamchess in Mageia 5 and he's correct:

starting with increased log level:

[marc@Laptop ~]$ dreamchess -v3
DreamChess v0.2.1-RC2 (0203100)
theme.c:69: loading themes/default.xml
theme.c:152: added theme: Classic Wooden default
theme.c:152: added theme: Figurine flat
theme.c:69: loading themes/sketch.xml
theme.c:152: added theme: Sketch sketch
theme.c:69: loading themes/metal.xml
theme.c:69: loading themes/elements.xml
theme.c:152: added theme: Opposing Elements elements
options.c:212: warning: failed to open 'options.xml'
dreamchess.c:559: error: failed to find a user interface driver

listing available drivers:
[marc@Laptop ~]$ dreamchess -l
DreamChess v0.2.1-RC2 (0203100)
Available drivers:

User interface: 
[marc@Laptop ~]$
Rémi Verschelde 2015-05-26 20:26:39 CEST

Assignee: bugsquad => rverschelde

Comment 1 Rémi Verschelde 2015-05-26 20:28:38 CEST
Strange, I just rebuilt the package locally with no changes (apart from a release bump), and then it works fine.

Maybe mxml was updated in cauldron but dreamchess was not rebuilt against it.
Anyway, I'll ask for a rebuild.
Comment 2 Al Wilson 2015-05-26 23:57:25 CEST
I just simply cant get it to work, I don't know the problem, I installed the one that worked for Mageia 3 but half way through, the computer freezes in that one and I don't know if it's over heating the cpu or what, that one still works on my laptop on Mageia 4.1 and don't freeze so, on my main computer, I don't really know if it's the system Mageia 5 or just that simple program BattleChess. I really like the graphics on Mageia 5 and you people did a very good job with this operating system but I noticed my cpu is running about 10 degrees higher after boot up which means in my mind there is something running in the background that is causing that issue and when I play my game, it will freeze which is telling me it's the game but I could be wrong, It could be the operating system it self on that one game and I would hate to switch back to 4.1 over one simple issue. I was amazed at the woerk you put in this in the last 3 years. Thank You very much and my email is wilsona@vianet.ca Thanks Agan
Al Wilson

CC: (none) => wilsona

Comment 3 Thierry Vignaud 2015-05-27 08:50:39 CEST
(In reply to Rémi Verschelde from comment #1)
> Strange, I just rebuilt the package locally with no changes (apart from a
> release bump), and then it works fine.

You can use rpmdiff from rpmlint in order to check differences between both packages.

As you've not build your package with iurt, it was built in an environment with more packages and might have compiled with more libraries and thus it may have picked additional requires as such...

Keywords: (none) => NEEDINFO
CC: (none) => thierry.vignaud

Comment 4 Thierry Vignaud 2015-05-27 08:57:47 CEST
eg comparing:
http://rpmfind.net//linux/RPM/mageia/cauldron/x86_64/media/core/release/dreamchess-0.2.1-0.rc2.2.mga5.x86_64.html
http://rpmfind.net//linux/RPM/fedora/devel/rawhide/x86_64/d/dreamchess-0.2.1-9.RC2.fc22.x86_64.html

shows that FC build have picked libGL* as well as libSDL_image

So we might just miss BuildRequires on:
- pkgconfig(SDL_image)
- pkgconfig(glew)
- pkgconfig(gl)

Which FC does:
http://pkgs.fedoraproject.org/cgit/dreamchess.git/tree/dreamchess.spec

You can use iurt in order to test those new BRs
Comment 5 Rémi Verschelde 2015-05-27 09:04:29 CEST
Indeed, thanks for checking that Thierry. I've compared the package from the BS and my local rebuild with rpmdiff, and indeed:

added       REQUIRES libGL.so.1()(64bit)  
added       REQUIRES libGLEW.so.1.11()(64bit)  
added       REQUIRES libGLU.so.1()(64bit)  
added       REQUIRES libSDL_image-1.2.so.0()(64bit) 

I'll add those missing BuildRequires.
Comment 6 Rémi Verschelde 2015-05-27 09:09:00 CEST
It's puzzling though that libGL and libSDL_image were added in the new build, as the package already pkgconfig(SDL_image) when it was built on the BS (and therefore pkgconfig(sdl) and pkgconfig(gl)). But GLEW and GLU would indeed be missing anyway.
Comment 7 Thierry Vignaud 2015-05-27 09:13:02 CEST
Dreamchess's build system may only check for or enable SDL_image if GL is availlable...
Comment 8 Rémi Verschelde 2015-05-27 09:17:19 CEST
Yeah good point, though it would be if GLU and/or GLEW is available, as GL is pulled by SDL :)

Keywords: NEEDINFO => (none)

Comment 9 Rémi Verschelde 2015-05-27 10:40:10 CEST
We are now in complete freeze for Mageia 5, for I'll push this one as an update as soon as Mageia 5 is released.

Whiteboard: (none) => MGA5TOO
Severity: normal => major

Thierry Vignaud 2015-05-27 20:11:34 CEST

Keywords: (none) => PATCH

Comment 10 Rémi Verschelde 2015-05-27 20:13:41 CEST
For future reference, the needed changes have been committed here: http://svnweb.mageia.org/packages/cauldron/dreamchess/current/SPECS/dreamchess.spec?r1=822748&r2=822758
Since Mageia 5 will probably be branched off the last built version, I'll probably have to commit it again to the updates/5 branch when it's created.
Comment 11 Rémi Verschelde 2015-05-28 18:23:07 CEST
Finally the freeze push was done before the release.

Status: NEW => RESOLVED
Resolution: (none) => FIXED
Whiteboard: MGA5TOO => (none)