From b13d6b97033bf5856ecfeb0fc16b97e6b5b96e48 Mon Sep 17 00:00:00 2001 From: John Marino Date: Mon, 28 Jul 2014 22:58:33 +0000 Subject: [PATCH] lang/rust: Fix link issue and build failure [1] Linking fails with missing reference to __morestack symbol [2] gpy fails with error about missing sem implementation PR: 189357 [1] PR: 191927 [2] Submitted by: bertrand.augereau (gmail) [1] Submitted by: maintainer: mitsuruike (gmail) [2] --- lang/rust/Makefile | 3 +++ lang/rust/files/patch-src__libuv__gyp_uv.py | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 lang/rust/files/patch-src__libuv__gyp_uv.py diff --git a/lang/rust/Makefile b/lang/rust/Makefile index e26bcf38875a..ad68dea2ec7f 100644 --- a/lang/rust/Makefile +++ b/lang/rust/Makefile @@ -3,6 +3,7 @@ PORTNAME= rust PORTVERSION= 0.11.0 +PORTREVISION= 1 CATEGORIES= lang MASTER_SITES= http://static.rust-lang.org/dist/:src \ http://static.rust-lang.org/stage0-snapshots/:bootstrap @@ -59,5 +60,7 @@ post-install: @${RM} ${STAGEDIR}${PREFIX}/lib/rustlib/manifest @${STRIP_CMD} `${GREP} -v -e '^@dirrm' -e '^man' -e 'rlib$$' \ ${PLIST} | ${SED} 's:^:${STAGEDIR}${PREFIX}/:'` + @${STRIP_CMD} `${GREP} -v -e '^@dirrm' -e '^man' -e 'rlib$$' \ + -e '\.a$$' ${PLIST} | ${SED} 's:^:${STAGEDIR}${PREFIX}/:g'` .include diff --git a/lang/rust/files/patch-src__libuv__gyp_uv.py b/lang/rust/files/patch-src__libuv__gyp_uv.py new file mode 100644 index 000000000000..fdb69da9c7c5 --- /dev/null +++ b/lang/rust/files/patch-src__libuv__gyp_uv.py @@ -0,0 +1,12 @@ +--- ./src/libuv/gyp_uv.py.orig 2014-06-28 04:53:11.000000000 +0900 ++++ ./src/libuv/gyp_uv.py 2014-07-17 12:32:13.000000000 +0900 +@@ -96,6 +96,9 @@ + + if sys.platform == 'darwin' and '-DOS=android' in sys.argv[1:]: + sys.platform='linux' ++ ++ if sys.platform.startswith('freebsd'): ++ args.append('--no-parallel') + + gyp_args = list(args) + print gyp_args