Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 14456

Summary: stable: directfb-0.9.12 incompatible with libsdl (1.2.4+)
Product: Gentoo Linux Reporter: John Scott Tillman <tillman>
Component: New packagesAssignee: Thomas Raschbacher <lordvan>
Status: RESOLVED FIXED    
Severity: normal CC: lordvan
Priority: High    
Version: 1.4_rc2   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 1991, 10863    
Bug Blocks: 14743    

Description John Scott Tillman 2003-01-23 16:03:36 UTC
current highest stable version of directfb is 0.9.12
current highest stable version of libstl is 1.2.5-r1

libsdl (all stable versions I checked) use the symbol DSPF_RGB15 defined in 
directfb/directfb.h.  The symbol in this file was changed (see 
http://directfb.org/cgi-bin/cvsweb.cgi/DirectFB/include/directfb.h revision 
1.163 comment) to DSPF_ARGB1555.  This change causes all current stable 
versions of libsdl to fail during compilation.

I found this during a fresh (stage1) install of gentoo 1.4-rc2.  Any new 
installs of gentoo using stable only packages and asking for libsdl seem 
destined to encounter this problem.  Using:
     USE="-directfb" emerge sdl
seems to make no difference.

possible solutions:
1)   mark directfb-0.9.12.ebuild as developmental, causing 0.9.11-r1 to be 
installed in stable boxen
2)   update the libsdl sources to use the new DSPF_ARGB1555 symbol
3)   manually select directfb-0.9.11-r1.ebuild

Option #3 works for me.

This ticket may be similar (but is not related) to another libsdl bug:
     http://bugs.gentoo.org/show_bug.cgi?id=10863
Comment 1 SpanKY gentoo-dev 2003-01-23 22:39:24 UTC
actually the better solution is to unmask the newer directfb
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2003-02-02 17:52:34 UTC
unmasking newer directfb will lead to b0rkages in a lot of places because of the library incompatibilities -- people will need to remerge everything which links to libdirectfb's so
Comment 3 SpanKY gentoo-dev 2003-03-11 11:54:59 UTC
this could just be left until libsdl-1.2.6 comes out ... 
 
or if you look at the libsdl cvs tree, they've fixed compatibility with directfb ... 
 
i still suggest we unmask latest directfb ;) 
Comment 4 Thomas Raschbacher gentoo-dev 2003-03-12 02:08:00 UTC
works with DirectFB 0.9.17 & libsdl 1.2.5-r1 here (gcc 3.2.2)
Comment 5 Thomas Raschbacher gentoo-dev 2003-03-12 02:08:18 UTC
closing now