Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 640740 Details for
Bug 724454
sys-devel/binutils-config feature request: disabling /usr/bin/ symlink provisioning
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
no_direct.sh
no_direct.sh (text/plain), 1.81 KB, created by
Kent Fredric (IRC: kent\n) (RETIRED)
on 2020-05-21 14:41:14 UTC
(
hide
)
Description:
no_direct.sh
Filename:
MIME Type:
Creator:
Kent Fredric (IRC: kent\n) (RETIRED)
Created:
2020-05-21 14:41:14 UTC
Size:
1.81 KB
patch
obsolete
>e_info() { > printf "\e[32m* %s\e[0m\n" "$@" >} >e_warn() { > printf "\e[33m* %s\e[0m\n" "$@" > >} >exit_err() { > printf "\e[31m* Error: %s\e[0m\n" "$@" > exit 1; >} >unlink_expected() { > local file="$1" > shift > local expected="$1" > shift > local actual > if [[ -h "${file}" ]]; then > actual="$(readlink "${file}")" > if [[ "${expected}" == "${actual}" ]]; then > e_warn "Unlinking ${file}" > unlink "${file}" || exit_err "Can't unlink ${file}" > else > exit_err "${file} has unexpected content: ${actual} ( expected: ${expected} )" > fi > elif [[ -e "${file}" ]]; then > exit_err "${file} is not a symlink" > else > e_info "${file} already removed" > fi >} >relink_expected() { > local file="$1" > shift > local expected="$1" > shift > local actual > if [[ ! -e "${file}" ]]; then > e_warn "Linking ${file} to ${expected}" > ln -s "${expected}" "${file}" > elif [[ ! -h "${file}" ]]; then > exit_err "${file} exists and is not a symlink" > else > actual="$(readlink "${file}")" > if [[ "${expected}" != "${actual}" ]]; then > exit_err "${file} exists and doesn't link to ${expected} (got: ${actual})" > else > e_info "${file} already linked" > fi > fi >} > >arch_prefix="x86_64-pc-linux-gnu" > >BINUTILS_TARGETS=( > addr2line > ar > as > c++filt > coffdump > dlltool > dllwrap > dwp > elfedit > gprof > ld > ld.bfd > ld.gold > nm > objcopy > objdump > ranlib > readelf > size > srcconv > strings > strip > sysdump > windmc > windres >) >GCC_TARGETS=( > c++ > cpp > g++ > gcc > gccgo > gcov > gfortran >) >if [[ "${RELINK:-0}" == "0" ]]; then > fixlink() { > unlink_expected "$@" > } >else > fixlink() { > relink_expected "$@" > } >fi > >for target in "${BINUTILS_TARGETS[@]}"; do > fixlink "/usr/bin/${target}" "${arch_prefix}-${target}" >done > >gcc_root="$(gcc-config -B)" > >fixlink "/usr/bin/cc" "${gcc_root}/gcc" >for target in "${GCC_TARGETS[@]}"; do > fixlink "/usr/bin/${target}" "${gcc_root}/${target}" >done >
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 724454
: 640740