Bug 188800 - [PATCH] lang/rust: update to 0.10
Summary: [PATCH] lang/rust: update to 0.10
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: Steve Wills
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-19 21:20 UTC by Bartek Rutkowski
Modified: 2014-04-27 09:10 UTC (History)
1 user (show)

See Also:


Attachments
rust-0.10.patch (9.04 KB, patch)
2014-04-19 21:20 UTC, Bartek Rutkowski
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bartek Rutkowski freebsd_committer freebsd_triage 2014-04-19 21:20:00 UTC
- Update to 0.10
- Remove deprecated rustpkg functionality
- Stage improvements
- Add 10.x and 11.x compability
- Pet portlint

http://poudriere.ithil.palantiri.org:8080/latest-per-pkg/rust/0.10/

Port maintainer (jyyou@cs.nctu.edu.tw) is cc'd.

Generated with FreeBSD Port Tools 1.00.2014.03.23 (mode: update, diff: SVN)
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-04-19 21:20:05 UTC
Responsible Changed
From-To: freebsd-ports-bugs->swills

swills@ wants this submitter's PRs (via the GNATS Auto Assign Tool)
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2014-04-19 21:20:06 UTC
Maintainer of lang/rust,

Please note that PR ports/188800 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/188800

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 3 Edwin Groothuis freebsd_committer freebsd_triage 2014-04-19 21:20:07 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 4 Jyun-Yan You 2014-04-23 06:29:26 UTC
I have sent a PR (ports/188306) for 0.10, however, yours seems better than
mine.
Approved, thank you.
Comment 5 dfilter service freebsd_committer freebsd_triage 2014-04-27 09:02:14 UTC
Author: swills
Date: Sun Apr 27 08:02:10 2014
New Revision: 352402
URL: http://svnweb.freebsd.org/changeset/ports/352402
QAT: https://qat.redports.org/buildarchive/r352402/

Log:
  - Update to 0.10
  - Remove deprecated rustpkg functionality
  - Stage improvements
  - Add 10.x and 11.x compability
  - Pet portlint
  
  PR:		ports/188800
  Submitted by:	Bartek Rutkowski <ports@robakdesign.com>
  Approved by:	Jyun-Yan You <jyyou@cs.nctu.edu.tw> (maintainer)

Modified:
  head/lang/rust/Makefile
  head/lang/rust/distinfo
  head/lang/rust/pkg-plist

Modified: head/lang/rust/Makefile
==============================================================================
--- head/lang/rust/Makefile	Sun Apr 27 07:44:22 2014	(r352401)
+++ head/lang/rust/Makefile	Sun Apr 27 08:02:10 2014	(r352402)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	rust
-PORTVERSION=	0.9
+PORTVERSION=	0.10
 CATEGORIES=	lang
 MASTER_SITES=	http://static.rust-lang.org/dist/:src \
 		http://static.rust-lang.org/stage0-snapshots/:boot
@@ -11,7 +11,7 @@ DISTFILES=	${RUST_SOURCE}:src \
 EXTRACT_ONLY=	${RUST_SOURCE}
 
 MAINTAINER=	jyyou@cs.nctu.edu.tw
-COMMENT=	A language with a focus on memory safety and concurrency
+COMMENT=	Language with a focus on memory safety and concurrency
 
 LICENSE=	APACHE20 \
 		MIT
@@ -21,7 +21,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE-APACHE \
 
 RUST_SOURCE=	${DISTNAME}${EXTRACT_SUFX}
 RUST_BOOT=	rust-stage0-${RUST_BOOT_SIG}.tar.bz2
-RUST_BOOT_SIG=	2014-01-05-a6d3e57-freebsd-x86_64-ac21ea9537da2aaee35b7f3d2698b651dc3e8bd9
+RUST_BOOT_SIG=	2014-03-28-b8601a3-freebsd-x86_64-c6b0651b2a90697754920ad381c13f9b7942ab47
 RUST_TARGET=	x86_64-unknown-freebsd
 
 ONLY_FOR_ARCHS=	amd64
@@ -29,41 +29,33 @@ HAS_CONFIGURE=	yes
 USE_LDCONFIG=	yes
 USES=		gmake perl5
 USE_PERL5=	build
+USE_PYTHON=	yes
 USE_PYTHON_BUILD=	2
 
-MAN1=	rustc.1 \
-	rustdoc.1 \
-	rustpkg.1
-
-OPTIONS_DEFINE=		RUSTPKG \
-			LLNEXTGEN
-
-RUSTPKG_DESC=		Build with package manager
+OPTIONS_DEFINE=		LLNEXTGEN
 LLNEXTGEN_DESC=		Build with grammar verification
-OPTIONS_DEFAULT=	RUSTPKG
-OPTIONS_SUB=		yes
 
 .include <bsd.port.pre.mk>
 
-.if ${OSVERSION} < 900044 || ${OSVERSION} >= 1000000
-BROKEN=		Only compiles on FreeBSD 9
-.endif
+LIB_DEPENDS+=	libexecinfo.so:${PORTSDIR}/devel/libexecinfo
 
-CC=		clang
-CXX=		clang++
-CONFIGURE_ARGS+=	--disable-valgrind --disable-docs \
-			--enable-clang
-MAKE_ARGS+=		CC=${CC} CXX=${CXX} ARCH=x86_64
+.if ${OSVERSION} < 900044
+BROKEN=		Only compiles on FreeBSD 9,10 and 11
+.endif
 
-.if ${PORT_OPTIONS:MRUSTPKG}
-RUN_DEPENDS+=	git:${PORTSDIR}/devel/git
+.if ${OSVERSION} >= 1000000
+BUILD_DEPENDS+=	${LOCALBASE}/lib/compat/libstdc++.so.6:${PORTSDIR}/misc/compat9x
 .endif
 
 .if ${PORT_OPTIONS:MLLNEXTGEN}
 BUILD_DEPENDS+=	LLnextgen:${PORTSDIR}/devel/llnextgen
 .endif
 
-LIB_DEPENDS+=	execinfo:${PORTSDIR}/devel/libexecinfo
+CC=		clang
+CXX=		clang++
+CONFIGURE_ARGS+=	--disable-valgrind --disable-docs \
+			--enable-clang --mandir=${MANPREFIX}/man
+MAKE_ARGS+=		CC=${CC} CXX=${CXX} ARCH=x86_64
 
 post-extract:
 	${MKDIR} ${WRKSRC}/${RUST_TARGET} && \
@@ -72,13 +64,10 @@ post-extract:
 	${MV} rust-stage0 stage0
 
 post-patch:
-	${REINPLACE_CMD} \
-	    -e '/get-snapshot.py $$(CFG_BUILD)/d' \
-	    ${WRKSRC}/mk/stage0.mk
-.if empty(PORT_OPTIONS:MRUSTPKG)
-	${REINPLACE_CMD} \
-	    -e '/$$(Q)$$(call INSTALL,$$(HB2),$$(PHB),rustpkg$$(X_$$(CFG_BUILD)))/d' \
-	    ${WRKSRC}/mk/install.mk
-.endif
+	${REINPLACE_CMD} -e '/get-snapshot.py $$(CFG_BUILD)/d' ${WRKSRC}/mk/stage0.mk
+
+post-install:
+	@${RM} ${STAGEDIR}${PREFIX}/lib/rustlib/manifest
+	${STRIP_CMD} `${GREP} -v -e '^@dirrm' -e '^man' -e 'rlib$$' ${PLIST} | ${SED} 's:^:${STAGEDIR}${PREFIX}/:g'`
 
 .include <bsd.port.post.mk>

Modified: head/lang/rust/distinfo
==============================================================================
--- head/lang/rust/distinfo	Sun Apr 27 07:44:22 2014	(r352401)
+++ head/lang/rust/distinfo	Sun Apr 27 08:02:10 2014	(r352402)
@@ -1,4 +1,4 @@
-SHA256 (rust-0.9.tar.gz) = c0911c3545b797a1ca16f3d76bf5ed234754b828efd1e22c182c7300ac7dd5d1
-SIZE (rust-0.9.tar.gz) = 17152912
-SHA256 (rust-stage0-2014-01-05-a6d3e57-freebsd-x86_64-ac21ea9537da2aaee35b7f3d2698b651dc3e8bd9.tar.bz2) = 1caf47fddfef62d97d6d31970a4193d60ef24cc0e5b9f23067970a6b18eb79de
-SIZE (rust-stage0-2014-01-05-a6d3e57-freebsd-x86_64-ac21ea9537da2aaee35b7f3d2698b651dc3e8bd9.tar.bz2) = 12048052
+SHA256 (rust-0.10.tar.gz) = c72cfbbf03016804a81d7b68e8258ffaf018f8f5a25550ad64571ce6c2642cf9
+SIZE (rust-0.10.tar.gz) = 19538709
+SHA256 (rust-stage0-2014-03-28-b8601a3-freebsd-x86_64-c6b0651b2a90697754920ad381c13f9b7942ab47.tar.bz2) = ed4214b795e6de322b7aea23e2d97b2399893931218f7c07453ddabcf21a5add
+SIZE (rust-stage0-2014-03-28-b8601a3-freebsd-x86_64-c6b0651b2a90697754920ad381c13f9b7942ab47.tar.bz2) = 11942997

Modified: head/lang/rust/pkg-plist
==============================================================================
--- head/lang/rust/pkg-plist	Sun Apr 27 07:44:22 2014	(r352401)
+++ head/lang/rust/pkg-plist	Sun Apr 27 08:02:10 2014	(r352402)
@@ -1,29 +1,72 @@
 bin/rustc
 bin/rustdoc
-%%RUSTPKG%%bin/rustpkg
-lib/libextra-fd30a1b1-0.9.so
-lib/libgreen-83b1c0e5-0.9.so
-lib/librustc-8b28e8d8-0.9.so
-lib/librustdoc-f0f95988-0.9.so
-lib/librustpkg-7b329bae-0.9.so
-lib/librustuv-2ba3695a-0.9.so
-lib/libstd-3e5aeb83-0.9.so
-lib/libsyntax-9be99726-0.9.so
-lib/rustlib/x86_64-unknown-freebsd/lib/libextra-fd30a1b1-0.9.rlib
-lib/rustlib/x86_64-unknown-freebsd/lib/libextra-fd30a1b1-0.9.so
-lib/rustlib/x86_64-unknown-freebsd/lib/libgreen-83b1c0e5-0.9.rlib
-lib/rustlib/x86_64-unknown-freebsd/lib/libgreen-83b1c0e5-0.9.so
+lib/libtest-aca9f118-0.10.so
+lib/libtime-58f63fc6-0.10.so
+lib/libsync-12723c47-0.10.so
+lib/librustc-068bdd27-0.10.so
+lib/libflate-6e405485-0.10.so
+lib/libcollections-d806bd21-0.10.so
+lib/librustdoc-652a145d-0.10.so
+lib/rustlib/x86_64-unknown-freebsd/lib/libuuid-e10dc465-0.10.so
+lib/rustlib/x86_64-unknown-freebsd/lib/libserialize-3ec61d8e-0.10.rlib
+lib/rustlib/x86_64-unknown-freebsd/lib/libarena-862d25bd-0.10.rlib
+lib/rustlib/x86_64-unknown-freebsd/lib/libtest-aca9f118-0.10.so
+lib/rustlib/x86_64-unknown-freebsd/lib/libfourcc-bdd8db56-0.10.so
+lib/rustlib/x86_64-unknown-freebsd/lib/librand-15245696-0.10.rlib
+lib/rustlib/x86_64-unknown-freebsd/lib/libtime-58f63fc6-0.10.so
+lib/rustlib/x86_64-unknown-freebsd/lib/libsync-12723c47-0.10.so
+lib/rustlib/x86_64-unknown-freebsd/lib/libnative-72349f30-0.10.rlib
+lib/rustlib/x86_64-unknown-freebsd/lib/librustc-068bdd27-0.10.so
+lib/rustlib/x86_64-unknown-freebsd/lib/libtest-aca9f118-0.10.rlib
+lib/rustlib/x86_64-unknown-freebsd/lib/libflate-6e405485-0.10.so
+lib/rustlib/x86_64-unknown-freebsd/lib/libnum-85d3e2cc-0.10.rlib
 lib/rustlib/x86_64-unknown-freebsd/lib/libmorestack.a
-lib/rustlib/x86_64-unknown-freebsd/lib/libnative-cf55a53a-0.9.rlib
-lib/rustlib/x86_64-unknown-freebsd/lib/libnative-cf55a53a-0.9.so
-lib/rustlib/x86_64-unknown-freebsd/lib/librustc-8b28e8d8-0.9.so
-lib/rustlib/x86_64-unknown-freebsd/lib/librustdoc-f0f95988-0.9.so
-lib/rustlib/x86_64-unknown-freebsd/lib/librustpkg-7b329bae-0.9.so
-lib/rustlib/x86_64-unknown-freebsd/lib/librustuv-2ba3695a-0.9.rlib
-lib/rustlib/x86_64-unknown-freebsd/lib/librustuv-2ba3695a-0.9.so
-lib/rustlib/x86_64-unknown-freebsd/lib/libstd-3e5aeb83-0.9.rlib
-lib/rustlib/x86_64-unknown-freebsd/lib/libstd-3e5aeb83-0.9.so
-lib/rustlib/x86_64-unknown-freebsd/lib/libsyntax-9be99726-0.9.so
+lib/rustlib/x86_64-unknown-freebsd/lib/libcollections-d806bd21-0.10.so
+lib/rustlib/x86_64-unknown-freebsd/lib/librustdoc-652a145d-0.10.so
+lib/rustlib/x86_64-unknown-freebsd/lib/liburl-20851330-0.10.so
+lib/rustlib/x86_64-unknown-freebsd/lib/librustuv-59da37cb-0.10.so
+lib/rustlib/x86_64-unknown-freebsd/lib/libtime-58f63fc6-0.10.rlib
+lib/rustlib/x86_64-unknown-freebsd/lib/libsemver-91d9a1a0-0.10.so
+lib/rustlib/x86_64-unknown-freebsd/lib/librand-15245696-0.10.so
+lib/rustlib/x86_64-unknown-freebsd/lib/libcollections-d806bd21-0.10.rlib
+lib/rustlib/x86_64-unknown-freebsd/lib/libgetopts-a730521c-0.10.so
+lib/rustlib/x86_64-unknown-freebsd/lib/libserialize-3ec61d8e-0.10.so
+lib/rustlib/x86_64-unknown-freebsd/lib/libgreen-ff6cea05-0.10.rlib
+lib/rustlib/x86_64-unknown-freebsd/lib/libworkcache-ba12ef35-0.10.so
+lib/rustlib/x86_64-unknown-freebsd/lib/libuuid-e10dc465-0.10.rlib
+lib/rustlib/x86_64-unknown-freebsd/lib/liblog-11894fa1-0.10.rlib
+lib/rustlib/x86_64-unknown-freebsd/lib/libflate-6e405485-0.10.rlib
+lib/rustlib/x86_64-unknown-freebsd/lib/libglob-e345fe87-0.10.rlib
+lib/rustlib/x86_64-unknown-freebsd/lib/libsync-12723c47-0.10.rlib
+lib/rustlib/x86_64-unknown-freebsd/lib/libstd-8b97b62e-0.10.so
+lib/rustlib/x86_64-unknown-freebsd/lib/libcompiler-rt.a
+lib/rustlib/x86_64-unknown-freebsd/lib/libterm-016974a5-0.10.so
+lib/rustlib/x86_64-unknown-freebsd/lib/liblog-11894fa1-0.10.so
+lib/rustlib/x86_64-unknown-freebsd/lib/libgetopts-a730521c-0.10.rlib
+lib/rustlib/x86_64-unknown-freebsd/lib/libgreen-ff6cea05-0.10.so
+lib/rustlib/x86_64-unknown-freebsd/lib/libworkcache-ba12ef35-0.10.rlib
+lib/rustlib/x86_64-unknown-freebsd/lib/libstd-8b97b62e-0.10.rlib
+lib/rustlib/x86_64-unknown-freebsd/lib/liburl-20851330-0.10.rlib
+lib/rustlib/x86_64-unknown-freebsd/lib/libhexfloat-ef02b0da-0.10.so
+lib/rustlib/x86_64-unknown-freebsd/lib/libsemver-91d9a1a0-0.10.rlib
+lib/rustlib/x86_64-unknown-freebsd/lib/libnative-72349f30-0.10.so
+lib/rustlib/x86_64-unknown-freebsd/lib/librustuv-59da37cb-0.10.rlib
+lib/rustlib/x86_64-unknown-freebsd/lib/libglob-e345fe87-0.10.so
+lib/rustlib/x86_64-unknown-freebsd/lib/libterm-016974a5-0.10.rlib
+lib/rustlib/x86_64-unknown-freebsd/lib/libarena-862d25bd-0.10.so
+lib/rustlib/x86_64-unknown-freebsd/lib/libnum-85d3e2cc-0.10.so
+lib/rustlib/x86_64-unknown-freebsd/lib/libsyntax-8ef99071-0.10.so
+lib/librand-15245696-0.10.so
+lib/libgetopts-a730521c-0.10.so
+lib/libserialize-3ec61d8e-0.10.so
+lib/libstd-8b97b62e-0.10.so
+lib/libterm-016974a5-0.10.so
+lib/liblog-11894fa1-0.10.so
+lib/libnative-72349f30-0.10.so
+lib/libarena-862d25bd-0.10.so
+lib/libsyntax-8ef99071-0.10.so
+man/man1/rustdoc.1.gz
+man/man1/rustc.1.gz
 @dirrm lib/rustlib/x86_64-unknown-freebsd/lib
 @dirrm lib/rustlib/x86_64-unknown-freebsd
 @dirrm lib/rustlib
_______________________________________________
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 6 Steve Wills freebsd_committer freebsd_triage 2014-04-27 09:02:19 UTC
State Changed
From-To: feedback->closed

Committed. Thanks!