Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 464900 Details for
Bug 609654
dev-lang/rust: Keyword request
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
new eclass used by the patched ebuilds
rust-toolchain.eclass (text/plain), 2.96 KB, created by
Marcus Comstedt
on 2017-02-23 13:49:32 UTC
(
hide
)
Description:
new eclass used by the patched ebuilds
Filename:
MIME Type:
Creator:
Marcus Comstedt
Created:
2017-02-23 13:49:32 UTC
Size:
2.96 KB
patch
obsolete
>case ${EAPI} in > 6) : ;; > *) die "EAPI=${EAPI:-0} is not supported" ;; >esac > >inherit multilib-build > >EXPORT_FUNCTIONS src_unpack > ># @FUNCTION: rust_abi ># @DESCRIPTION: ># Generates the Rust ABI name from a CHOST value >rust_abi() { > local CTARGET=${1:-${CHOST}} > case ${CTARGET%%*-} in > aarch64*) echo aarch64-unknown-linux-gnu;; > mips64*) echo mips64-unknown-linux-gnuabi64;; > powerpc64le*) echo powerpc64le-unknown-linux-gnu;; > powerpc64*) echo powerpc64-unknown-linux-gnu;; > x86_64*) echo x86_64-unknown-linux-gnu;; > armv[67]*) echo arm-unknown-linux-gnueabihf;; > arm*) echo arm-unknown-linux-gnueabi;; > i?86*) echo i686-unknown-linux-gnu;; > mipsel*) echo mipsel-unknown-linux-gnu;; > mips*) echo mips-unknown-linux-gnu;; > powerpc*) echo powerpc-unknown-linux-gnu;; > s390x*) echo s390x-unknown-linux-gnu;; > *) echo ${CTARGET};; > esac >} > ># @FUNCTION: rust_all_abis ># @DESCRIPTION: ># Generates a list of all the enabled Rust ABIs >rust_all_abis() { > if use multilib; then > local abi > local ALL_ABIS=() > for abi in $(multilib_get_enabled_abis); do > ALL_ABIS+=( $(rust_abi $(get_abi_CHOST ${abi})) ) > done > local abi_list > IFS=, eval 'abi_list=${ALL_ABIS[*]}' > echo ${abi_list} > else > rust_abi > fi >} > >rust_arch_uri() { > if [ -n "$3" ]; then > echo "$2-$1.tar.gz -> $3-$1.tar.gz" > else > echo "$2-$1.tar.gz" > fi >} > ># @FUNCTION: rust_all_arch_uris ># @DESCRIPTION: ># Generates the URIs to put in SRC_URI to help fetch dependencies. >rust_all_arch_uris() >{ > local uris="" > uris+="amd64? ( $(rust_arch_uri x86_64-unknown-linux-gnu "$@") ) " > uris+="arm? ( $(rust_arch_uri arm-unknown-linux-gnueabi "$@") > $(rust_arch_uri arm-unknown-linux-gnueabihf "$@") ) " > uris+="arm64? ( $(rust_arch_uri aarch64-unknown-linux-gnu "$@") ) " > uris+="mips? ( $(rust_arch_uri mips-unknown-linux-gnu "$@") > $(rust_arch_uri mipsel-unknown-linux-gnu "$@") > $(rust_arch_uri mips64-unknown-linux-gnuabi64 "$@") ) " > uris+="ppc? ( $(rust_arch_uri powerpc-unknown-linux-gnu "$@") ) " > uris+="ppc64? ( $(rust_arch_uri powerpc64-unknown-linux-gnu "$@") > $(rust_arch_uri powerpc64le-unknown-linux-gnu "$@") ) " > uris+="s390? ( $(rust_arch_uri s390x-unknown-linux-gnu "$@") ) " > uris+="x86? ( $(rust_arch_uri i686-unknown-linux-gnu "$@") ) " > echo "${uris}" >} > >rust_filter_abi_archives() >{ > local a > for a in ${A}; do > case $a in > *-$(rust_abi).tar.gz) echo ${a};; > *-unknown-linux-*) :;; > *) echo ${a};; > esac > done >} > ># @FUNCTION: rust-toolchain_src_unpack ># @DESCRIPTION: ># Removes binary archives with the wrong arch from A, then unpacks >rust-toolchain_src_unpack() { > A=$(rust_filter_abi_archives) > if [[ $(type -t cargo_src_unpack) == "function" ]] ; then > cargo_src_unpack > elif [[ -n ${A} ]] ; then > unpack ${A} > fi >}
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 Raw
Actions:
View
Attachments on
bug 609654
:
464894
|
464896
|
464898
|
464900
|
549192
|
549200
|
553524
|
553526
|
557036