Merge lp:~cjwatson/ubuntu-app-launch/porting into lp:ubuntu-app-launch/14.04

Proposed by Colin Watson
Status: Rejected
Rejected by: Ted Gould
Proposed branch: lp:~cjwatson/ubuntu-app-launch/porting
Merge into: lp:ubuntu-app-launch/14.04
Diff against target: 99 lines (+30/-15)
5 files modified
CMakeLists.txt (+2/-2)
cmake/UseLttngGenTp.cmake (+20/-12)
debian/control (+1/-1)
null-tracepoint.c (+3/-0)
null-tracepoint.h (+4/-0)
To merge this branch: bzr merge lp:~cjwatson/ubuntu-app-launch/porting
Reviewer Review Type Date Requested Status
Colin Watson Disapprove
Dimitri John Ledkov Needs Information
Ted Gould (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+210385@code.launchpad.net

Commit message

Use LTTng only on architectures where it is available.

Description of the change

Use LTTng only on architectures where it is available. This should let upstart-app-launch build on all architectures again (it lost arm64 support since saucy).

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
Ted Gould (ted) wrote :

A little worried we may need arm64 support, but not going to solve that problem today :-)

review: Approve
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

liblttng-ust-dev is available on ppc64el. No longer needed...

review: Needs Information
Revision history for this message
Colin Watson (cjwatson) wrote :

I'd like to withdraw this, as Dimitri ported ust to arm64 and ppc64el over the weekend, and so upstart-app-launch now builds without this.

review: Disapprove

Unmerged revisions

136. By Colin Watson

Use LTTng only on architectures where it is available.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'CMakeLists.txt'
--- CMakeLists.txt 2014-02-13 22:43:55 +0000
+++ CMakeLists.txt 2014-03-11 12:30:44 +0000
@@ -17,7 +17,6 @@
17include(UseGlibGeneration)17include(UseGlibGeneration)
18include(UseGdbusCodegen)18include(UseGdbusCodegen)
19include(UseConstantBuilder)19include(UseConstantBuilder)
20include(UseLttngGenTp)
2120
22# Workaround for libexecdir on debian21# Workaround for libexecdir on debian
23if (EXISTS "/etc/debian_version") 22if (EXISTS "/etc/debian_version")
@@ -61,8 +60,9 @@
61pkg_check_modules(DBUSTEST REQUIRED dbustest-1>=14.04.0)60pkg_check_modules(DBUSTEST REQUIRED dbustest-1>=14.04.0)
62include_directories(${DBUSTEST_INCLUDE_DIRS})61include_directories(${DBUSTEST_INCLUDE_DIRS})
6362
64pkg_check_modules(LTTNG REQUIRED lttng-ust)63pkg_check_modules(LTTNG lttng-ust)
65include_directories(${LTTNG_INCLUDE_DIRS})64include_directories(${LTTNG_INCLUDE_DIRS})
65include(UseLttngGenTp)
6666
67include_directories(${CMAKE_CURRENT_SOURCE_DIR})67include_directories(${CMAKE_CURRENT_SOURCE_DIR})
6868
6969
=== modified file 'cmake/UseLttngGenTp.cmake'
--- cmake/UseLttngGenTp.cmake 2013-12-04 11:58:40 +0000
+++ cmake/UseLttngGenTp.cmake 2014-03-11 12:30:44 +0000
@@ -3,22 +3,30 @@
3 cmake_policy(SET CMP0011 NEW)3 cmake_policy(SET CMP0011 NEW)
4endif(POLICY CMP0011)4endif(POLICY CMP0011)
55
6find_program(LTTNG_GEN_TP NAMES lttng-gen-tp DOC "lttng-gen-tp executable")6if(LTTNG_FOUND)
7if(NOT LTTNG_GEN_TP)7 find_program(LTTNG_GEN_TP NAMES lttng-gen-tp DOC "lttng-gen-tp executable")
8 message(FATAL_ERROR "Excutable lttng-gen-top not found")8 if(NOT LTTNG_GEN_TP)
9 message(FATAL_ERROR "Excutable lttng-gen-top not found")
10 endif()
9endif()11endif()
1012
11function(add_lttng_gen_tp)13function(add_lttng_gen_tp)
12 set(_one_value NAME)14 set(_one_value NAME)
13 cmake_parse_arguments (arg "" "${_one_value}" "" ${ARGN})15 cmake_parse_arguments (arg "" "${_one_value}" "" ${ARGN})
1416
15 add_custom_command(17 if(LTTNG_FOUND)
16 OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/${arg_NAME}.h" "${CMAKE_CURRENT_BINARY_DIR}/${arg_NAME}.c"18 add_custom_command(
17 COMMAND "${LTTNG_GEN_TP}"19 OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/${arg_NAME}.h" "${CMAKE_CURRENT_BINARY_DIR}/${arg_NAME}.c"
18 -o "${arg_NAME}.h"20 COMMAND "${LTTNG_GEN_TP}"
19 -o "${arg_NAME}.c"21 -o "${arg_NAME}.h"
20 "${CMAKE_CURRENT_SOURCE_DIR}/${arg_NAME}.tp"22 -o "${arg_NAME}.c"
21 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}23 "${CMAKE_CURRENT_SOURCE_DIR}/${arg_NAME}.tp"
22 DEPENDS "${arg_NAME}.tp"24 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
23 )25 DEPENDS "${arg_NAME}.tp"
26 )
27 else()
28 configure_file("${CMAKE_SOURCE_DIR}/null-tracepoint.c" "${CMAKE_CURRENT_BINARY_DIR}/${arg_NAME}.c")
29 configure_file("${CMAKE_SOURCE_DIR}/null-tracepoint.h" "${CMAKE_CURRENT_BINARY_DIR}/${arg_NAME}.h")
30 set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${CMAKE_CURRENT_BINARY_DIR}/${arg_NAME}.c;${CMAKE_CURRENT_BINARY_DIR}/${arg_NAME}.h")
31 endif()
24endfunction(add_lttng_gen_tp)32endfunction(add_lttng_gen_tp)
2533
=== modified file 'debian/control'
--- debian/control 2014-02-11 03:14:30 +0000
+++ debian/control 2014-03-11 12:30:44 +0000
@@ -13,7 +13,7 @@
13 libglib2.0-dev,13 libglib2.0-dev,
14 libgtest-dev,14 libgtest-dev,
15 libjson-glib-dev,15 libjson-glib-dev,
16 liblttng-ust-dev,16 liblttng-ust-dev [amd64 armhf i386 powerpc],
17 libnih-dbus-dev,17 libnih-dbus-dev,
18 libnih-dev,18 libnih-dev,
19 libupstart-dev,19 libupstart-dev,
2020
=== added file 'null-tracepoint.c'
--- null-tracepoint.c 1970-01-01 00:00:00 +0000
+++ null-tracepoint.c 2014-03-11 12:30:44 +0000
@@ -0,0 +1,3 @@
1/* Dummy substitute for a C source file generated by lttng-gen-tp, used on
2 * architectures where the real thing is not available.
3 */
04
=== added file 'null-tracepoint.h'
--- null-tracepoint.h 1970-01-01 00:00:00 +0000
+++ null-tracepoint.h 2014-03-11 12:30:44 +0000
@@ -0,0 +1,4 @@
1/* Dummy substitute for a header file generated by lttng-gen-tp, used on
2 * architectures where the real thing is not available.
3 */
4#define tracepoint(provider, name, ...)

Subscribers

People subscribed via source and target branches