Skip to content

Commit 15acaa9

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

File tree

11 files changed

+164
-158
lines changed

11 files changed

+164
-158
lines changed

.travis.yml

Lines changed: 8 additions & 10 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
@@ -129,6 +122,11 @@ notifications:
129122
email:
130123
on_success: never
131124

125+
branches:
126+
only:
127+
- master
128+
- auto-cargo
129+
132130
before_deploy:
133131
- mkdir -p deploy/$TRAVIS_COMMIT
134132
- cp target/$TARGET/release/dist/cargo-nightly-$TARGET.tar.gz
@@ -142,9 +140,9 @@ deploy:
142140
upload_dir: cargo-master
143141
acl: public_read
144142
region: us-west-1
145-
access_key_id: AKIAJYHGN72KKCN4DFBQ
143+
access_key_id: AKIAIWZDM2B2IJOWBGTA
146144
secret_access_key:
147-
secure: wKKDMYBVTdWLuc7+ffpjTqJs1EdM2pXpV6keUfZGv9RLRta+esh/r/cgc+UQ7+m9JHAliH8eWhlMm5ws6WDgkTvM0PTdqWBgwd24BRbAitsXX2kWfi9WgAeSJVSkIJdZ999TRpRIJu7Zc+1++fbfdD/tDv5XBirQGOJv1HynVWY=
145+
secure: NB9b/MhIDiv8OtNiN/sHaFgA3xG2fa7MGuQQKJNj80ktvgByzDm5UPNyNeoYx9SmJ3jOWobgcPVaoUd2S+6XgO3bMBqm7sM/oMeE0KdqToh6+V2bKfyRF2U5fm697LEGepPIBYqMLDg4nr/dbknbKltzp6dAfJRyy22Nb721zPQ=
148146
on:
149147
branch: auto-cargo
150148
condition: $DEPLOY = 1

Cargo.lock

Lines changed: 112 additions & 112 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

appveyor.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,21 @@ after_test:
5252
- copy target\%TARGET%\release\dist\cargo-nightly-%TARGET%.tar.gz
5353
%APPVEYOR_REPO_COMMIT%
5454

55+
branches:
56+
only:
57+
- master
58+
- auto-cargo
59+
5560
artifacts:
5661
- path: $(APPVEYOR_REPO_COMMIT)\cargo-nightly-$(TARGET).tar.gz
5762
name: cargo
5863

5964
deploy:
6065
- provider: S3
6166
skip_cleanup: true
62-
access_key_id: AKIAIIBSE766REJRCHEA
67+
access_key_id: AKIAIWZDM2B2IJOWBGTA
6368
secret_access_key:
64-
secure: S3MCw/gXyWBuq8cW+eFQjbfjccxrH1koYqQxsYDvCDkM7D2PLqd88yv8lND7dVt0
69+
secure: hyH54di5NyNdV+jjntM1dRN/NeUgDidwZmwcg4/UKpdJqGf1AAwYb2ulXYK67CXA
6570
bucket: rust-lang-cargo-dev
6671
set_public: true
6772
region: us-west-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: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,10 @@ fn https_something_happens() {
127127
let a = TcpListener::bind("127.0.0.1:0").unwrap();
128128
let addr = a.local_addr().unwrap();
129129
let t = thread::spawn(move|| {
130-
drop(a.accept().unwrap());
130+
let mut s = a.accept().unwrap().0;
131+
drop(s.write(b"1234"));
132+
drop(s.shutdown(std::net::Shutdown::Write));
133+
drop(s.read(&mut [0; 16]));
131134
});
132135

133136
let p = project("foo")
@@ -164,7 +167,7 @@ Caused by:
164167
// just not verify the error message here.
165168
"[..]"
166169
} else {
167-
"[[..]] SSL error: [..]"
170+
"[..] SSL error: [..]"
168171
})));
169172

170173
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/cargotest/support/mod.rs

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -366,24 +366,29 @@ impl Execs {
366366
let mut a = actual.lines();
367367
let e = out.lines();
368368

369-
let diffs = if partial {
370-
let mut min = self.diff_lines(a.clone(), e.clone(), partial);
369+
if partial {
370+
let mut diffs = self.diff_lines(a.clone(), e.clone(), partial);
371371
while let Some(..) = a.next() {
372372
let a = self.diff_lines(a.clone(), e.clone(), partial);
373-
if a.len() < min.len() {
374-
min = a;
373+
if a.len() < diffs.len() {
374+
diffs = a;
375375
}
376376
}
377-
min
377+
ham::expect(diffs.is_empty(),
378+
format!("expected to find:\n\
379+
{}\n\n\
380+
did not find in output:\n\
381+
{}", out,
382+
actual))
378383
} else {
379-
self.diff_lines(a, e, partial)
380-
};
381-
ham::expect(diffs.is_empty(),
382-
format!("differences:\n\
383-
{}\n\n\
384-
other output:\n\
385-
`{}`", diffs.join("\n"),
386-
String::from_utf8_lossy(extra)))
384+
let diffs = self.diff_lines(a, e, partial);
385+
ham::expect(diffs.is_empty(),
386+
format!("differences:\n\
387+
{}\n\n\
388+
other output:\n\
389+
`{}`", diffs.join("\n"),
390+
String::from_utf8_lossy(extra)))
391+
}
387392

388393
}
389394

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)