You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
info "Configuring ${package_to_build}${version_to_build} with the following command:"
23
+
info "FC=\"${FC:-'gfortran'}\" CC=\"${CC:-'gcc'}\" CXX=\"${CXX:-'g++'}\"\"${download_path}/${package_source_directory}\"/configure --prefix=\"${install_path}\""
emergency "build_and_install.sh: gcc contrib/download_prerequisites does not use a known URL format"
70
+
fi
71
+
info "GCC contrib/download_prerequisites wget command is '${wget_command}'"
72
+
73
+
arg_string="${gcc_prereqs_fetch_args[@]:-}"
74
+
gcc_download_changed=7.0.0
75
+
if [[ "$(version "$version_to_build")"-gt"$(version "$gcc_download_changed")"||$version_to_build=="trunk"||$version_to_build=="$gcc_download_changed" ]];then
76
+
case"${gcc_prereqs_fetch}"in
77
+
"curl")
78
+
arg_string="${arg_string} -o "
79
+
;;
80
+
"wget")
81
+
debug "build_and_install.sh: using wget"
82
+
;;
83
+
*)
84
+
debug "build_and_install.sh: if problems occur, check whether the modification of download_prerequisites is compatible with the download method ${gcc_prereqs_fetch}"
85
+
;;
86
+
esac
87
+
if!type sha512sum &> /dev/null;then
88
+
info "build_and_install.sh: sha512sum unavailable. Turning off file integrity verification in GCC contrib/download_prerequisites."
89
+
sed -i''${backup_extension} s/"verify=1"/"verify=0"/ "${PWD}/contrib/download_prerequisites"
90
+
fi
91
+
fi
92
+
# Don't try to overwrite the unmodified download_prerequisites file if exists or if we don't have write permissions to it
93
+
if [[ -f"${PWD}/contrib/download_prerequisites"${backup_extension} ]];then
94
+
backup_extension=""
95
+
fi
96
+
info "Replacing GCC contrib/download_prerequisites wget with the following command:"
97
+
if [[ "$(uname)"=="Linux" ]];then
98
+
info "sed -i'${backup_extension}' s/\"${wget_command}\"/\"${gcc_prereqs_fetch}${arg_string}\"/ \"${PWD}/contrib/download_prerequisites\""
99
+
sed -i''${backup_extension} s/"${wget_command}"/"${gcc_prereqs_fetch}${arg_string}"/ "${PWD}/contrib/download_prerequisites"
100
+
else
101
+
# This works on OS X and other POSIX-compliant operating systems:
102
+
info "sed -i '${backup_extension}' s/\"${wget_command}\"/\"${gcc_prereqs_fetch}${arg_string}\"/ \"${PWD}/contrib/download_prerequisites\""
103
+
sed -i ''${backup_extension} s/"${wget_command}"/"${gcc_prereqs_fetch}${arg_string}"/ "${PWD}/contrib/download_prerequisites"
104
+
fi
105
+
106
+
fi# end if [[ ${already_modified_downloader:-} != "true" ]];
107
+
108
+
# Download GCC prerequisities
27
109
"${PWD}"/contrib/download_prerequisites
110
+
28
111
info "popd"
29
112
popd
30
113
info "Configuring gcc/g++/gfortran builds with the following command:"
@@ -38,21 +121,9 @@ build_and_install()
38
121
fi
39
122
info "Installing with the following command: ${SUDO:-} make install"
40
123
${SUDO:-} make install
41
-
else
42
-
info "Configuring ${package_to_build}${version_to_build} with the following command:"
43
-
info "FC=\"${FC:-'gfortran'}\" CC=\"${CC:-'gcc'}\" CXX=\"${CXX:-'g++'}\"\"${download_path}/${package_source_directory}\"/configure --prefix=\"${install_path}\""
0 commit comments