Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 474872 - media-libs/glfw-3.0.1 version bump
Summary: media-libs/glfw-3.0.1 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal enhancement with 1 vote (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-26 12:44 UTC by Alexandru Scvortov
Modified: 2013-11-05 15:48 UTC (History)
1 user (show)

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


Attachments
Simple cmake based ebuild for glfw-3.0.1 (glfw-3.0.1.ebuild,567 bytes, text/plain)
2013-08-08 22:38 UTC, Palmer Dabbelt
Details
Patch to enable glfw3 to be slotted (glfw-3.0.1-slot.patch,506 bytes, patch)
2013-08-08 23:18 UTC, Palmer Dabbelt
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandru Scvortov 2013-06-26 12:44:18 UTC
GLFW 3.0.1 is out:

    http://www.glfw.org/Version-3.0.1-released.html

There are lots of new features in 3.0, but note that it is not backwards compatible with 2.7:

    http://www.glfw.org/docs/3.0/moving.html


Reproducible: Always
Comment 1 Palmer Dabbelt 2013-08-08 22:38:46 UTC
Created attachment 355440 [details]
Simple cmake based ebuild for glfw-3.0.1

glfw3 has a completely different build system than glfw2 -- the new version is entirely based on cmake.  Note that this version isn't slotted because the library name for glfw3 is "libglfw.so" (which would conflict with glfw2).
Comment 2 Palmer Dabbelt 2013-08-08 23:18:01 UTC
Created attachment 355444 [details, diff]
Patch to enable glfw3 to be slotted

glfw3 names its header files "glfw3.h" (as opposed to "glfw.h" for glfw2), names its pkg-config file "glfw3.pc" (as opposed to "libglfw.pc"), names its static library "libglfw3.a" (as opposed to "libglfw.a"), but names its shared library "libglfw.so" (which matches with glfw2).

If I understand correctly, this naming problem prevents glfw3 from being slotted.  As glfw3 isn't backwards compatible, this is kind of a pain.

This patch names the glfw3 shared libraries "libglfw3.so" so the ebuild can be slotted such that glfw2 and glfw3 can both be installed.
Comment 3 Chí-Thanh Christopher Nguyễn gentoo-dev 2013-11-05 15:48:26 UTC
Fixed in CVS (SLOT=0).

s25rttr ebuild has been updated to depend on <glfw-3