Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107459 - glfw : dynamic library and bad window fix
Summary: glfw : dynamic library and bad window fix
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-27 16:06 UTC by Olaf Leidinger
Modified: 2007-02-07 19:28 UTC (History)
0 users

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


Attachments
dynamic library patch (glfw-x11-dynamic.patch,1.12 KB, patch)
2005-09-27 16:08 UTC, Olaf Leidinger
Details | Diff
removes some lines to prevent Bad Window error (glfw-x11-bad_window-hack.patch,1.29 KB, patch)
2005-09-27 16:08 UTC, Olaf Leidinger
Details | Diff
patch to the ebuild (glfw-2.5.0.ebuild.patch,917 bytes, patch)
2005-09-27 16:11 UTC, Olaf Leidinger
Details | Diff
the complete ebuild (glfw-2.5.0.ebuild,1.62 KB, text/plain)
2005-09-27 16:12 UTC, Olaf Leidinger
Details
new dynamic library patch (with -fPIC) (glfw-x11-dynamic.patch,2.38 KB, patch)
2005-09-28 00:27 UTC, Olaf Leidinger
Details | Diff
Revised version of "the complete ebuild" (glfw-2.5.0.ebuild,1.68 KB, application/octet-stream)
2006-10-04 13:31 UTC, Terry L. Triplett
Details
glfw-2.5.0.ebuild (glfw-2.5.0.ebuild,1.68 KB, text/plain)
2007-02-07 07:46 UTC, Tupone Alfredo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Olaf Leidinger 2005-09-27 16:06:43 UTC
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 Olaf Leidinger 2005-09-27 16:08:04 UTC
Created attachment 69380 [details, diff]
dynamic library patch
Comment 2 Olaf Leidinger 2005-09-27 16:08:49 UTC
Created attachment 69381 [details, diff]
removes some lines to prevent Bad Window error
Comment 3 Olaf Leidinger 2005-09-27 16:11:25 UTC
Created attachment 69382 [details, diff]
patch to the ebuild
Comment 4 Olaf Leidinger 2005-09-27 16:12:11 UTC
Created attachment 69383 [details]
the complete ebuild
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2005-09-27 17:01:48 UTC
Have these patches been sent upstream?
Comment 7 Olaf Leidinger 2005-09-28 00:27:57 UTC
Created attachment 69390 [details, diff]
new dynamic library patch (with -fPIC)

add -fPIC compile option and disable assembler usage in x11_time.c
Comment 8 Terry L. Triplett 2006-10-04 13:31:22 UTC
Created attachment 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 Mr. Bones. (RETIRED) gentoo-dev 2006-10-04 14:17:39 UTC
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 James Brown 2006-12-08 17:26:00 UTC
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 Mr. Bones. (RETIRED) gentoo-dev 2006-12-09 12:47:15 UTC
yeah, fix what I mentioned in comment #9
Comment 12 Tupone Alfredo gentoo-dev 2007-02-07 07:46:29 UTC
Created attachment 109406 [details]
glfw-2.5.0.ebuild 

Please, next time, attach as text/plain
Comment 13 Tupone Alfredo gentoo-dev 2007-02-07 19:28:57 UTC
Missing soname fixed (hopefully) and new ebuild is in portage. Thanks