From owner-svn-ports-head@FreeBSD.ORG Wed Apr 24 13:46:43 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 07B081C1; Wed, 24 Apr 2013 13:46:43 +0000 (UTC) (envelope-from lwhsu@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id ED504161F; Wed, 24 Apr 2013 13:46:42 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r3ODkgG1053817; Wed, 24 Apr 2013 13:46:42 GMT (envelope-from lwhsu@svn.freebsd.org) Received: (from lwhsu@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r3ODkfbP053808; Wed, 24 Apr 2013 13:46:41 GMT (envelope-from lwhsu@svn.freebsd.org) Message-Id: <201304241346.r3ODkfbP053808@svn.freebsd.org> From: Li-Wen Hsu Date: Wed, 24 Apr 2013 13:46:41 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r316436 - in head/lang/rust: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Apr 2013 13:46:43 -0000 Author: lwhsu Date: Wed Apr 24 13:46:41 2013 New Revision: 316436 URL: http://svnweb.freebsd.org/changeset/ports/316436 Log: - Update to 0.6 PR: ports/177665 Submitted by: Jyun-Yan You (maintainer) Deleted: head/lang/rust/files/tgammaf.patch Modified: head/lang/rust/Makefile head/lang/rust/distinfo head/lang/rust/files/log2.patch head/lang/rust/files/patch-configure head/lang/rust/files/patch-mk_platform.mk head/lang/rust/pkg-plist Modified: head/lang/rust/Makefile ============================================================================== --- head/lang/rust/Makefile Wed Apr 24 13:43:58 2013 (r316435) +++ head/lang/rust/Makefile Wed Apr 24 13:46:41 2013 (r316436) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= rust -PORTVERSION= 0.5 +PORTVERSION= 0.6 CATEGORIES= lang MASTER_SITES= http://static.rust-lang.org/dist/:src \ http://static.rust-lang.org/stage0-snapshots/:boot @@ -15,7 +15,7 @@ COMMENT= A language with a focus on memo RUST_SOURCE= ${DISTNAME}${EXTRACT_SUFX} RUST_BOOT= rust-stage0-${RUST_BOOT_SIG}.tar.bz2 -RUST_BOOT_SIG= 2012-12-19-8554d5e-freebsd-x86_64-2bffa280f338913c735672f6ddb630c6da126fad +RUST_BOOT_SIG= 2013-03-28-f7a2371-freebsd-x86_64-01f1e4b94504045e763eecb71c7e0852f6e85036 RUST_TARGET= x86_64-unknown-freebsd ONLY_FOR_ARCHS= amd64 @@ -28,9 +28,9 @@ USE_PYTHON_BUILD= 2.6-2.7 MAN1= rustc.1 -OPTIONS_DEFINE= CARGO -CARGO_DESC= Build with package manager -OPTIONS_DEFAULT= CARGO +OPTIONS_DEFINE= RUSTPKG +RUSTPKG_DESC= Build with package manager +OPTIONS_DEFAULT= RUSTPKG .include @@ -38,10 +38,6 @@ OPTIONS_DEFAULT= CARGO EXTRA_PATCHES+= ${FILESDIR}/log2.patch .endif -.if ${OSVERSION} < 801000 -EXTRA_PATCHES+= ${FILESDIR}/tgammaf.patch -.endif - .if ${OSVERSION} >= 900044 LIB_DEPENDS+= unwind:${PORTSDIR}/devel/libunwind CC= clang @@ -51,13 +47,12 @@ CONFIGURE_ARGS+= --enable-clang USE_GCC= yes .endif -.if ${PORT_OPTIONS:MCARGO} +.if ${PORT_OPTIONS:MRUSTPKG} RUN_DEPENDS+= curl:${PORTSDIR}/ftp/curl \ - git:${PORTSDIR}/devel/git \ - gpg:${PORTSDIR}/security/gnupg -PLIST_SUB+= CARGO="" + git:${PORTSDIR}/devel/git +PLIST_SUB+= RUSTPKG="" .else -PLIST_SUB+= CARGO="@comment " +PLIST_SUB+= RUSTPKG="@comment " .endif LIB_DEPENDS+= execinfo:${PORTSDIR}/devel/libexecinfo @@ -73,17 +68,14 @@ post-extract: post-patch: ${REINPLACE_CMD} \ - -e 's|subprocess.call(\["curl"|subprocess.call(["fetch"|' \ - ${WRKSRC}/src/etc/snapshot.py - ${REINPLACE_CMD} \ -e 's|$$(PREFIX_ROOT)/share/man|${MANPREFIX}/man|' \ ${WRKSRC}/mk/install.mk ${REINPLACE_CMD} \ - -e '/get-snapshot.py $$(CFG_HOST_TRIPLE)/d' \ + -e '/get-snapshot.py $$(CFG_BUILD_TRIPLE)/d' \ ${WRKSRC}/mk/stage0.mk -.if empty(PORT_OPTIONS:MCARGO) +.if empty(PORT_OPTIONS:MRUSTPKG) ${REINPLACE_CMD} \ - -e '/$$(Q)$$(call INSTALL,$$(HB2),$$(PHB),cargo$$(X))/d' \ + -e '/$$(Q)$$(call INSTALL,$$(HB2),$$(PHB),rustpkg$$(X_$$(CFG_BUILD_TRIPLE)))/d' \ ${WRKSRC}/mk/install.mk .endif Modified: head/lang/rust/distinfo ============================================================================== --- head/lang/rust/distinfo Wed Apr 24 13:43:58 2013 (r316435) +++ head/lang/rust/distinfo Wed Apr 24 13:46:41 2013 (r316436) @@ -1,4 +1,4 @@ -SHA256 (rust-0.5.tar.gz) = d326d22707f0562d669c11efbc33ae812ddbf76ab78f07087fc5beb095a8928a -SIZE (rust-0.5.tar.gz) = 24304179 -SHA256 (rust-stage0-2012-12-19-8554d5e-freebsd-x86_64-2bffa280f338913c735672f6ddb630c6da126fad.tar.bz2) = 31d960789db8c7b67d2760ddbc7b397e21d2fc7c6e872c3ae0186c2d2f2e8006 -SIZE (rust-stage0-2012-12-19-8554d5e-freebsd-x86_64-2bffa280f338913c735672f6ddb630c6da126fad.tar.bz2) = 13856177 +SHA256 (rust-0.6.tar.gz) = e11cb529a1e20f27d99033181a9e0e131817136b46d2742f0fa1afa1210053e5 +SIZE (rust-0.6.tar.gz) = 23595432 +SHA256 (rust-stage0-2013-03-28-f7a2371-freebsd-x86_64-01f1e4b94504045e763eecb71c7e0852f6e85036.tar.bz2) = 2e4afca52678f6004573beb01a72084c4118cc1ac813a171bfcace35cf873cc6 +SIZE (rust-stage0-2013-03-28-f7a2371-freebsd-x86_64-01f1e4b94504045e763eecb71c7e0852f6e85036.tar.bz2) = 16732821 Modified: head/lang/rust/files/log2.patch ============================================================================== --- head/lang/rust/files/log2.patch Wed Apr 24 13:43:58 2013 (r316435) +++ head/lang/rust/files/log2.patch Wed Apr 24 13:46:41 2013 (r316436) @@ -1,48 +1,66 @@ ---- src/libcore/cmath.rs.orig 2012-10-16 21:22:12.704922039 +0800 -+++ src/libcore/cmath.rs 2012-10-16 21:23:23.023337237 +0800 -@@ -56,7 +56,6 @@ - // renamed: to be consitent with log as ln - #[link_name="log1p"] pure fn ln1p(n: c_double) -> c_double; - pure fn log10(n: c_double) -> c_double; -- pure fn log2(n: c_double) -> c_double; - #[link_name="ilogb"] pure fn ilog_radix(n: c_double) -> c_int; - pure fn modf(n: c_double, iptr: &mut c_double) -> c_double; - pure fn pow(n: c_double, e: c_double) -> c_double; -@@ -131,7 +130,6 @@ - #[link_name="logf"] pure fn ln(n: c_float) -> c_float; - #[link_name="logbf"] pure fn log_radix(n: c_float) -> c_float; - #[link_name="log1pf"] pure fn ln1p(n: c_float) -> c_float; -- #[link_name="log2f"] pure fn log2(n: c_float) -> c_float; - #[link_name="log10f"] pure fn log10(n: c_float) -> c_float; - #[link_name="ilogbf"] pure fn ilog_radix(n: c_float) -> c_int; - #[link_name="modff"] pure fn modf(n: c_float, ---- src/libcore/f32.rs.orig 2012-10-16 21:22:27.909922315 +0800 -+++ src/libcore/f32.rs 2012-10-16 21:24:32.932336957 +0800 -@@ -135,7 +135,11 @@ - } +--- src/libcore/num/cmath.rs.orig 2013-04-06 12:52:09.596039132 +0800 ++++ src/libcore/num/cmath.rs 2013-04-06 12:53:24.474452681 +0800 +@@ -64,7 +64,6 @@ + // renamed: to be consitent with log as ln + #[link_name="log1p"] unsafe fn ln1p(n: c_double) -> c_double; + unsafe fn log10(n: c_double) -> c_double; +- unsafe fn log2(n: c_double) -> c_double; + #[link_name="ilogb"] unsafe fn ilog_radix(n: c_double) -> c_int; + unsafe fn modf(n: c_double, iptr: &mut c_double) -> c_double; + unsafe fn pow(n: c_double, e: c_double) -> c_double; +@@ -148,7 +147,6 @@ + #[link_name="logf"] unsafe fn ln(n: c_float) -> c_float; + #[link_name="logbf"] unsafe fn log_radix(n: c_float) -> c_float; + #[link_name="log1pf"] unsafe fn ln1p(n: c_float) -> c_float; +- #[link_name="log2f"] unsafe fn log2(n: c_float) -> c_float; + #[link_name="log10f"] unsafe fn log10(n: c_float) -> c_float; + #[link_name="ilogbf"] unsafe fn ilog_radix(n: c_float) -> c_int; + #[link_name="modff"] unsafe fn modf(n: c_float, +--- src/libcore/num/f32.rs.orig 2013-04-06 12:52:15.395037527 +0800 ++++ src/libcore/num/f32.rs 2013-04-06 13:00:55.623679761 +0800 +@@ -81,7 +81,6 @@ + cmath::c_float_utils::log_radix) + delegate!(fn ln1p(n: c_float) -> c_float = cmath::c_float_utils::ln1p) + delegate!(fn log10(n: c_float) -> c_float = cmath::c_float_utils::log10) +-delegate!(fn log2(n: c_float) -> c_float = cmath::c_float_utils::log2) + delegate!(fn ilog_radix(n: c_float) -> c_int = + cmath::c_float_utils::ilog_radix) + delegate!(fn modf(n: c_float, iptr: &mut c_float) -> c_float = +@@ -254,7 +253,12 @@ - pub pure fn logarithm(n: f32, b: f32) -> f32 { + #[inline(always)] + pub fn logarithm(n: f32, b: f32) -> f32 { - return log2(n) / log2(b); + return ln(n) / ln(b); +} + -+pub pure fn log2(n: f32) -> f32 { ++#[inline(always)] ++pub fn log2(n: f32) -> f32 { + return ln(n) / consts::ln_2; } - impl f32: num::Num { ---- src/libcore/f64.rs.orig 2012-10-16 21:22:34.895921647 +0800 -+++ src/libcore/f64.rs 2012-10-16 21:25:30.466586496 +0800 -@@ -154,7 +154,11 @@ - } + #[cfg(notest)] +--- src/libcore/num/f64.rs.orig 2013-04-06 12:52:25.866037307 +0800 ++++ src/libcore/num/f64.rs 2013-04-06 13:02:33.051357016 +0800 +@@ -82,7 +82,6 @@ + cmath::c_double_utils::log_radix) + delegate!(fn ln1p(n: c_double) -> c_double = cmath::c_double_utils::ln1p) + delegate!(fn log10(n: c_double) -> c_double = cmath::c_double_utils::log10) +-delegate!(fn log2(n: c_double) -> c_double = cmath::c_double_utils::log2) + delegate!(fn ilog_radix(n: c_double) -> c_int = + cmath::c_double_utils::ilog_radix) + delegate!(fn modf(n: c_double, iptr: &mut c_double) -> c_double = +@@ -276,7 +275,12 @@ - pub pure fn logarithm(n: f64, b: f64) -> f64 { + #[inline(always)] + pub fn logarithm(n: f64, b: f64) -> f64 { - return log2(n) / log2(b); + return ln(n) / ln(b); +} + -+pub pure fn log2(n: f64) -> f64 { ++#[inline(always)] ++pub fn log2(n: f64) -> f64 { + return ln(n) / consts::ln_2; } - impl f64: num::Num { + #[cfg(notest)] Modified: head/lang/rust/files/patch-configure ============================================================================== --- head/lang/rust/files/patch-configure Wed Apr 24 13:43:58 2013 (r316435) +++ head/lang/rust/files/patch-configure Wed Apr 24 13:46:41 2013 (r316436) @@ -1,6 +1,6 @@ ---- configure.orig 2012-12-19 07:29:12.000000000 +0800 -+++ configure 2012-12-24 20:52:33.524922231 +0800 -@@ -363,7 +363,6 @@ +--- configure.orig 2013-04-06 12:44:15.918202587 +0800 ++++ configure 2013-04-06 12:45:10.302044128 +0800 +@@ -401,7 +401,6 @@ step_msg "looking for build programs" probe_need CFG_PERL perl @@ -8,7 +8,7 @@ probe_need CFG_PYTHON python2.7 python2.6 python2 python python_version=$($CFG_PYTHON -V 2>&1) -@@ -472,15 +471,6 @@ +@@ -511,15 +510,6 @@ fi fi @@ -24,12 +24,3 @@ if [ -z "$CFG_ENABLE_CLANG" -a -z "$CFG_GCC" ] then err "either clang or gcc is required" -@@ -516,7 +506,7 @@ - | cut -d ' ' -f 2) - - case $CFG_CLANG_VERSION in -- (3.0svn | 3.0 | 3.1 | 4.0 | 4.1) -+ (3.0svn | 3.0 | 3.1 | 3.2 | 4.0 | 4.1) - step_msg "found ok version of CLANG: $CFG_CLANG_VERSION" - CFG_C_COMPILER="clang" - ;; Modified: head/lang/rust/files/patch-mk_platform.mk ============================================================================== --- head/lang/rust/files/patch-mk_platform.mk Wed Apr 24 13:43:58 2013 (r316435) +++ head/lang/rust/files/patch-mk_platform.mk Wed Apr 24 13:46:41 2013 (r316436) @@ -1,27 +1,11 @@ ---- mk/platform.mk.orig 2012-12-25 08:33:07.971922333 +0800 -+++ mk/platform.mk 2012-12-25 08:33:16.996994081 +0800 -@@ -222,7 +222,7 @@ - ifeq ($(origin CPP),default) - CPP=clang -E - endif -- CFG_GCCISH_CFLAGS += -Wall -Werror -g -+ CFG_GCCISH_CFLAGS += -Wall -g - CFG_GCCISH_CXXFLAGS += -fno-rtti - CFG_GCCISH_LINK_FLAGS += -g - # These flags will cause the compiler to produce a .d file -@@ -268,7 +268,7 @@ - ifeq ($(origin CPP),default) - CPP=gcc -E - endif -- CFG_GCCISH_CFLAGS += -Wall -Werror -g -+ CFG_GCCISH_CFLAGS += -Wall -g - CFG_GCCISH_CXXFLAGS += -fno-rtti - CFG_GCCISH_LINK_FLAGS += -g - # These flags will cause the compiler to produce a .d file -@@ -322,4 +322,4 @@ - endef - - $(foreach target,$(CFG_TARGET_TRIPLES),\ -- $(eval $(call CFG_MAKE_ASSEMBLER,$(target)))) -\ No newline at end of file -+ $(eval $(call CFG_MAKE_ASSEMBLER,$(target)))) +--- mk/platform.mk.orig 2013-04-06 12:47:35.924036199 +0800 ++++ mk/platform.mk 2013-04-06 12:48:04.696038055 +0800 +@@ -299,7 +299,7 @@ + CFG_LIB_NAME_x86_64-unknown-freebsd=lib$(1).so + CFG_LIB_GLOB_x86_64-unknown-freebsd=lib$(1)-*.so + CFG_LIB_DSYM_GLOB_x86_64-unknown-freebsd=$(1)-*.dylib.dSYM +-CFG_GCCISH_CFLAGS_x86_64-unknown-freebsd := -Wall -Werror -g -fPIC -I/usr/local/include ++CFG_GCCISH_CFLAGS_x86_64-unknown-freebsd := -Wall -g -fPIC -I/usr/local/include + CFG_GCCISH_LINK_FLAGS_x86_64-unknown-freebsd := -shared -fPIC -g -lpthread -lrt + CFG_GCCISH_DEF_FLAG_x86_64-unknown-freebsd := -Wl,--export-dynamic,--dynamic-list= + CFG_GCCISH_PRE_LIB_FLAGS_x86_64-unknown-freebsd := -Wl,-whole-archive Modified: head/lang/rust/pkg-plist ============================================================================== --- head/lang/rust/pkg-plist Wed Apr 24 13:43:58 2013 (r316435) +++ head/lang/rust/pkg-plist Wed Apr 24 13:46:41 2013 (r316436) @@ -1,27 +1,26 @@ -%%CARGO%%bin/cargo +bin/rust bin/rustc bin/rustdoc bin/rusti -lib/libcargo.so -lib/libcore-c3ca5d77d81b46c1-0.5.so -lib/librustc-c84825241471686d-0.5.so -lib/librustc.so -lib/librustdoc.so -lib/librusti-5047c7f210c7cac8-0.5.so -lib/librusti.so +%%RUSTPKG%%bin/rustpkg +lib/libcore-c3ca5d77d81b46c1-0.6.so +lib/librust-39583f72884834e3-0.6.so +lib/librustc-c84825241471686d-0.6.so +lib/librusti-5047c7f210c7cac8-0.6.so lib/librustllvm.so lib/librustrt.so -lib/libstd-4782a756585a81-0.5.so -lib/libsyntax-84efebcb12c867a2-0.5.so -lib/rustc/x86_64-unknown-freebsd/lib/libcargo-4951d6ef10eecbb6-0.5.so -lib/rustc/x86_64-unknown-freebsd/lib/libcore-c3ca5d77d81b46c1-0.5.so +lib/libstd-4782a756585a81-0.6.so +lib/libsyntax-84efebcb12c867a2-0.6.so +lib/rustc/x86_64-unknown-freebsd/lib/libcore-c3ca5d77d81b46c1-0.6.so lib/rustc/x86_64-unknown-freebsd/lib/libmorestack.a -lib/rustc/x86_64-unknown-freebsd/lib/librustc-c84825241471686d-0.5.so -lib/rustc/x86_64-unknown-freebsd/lib/librustdoc-1ac3c0763957e4b0-0.5.so -lib/rustc/x86_64-unknown-freebsd/lib/librusti-5047c7f210c7cac8-0.5.so +lib/rustc/x86_64-unknown-freebsd/lib/librust-39583f72884834e3-0.6.so +lib/rustc/x86_64-unknown-freebsd/lib/librustc-c84825241471686d-0.6.so +lib/rustc/x86_64-unknown-freebsd/lib/librustdoc-1ac3c0763957e4b0-0.6.so +lib/rustc/x86_64-unknown-freebsd/lib/librusti-5047c7f210c7cac8-0.6.so +lib/rustc/x86_64-unknown-freebsd/lib/librustpkg-795073e423d025b-0.6.so lib/rustc/x86_64-unknown-freebsd/lib/librustrt.so -lib/rustc/x86_64-unknown-freebsd/lib/libstd-4782a756585a81-0.5.so -lib/rustc/x86_64-unknown-freebsd/lib/libsyntax-84efebcb12c867a2-0.5.so +lib/rustc/x86_64-unknown-freebsd/lib/libstd-4782a756585a81-0.6.so +lib/rustc/x86_64-unknown-freebsd/lib/libsyntax-84efebcb12c867a2-0.6.so @dirrm lib/rustc/x86_64-unknown-freebsd/lib @dirrm lib/rustc/x86_64-unknown-freebsd @dirrm lib/rustc