Commit Graph

279 Commits

Author SHA1 Message Date
Doug Goldstein
6ae148d342 cargo.bbclass: update debug message
Hopefully this makes a bit more clear when you see this outputted.
2015-11-16 15:34:44 -06:00
Doug Goldstein
ff13d3319d Merge pull request #2 from starlab-io/fix_sstate_cargo
Updates to rust build recipes
2015-11-16 11:31:26 -06:00
Derek Straka
a018f9586b Add no PIE to rust-llvm 2015-11-15 07:44:29 -06:00
Derek Straka
3406a2920c Update PR number and pack sstate correctly 2015-11-15 07:44:03 -06:00
Doug Goldstein
559214fceb Merge pull request #1 from starlab-io/update-cargo-native
Use the pre-packaged version of cargo for the native packager.

While this is not how we really want to do things, this does let us move forward for right now.
2015-11-13 08:42:02 -06:00
Derek Straka
8702fd31f7 Use the pre-packaged version of cargo for the native packager 2015-11-12 17:40:14 -06:00
Doug Goldstein
1280c29fa7 Merge branch 'security-flags' into fido 2015-11-10 07:48:04 -06:00
Doug Goldstein
6a75a08ef4 Provide distro config include for security flags
When someone is using a distro that's using security flags we need to
provide overrides to disable PIE.

Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
2015-11-09 12:11:24 -06:00
Doug Goldstein
2f703c9f1f fix LICENSE_PATH location
The path in LICENSE_PATH was not the correct path to where the licenses
are located in this repo.

Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
2015-11-06 10:19:07 -06:00
Doug Goldstein
25b4255204 remove conf/licenses.conf
Per conversation in #rust with kergoth this file is causing a backtrace
in bitbake because its overriding the meta/conf/licenses.conf file. The
behavior that's expected out of this isn't valid with newer Yocto
releases so its possible this is for an older version.

Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
2015-11-06 10:18:56 -06:00
Cody P Schafer
6b5f48afff rust: fix rpaths in -cross so we use the right libtinfo 2015-10-06 11:16:51 -04:00
Cody P Schafer
1ea67929f0 rust: do_compile: fix logic for use of downloaded snapshot 2015-10-06 10:34:49 -04:00
Cody P Schafer
de532d33e1 rust: add missing comma in sed processing of cfg/X.mk file 2015-10-06 10:34:21 -04:00
Cody P Schafer
3bb1662b22 cargo: correct exported env var so we use our libgit2 2015-09-23 13:52:00 -04:00
Cody P Schafer
d8c94be67f deps/libgit2: add/prep for new version but do not enable it
To enable we need to update cargo.
2015-09-23 13:51:02 -04:00
Cody P Schafer
e06125f009 rust: update to 1.3.0 2015-09-17 16:23:49 -04:00
Cody P Schafer
7c74a89a97 rust.inc: remove fixme regarding -runtime and commented hack for cross providing native 2015-08-26 16:13:02 -04:00
Cody P Schafer
410971cc31 rust.inc: remove unused var and now not-so-useful comments 2015-08-26 16:12:13 -04:00
Cody P Schafer
aeae4e452c rust: remove USE_LOCAL_RUST in favor of PACKAGECONFIG 2015-08-26 16:10:55 -04:00
Cody P Schafer
a626e68cee rust-1.2.0: fix llvm link issue cause "multiple crates" error
Fixes #6 (until something else comes along and adds another '-L')

At the same time remove the no longer needed patch to tweak llvm
version checking, we disable those checks in configure now.
2015-08-26 12:17:28 -04:00
Cody P Schafer
6750c4fcdd rust: disable llvm-version-check, we use the submodule llvm so it had better work 2015-08-26 11:26:17 -04:00
Steven Walter
811aafe962 rust-llvm.inc: fix configure flags to match was rust uses
This fixes the assertion failure and allows 1.2.0 to successfully build
2015-08-26 10:57:16 -04:00
Cody P Schafer
0adfd73a7f BROKEN: update to rust-1.2.0
This currently doesn't work due to some LLVM related failures I haven't
had the time to figure out.
2015-08-26 10:57:16 -04:00
Cody Schafer
14f297867a readme: we've got a -runtime package with rustlib. 2015-07-30 23:15:02 -04:00
Cody Schafer
f690ae0f7e Merge pull request #11 from srwalter/add-crates
Add recipes for various rust libraries
2015-07-27 01:09:57 -04:00
Tyler Hall
d679297552 Add getopts crate 2015-07-23 08:48:05 -04:00
Tyler Hall
7b2e008f89 Add regex crate 2015-07-23 08:48:05 -04:00
Tyler Hall
e3d9812ca4 Add aho-corasick crate 2015-07-23 08:48:05 -04:00
Tyler Hall
fb840fda14 Add memchr crate 2015-07-23 08:48:05 -04:00
Tyler Hall
c890efd958 Add log crate 2015-07-23 08:48:05 -04:00
Tyler Hall
69aaffe503 Add time crate 2015-07-23 08:48:05 -04:00
Tyler Hall
f0326a8f55 Add dbus crate 2015-07-23 08:48:05 -04:00
Tyler Hall
572af7b451 Add libudev crates 2015-07-23 08:48:05 -04:00
Tyler Hall
05b8923770 Add liblibc crate 2015-07-23 08:48:05 -04:00
Cody Schafer
da03c2e3f3 Merge pull request #10 from srwalter/rustlib
Add rustlib.bb and rust-bin.bbclass
2015-07-22 17:40:08 -04:00
Tyler Hall
8c83519133 rust-bin/rustlib: install with executable permission
Necessary for binaries and required to appease OE's automatic library
RDEPENDS.
2015-07-17 12:52:36 -04:00
Tyler Hall
06f6aeaa79 rust-bin: set soname of shared objects
Poky will fail to automatically create RDEPENDS on shared objects
lacking a SONAME in the ELF.
2015-07-17 12:52:36 -04:00
Tyler Hall
837000f68a rust-bin: common code for building libs
Libraries that overlap with the standard library must have explicit
extern declarations. Without something like pkg-config where the
libraries can publish this info, it's easiest to just hard-code the list
of troublesome libraries.
2015-07-17 12:52:36 -04:00
Tyler Hall
8a6f084c66 rust-bin: prefer-dynamic
We control static/dynamic by only making one or the other available.
Apparently the default of prefer static causes duplicate symbols for the
standard library.
2015-07-17 12:52:36 -04:00
Tyler Hall
a91af9bbae Add rust-bin class
This provides more defaults that aren't required for compiling with
rustc, but standardize the output for inclusion in a distro.

Things like
- Where to install libraries
- Stripping rustc note sections
- Optimization by default
2015-07-17 12:52:36 -04:00
Tyler Hall
709957b3b6 Add rustlib for publishing rust runtime 2015-07-17 12:52:36 -04:00
Cody Schafer
629aebb1c3 Merge pull request #9 from srwalter/disable-symbol-hashing
Disable symbol hashing
2015-07-17 12:12:18 -04:00
Cody P Schafer
736935d3f3 rust: correct rust-llvm deps 2015-07-15 15:49:03 -04:00
Steven Walter
29b5f6eadd rust: remove crate hash & metadata from symbol hashing
Rust's symbol hashes break sstate, because a subsequent build of the same
input hash may generate different symbol hashes.  This means that
packages that previously built against the "same" (from bitbake's
perspective) rustc would no longer run, and bitbake would not know to
rebuild them because the input hash is the same.  This is because the
crate metadata contains some data that differs from build-to-build.

This problem actually extends beyond the compiler to any arbitrary
crate, for the same reason.  If a crate in the middle of the dependency
chain had to be rebuilt, bitbake wouldn't realized that all its
dependencies have to be relink, and the dependent packages would fail
due to missing symbols.

Fortunately, bitbake's input hash makes this mechanism largely
unnecessary; any change to rust's source or configuration will cause
rustc and all dependencies to rebuild.  Therefore, it's safe to remove
crate metadata from the hashing.
2015-07-08 10:55:33 -04:00
Cody P Schafer
de5b9d0cea rust-llvm: adjust to use BBCLASSEXTEND and the generic DEPENDS for some chance of class-target working 2015-07-07 17:13:52 -04:00
Steven Walter
3a57f02b1d rust: fix text relocations on i386
This patch is already applied upstream, so back-port it to 1.1.0.  These
relocations show up as a QA warning from bitbake
2015-07-07 15:02:06 -04:00
Cody P Schafer
25e2eaddc9 readme update: rust is no longer breaking cargo every other release, and we've completed some of the TODO items 2015-07-06 15:03:49 -04:00
Cody P Schafer
20a9c701f1 rust-llvm: avoid stripping symbols 2015-07-02 15:54:28 -04:00
Steven Walter
0df9a7b124 Merge 2af0e67983 into 6e9bc43cb8 2015-07-01 15:08:43 +00:00
Steven Walter
2af0e67983 rust.inc: use separately-built LLVM
This makes builds more efficient, in that we only have to rebuild llvm when llvm changes,
rather than every time rustc changes
2015-07-01 11:07:08 -04:00