Mir

Merge lp:~raof/mir/reinstate-old-pc-file into lp:mir/0.17

Proposed by Chris Halse Rogers
Status: Merged
Merged at revision: 3010
Proposed branch: lp:~raof/mir/reinstate-old-pc-file
Merge into: lp:mir/0.17
Diff against target: 59 lines (+19/-2)
4 files modified
debian/mir-client-platform-mesa-dev.install (+1/-0)
src/platforms/mesa/CMakeLists.txt (+10/-1)
src/platforms/mesa/mir-client-platform-mesa-dev.pc.in (+1/-1)
src/platforms/mesa/mir-client-platform-mesa.pc.in (+7/-0)
To merge this branch: bzr merge lp:~raof/mir/reinstate-old-pc-file
Reviewer Review Type Date Requested Status
Daniel van Vugt Approve
Kevin DuBois (community) Approve
Alan Griffiths Abstain
Review via email: mp+275487@code.launchpad.net

Commit message

Un-rename mir-client-platform-mesa-dev.

This reverts the merge in r2965; this landed post-feature-freeze and results in Mesa (among others) being unbuildable.

This rename still applies on trunk; mesa, xserver and others need updating for Xenial.

Fixes: https://bugs.launchpad.net/ubuntu/+source/mir/+bug/1509005

To post a comment you must log in.
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Unfortunately we now have projects in the wild that expect mir-client-platform-mesa.pc

So if you change anything then both files need to exist side-by-side.

review: Needs Fixing
Revision history for this message
Chris Halse Rogers (raof) wrote :

What projects in the wild expect mir-client-platform-mesa? Nothing that's in Wily, clearly.

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

Oh good point. It's possible only Xmir is affected. And even then only upstream (not wily) Xmir is affected..

"projects" perhaps is only "project" and not technically "in the wild" yet. Although it's hard to tell because the regression has been released "in the wild" as 0.17.0 for 8 days now.

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

Looking at wily distro, both mesa and xorg still use the old syntax: mir-client-platform-mesa-dev

So let's go with that then. A full revert is OK too.

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

Although alf has just pointed out that at most we probably only need to update xorg-server and mesa packages with the new name. And the new name is nicer....

Revision history for this message
Chris Halse Rogers (raof) wrote :

This is only reverted on the 0.17 branch; once we land a release from
trunk in Xenial only the new name will remain.

Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

I'd prefer to update the (two?) downstreams to the improved name.

As a "quick fix" I'd prefer "ln mir-client-platform-mesa-dev mir-client-platform-mesa"

review: Abstain
Revision history for this message
Kevin DuBois (kdub) wrote :

alright by me

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

Oh I failed to notice the target branch was lp:mir/0.17 and not trunk. Even better.

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

/me wonders if this branch really builds, come to think of it.

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

CMake fails and the build never even starts. The problem is you have two target .pc files but only one source .pc.in file exists now...

CMake Error: File src/platforms/mesa/mir-client-platform-mesa.pc.in does not exist.

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

Still doesn't build. Still the same issue...

CMake Error: File /home/dan/bzr/mir/tmp.raof/src/platforms/mesa/mir-client-platform-mesa.pc.in does not exist.
CMake Error at src/platforms/mesa/CMakeLists.txt:9 (configure_file):
  configure_file Problem configuring file

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

Internal name and file name mismatch:

51 +++ src/platforms/mesa/mir-client-platform-mesa.pc.in 2015-10-27 04:18:26 +0000
52 @@ -0,0 +1,7 @@
53 +includedir=@INCLUDEDIR@/mirplatform
54 +
55 +Name: mir-client-platform-mesa-dev

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

Okee

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/mir-client-platform-mesa-dev.install'
2--- debian/mir-client-platform-mesa-dev.install 2015-09-24 22:30:09 +0000
3+++ debian/mir-client-platform-mesa-dev.install 2015-10-27 04:35:25 +0000
4@@ -1,2 +1,3 @@
5 usr/include/mirplatform/mir_toolkit/mesa
6+usr/lib/*/pkgconfig/mir-client-platform-mesa-dev.pc
7 usr/lib/*/pkgconfig/mir-client-platform-mesa.pc
8
9=== modified file 'src/platforms/mesa/CMakeLists.txt'
10--- src/platforms/mesa/CMakeLists.txt 2015-09-24 22:30:09 +0000
11+++ src/platforms/mesa/CMakeLists.txt 2015-10-27 04:35:25 +0000
12@@ -1,6 +1,12 @@
13 set(INCLUDEDIR "${CMAKE_INSTALL_PREFIX}/include")
14
15 configure_file(
16+ ${CMAKE_CURRENT_SOURCE_DIR}/mir-client-platform-mesa-dev.pc.in
17+ ${CMAKE_CURRENT_BINARY_DIR}/mir-client-platform-mesa-dev.pc
18+ @ONLY
19+)
20+
21+configure_file(
22 ${CMAKE_CURRENT_SOURCE_DIR}/mir-client-platform-mesa.pc.in
23 ${CMAKE_CURRENT_BINARY_DIR}/mir-client-platform-mesa.pc
24 @ONLY
25@@ -20,6 +26,9 @@
26 )
27
28 install(
29- FILES ${CMAKE_CURRENT_BINARY_DIR}/mir-client-platform-mesa.pc
30+ FILES
31+ ${CMAKE_CURRENT_BINARY_DIR}/mir-client-platform-mesa-dev.pc
32+ ${CMAKE_CURRENT_BINARY_DIR}/mir-client-platform-mesa.pc
33+
34 DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig
35 )
36
37=== renamed file 'src/platforms/mesa/mir-client-platform-mesa.pc.in' => 'src/platforms/mesa/mir-client-platform-mesa-dev.pc.in'
38--- src/platforms/mesa/mir-client-platform-mesa.pc.in 2015-10-07 12:53:33 +0000
39+++ src/platforms/mesa/mir-client-platform-mesa-dev.pc.in 2015-10-27 04:35:25 +0000
40@@ -1,6 +1,6 @@
41 includedir=@INCLUDEDIR@/mirplatform
42
43-Name: mir-client-platform-mesa
44+Name: mir-client-platform-mesa-dev
45 Description: Mir Mesa client platform development files
46 Version: @MIR_VERSION@
47 Requires.private: mirclient
48
49=== added file 'src/platforms/mesa/mir-client-platform-mesa.pc.in'
50--- src/platforms/mesa/mir-client-platform-mesa.pc.in 1970-01-01 00:00:00 +0000
51+++ src/platforms/mesa/mir-client-platform-mesa.pc.in 2015-10-27 04:35:25 +0000
52@@ -0,0 +1,7 @@
53+includedir=@INCLUDEDIR@/mirplatform
54+
55+Name: mir-client-platform-mesa
56+Description: Mir Mesa client platform development files
57+Version: @MIR_VERSION@
58+Requires.private: mirclient
59+Cflags: -I${includedir}

Subscribers

People subscribed via source and target branches