Skip to content

Commit a04c580

Browse files
committed
More updates for OpenSSL 1.1.0
1 parent 10c6708 commit a04c580

File tree

9 files changed

+123
-135
lines changed

9 files changed

+123
-135
lines changed

.travis.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,12 @@ matrix:
2424
MAKE_TARGETS="test distcheck doc install uninstall"
2525
MACOSX_DEPLOYMENT_TARGET=10.7
2626
os: osx
27-
before_install:
28-
- export OPENSSL_DIR=`brew --prefix openssl`
29-
- export OPENSSL_INCLUDE_DIR=`brew --prefix openssl`/include
30-
- export OPENSSL_LIB_DIR=`brew --prefix openssl`/include
3127
- env: TARGET=i686-apple-darwin
3228
MAKE_TARGETS=test
3329
MACOSX_DEPLOYMENT_TARGET=10.7
3430
CFG_DISABLE_CROSS_TESTS=1
3531
os: osx
36-
before_install:
37-
- export OPENSSL_DIR=`brew --prefix openssl`
38-
- export OPENSSL_INCLUDE_DIR=`brew --prefix openssl`/include
39-
- export OPENSSL_LIB_DIR=`brew --prefix openssl`/include
32+
install: brew uninstall openssl && brew install openssl --universal --without-test
4033

4134
# stable musl target, tested
4235
- env: TARGET=x86_64-unknown-linux-musl

Cargo.lock

Lines changed: 107 additions & 107 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,18 @@ path = "src/cargo/lib.rs"
2020
advapi32-sys = "0.2"
2121
crates-io = { path = "src/crates-io", version = "0.4" }
2222
crossbeam = "0.2"
23-
curl = "0.3"
23+
curl = "0.4"
2424
docopt = "0.6"
2525
env_logger = "0.3"
2626
filetime = "0.1"
2727
flate2 = "0.2"
28-
fs2 = "0.2"
29-
git2 = "0.5"
30-
git2-curl = "0.6"
28+
fs2 = "0.3"
29+
git2 = "0.6"
30+
git2-curl = "0.7"
3131
glob = "0.2"
3232
kernel32-sys = "0.2"
3333
libc = "0.2"
34-
libgit2-sys = "0.5"
34+
libgit2-sys = "0.6"
3535
log = "0.3"
3636
miow = "0.1"
3737
num_cpus = "1.0"

Makefile.in

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -252,14 +252,8 @@ target/openssl/$(1).stamp: target/openssl/openssl-$$(OPENSSL_VERS).tar.gz \
252252
# variables read by various build scripts to find openssl
253253
cargo-$(1): export OPENSSL_STATIC := 1
254254
cargo-$(1): export OPENSSL_DIR := $$(OPENSSL_INSTALL_$(1))
255-
cargo-$(1): export OPENSSL_ROOT_DIR := $$(OPENSSL_INSTALL_$(1))
256-
cargo-$(1): export OPENSSL_LIB_DIR := $$(OPENSSL_INSTALL_$(1))/lib
257-
cargo-$(1): export OPENSSL_INCLUDE_DIR := $$(OPENSSL_INSTALL_$(1))/include
258255
test-unit-$(1): export OPENSSL_STATIC := 1
259256
test-unit-$(1): export OPENSSL_DIR := $$(OPENSSL_INSTALL_$(1))
260-
test-unit-$(1): export OPENSSL_ROOT_DIR := $$(OPENSSL_INSTALL_$(1))
261-
test-unit-$(1): export OPENSSL_LIB_DIR := $$(OPENSSL_INSTALL_$(1))/lib
262-
test-unit-$(1): export OPENSSL_INCLUDE_DIR := $$(OPENSSL_INSTALL_$(1))/include
263257

264258
# build libz statically into the cargo we're producing
265259
cargo-$(1): export LIBZ_SYS_STATIC := 1

src/crates-io/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ name = "crates_io"
1313
path = "lib.rs"
1414

1515
[dependencies]
16-
curl = "0.3"
16+
curl = "0.4"
1717
url = "1.0"
1818
rustc-serialize = "0.3"

tests/build-auth.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ Caused by:
164164
// just not verify the error message here.
165165
"[..]"
166166
} else {
167-
"[[..]] SSL error: [..]"
167+
"[..] SSL error: [..]"
168168
})));
169169

170170
t.join().ok().unwrap();

tests/cargotest/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ bufstream = "0.1"
1111
cargo = { path = "../.." }
1212
filetime = "0.1"
1313
flate2 = "0.2"
14-
git2 = "0.5"
14+
git2 = { version = "0.6", default-features = false }
1515
hamcrest = "0.1"
1616
kernel32-sys = "0.2"
1717
libc = "0.2"

tests/freshness.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,15 +199,16 @@ fn rebuild_tests_if_lib_changes() {
199199
#[test]
200200
fn test() { foo::foo(); }
201201
"#);
202+
p.build();
202203

203-
assert_that(p.cargo_process("build"),
204+
p.root().move_into_the_past();
205+
206+
assert_that(p.cargo("build"),
204207
execs().with_status(0));
205208
assert_that(p.cargo("test"),
206209
execs().with_status(0));
207210

208211
File::create(&p.root().join("src/lib.rs")).unwrap();
209-
p.root().move_into_the_past();
210-
p.root().join("target").move_into_the_past();
211212

212213
assert_that(p.cargo("build"),
213214
execs().with_status(0));

tests/net-config.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fn net_retry_loads_from_config() {
2626
assert_that(p.cargo_process("build").arg("-v"),
2727
execs().with_status(101)
2828
.with_stderr_contains("[WARNING] spurious network error \
29-
(1 tries remaining): [2/-1] [..]"));
29+
(1 tries remaining): [..]"));
3030
}
3131

3232
#[test]
@@ -50,7 +50,7 @@ fn net_retry_git_outputs_warning() {
5050
assert_that(p.cargo_process("build").arg("-v").arg("-j").arg("1"),
5151
execs().with_status(101)
5252
.with_stderr_contains("[WARNING] spurious network error \
53-
(2 tries remaining): [2/-1] [..]")
53+
(2 tries remaining): [..]")
5454
.with_stderr_contains("\
55-
[WARNING] spurious network error (1 tries remaining): [2/-1] [..]"));
55+
[WARNING] spurious network error (1 tries remaining): [..]"));
5656
}

0 commit comments

Comments
 (0)