Merge lp:~brandontschaefer/libsdl/mir-include-sdl2-pc-fix into lp:ubuntu/trusty/libsdl2

Proposed by Brandon Schaefer
Status: Rejected
Rejected by: Sebastien Bacher
Proposed branch: lp:~brandontschaefer/libsdl/mir-include-sdl2-pc-fix
Merge into: lp:ubuntu/trusty/libsdl2
Diff against target: 47 lines (+18/-0)
4 files modified
.pc/applied-patches (+1/-0)
configure.in (+1/-0)
debian/patches/mir_include_cflags_to_sdl2pc.diff (+15/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~brandontschaefer/libsdl/mir-include-sdl2-pc-fix
Reviewer Review Type Date Requested Status
Brandon Schaefer (community) Disapprove
Ubuntu branches Pending
Review via email: mp+216400@code.launchpad.net

Commit message

The fix, we need to include the MIR_CFLAGS to the sdl2.pc file, so other programs know where to look to include mir_toolkit/mir_client_library.h

Description of the change

Cherry pick fix from upstream:
https://hg.libsdl.org/SDL/rev/274017846e73

The fix, we need to include the MIR_CFLAGS to the sdl2.pc file, so other programs know where to look to include mir_toolkit/mir_client_library.h

To post a comment you must log in.
Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

While this did fix the compiling issue, it didn't fix the issue where the mir header was being exposed. I've a new branch that fixes exposing the mir headers, which fixes this issue as well.

https://code.launchpad.net/~brandontschaefer/libsdl/forward-declare-1306629-fix/+merge/216641

review: Disapprove
Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

(im not able to reject the branch, but if anyone else can go for it!)

Revision history for this message
Sebastien Bacher (seb128) wrote :

setting as rejected

Unmerged revisions

16. By Brandon Schaefer

* Apply the patch (seems like the other patches are done this way)

15. By Brandon Schaefer

* Fix up patch

14. By Brandon Schaefer

* Add patch that adds MIR_CFLAGS to SDL_CFLAGS so the sdl2.pc
  file includes the correct location of its headers.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file '.pc/applied-patches'
2--- .pc/applied-patches 2014-03-19 20:22:29 +0000
3+++ .pc/applied-patches 2014-04-17 21:36:25 +0000
4@@ -1,2 +1,3 @@
5 SDL2_dont_propagate_lpthread.diff
6 fix_joystick_misc_axes.diff
7+mir_include_cflags_to_sdl2pc.diff
8
9=== modified file 'configure.in'
10--- configure.in 2014-03-15 00:22:48 +0000
11+++ configure.in 2014-04-17 21:36:25 +0000
12@@ -1299,6 +1299,7 @@
13 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
14 SUMMARY_video="${SUMMARY_video} mir"
15 fi
16+ SDL_CFLAGS="$SDL_CFLAGS $MIR_CFLAGS"
17 have_video=yes
18 fi
19 fi
20
21=== added file 'debian/patches/mir_include_cflags_to_sdl2pc.diff'
22--- debian/patches/mir_include_cflags_to_sdl2pc.diff 1970-01-01 00:00:00 +0000
23+++ debian/patches/mir_include_cflags_to_sdl2pc.diff 2014-04-17 21:36:25 +0000
24@@ -0,0 +1,15 @@
25+Description: Inlucde MIR_CFLAGS to SDL_CFLAGS, so sdl2.pc include the location of the mir headers
26+Author: Brandon Schaefer <brandon.schaefer@canonical.com>
27+Last-Update: 2014-4-17
28+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/libsdl2/+bug/1306629
29+
30+--- a/configure.in
31++++ b/configure.in
32+@@ -1299,6 +1299,7 @@
33+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
34+ SUMMARY_video="${SUMMARY_video} mir"
35+ fi
36++ SDL_CFLAGS="$SDL_CFLAGS $MIR_CFLAGS"
37+ have_video=yes
38+ fi
39+ fi
40
41=== modified file 'debian/patches/series'
42--- debian/patches/series 2014-03-19 20:22:29 +0000
43+++ debian/patches/series 2014-04-17 21:36:25 +0000
44@@ -1,2 +1,3 @@
45 SDL2_dont_propagate_lpthread.diff
46 fix_joystick_misc_axes.diff
47+mir_include_cflags_to_sdl2pc.diff

Subscribers

People subscribed via source and target branches