Mir

Merge lp:~albaguirre/mir/fix-abi-base-dump into lp:mir

Proposed by Alberto Aguirre
Status: Merged
Approved by: Alan Griffiths
Approved revision: no longer in the source branch.
Merged at revision: 2621
Proposed branch: lp:~albaguirre/mir/fix-abi-base-dump
Merge into: lp:mir
Diff against target: 50 lines (+10/-8)
3 files modified
cmake/ABICheck.cmake (+1/-1)
tools/generate-abi-base-dump.sh (+7/-0)
tools/run_abi_compliance_checker.sh (+2/-7)
To merge this branch: bzr merge lp:~albaguirre/mir/fix-abi-base-dump
Reviewer Review Type Date Requested Status
Alan Griffiths Approve
Chris Halse Rogers Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+261046@code.launchpad.net

Commit message

fix make abi-dump-base target

Description of the change

fix make abi-dump-base target

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
Chris Halse Rogers (raof) wrote :

Ah, right. Yeah, seems reasonable.

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

OK

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'cmake/ABICheck.cmake'
2--- cmake/ABICheck.cmake 2015-05-19 21:34:34 +0000
3+++ cmake/ABICheck.cmake 2015-06-03 22:18:10 +0000
4@@ -71,7 +71,7 @@
5 endfunction()
6
7 #These headers are not part of the libmircommon ABI
8-set(mircommon-exclude-headers "${CMAKE_SOURCE_DIR}/src/include/common/mir/graphics/android\n ${CMAKE_SOURCE_DIR}/src/include/common/mir/input")
9+set(mircommon-exclude-headers "${CMAKE_SOURCE_DIR}/src/include/common/mir/graphics/android\n ${CMAKE_SOURCE_DIR}/src/include/common/mir/input\n ${CMAKE_SOURCE_DIR}/src/include/common/mir/events")
10
11 #These headers are not part of the libmirplatform ABI
12 set(mirplatform-exclude-headers "${CMAKE_SOURCE_DIR}/include/platform/mir/input")
13
14=== modified file 'tools/generate-abi-base-dump.sh'
15--- tools/generate-abi-base-dump.sh 2015-04-01 03:07:18 +0000
16+++ tools/generate-abi-base-dump.sh 2015-06-03 22:18:10 +0000
17@@ -6,6 +6,13 @@
18 MIR_RELEASE_DIR=$(find -maxdepth 1 -name mir-\* -type d)
19 ln -sf ${MIR_RELEASE_DIR}/ mir-prev-release
20 cd ${MIR_RELEASE_DIR}
21+
22+#NOTE: patch needed since mir 0.13.x fails to generate base dump for libmircommon
23+abi_check_file_fixed=$(grep -c common\/mir\/events cmake/ABICheck.cmake)
24+if [ "${abi_check_file_fixed}" -eq 0 ]; then
25+ sed -i 's/common\/mir\/input/&\n\$\{CMAKE_SOURCE_DIR\}\/src\/include\/common\/mir\/events/' cmake/ABICheck.cmake
26+fi
27+
28 debian/rules override_dh_auto_configure
29 cd obj-$(dpkg-architecture -qDEB_HOST_MULTIARCH)
30 make -j${NUM_JOBS} abi-dump-base
31
32=== modified file 'tools/run_abi_compliance_checker.sh'
33--- tools/run_abi_compliance_checker.sh 2015-04-01 20:32:12 +0000
34+++ tools/run_abi_compliance_checker.sh 2015-06-03 22:18:10 +0000
35@@ -82,13 +82,8 @@
36 then
37 if [ ! -f "${OLD_ABI_DUMP}" ];
38 then
39- # This does not return an error code on purpose
40- # The previous release source may not have the required changes
41- # to generate an ABI dump of the requested library
42- # TODO: Exit with error code once the archive mir release
43- # can dump ABI for all libraries of interest
44- echo "Warning: No base abi dump exists for ${LIB_NAME}"
45- echo "skipping abi-compliance-checker for ${LIB_NAME}"
46+ echo "Error: No base abi dump exists for ${LIB_NAME}"
47+ exit 1;
48 else
49 echo "Running abi-compliance-checker for ${LIB_NAME}"
50 abi-compliance-checker -l ${LIB_NAME} -old "${OLD_ABI_DUMP}" -new "${NEW_ABI_DUMP}" -check-implementation ${SKIP_SYMBOLS_OPT}

Subscribers

People subscribed via source and target branches