Date: Tue, 22 May 2012 16:57:40 +0800 (CST) From: Jyun-Yan You <jyyou@cs.nctu.edu.tw> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/168223: [MAINTAINER] lang/rust: download stage0 snapshot at fetch time Message-ID: <201205220857.q4M8verg074823@csduty.cs.nctu.edu.tw> Resent-Message-ID: <201205220900.q4M90A5V009864@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 168223 >Category: ports >Synopsis: [MAINTAINER] lang/rust: download stage0 snapshot at fetch time >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Tue May 22 09:00:08 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Jyun-Yan You >Release: FreeBSD 8.2-RELEASE-p3 amd64 >Organization: >Environment: System: FreeBSD csduty.cs.nctu.edu.tw 8.2-RELEASE-p3 FreeBSD 8.2-RELEASE-p3 #0: Tue Sep 27 18:45:57 UTC 2011 >Description: This patch fixes the problem that it attempts to fetch file during building. It adds snapshot to distfiles and removes code for downloading. Generated with FreeBSD Port Tools 0.99 >How-To-Repeat: >Fix: --- rust-0.2.patch begins here --- diff -ruN --exclude=CVS /usr/ports/lang/rust/Makefile /amd/gcs/98/9855518/src/ports/lang/rust/Makefile --- /usr/ports/lang/rust/Makefile 2012-04-08 00:22:23.000000000 +0800 +++ /amd/gcs/98/9855518/src/ports/lang/rust/Makefile 2012-05-22 16:10:31.481823000 +0800 @@ -8,13 +8,22 @@ PORTNAME= rust PORTVERSION= 0.2 CATEGORIES= lang -MASTER_SITES= http://dl.rust-lang.org/dist/ +MASTER_SITES= http://dl.rust-lang.org/dist/:src \ + http://dl.rust-lang.org/stage0-snapshots/:boot +DISTFILES= ${RUST_SOURCE}:src \ + ${RUST_BOOT}:boot +EXTRACT_ONLY= ${RUST_SOURCE} MAINTAINER= jyyou@cs.nctu.edu.tw COMMENT= A language with a focus on memory safety and concurrency OPTIONS= CARGO "Build with package manager" on +RUST_SOURCE= ${DISTNAME}${EXTRACT_SUFX} +RUST_BOOT= rust-stage0-${RUST_BOOT_SIG}.tar.bz2 +RUST_BOOT_SIG= 2012-03-27-eec6383-freebsd-x86_64-595f06a3c7a073917fa3274d2aafa6328c50754b +RUST_TARGET= x86_64-unknown-freebsd + ONLY_FOR_ARCHS= amd64 HAS_CONFIGURE= yes USE_LDCONFIG= yes @@ -49,6 +58,12 @@ MAKE_ARGS+= CC=${CC} CXX=${CXX} ARCH=x86_64 CONFIGURE_ARGS+= --disable-valgrind --disable-docs +post-extract: + ${MKDIR} ${WRKSRC}/${RUST_TARGET} && \ + cd ${WRKSRC}/${RUST_TARGET} && \ + ${TAR} -xf ${DISTDIR}/${RUST_BOOT} && \ + ${MV} rust-stage0 stage0 + post-patch: ${REINPLACE_CMD} \ -e '/probe_need CFG_CURL/d' \ @@ -59,6 +74,9 @@ ${REINPLACE_CMD} \ -e 's|$$(PREFIX_ROOT)/share/man|${MANPREFIX}/man|' \ ${WRKSRC}/mk/install.mk + ${REINPLACE_CMD} \ + -e '/get-snapshot.py $$(CFG_HOST_TRIPLE)/d' \ + ${WRKSRC}/mk/stage0.mk .if defined(WITHOUT_CARGO) ${REINPLACE_CMD} \ -e '/$$(Q)$$(call INSTALL,$$(HB3),$$(PHB),cargo$$(X))/d' \ diff -ruN --exclude=CVS /usr/ports/lang/rust/distinfo /amd/gcs/98/9855518/src/ports/lang/rust/distinfo --- /usr/ports/lang/rust/distinfo 2012-04-08 00:22:23.000000000 +0800 +++ /amd/gcs/98/9855518/src/ports/lang/rust/distinfo 2012-05-22 16:10:31.478823000 +0800 @@ -1,2 +1,4 @@ SHA256 (rust-0.2.tar.gz) = cedf679fd6bf46b63b9d754496920cbaa8c9ba4187d40f5f78fc28e775820f0d SIZE (rust-0.2.tar.gz) = 11349998 +SHA256 (rust-stage0-2012-03-27-eec6383-freebsd-x86_64-595f06a3c7a073917fa3274d2aafa6328c50754b.tar.bz2) = 13627f7eb203736b8aaacd82db92af77cac653c12025d793cc38a3c29aea4930 +SIZE (rust-stage0-2012-03-27-eec6383-freebsd-x86_64-595f06a3c7a073917fa3274d2aafa6328c50754b.tar.bz2) = 8917839 --- rust-0.2.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205220857.q4M8verg074823>