Bug 107459 - glfw : dynamic library and bad window fix
Bug#: 107459 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: games@gentoo.org Reported By: leidola@newcon.de
Component: Games
URL: 
Summary: glfw : dynamic library and bad window fix
Keywords:  
Status Whiteboard: 
Opened: 2005-09-27 16:06 0000
Description:   Opened: 2005-09-27 16:06 0000
When using glfw via mono/tao you need a glfw.so, but there is no dynamic
library
build for x11 at all. This patch adds a target in the Makefile.in to build it.

Furthermore glfw apps don't start on xfree > 4.3 due a bug in glfw. There is a
bad window error message. I found a quick hack on their mailing list, but
although it resolves the problem the patch didn't go into the latest version.
The second patch contains the quick hack. 

Reproducible: Always
Steps to Reproduce:

------- Comment #1 From Olaf Leidinger 2005-09-27 16:08:04 0000 -------
Created an attachment (id=69380) [details]
dynamic library patch

------- Comment #2 From Olaf Leidinger 2005-09-27 16:08:49 0000 -------
Created an attachment (id=69381) [details]
removes some lines to prevent Bad Window error

------- Comment #3 From Olaf Leidinger 2005-09-27 16:11:25 0000 -------
Created an attachment (id=69382) [details]
patch to the ebuild

------- Comment #4 From Olaf Leidinger 2005-09-27 16:12:11 0000 -------
Created an attachment (id=69383) [details]
the complete ebuild

------- Comment #5 From Mr. Bones. 2005-09-27 17:01:48 0000 -------
Have these patches been sent upstream?

------- Comment #6 From Olaf Leidinger 2005-09-28 00:24:44 0000 -------
I think both are known, but not included 'till now:

http://sourceforge.net/forum/message.php?msg_id=3174010

http://sourceforge.net/tracker/index.php?func=detail&aid=1170806&group_id=72569&atid=534938

------- Comment #7 From Olaf Leidinger 2005-09-28 00:27:57 0000 -------
Created an attachment (id=69390) [details]
new dynamic library patch (with -fPIC)

add -fPIC compile option and disable assembler usage in x11_time.c

------- Comment #8 From Terry L. Triplett 2006-10-04 13:31:22 0000 -------
Created an attachment (id=98796) [details]
Revised version of "the complete ebuild"

Updated ebuild for shared library to match most recent glfw ebuild in portage.
Removed line that applies the "Bad Window error" fix because the problem
doesn't seem to affect modular x.

It's been a long time - can these changes be added to portage or is there a
reason they haven't been.

------- Comment #9 From Mr. Bones. 2006-10-04 14:17:39 0000 -------
When I build it, I get:

QA Notice: the following shared libraries lack a SONAME
 /var/tmp/portage/glfw-2.5.0/image/usr/lib/libglfw.so

------- Comment #10 From James Brown 2006-12-08 17:26:00 0000 -------
This patch fixed problems with compiling Io that were really starting to tic me
off... Is there any reason why it's not in Portage yet?

------- Comment #11 From Mr. Bones. 2006-12-09 12:47:15 0000 -------
yeah, fix what I mentioned in comment #9

------- Comment #12 From Tupone Alfredo 2007-02-07 07:46:29 0000 -------
Created an attachment (id=109406) [details]
glfw-2.5.0.ebuild 

Please, next time, attach as text/plain

------- Comment #13 From Tupone Alfredo 2007-02-07 19:28:57 0000 -------
Missing soname fixed (hopefully) and new ebuild is in portage. Thanks