Bug 174670 - [MAINTAINER] lang/rust: update to 0.5
Summary: [MAINTAINER] lang/rust: update to 0.5
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Li-Wen Hsu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-24 08:50 UTC by Jyun-Yan You
Modified: 2013-01-07 06:40 UTC (History)
1 user (show)

See Also:


Attachments
rust-0.5.patch (5.83 KB, patch)
2012-12-24 08:50 UTC, Jyun-Yan You
no flags Details | Diff
rust-0.5-2.patch (7.50 KB, patch)
2013-01-05 16:47 UTC, Jyun-Yan You
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jyun-Yan You 2012-12-24 08:50:01 UTC
- Update to 0.5

Removed file(s):
- files/patch-mk_platform.mk

Generated with FreeBSD Port Tools 0.99
Comment 1 Li-Wen Hsu freebsd_committer freebsd_triage 2012-12-24 09:12:50 UTC
Responsible Changed
From-To: freebsd-ports-bugs->lwhsu

I'll take it.
Comment 2 Jyun-Yan You 2012-12-24 13:09:31 UTC
Revised patch
http://people.cs.nctu.edu.tw/~jyyou/rust-0.5.patch
Comment 3 Jyun-Yan You 2013-01-05 16:47:06 UTC
Another revised patch
Comment 4 dfilter service freebsd_committer freebsd_triage 2013-01-07 06:35:13 UTC
Author: lwhsu
Date: Mon Jan  7 06:35:04 2013
New Revision: 310023
URL: http://svnweb.freebsd.org/changeset/ports/310023

Log:
  - Update to 0.5
  
  PR:		ports/174670
  Submitted by:	Jyun-Yan You <jyyou@cs.nctu.edu.tw> (maintainer)

Modified:
  head/lang/rust/Makefile
  head/lang/rust/distinfo
  head/lang/rust/files/patch-configure
  head/lang/rust/files/patch-mk_platform.mk
  head/lang/rust/files/tgammaf.patch
  head/lang/rust/pkg-plist

Modified: head/lang/rust/Makefile
==============================================================================
--- head/lang/rust/Makefile	Mon Jan  7 06:16:27 2013	(r310022)
+++ head/lang/rust/Makefile	Mon Jan  7 06:35:04 2013	(r310023)
@@ -1,15 +1,11 @@
-# New ports collection makefile for: rust
-# Date created: 2012-01-21
-# Whom: Jyun-Yan You <jyyou@cs.nctu.edu.tw>
-#
+# Created by: Jyun-Yan You <jyyou@cs.nctu.edu.tw>
 # $FreeBSD$
-#
 
 PORTNAME=	rust
-PORTVERSION=	0.4
+PORTVERSION=	0.5
 CATEGORIES=	lang
-MASTER_SITES=	http://dl.rust-lang.org/dist/:src \
-		http://dl.rust-lang.org/stage0-snapshots/:boot
+MASTER_SITES=	http://static.rust-lang.org/dist/:src \
+		http://static.rust-lang.org/stage0-snapshots/:boot
 DISTFILES=	${RUST_SOURCE}:src \
 		${RUST_BOOT}:boot
 EXTRACT_ONLY=	${RUST_SOURCE}
@@ -19,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-10-09-cd6f24f-freebsd-x86_64-a2b5e9dddfa8f21cc8a068b77a47ba5425bfdcc6
+RUST_BOOT_SIG=	2012-12-19-8554d5e-freebsd-x86_64-2bffa280f338913c735672f6ddb630c6da126fad
 RUST_TARGET=	x86_64-unknown-freebsd
 
 ONLY_FOR_ARCHS=	amd64
@@ -52,7 +48,7 @@ CC=		clang
 CXX=		clang++
 CONFIGURE_ARGS+=	--enable-clang
 .else
-USE_GCC=	4.6+
+USE_GCC=	yes
 .endif
 
 .if ${PORT_OPTIONS:MCARGO}
@@ -87,7 +83,7 @@ post-patch:
 	    ${WRKSRC}/mk/stage0.mk
 .if empty(PORT_OPTIONS:MCARGO)
 	${REINPLACE_CMD} \
-	    -e '/$$(Q)$$(call INSTALL,$$(HB3),$$(PHB),cargo$$(X))/d' \
+	    -e '/$$(Q)$$(call INSTALL,$$(HB2),$$(PHB),cargo$$(X))/d' \
 	    ${WRKSRC}/mk/install.mk
 .endif
 

Modified: head/lang/rust/distinfo
==============================================================================
--- head/lang/rust/distinfo	Mon Jan  7 06:16:27 2013	(r310022)
+++ head/lang/rust/distinfo	Mon Jan  7 06:35:04 2013	(r310023)
@@ -1,4 +1,4 @@
-SHA256 (rust-0.4.tar.gz) = 150685f07e4d605cadf9fba25b05e9cc1b009364dd744131cf4230d64981d093
-SIZE (rust-0.4.tar.gz) = 24104527
-SHA256 (rust-stage0-2012-10-09-cd6f24f-freebsd-x86_64-a2b5e9dddfa8f21cc8a068b77a47ba5425bfdcc6.tar.bz2) = 6ef8e6af1af853ed391ff90063deeae3593954b271724d78104e6f31ebb8a470
-SIZE (rust-stage0-2012-10-09-cd6f24f-freebsd-x86_64-a2b5e9dddfa8f21cc8a068b77a47ba5425bfdcc6.tar.bz2) = 13084348
+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

Modified: head/lang/rust/files/patch-configure
==============================================================================
--- head/lang/rust/files/patch-configure	Mon Jan  7 06:16:27 2013	(r310022)
+++ head/lang/rust/files/patch-configure	Mon Jan  7 06:35:04 2013	(r310023)
@@ -1,6 +1,6 @@
---- configure.orig	2012-10-16 22:28:10.833921513 +0800
-+++ configure	2012-10-16 22:30:18.122921502 +0800
-@@ -312,7 +312,6 @@
+--- configure.orig	2012-12-19 07:29:12.000000000 +0800
++++ configure	2012-12-24 20:52:33.524922231 +0800
+@@ -363,7 +363,6 @@
  step_msg "looking for build programs"
  
  probe_need CFG_PERL        perl
@@ -8,7 +8,23 @@
  probe_need CFG_PYTHON      python2.7 python2.6 python2 python
  
  python_version=$($CFG_PYTHON -V 2>&1)
-@@ -451,7 +450,7 @@
+@@ -472,15 +471,6 @@
+     fi
+ fi
+ 
+-# Force freebsd to build with clang; gcc doesn't like us there
+-if [ $CFG_OSTYPE = unknown-freebsd ]
+-then
+-    step_msg "on FreeBSD, forcing use of clang"
+-    CFG_ENABLE_CLANG=1
+-    putvar CFG_ENABLE_CLANG
+-fi
+-
+-
+ 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

Modified: head/lang/rust/files/patch-mk_platform.mk
==============================================================================
--- head/lang/rust/files/patch-mk_platform.mk	Mon Jan  7 06:16:27 2013	(r310022)
+++ head/lang/rust/files/patch-mk_platform.mk	Mon Jan  7 06:35:04 2013	(r310023)
@@ -1,20 +1,27 @@
---- mk/platform.mk.orig	2012-04-05 22:34:59.678608449 +0800
-+++ mk/platform.mk	2012-04-05 22:35:13.749110633 +0800
-@@ -213,7 +213,7 @@
+--- 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=cpp
+     CPP=clang -E
    endif
--  CFG_GCCISH_CFLAGS += -Wall -Werror -fno-rtti -g
-+  CFG_GCCISH_CFLAGS += -Wall -fno-rtti -g
+-  CFG_GCCISH_CFLAGS += -Wall -Werror -g
++  CFG_GCCISH_CFLAGS += -Wall -g
+   CFG_GCCISH_CXXFLAGS += -fno-rtti
    CFG_GCCISH_LINK_FLAGS += -g
-   CFG_DEPEND_C = $(CFG_GCCISH_CROSS)$(CXX) $(CFG_GCCISH_CFLAGS) -MT "$(1)" \
-     -MM $(2)
-@@ -244,7 +244,7 @@
+   # These flags will cause the compiler to produce a .d file
+@@ -268,7 +268,7 @@
    ifeq ($(origin CPP),default)
-     CPP=cpp
+     CPP=gcc -E
    endif
--  CFG_GCCISH_CFLAGS += -Wall -Werror -fno-rtti -g
-+  CFG_GCCISH_CFLAGS += -Wall -fno-rtti -g
+-  CFG_GCCISH_CFLAGS += -Wall -Werror -g
++  CFG_GCCISH_CFLAGS += -Wall -g
+   CFG_GCCISH_CXXFLAGS += -fno-rtti
    CFG_GCCISH_LINK_FLAGS += -g
-   CFG_DEPEND_C = $(CFG_GCCISH_CROSS)$(CXX) $(CFG_GCCISH_CFLAGS) -MT "$(1)" \
-     -MM $(2)
+   # 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))))

Modified: head/lang/rust/files/tgammaf.patch
==============================================================================
--- head/lang/rust/files/tgammaf.patch	Mon Jan  7 06:16:27 2013	(r310022)
+++ head/lang/rust/files/tgammaf.patch	Mon Jan  7 06:35:04 2013	(r310023)
@@ -14,7 +14,7 @@
  pub use cmath::c_float::*;
  pub use cmath::c_float_targ_consts::*;
  
-+priv use cmath::c_double;
++priv use cmath::c_double_utils;
 +
  // These are not defined inside consts:: for consistency with
  // the integer types
@@ -24,7 +24,7 @@
  }
  
 +pub pure fn tgamma(n: f32) -> f32 {
-+    return c_double::tgamma(n as f64) as f32;
++    return c_double_utils::tgamma(n as f64) as f32;
 +}
 +
  pub pure fn signbit(x: f32) -> int {

Modified: head/lang/rust/pkg-plist
==============================================================================
--- head/lang/rust/pkg-plist	Mon Jan  7 06:16:27 2013	(r310022)
+++ head/lang/rust/pkg-plist	Mon Jan  7 06:35:04 2013	(r310023)
@@ -1,18 +1,27 @@
 %%CARGO%%bin/cargo
 bin/rustc
 bin/rustdoc
-lib/libcore-c3ca5d77d81b46c1-0.4.so
-lib/librustc-c84825241471686d-0.4.so
+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
 lib/librustllvm.so
 lib/librustrt.so
-lib/libstd-4782a756585a81-0.4.so
-lib/libsyntax-84efebcb12c867a2-0.4.so
-lib/rustc/x86_64-unknown-freebsd/lib/libcore-c3ca5d77d81b46c1-0.4.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/rustc/x86_64-unknown-freebsd/lib/libmorestack.a
-lib/rustc/x86_64-unknown-freebsd/lib/librustc-c84825241471686d-0.4.so
+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/librustrt.so
-lib/rustc/x86_64-unknown-freebsd/lib/libstd-4782a756585a81-0.4.so
-lib/rustc/x86_64-unknown-freebsd/lib/libsyntax-84efebcb12c867a2-0.4.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
 @dirrm lib/rustc/x86_64-unknown-freebsd/lib
 @dirrm lib/rustc/x86_64-unknown-freebsd
 @dirrm lib/rustc
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 5 Li-Wen Hsu freebsd_committer freebsd_triage 2013-01-07 06:35:19 UTC
State Changed
From-To: open->closed

Committed. Thanks!