Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 584004 Details for
Bug 684896
>=dev-lang/rust-1.34.0 : please add rust_target for thumbv7neon-unknown-linux-gnueabihf
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
split patch against the tree
rust-1.34.2.patch (text/plain), 5.36 KB, created by
tt_1
on 2019-07-22 11:47:12 UTC
(
hide
)
Description:
split patch against the tree
Filename:
MIME Type:
Creator:
tt_1
Created:
2019-07-22 11:47:12 UTC
Size:
5.36 KB
patch
obsolete
>From f257ddf8c783c75923756fbefb4568890c5e1db0 Mon Sep 17 00:00:00 2001 >From: stefson <herrtimson@yahoo.de> >Date: Thu, 6 Jun 2019 08:27:03 +0200 >Subject: [PATCH 1/4] dev-lang/rust: add thumbv7neon-unknown-linux-gnueabihf > target > >Signed-off-by: Steffen Kuhn <nielson2@yandex.com> >--- > dev-lang/rust/rust-1.34.2.ebuild | 17 ++++++++++++++++- > 1 file changed, 16 insertions(+), 1 deletion(-) > >diff --git a/dev-lang/rust/rust-1.34.2.ebuild b/dev-lang/rust/rust-1.34.2.ebuild >index 6a8ae98793bc..9353928f809f 100644 >--- a/dev-lang/rust/rust-1.34.2.ebuild >+++ b/dev-lang/rust/rust-1.34.2.ebuild >@@ -36,7 +36,7 @@ LLVM_TARGET_USEDEPS=${ALL_LLVM_TARGETS[@]/%/?} > > LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA" > >-IUSE="clippy cpu_flags_x86_sse2 debug doc libressl rls rustfmt system-llvm wasm ${ALL_LLVM_TARGETS[*]}" >+IUSE="clippy cpu_flags_x86_sse2 debug doc libressl rls rustfmt system-llvm thumbv7neon wasm ${ALL_LLVM_TARGETS[*]}" > > # Please keep the LLVM dependency block separate. Since LLVM is slotted, > # we need to *really* make sure we're not pulling one than more slot >@@ -140,6 +140,11 @@ src_configure() { > if use wasm; then > rust_targets="${rust_targets},\"wasm32-unknown-unknown\"" > fi >+ >+ if use thumbv7neon; then >+ rust_targets="${rust_targets},\"thumbv7neon-unknown-linux-gnueabihf\"" >+ fi >+ > rust_targets="${rust_targets#,}" > > local extended="true" tools="\"cargo\"," >@@ -221,6 +226,16 @@ src_configure() { > linker = "rust-lld" > EOF > fi >+ >+ if use thumbv7neon; then >+ cat <<- EOF >> "${S}"/config.toml >+ [target.thumbv7neon-unknown-linux-gnueabihf] >+ cc = "$(tc-getBUILD_CC)" >+ cxx = "$(tc-getBUILD_CXX)" >+ linker = "$(tc-getCC)" >+ ar = "$(tc-getAR)" >+ EOF >+ fi > } > > src_compile() { > >From e4996c0ec45417f7d15aa46ae356d7a2bc6046dd Mon Sep 17 00:00:00 2001 >From: stefson <herrtimson@yahoo.de> >Date: Thu, 6 Jun 2019 08:31:46 +0200 >Subject: [PATCH 2/4] profiles: mask thumbv7neon for all arches > >Signed-off-by: Steffen Kuhn <nielson2@yandex.com> >--- > profiles/arch/base/package.use.mask | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/profiles/arch/base/package.use.mask b/profiles/arch/base/package.use.mask >index 614b36ab7581..99a2307e816a 100644 >--- a/profiles/arch/base/package.use.mask >+++ b/profiles/arch/base/package.use.mask >@@ -1,6 +1,10 @@ > # Copyright 1999-2019 Gentoo Authors > # Distributed under the terms of the GNU General Public License v2 > >+# Steffen Kuhn <nielson2@yandex.com> (17 May 2019) >+# thumbv7neon can only be built for armv7 >+dev-lang/rust thumbv7neon >+ > # Denis Lisov <dennis.lissov@gmail.com> (09 May 2019) > # Overlay can only be built on amd64 and x86 > x11-apps/igt-gpu-tools overlay > >From 19340808ee9710e761b1cf4a1446527463ffa937 Mon Sep 17 00:00:00 2001 >From: stefson <herrtimson@yahoo.de> >Date: Thu, 6 Jun 2019 08:32:38 +0200 >Subject: [PATCH 3/4] profiles: unmask thumbv7neon for armv7 > >Closes: https://bugs.gentoo.org/684896 >Signed-off-by: Steffen Kuhn <nielson2@yandex.com> >--- > profiles/arch/arm/armv7a/use.mask | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/profiles/arch/arm/armv7a/use.mask b/profiles/arch/arm/armv7a/use.mask >index 943381017df6..420fe398d1f4 100644 >--- a/profiles/arch/arm/armv7a/use.mask >+++ b/profiles/arch/arm/armv7a/use.mask >@@ -1,4 +1,7 @@ > # Unmask armv7 specific USE flags >+ >+-thumbv7neon >+ > -neon > -armvfp > -armv5te > >From 664e74886320c06a6e3c6ad950eafcd052756c3d Mon Sep 17 00:00:00 2001 >From: stefson <herrtimson@yahoo.de> >Date: Thu, 6 Jun 2019 21:56:18 +0200 >Subject: [PATCH 4/4] dev-lang/rust: rename thumbv7neon useflag to neon, add > metadata entry Signed-off-by: Steffen Kuhn <nielson2@yandex.com> > >--- > dev-lang/rust/metadata.xml | 2 ++ > dev-lang/rust/rust-1.34.2.ebuild | 6 +++--- > 2 files changed, 5 insertions(+), 3 deletions(-) > >diff --git a/dev-lang/rust/metadata.xml b/dev-lang/rust/metadata.xml >index cd1133751de1..8e59c3f3964a 100644 >--- a/dev-lang/rust/metadata.xml >+++ b/dev-lang/rust/metadata.xml >@@ -8,6 +8,8 @@ > <use> > <flag name="cargo">Install cargo component</flag> > <flag name="clippy">Install clippy component</flag> >+ <flag name="neon">Build support for the thumbv7neon >+ target</flag> > <flag name="system-llvm">Use the system LLVM install</flag> > <flag name="rls">Install rls component</flag> > <flag name="rustfmt">Install rustfmt component</flag> >diff --git a/dev-lang/rust/rust-1.34.2.ebuild b/dev-lang/rust/rust-1.34.2.ebuild >index 9353928f809f..29287f3e5a9f 100644 >--- a/dev-lang/rust/rust-1.34.2.ebuild >+++ b/dev-lang/rust/rust-1.34.2.ebuild >@@ -36,7 +36,7 @@ LLVM_TARGET_USEDEPS=${ALL_LLVM_TARGETS[@]/%/?} > > LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA" > >-IUSE="clippy cpu_flags_x86_sse2 debug doc libressl rls rustfmt system-llvm thumbv7neon wasm ${ALL_LLVM_TARGETS[*]}" >+IUSE="clippy cpu_flags_x86_sse2 debug doc libressl rls rustfmt system-llvm neon wasm ${ALL_LLVM_TARGETS[*]}" > > # Please keep the LLVM dependency block separate. Since LLVM is slotted, > # we need to *really* make sure we're not pulling one than more slot >@@ -141,7 +141,7 @@ src_configure() { > rust_targets="${rust_targets},\"wasm32-unknown-unknown\"" > fi > >- if use thumbv7neon; then >+ if use neon; then > rust_targets="${rust_targets},\"thumbv7neon-unknown-linux-gnueabihf\"" > fi > >@@ -227,7 +227,7 @@ src_configure() { > EOF > fi > >- if use thumbv7neon; then >+ if use neon; then > cat <<- EOF >> "${S}"/config.toml > [target.thumbv7neon-unknown-linux-gnueabihf] > cc = "$(tc-getBUILD_CC)" >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 684896
:
584004
|
584830