mirror of
https://gitlab.archlinux.org/archlinux/devtools.git
synced 2025-09-14 10:26:18 +02:00
Compare commits
2 Commits
mr-origin-
...
72b688f640
Author | SHA1 | Date | |
---|---|---|---|
![]() |
72b688f640 | ||
![]() |
753d2daf65 |
2
Makefile
2
Makefile
@@ -1,6 +1,6 @@
|
|||||||
SHELL=/bin/bash -o pipefail
|
SHELL=/bin/bash -o pipefail
|
||||||
|
|
||||||
V=1.4.0
|
V=1.3.2
|
||||||
BUILDTOOLVER ?= $(V)
|
BUILDTOOLVER ?= $(V)
|
||||||
|
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
|
@@ -1,6 +1,4 @@
|
|||||||
#!/hint/bash
|
#!/hint/bash
|
||||||
# shellcheck disable=2034
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# /etc/makepkg.conf.d/fortran.conf
|
# /etc/makepkg.conf.d/fortran.conf
|
||||||
#
|
#
|
||||||
@@ -11,12 +9,10 @@
|
|||||||
|
|
||||||
# Flags used for the Fortran compiler, similar in spirit to CFLAGS. Read
|
# Flags used for the Fortran compiler, similar in spirit to CFLAGS. Read
|
||||||
# linkman:gfortran[1] for more details on the available flags.
|
# linkman:gfortran[1] for more details on the available flags.
|
||||||
FFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt \
|
#FFLAGS="-O2 -pipe"
|
||||||
-Wp,-D_FORTIFY_SOURCE=3 -fstack-clash-protection -fcf-protection \
|
#FCFLAGS="$FFLAGS"
|
||||||
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"
|
|
||||||
FCFLAGS="$FFLAGS"
|
|
||||||
|
|
||||||
# Additional compiler flags appended to `FFLAGS` and `FCFLAGS` for use in debugging. Usually
|
# Additional compiler flags appended to `FFLAGS` and `FCFLAGS` for use in debugging. Usually
|
||||||
# this would include: ``-g''. Read linkman:gfortran[1] for more details on the wide
|
# this would include: ``-g''. Read linkman:gfortran[1] for more details on the wide
|
||||||
# variety of compiler flags available.
|
# variety of compiler flags available.
|
||||||
DEBUG_FFLAGS="-g"
|
#DEBUG_FFLAGS="-g"
|
||||||
|
@@ -94,19 +94,19 @@ pkgctl_license_check() {
|
|||||||
pushd "${path}" >/dev/null
|
pushd "${path}" >/dev/null
|
||||||
|
|
||||||
if [[ ! -f PKGBUILD ]]; then
|
if [[ ! -f PKGBUILD ]]; then
|
||||||
msg_error "${BOLD}${path}:${ALL_OFF} no PKGBUILD found"
|
msg_error "${BOLD}${pkgbase}:${ALL_OFF} no PKGBUILD found"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -f .SRCINFO ]]; then
|
# reset common PKGBUILD variables
|
||||||
msg_error "${BOLD}${path}:${ALL_OFF} no .SRCINFO found"
|
unset pkgbase
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! pkgbase=$(grep --max-count=1 --extended-regexp "pkgbase = (.+)" .SRCINFO | awk '{print $3}'); then
|
# shellcheck source=contrib/makepkg/PKGBUILD.proto
|
||||||
msg_error "${BOLD}${path}:${ALL_OFF} pkgbase not found in .SRCINFO"
|
if ! . ./PKGBUILD; then
|
||||||
|
msg_error "${BOLD}${pkgbase}:${ALL_OFF} failed to source PKGBUILD"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
pkgbase=${pkgbase:-$pkgname}
|
||||||
|
|
||||||
if [[ ! -e LICENSE ]]; then
|
if [[ ! -e LICENSE ]]; then
|
||||||
msg_error "${BOLD}${pkgbase}:${ALL_OFF} is missing the LICENSE file"
|
msg_error "${BOLD}${pkgbase}:${ALL_OFF} is missing the LICENSE file"
|
||||||
|
@@ -140,6 +140,32 @@ pkgctl_version_check() {
|
|||||||
pushd "${path}" >/dev/null
|
pushd "${path}" >/dev/null
|
||||||
|
|
||||||
if [[ ${output_format} == pretty ]]; then
|
if [[ ${output_format} == pretty ]]; then
|
||||||
|
# initialize the tmp file for status output
|
||||||
|
section_separator=''
|
||||||
|
printf "" > "${status_dir}/tmp"
|
||||||
|
|
||||||
|
# update the current list of failed packages
|
||||||
|
if (( ${#failure[@]} > 0 )); then
|
||||||
|
exit_code=${PKGCTL_VERSION_CHECK_EXIT_FAILURE}
|
||||||
|
printf "%sFailure%s\n" "${section_separator}${BOLD}${UNDERLINE}" "${ALL_OFF}" >> "${status_dir}/tmp" 2>&1
|
||||||
|
section_separator=$'\n'
|
||||||
|
for result in "${failure[@]}"; do
|
||||||
|
msg_error " ${result}" >> "${status_dir}/tmp" 2>&1
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
# update the current list of out-of-date packages
|
||||||
|
if (( ${#out_of_date[@]} > 0 )); then
|
||||||
|
exit_code=${PKGCTL_VERSION_CHECK_EXIT_OUT_OF_DATE}
|
||||||
|
printf "%sOut-of-date%s\n" "${section_separator}${BOLD}${UNDERLINE}" "${ALL_OFF}" >> "${status_dir}/tmp" 2>&1
|
||||||
|
section_separator=$'\n'
|
||||||
|
for result in "${out_of_date[@]}"; do
|
||||||
|
msg_warn " ${result}" >> "${status_dir}/tmp" 2>&1
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
printf "%s" "${section_separator}" >> "${status_dir}/tmp"
|
||||||
|
|
||||||
# update the current terminal spinner status
|
# update the current terminal spinner status
|
||||||
(( ++current_item ))
|
(( ++current_item ))
|
||||||
pkgctl_version_check_spinner \
|
pkgctl_version_check_spinner \
|
||||||
@@ -217,6 +243,9 @@ pkgctl_version_check() {
|
|||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# reset the section separator after loop
|
||||||
|
section_separator=''
|
||||||
|
|
||||||
if (( verbose )) && (( ${#up_to_date[@]} > 0 )); then
|
if (( verbose )) && (( ${#up_to_date[@]} > 0 )); then
|
||||||
printf "%sUp-to-date%s\n" "${section_separator}${BOLD}${UNDERLINE}" "${ALL_OFF}"
|
printf "%sUp-to-date%s\n" "${section_separator}${BOLD}${UNDERLINE}" "${ALL_OFF}"
|
||||||
section_separator=$'\n'
|
section_separator=$'\n'
|
||||||
@@ -408,7 +437,7 @@ pkgctl_version_check_spinner() {
|
|||||||
pkgctl_version_check_summary \
|
pkgctl_version_check_summary \
|
||||||
"${up_to_date_count}" \
|
"${up_to_date_count}" \
|
||||||
"${out_of_date_count}" \
|
"${out_of_date_count}" \
|
||||||
"${failure_count}" > "${tmp_file}"
|
"${failure_count}" >> "${tmp_file}"
|
||||||
|
|
||||||
# print the progress status
|
# print the progress status
|
||||||
printf "📡 Checking: %s/%s [%s] %%spinner%%" \
|
printf "📡 Checking: %s/%s [%s] %%spinner%%" \
|
||||||
|
Reference in New Issue
Block a user