Merge lp:~compiz-team/compiz/compiz.fix_1077866 into lp:compiz/0.9.9

Proposed by Sam Spilsbury
Status: Merged
Approved by: Daniel van Vugt
Approved revision: 3464
Merged at revision: 3466
Proposed branch: lp:~compiz-team/compiz/compiz.fix_1077866
Merge into: lp:compiz/0.9.9
Diff against target: 19 lines (+4/-6)
1 file modified
tests/system/untest/CMakeLists.txt (+4/-6)
To merge this branch: bzr merge lp:~compiz-team/compiz/compiz.fix_1077866
Reviewer Review Type Date Requested Status
Daniel van Vugt Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+133906@code.launchpad.net

Commit message

Link libx11.so and use pkg_check_modules (LP: #1077866)

Description of the change

Link libx11.so and use pkg_check_modules

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

That's weird. Both gl and gtk+-3.0 (via gdk-3.0) already have dependencies on x11 defined in their .pc files. However they are listed as "Requires.private" meaning the dependencies are not automatically included. Why?!

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Yep, it works.

review: Approve
Revision history for this message
Sam Spilsbury (smspillaz) wrote :

I believe that pkg-config doesn't list those dependencies because they
are effectively pulled in at runtime. In any case, gold doesn't like
that.

I wonder if we can build with gold and clang++ on jenkins...

On Tue, Nov 13, 2012 at 10:21 AM, Daniel van Vugt
<email address hidden> wrote:
> That's weird. Both gl and gtk+-3.0 (via gdk-3.0) already have dependencies on x11 defined in their .pc files. However they are listed as "Requires.private" meaning the dependencies are not automatically included. Why?!
> --
> https://code.launchpad.net/~compiz-team/compiz/compiz.fix_1077866/+merge/133906
> Your team Compiz Maintainers is subscribed to branch lp:compiz.

--
Sam Spilsbury

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/system/untest/CMakeLists.txt'
2--- tests/system/untest/CMakeLists.txt 2012-11-07 10:44:39 +0000
3+++ tests/system/untest/CMakeLists.txt 2012-11-12 12:19:21 +0000
4@@ -1,11 +1,9 @@
5-
6 cmake_minimum_required (VERSION 2.6)
7
8 include (FindPkgConfig)
9-pkg_search_module (GTK REQUIRED gtk+-3.0)
10-pkg_search_module (GL REQUIRED gl)
11+pkg_check_modules (COMPIZ_UNTEST REQUIRED gtk+-3.0 gl x11)
12
13 add_executable (untest untest.c)
14-include_directories (${GTK_INCLUDE_DIRS} ${GL_INCLUDE_DIRS})
15-link_directories (${GTK_LIBRARY_DIRS} ${GL_LIBRARY_DIRECTORIES})
16-target_link_libraries (untest ${GTK_LIBRARIES} ${GL_LIBRARIES})
17+include_directories (${COMPIZ_UNTEST_INCLUDE_DIRS})
18+link_directories (${COMPIZ_UNTEST_LIBRARY_DIRS})
19+target_link_libraries (untest ${COMPIZ_UNTEST_LIBRARIES})

Subscribers

People subscribed via source and target branches