Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/freeglut/files/, media-libs/freeglut/
Date: Wed, 27 Mar 2019 19:54:43
Message-Id: 1553716441.27083133bfb71b4fe269d35b4158e553859d81fe.mattst88@gentoo
1 commit: 27083133bfb71b4fe269d35b4158e553859d81fe
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 27 19:36:24 2019 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 27 19:54:01 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27083133
7
8 media-libs/freeglut: Drop linking with unnecessary X11 libs
9
10 Many thanks go to Christian <christian <AT> ch-sc.de> for tracking down and
11 fixing the bug!
12
13 Closes: https://bugs.gentoo.org/557286
14 Closes: https://bugs.gentoo.org/647326
15 Closes: https://bugs.gentoo.org/658936
16 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
17
18 .../freeglut-3.0.0-drop-unnecessary-x11-libs.patch | 30 ++++++++++++++++++++++
19 media-libs/freeglut/freeglut-3.0.0.ebuild | 4 +++
20 2 files changed, 34 insertions(+)
21
22 diff --git a/media-libs/freeglut/files/freeglut-3.0.0-drop-unnecessary-x11-libs.patch b/media-libs/freeglut/files/freeglut-3.0.0-drop-unnecessary-x11-libs.patch
23 new file mode 100644
24 index 00000000000..761a6bfce7c
25 --- /dev/null
26 +++ b/media-libs/freeglut/files/freeglut-3.0.0-drop-unnecessary-x11-libs.patch
27 @@ -0,0 +1,30 @@
28 +From bbdaa724ef363e34bd19fb2308739e59a9e8ddc8 Mon Sep 17 00:00:00 2001
29 +From: jtsiomb <jtsiomb@7f0cb862-5218-0410-a997-914c9d46530a>
30 +Date: Tue, 26 Mar 2019 18:55:42 +0000
31 +Subject: [PATCH] Applied Christian's change to drop unnecessary dependency to
32 + X11 libraries we don't actually use, by asking cmake to link with X11_X11_LIB
33 + instead of the catch-all X11_LIBRARIES.
34 +
35 +git-svn-id: http://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1845 7f0cb862-5218-0410-a997-914c9d46530a
36 +---
37 + CMakeLists.txt | 4 ++--
38 + 1 file changed, 2 insertions(+), 2 deletions(-)
39 +
40 +diff --git a/CMakeLists.txt b/CMakeLists.txt
41 +index d1c20e8..e324a02 100644
42 +--- a/CMakeLists.txt
43 ++++ b/CMakeLists.txt
44 +@@ -312,8 +312,8 @@ ENDIF(CMAKE_COMPILER_IS_GNUCC)
45 + INCLUDE(CheckIncludeFiles)
46 + IF(UNIX AND NOT(ANDROID OR BLACKBERRY OR FREEGLUT_WAYLAND))
47 + FIND_PACKAGE(X11 REQUIRED)
48 +- INCLUDE_DIRECTORIES(${X11_INCLUDE_DIR})
49 +- LIST(APPEND LIBS ${X11_LIBRARIES})
50 ++ INCLUDE_DIRECTORIES(${X11_X11_INCLUDE_PATH})
51 ++ LIST(APPEND LIBS ${X11_X11_LIB})
52 + IF(X11_Xrandr_FOUND)
53 + SET(HAVE_X11_EXTENSIONS_XRANDR_H TRUE)
54 + LIST(APPEND LIBS ${X11_Xrandr_LIB})
55 +--
56 +2.19.2
57 +
58
59 diff --git a/media-libs/freeglut/freeglut-3.0.0.ebuild b/media-libs/freeglut/freeglut-3.0.0.ebuild
60 index 2a60b23ef11..95ec4c4bca8 100644
61 --- a/media-libs/freeglut/freeglut-3.0.0.ebuild
62 +++ b/media-libs/freeglut/freeglut-3.0.0.ebuild
63 @@ -29,6 +29,10 @@ DEPEND="${RDEPEND}
64
65 HTML_DOCS=( doc/. )
66
67 +PATCHES=(
68 + "${FILESDIR}"/${P}-drop-unnecessary-x11-libs.patch
69 +)
70 +
71 src_configure() {
72 local mycmakeargs=(
73 "-DFREEGLUT_GLES=OFF"