From 7ba2178948e777d5e5f171e35d036868021f2c42 Mon Sep 17 00:00:00 2001 From: Cody P Schafer Date: Mon, 24 Nov 2014 13:25:50 -0500 Subject: [PATCH] cargo: update and purge old --- recipes/cargo/cargo_2014-11-19.bb | 7 -- recipes/cargo/cargo_2014-11-20.bb | 2 - recipes/cargo/cargo_2014-11-24.bb | 2 + ...napshot-be-more-forgiving-to-triples.patch | 74 ------------------- 4 files changed, 2 insertions(+), 83 deletions(-) delete mode 100644 recipes/cargo/cargo_2014-11-19.bb delete mode 100644 recipes/cargo/cargo_2014-11-20.bb create mode 100644 recipes/cargo/cargo_2014-11-24.bb delete mode 100644 recipes/cargo/files/0001-dl-snapshot-be-more-forgiving-to-triples.patch diff --git a/recipes/cargo/cargo_2014-11-19.bb b/recipes/cargo/cargo_2014-11-19.bb deleted file mode 100644 index 72606f3..0000000 --- a/recipes/cargo/cargo_2014-11-19.bb +++ /dev/null @@ -1,7 +0,0 @@ -SRCREV_cargo = "baa873b09a3d54447516954161d91f794b8ec33d" - -SRC_URI_append = "\ - file://0001-dl-snapshot-be-more-forgiving-to-triples.patch \ -" - -require cargo.inc diff --git a/recipes/cargo/cargo_2014-11-20.bb b/recipes/cargo/cargo_2014-11-20.bb deleted file mode 100644 index cfe1da5..0000000 --- a/recipes/cargo/cargo_2014-11-20.bb +++ /dev/null @@ -1,2 +0,0 @@ -SRCREV_cargo = "1bdfb25de616f23c1e37d27a454cab73cf9cc2e0" -require cargo.inc diff --git a/recipes/cargo/cargo_2014-11-24.bb b/recipes/cargo/cargo_2014-11-24.bb new file mode 100644 index 0000000..939fddd --- /dev/null +++ b/recipes/cargo/cargo_2014-11-24.bb @@ -0,0 +1,2 @@ +SRCREV_cargo = "de5bc1e663f834004d0e4a1fbce220a17a6cca28" +require cargo.inc diff --git a/recipes/cargo/files/0001-dl-snapshot-be-more-forgiving-to-triples.patch b/recipes/cargo/files/0001-dl-snapshot-be-more-forgiving-to-triples.patch deleted file mode 100644 index b3de058..0000000 --- a/recipes/cargo/files/0001-dl-snapshot-be-more-forgiving-to-triples.patch +++ /dev/null @@ -1,74 +0,0 @@ -From 5998606dc38d69b1ccf870242b2549dc76b6d418 Mon Sep 17 00:00:00 2001 -From: Cody P Schafer -Date: Sun, 16 Nov 2014 21:35:19 -0500 -Subject: [PATCH] dl-snapshot: be more forgiving to triples - ---- - src/etc/dl-snapshot.py | 50 +++++++++++++++++++++++++++++++++++++------------- - 1 file changed, 37 insertions(+), 13 deletions(-) - -diff --git a/src/etc/dl-snapshot.py b/src/etc/dl-snapshot.py -index 096b02e..cfbfc83 100644 ---- a/src/etc/dl-snapshot.py -+++ b/src/etc/dl-snapshot.py -@@ -25,20 +25,44 @@ win32 = lines[5] - win64 = lines[6] - triple = sys.argv[1] - --if triple == 'i686-unknown-linux-gnu': -- me = linux32 --elif triple == 'x86_64-unknown-linux-gnu': -- me = linux64 --elif triple == 'i686-apple-darwin': -- me = mac32 --elif triple == 'x86_64-apple-darwin': -- me = mac64 --elif triple == 'i686-pc-windows-gnu': -- me = win32 --elif triple == 'x86_64-pc-windows-gnu': -- me = win64 -+ts = triple.split('-') -+arch = ts[0] -+if len(ts) == 2: -+ vendor = 'unknown' -+ target_os = ts[1] - else: -- raise Exception("no snapshot for the triple: " + triple) -+ vendor = ts[1] -+ target_os = ts[2] -+ -+intel32 = (arch is 'i686') or (arch is 'i586') -+ -+me = None -+if target_os == 'linux': -+ if intel32: -+ me = linux32 -+ new_triple = 'i686-unknown-linux-gnu' -+ elif arch == 'x86_64': -+ me = linux64 -+ new_triple = 'x86_64-unknown-linux-gnu' -+elif target_os == 'darwin': -+ if intel32: -+ me = mac32 -+ new_triple = 'i686-apple-darwin' -+ elif arch == 'x86_64': -+ me = mac64 -+ new_triple = 'x86_64-apple-darwin' -+elif target_os == 'windows': -+ if intel32: -+ me = win32 -+ new_triple = 'i686-pc-windows-gnu' -+ elif arch == 'x86_64': -+ me = win64 -+ new_triple = 'x86_64-pc-windows-gnu' -+ -+if me is None: -+ raise Exception("no snapshot for the triple: " + triple + ", target_os: " + target_os + ", arch: " + arch + ", intel32=" + str(intel32)) -+ -+triple = new_triple - - platform, hash = me.strip().split() - --- -2.1.3 -