Commit graph

80 commits

Author SHA1 Message Date
Thomas Zander
cdde29f0d0 Fix build on pre-ino64 / on i386
Submitted by:	kib
Differential Revision:	https://reviews.freebsd.org/D10973
2017-05-29 05:00:54 +00:00
Konstantin Belousov
421e541db5 Fix lang/rust after ino64 src commit.
Approved by:  bapt, dumbbell
Sponsored by:	The FreeBSD Foundation
Differential revision:	https://reviews.freebsd.org/D10799
2017-05-27 12:06:40 +00:00
Thomas Zander
49c06d8d47 Update to upstream version 1.17.0
Submitted by:	dumbbell (see phabric URL)
Reviewed by:	riggs
Differential Revision:	https://reviews.freebsd.org/D10691
2017-05-14 15:26:44 +00:00
Alex Kozlov
f37a53c2ba - Remove checks for .PARSEDIR and vestiges of pmake support
PR:	218832
Approved by:	portmgr (antoine)
2017-04-26 19:04:30 +00:00
Thomas Zander
57bec1dacb Update to upstream version 1.16.0 2017-03-19 12:08:08 +00:00
Jean-Sébastien Pédron
cc125b3b4b lang/rust, lang/rust-nightly: Generate PLIST in post-install
Several libraries have their filename computed and based on the absolute
path to source files. Therefore, we need to generate the PLIST. Rust
installer already produces manifests listing files it installs. The port
now uses those files to complete `${TMPPLIST}`.

While the port built fine in Poudriere, it failed when built directly on
the host (regular make or with portmaster(1)) or using a different tool
such as Synth. This commit fixes the build for those methods.

Handling of DOCS-specific files is also unified with normal files. This
gets rid of code duplication.

How to do reproducible builds will be studied later.

PR:		217309
Reported by:	Several people on freebsd-ports@ or Bugzilla
Tested by:	Almost everyone who reported the issue
Approved by:	antoine (mentor), riggs (maintainer of lang/rust)
Differential Revision:	https://reviews.freebsd.org/D9816
2017-03-06 13:27:57 +00:00
Alan Somers
fc869c8727 lang/rust*: Advise users to mount procfs
Add a pkg-message to these ports advising users to mount procfs to see
backtraces.

Reviewed by:	dumbbell, riggs
Approved by:	dumbbell (ports)
Sponsored by:	Spectra Logic Corp
Differential Revision:	https://reviews.freebsd.org/D9838
2017-03-01 23:35:05 +00:00
Jean-Sébastien Pédron
8b84c255e7 lang/rust, lang/rust-nightly: Update to 1.15.1 and 1.17.0 respectively
Both versions of Rust seen changes to their build system. Now they
require a bootstrap of Cargo and thus, a snapshot of Cargo's registry.

Each library has its own suffix instead of a common suffix for a given
version of Rust. Thus all future updates of the ports will include
changes to their plist.

$DISTFILES are now all under the `rust` directory in `$DISTDIR`. A
similar change will be committed to devel/cargo later.

lang/rust-nightly is enabled on i386 (bugzilla 216143). The source
snapshot also contains everything to build it on aarch64, but enabling
it will be committed later.

PR:		216143
Approved by:	riggs, bapt (mentor), antoine (mentor)
Differential Revision:	https://reviews.freebsd.org/D9286
2017-02-22 19:04:03 +00:00
Sunpoet Po-Chuan Hsieh
e0b379fa6f Remove BROKEN_FreeBSD_9
Approved by:	portmgr (blanket)
2017-01-01 03:45:12 +00:00
John Marino
ef119717db lang/rust: regenerate distinfo.x86_64 for DF rust 1.14
I'm not sure how this was misgenerated previously.  This matches the
version available via LOCAL/marino
2016-12-29 17:52:05 +00:00
John Marino
4d6c9db9f9 lang/rust: Update distinfo.x86_64 for DragonFly support for v1.14
Preapproved by:	riggs
2016-12-27 15:25:52 +00:00
Thomas Zander
ab4c6046eb Update to upstream version 1.14.0 2016-12-24 19:40:55 +00:00
John Marino
106c638a6e lang/rust: Update distinfo.x86_64 for DragonFly support for v1.13
Preapproved by:	riggs
2016-11-15 23:47:08 +00:00
Thomas Zander
9439a669a2 Update to upstream version 1.13.0 2016-11-11 21:45:40 +00:00
Mathieu Arnold
d26ef18700 Cleanup no longer needed CHMOD usage after r424898.
PR:		213743
Submitted by:	mat
Exp-run by:	antoine
Sponsored by:	Absolight
2016-11-02 22:45:14 +00:00
Thomas Zander
aa005f6642 Update to upstream release 1.12.1
Release 1.12.1 is a maintenance release which fixes some
regressions in the 1.12.0 version, including memory corruption
under certain conditions. Details can be found in the release
announcement: https://blog.rust-lang.org/2016/10/20/Rust-1.12.1.html

MFH:		2016Q4
2016-10-22 12:37:02 +00:00
Dmitry Marakasov
ce67c40af2 - Unconditionally verbosify build as per PHB
Approved by:	portmgr blanket
2016-10-10 23:54:26 +00:00
John Marino
16c36744d1 lang/rust: Update distinfo.x86_64 for DragonFly support for v1.12
Preapproved by:	riggs
2016-10-02 01:07:32 +00:00
Thomas Zander
f5a0c66880 Update to upstream release 1.12.0 2016-10-01 14:28:38 +00:00
John Marino
7b72c46456 lang/rust: Update distinfo.x86_64 for DragonFly support for v1.11 2016-08-20 23:28:17 +00:00
Thomas Zander
43a31b7fc5 Update to upstream release 1.11.0 2016-08-20 05:57:34 +00:00
Thomas Zander
5e3a6e5de2 Fix build with non-standard PREFIX
PR:		211686
Submitted by:	mi
2016-08-09 21:41:25 +00:00
Jean-Sébastien Pédron
b3457490d0 lang/rust-nightly: Update to 1.12.0; snapshot from 2016-07-17
Reviewed by:	asomers, jbeich, riggs
Approved by:	jbeich, riggs
Differential Revision:	https://reviews.freebsd.org/D7275
2016-07-26 07:39:29 +00:00
John Marino
d4d58faea9 lang/rust: Update distinfo.x86_64 for DragonFly support
A custom bootstrap compiler package had to be created for DragonFly using
FreeBSD's as a model since upstream did not provide one for DF this time.

Approved by:	riggs (maintainer)
2016-07-12 11:49:49 +00:00
Thomas Zander
eb50a84b80 Fix build with PORT_LLVM OPTION; rust now requires LLVM 3.8
Reported by:	Kevin Oberman <rkoberman@gmail.com> via e-mail
2016-07-11 10:47:33 +00:00
Thomas Zander
6d498fee32 Update to upstream version 1.10.0 2016-07-10 04:20:09 +00:00
Thomas Zander
e889edec1b Add DOCS OPTION for html docs, bump PORTREVISION
PR:		210613
Reported by:	beyert@cs.ucr.edu
Reviewed by:	riggs, marino, jbeich
Differential Revision:	https://reviews.freebsd.org/D7050
2016-07-02 19:06:34 +00:00
Thomas Zander
35862d3bc3 Update to upstream release 1.9.0 2016-05-31 21:23:59 +00:00
Thomas Zander
1d29f2c4c1 Make recent stage0 snapshot known to build system on DragonFly
Language changes require very recent stage0 snapshots to build
rust 1.8.0. Upstream forgot to make these snapshots known to the
build system. While this was patched for FreeBSD in r413501, it
was missed for DragonFly. This changeset fixes this.
2016-04-17 10:33:47 +00:00
Thomas Zander
541aeef968 Update to upstream version 1.8.0
While on it:
- Incorporate patch by jbeich (D5897) to allow build with gcc

Differential Revision:	https://reviews.freebsd.org/D5897
2016-04-17 10:21:20 +00:00
Jan Beich
811236773d lang/rust: unbreak non-poudriere build after r412305
gmake[1]: Leaving directory '/wrkdirs/usr/ports/lang/rust/work/rustc-1.7.0'
sed: /wrkdirs/usr/ports/lang/rust/work/stage/usr/local/lib/rustlib/manifest-rust-std-x86_64-unknown-: No such file or directory
*** Error code 1

PR:		208527
Pointy hat:	jbeich
Tested by:	Marko Cupać <marko.cupac@mimar.rs>, pilot513@gmail.com
Approved by:	riggs (maintainer)
MFH:		2016Q2
2016-04-07 07:17:45 +00:00
Jan Beich
c5433c2e29 lang/rust: enslave lang/rust-nightly
* rust: drop no longer used RUST_SOURCE variable
* rust: apply rust-nightly FIXME comment about stage-qa (strip)
* rust-nightly: properly conflict for install with rust package
* rust-nightly: inherit |make test| support from r401025
* rust-nightly: as DOCSDIR is the same drop unnecessary DOCS option

Approved by:	riggs, dumbbell (maintainers)
Differential Revision:	https://reviews.freebsd.org/D5789
2016-04-02 14:49:00 +00:00
Mathieu Arnold
a9dcad2fff Remove ${PORTSDIR}/ from dependencies, categories h, i, j, k, and l.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:08:37 +00:00
Jan Beich
bd780e4f43 lang/rust: apply minor style
- Fix MIT view for LICENSES_ASK=1
- Convert BROKEN to new syntax
- Concatenate find(1) arguments and drop unnecessary `cd`
2016-04-01 01:16:08 +00:00
Jan Beich
0e6b1c7f1c lang/rust: unblock DragonFly build
=> rust-stage0-.tar.bz2 doesn't seem to exist in /portdistfiles/.
=> Attempting to fetch http://static.rust-lang.org/stage0-snapshots/rust-stage0-.tar.bz2
fetch: http://static.rust-lang.org/stage0-snapshots/rust-stage0-.tar.bz2: Not Found

Reported by:	muscles.dragonflybsd.org
Approved by:	portmgr "just fix it" blanket
2016-03-31 20:04:49 +00:00
Thomas Zander
aa3056e413 Fix staging error on systems where security/sudo is present
PR:		207930
Reported by:	pete@hayes.id.au, kib (via mail)
2016-03-27 17:10:15 +00:00
Thomas Zander
7af83eacba Re-enable build with ports LLVM by non-default OPTION
PR:		208250
Submitted by:	jbeich
2016-03-25 06:38:23 +00:00
Thomas Zander
3295b60571 Update to upstream version 1.7.0 2016-03-05 12:41:03 +00:00
Thomas Zander
c7dfd4a451 Update to upstream version 1.6.0 2016-01-22 06:13:25 +00:00
Thomas Zander
40e7ec9ec0 Update to upstream version 1.5.0; add OPTION to depend on gdb from ports 2015-12-13 14:21:05 +00:00
Thomas Zander
802d19424f - Take maintainership
- Provide target for 'make test': Use bundled rust regression test suite
- Use bundled LLVM for now: Built with it, rust passes more regression tests
- Bump PORTREVISION
2015-11-07 22:17:36 +00:00
Thomas Zander
fbf963a047 Update to upstream version 1.4.0 2015-10-30 11:39:31 +00:00
Thomas Zander
77c24edc61 Enable rust on i386 2015-09-19 18:22:06 +00:00
Thomas Zander
4e7dc1cf18 Update to upstream version 1.3.0 2015-09-19 12:18:12 +00:00
Jean-Sébastien Pédron
23df892f4d lang/rust and lang/rust-nightly: Build-conflict with themselves
A newer version of Rust fails to build if an older version is installed
because the build process picks libraries in %%LOCALBASE%%/lib before
those from the build directory.

In the pkg-plist of both ports, `x86_64-unknown-freebsd` is now a
variable automatically set in the Makefile. This avoids the need for a
separate port for DragonFlyBSD. [1]

Still in the pkg-plist, RUST_VSN_HASH is automatically computed in the
lang/rust's Makefile, like it was already done for lang/rust-nightly.

lang/rust-nightly USES libedit. patch-mk_main.mk was copied from
lang/rust so the correct library is picked (ie. the one from Ports, not
the one from the base). This was already fixed in lang/rust.

lang/rust includes bsd.port.options.mk and bsd.port.mk, instead of
bsd.port.pre.mk and bsd.port.post.mk. This was already fixed in
lang/rust-nightly.

Both ports are now closer to each other.

PR:		202869 [1]
Submitted by:	Michael Neumann <mneumann@ntecs.de> [1]
Reviewed by:	kwm
Approved by:	kwm
Differential Revision:	https://reviews.freebsd.org/D3234
2015-09-12 14:49:44 +00:00
Vanilla I. Shu
92219a48b9 1: Upgrade to 1.2.0.
2: add libedit to USES.
2015-09-03 15:22:07 +00:00
Thomas Zander
a93678e387 - Update to upstream release 1.1.0
- Fix bug 200449 in the process

PR:		201142, 200449
Submitted by:	andoriyu@gmail.com
2015-06-27 18:26:41 +00:00
Jean-Sébastien Pédron
c67d07b850 lang/rust: Use LLVM 3.6 from Ports instead of the bundled one
Dependencies are updated: Perl is not a dependency at all and Python is
a build dependency only.

Rust may fail to build if a previous version is already installed
because the bootstrapped rustc puts "-L/usr/local/lib" at the beginning
of the linker flags. Therefore, mark rust as a CONFLICTS_BUILD with
itself.

Fix the build as a normal user by setting permissions on all directories
to 0755 [1].

Be closer to the standalone installer's file hierarchy by installing
files such as "components", "manifest-rustc" and "uninstall.sh".

Add "files/patch-src_librustc__back_target_freebsd__base.rs"
to remove "-L/usr/local/lib", "-L/usr/local/lib/gcc46" and
"-L/usr/local/lib/gcc44" from the builtin linker flags.

Differential Revision:	https://reviews.freebsd.org/D2466
Submitted by:	Chris Hutchinson [1]
Reviewed by:	jonathan, kwm
Approved by:	jonathan
2015-06-24 17:09:27 +00:00
Thomas Zander
809287503d - Update to first stable upstream release 1.0.0
- Reflect stable release in pkg-descr
- Pet portlint

PR:		200284
Submitted by:	maciej@pasternacki.net
Reviewed by:	riggs
2015-05-18 22:32:17 +00:00
John Marino
69b8346356 lang/rust: Add special IGNORE for DragonFly
lang/rust-dragonfly is in dports and it is bleeding edge (updated every
couple of weeks)
2015-03-26 14:29:57 +00:00