Merge lp:~webapps/unity-js-scopes/build-in-silo into lp:unity-js-scopes

Proposed by Marcus Tomlinson
Status: Merged
Merged at revision: 31
Proposed branch: lp:~webapps/unity-js-scopes/build-in-silo
Merge into: lp:unity-js-scopes
Diff against target: 204 lines (+55/-24)
11 files modified
.bzr-builddeb/default.conf (+2/-0)
debian/control (+5/-2)
deps/build-debug.sh (+11/-0)
deps/build.sh (+1/-1)
deps/get.sh (+3/-3)
src/bindings/CMakeLists.txt (+0/-4)
src/bindings/src/addon.cc (+2/-1)
src/bindings/src/categorised-result.cc (+15/-0)
src/bindings/src/categorised-result.h (+1/-0)
src/launcher/CMakeLists.txt (+12/-9)
src/launcher/main.cc (+3/-4)
To merge this branch: bzr merge lp:~webapps/unity-js-scopes/build-in-silo
Reviewer Review Type Date Requested Status
Alexandre Abreu (community) Approve
Robert Bruce Park (community) Abstain
Review via email: mp+266704@code.launchpad.net

Commit message

Various fixes to get unity-js-scopes building in CI:
* Added missing .bzr-builddeb/default.conf file.
* Added missing dependancies to debian/control.
* Limit build to i386, amd64 and armhf as io.js not compiling on ppc.
* Branch io.js from our own import as git is seemly not allowed in CI.
* Branch v8-cpp anonymously to avoid ssh issues.
* Removed unnecessary libicu dependencies.
* Split build.sh / build-debug.sh scripts to match unity-js-scopes release / debug builds
* Allow the optional runtime ini launcher argument to be an empty string.

To post a comment you must log in.
Revision history for this message
Robert Bruce Park (robru) wrote :

Marcus, you are not allowed to bzr branch in io.js in your packaging, please check your email for more details about this. And stop trying to build it.

review: Disapprove
Revision history for this message
Robert Bruce Park (robru) wrote :

Nevermind, sorry. You can build but you can't land.

review: Abstain
47. By Marcus Tomlinson

Fix link order

Revision history for this message
Alexandre Abreu (abreu-alexandre) :
review: Approve
48. By Marcus Tomlinson

io.js v3 now supports ppc

49. By Marcus Tomlinson

Added CategorisedResult::set_art() method

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory '.bzr-builddeb'
2=== added file '.bzr-builddeb/default.conf'
3--- .bzr-builddeb/default.conf 1970-01-01 00:00:00 +0000
4+++ .bzr-builddeb/default.conf 2015-08-12 10:30:31 +0000
5@@ -0,0 +1,2 @@
6+[BUILDDEB]
7+split = True
8
9=== modified file 'debian/control'
10--- debian/control 2015-07-09 01:02:19 +0000
11+++ debian/control 2015-08-12 10:30:31 +0000
12@@ -1,11 +1,14 @@
13 Source: unity-js-scopes
14-Section: x11
15+Section: libs
16 Priority: optional
17 Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
18-Build-Depends: cmake (>= 2.8.9),
19+Build-Depends: bzr,
20+ cmake (>= 2.8.9),
21 debhelper (>= 9),
22+ pkg-config,
23 g++,
24 libboost-filesystem-dev,
25+ libnet-cpp-dev,
26 libunity-scopes-dev,
27 Standards-Version: 3.9.5
28 Homepage: https://launchpad.net/unity-js-scopes
29
30=== added file 'deps/build-debug.sh'
31--- deps/build-debug.sh 1970-01-01 00:00:00 +0000
32+++ deps/build-debug.sh 2015-08-12 10:30:31 +0000
33@@ -0,0 +1,11 @@
34+#!/bin/bash
35+
36+DIR=$(readlink -f $(dirname ${BASH_SOURCE[0]}))
37+
38+# io.js
39+
40+cd $DIR
41+
42+cd io.js
43+./configure --enable-static --debug
44+make -j3
45
46=== modified file 'deps/build.sh'
47--- deps/build.sh 2015-07-29 05:47:39 +0000
48+++ deps/build.sh 2015-08-12 10:30:31 +0000
49@@ -7,5 +7,5 @@
50 cd $DIR
51
52 cd io.js
53-./configure --enable-static --debug
54+./configure --enable-static
55 make -j3
56
57=== modified file 'deps/get.sh'
58--- deps/get.sh 2015-07-09 18:30:28 +0000
59+++ deps/get.sh 2015-08-12 10:30:31 +0000
60@@ -6,9 +6,9 @@
61 # io.js
62
63 if [ -d "io.js" ]; then
64- cd io.js; git pull; cd ..
65+ cd io.js; cd ..
66 else
67- git clone --depth 1 https://github.com/nodejs/io.js.git
68+ bzr branch http://bazaar.launchpad.net/~webapps/unity-js-scopes/io.js io.js
69 fi
70
71 # v8cpp
72@@ -16,5 +16,5 @@
73 if [ -d "v8-cpp" ]; then
74 cd v8-cpp; cd ..
75 else
76- bzr branch lp:v8-cpp
77+ bzr branch http://bazaar.launchpad.net/~unity-team/v8-cpp/trunk v8-cpp
78 fi
79
80=== modified file 'src/bindings/CMakeLists.txt'
81--- src/bindings/CMakeLists.txt 2015-07-16 10:10:39 +0000
82+++ src/bindings/CMakeLists.txt 2015-08-12 10:30:31 +0000
83@@ -73,10 +73,6 @@
84
85 ${SCOPE_LIBRARIES}
86
87- icui18n
88- icuuc
89- icudata
90-
91 pthread
92 dl
93 )
94
95=== modified file 'src/bindings/src/addon.cc'
96--- src/bindings/src/addon.cc 2015-07-29 10:49:49 +0000
97+++ src/bindings/src/addon.cc 2015-08-12 10:30:31 +0000
98@@ -224,7 +224,8 @@
99 v8cpp::Class<CategorisedResult> categorised_result(isolate);
100 categorised_result
101 .add_method("set_uri", &CategorisedResult::set_uri)
102- .add_method("set_title", &CategorisedResult::set_title);
103+ .add_method("set_title", &CategorisedResult::set_title)
104+ .add_method("set_art", &CategorisedResult::set_art);
105
106 v8cpp::Class<CannedQuery> canned_query(isolate);
107 canned_query
108
109=== modified file 'src/bindings/src/categorised-result.cc'
110--- src/bindings/src/categorised-result.cc 2015-06-18 16:39:04 +0000
111+++ src/bindings/src/categorised-result.cc 2015-08-12 10:30:31 +0000
112@@ -55,3 +55,18 @@
113
114 unity::scopes::CategorisedResult::set_title(*(v8::String::Utf8Value(args[0]->ToString())));
115 }
116+
117+void CategorisedResult::set_art(
118+ v8::FunctionCallbackInfo<v8::Value> const& args) {
119+ if (args.Length() != 1) {
120+ // TODO fix
121+ return;
122+ }
123+
124+ if (!args[0]->IsString()) {
125+ // TODO fix
126+ return;
127+ }
128+
129+ unity::scopes::CategorisedResult::set_art(*(v8::String::Utf8Value(args[0]->ToString())));
130+}
131
132=== modified file 'src/bindings/src/categorised-result.h'
133--- src/bindings/src/categorised-result.h 2015-06-18 16:39:04 +0000
134+++ src/bindings/src/categorised-result.h 2015-08-12 10:30:31 +0000
135@@ -34,6 +34,7 @@
136 // v8 binding
137 void set_uri(v8::FunctionCallbackInfo<v8::Value> const& args);
138 void set_title(v8::FunctionCallbackInfo<v8::Value> const& args);
139+ void set_art(v8::FunctionCallbackInfo<v8::Value> const& args);
140
141 private:
142
143
144=== modified file 'src/launcher/CMakeLists.txt'
145--- src/launcher/CMakeLists.txt 2015-07-29 05:47:39 +0000
146+++ src/launcher/CMakeLists.txt 2015-08-12 10:30:31 +0000
147@@ -72,25 +72,28 @@
148 zlib
149 http_parser
150
151+ v8_libplatform
152 v8_base
153 v8_libbase
154- v8_libplatform
155 v8_nosnapshot
156
157 ${Boost_LIBRARIES}
158
159- icui18n
160- icuuc
161- icudata
162-
163 pthread
164 dl
165 )
166
167-add_custom_command(
168- TARGET ${LAUNCHER_EXECUTABLE_NAME} PRE_LINK
169- COMMAND ${CMAKE_SOURCE_DIR}/deps/build.sh
170-)
171+if(cmake_build_type_tolower STREQUAL "debug")
172+ add_custom_command(
173+ TARGET ${LAUNCHER_EXECUTABLE_NAME} PRE_LINK
174+ COMMAND ${CMAKE_SOURCE_DIR}/deps/build-debug.sh
175+ )
176+else()
177+ add_custom_command(
178+ TARGET ${LAUNCHER_EXECUTABLE_NAME} PRE_LINK
179+ COMMAND ${CMAKE_SOURCE_DIR}/deps/build.sh
180+ )
181+endif()
182
183 install(TARGETS ${LAUNCHER_EXECUTABLE_NAME}
184 RUNTIME DESTINATION /usr/bin)
185
186=== modified file 'src/launcher/main.cc'
187--- src/launcher/main.cc 2015-07-29 08:31:17 +0000
188+++ src/launcher/main.cc 2015-08-12 10:30:31 +0000
189@@ -65,12 +65,11 @@
190 p.string().c_str(),
191 true);
192
193- if (argc == 3) {
194+ if (argc == 3 && !std::string(argv[2]).empty()) {
195 std::string runtime_filename = argv[2];
196
197- if (runtime_filename.empty()
198- || !boost::filesystem::exists(runtime_filename)) {
199- std::cout << "Invalid or non existant runtime ini file name: "
200+ if (!boost::filesystem::exists(runtime_filename)) {
201+ std::cout << "Non-existant runtime ini file: "
202 << runtime_filename << std::endl;
203 usage();
204 return EXIT_FAILURE;

Subscribers

People subscribed via source and target branches

to all changes: