mirror of
https://github.com/Gator96100/ProxSpace.git
synced 2025-08-14 02:27:03 -07:00
Updated msys2 to msys2-base-x86_64-20200903
This commit is contained in:
parent
5bc8dbdc75
commit
2307d54cb1
18501 changed files with 1684082 additions and 720361 deletions
45
msys2/usr/share/makepkg/lint_config/ext.sh
Normal file
45
msys2/usr/share/makepkg/lint_config/ext.sh
Normal file
|
@ -0,0 +1,45 @@
|
|||
#!/usr/bin/bash
|
||||
#
|
||||
# ext.sh - Check that source/package extensions have valid prefixes
|
||||
#
|
||||
# Copyright (c) 2019-2020 Pacman Development Team <pacman-dev@archlinux.org>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
[[ -n "$LIBMAKEPKG_LINT_CONFIG_EXT_SH" ]] && return
|
||||
LIBMAKEPKG_LINT_CONFIG_EXT_SH=1
|
||||
|
||||
LIBRARY=${LIBRARY:-'/usr/share/makepkg'}
|
||||
|
||||
source "$LIBRARY/util/message.sh"
|
||||
|
||||
lint_config_functions+=('lint_ext')
|
||||
|
||||
|
||||
lint_ext() {
|
||||
local i var val ret=0
|
||||
|
||||
for i in 'SRCEXT/.src.tar' 'PKGEXT/.pkg.tar'; do
|
||||
IFS='/' read -r var val < <(printf '%s\n' "$i")
|
||||
|
||||
if [[ ${!var} != ${val}* ]]; then
|
||||
error "$(gettext "%s does not contain a valid package suffix (needs '%s', got '%s')")" \
|
||||
"\$${var}" "${val}*" "${!var}"
|
||||
ret=1
|
||||
fi
|
||||
done
|
||||
|
||||
return $ret
|
||||
}
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# paths.sh - Check that pathname components do not contain odd characters
|
||||
#
|
||||
# Copyright (c) 2018 Pacman Development Team <pacman-dev@archlinux.org>
|
||||
# Copyright (c) 2018-2020 Pacman Development Team <pacman-dev@archlinux.org>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
|
37
msys2/usr/share/makepkg/lint_config/source_date_epoch.sh
Normal file
37
msys2/usr/share/makepkg/lint_config/source_date_epoch.sh
Normal file
|
@ -0,0 +1,37 @@
|
|||
#!/usr/bin/bash
|
||||
#
|
||||
# source_date_epoch.sh - Check that reproducible builds timestamp is valid
|
||||
#
|
||||
# Copyright (c) 2018-2020 Pacman Development Team <pacman-dev@archlinux.org>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
[[ -n $LIBMAKEPKG_LINT_CONFIG_SOURCE_DATE_EPOCH_SH ]] && return
|
||||
LIBMAKEPKG_LINT_CONFIG_SOURCE_DATE_EPOCH_SH=1
|
||||
|
||||
LIBRARY=${LIBRARY:-'/usr/share/makepkg'}
|
||||
|
||||
source "$LIBRARY/util/message.sh"
|
||||
|
||||
lint_config_functions+=('lint_source_date_epoch')
|
||||
|
||||
|
||||
lint_source_date_epoch() {
|
||||
if [[ $SOURCE_DATE_EPOCH = *[^[:digit:]]* ]]; then
|
||||
error "$(gettext "%s contains invalid characters: %s")" \
|
||||
"\$SOURCE_DATE_EPOCH" "${SOURCE_DATE_EPOCH//[[:digit:]]}"
|
||||
return 1
|
||||
fi
|
||||
}
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# variable.sh - Check that variables are or are not arrays as appropriate
|
||||
#
|
||||
# Copyright (c) 2018 Pacman Development Team <pacman-dev@archlinux.org>
|
||||
# Copyright (c) 2018-2020 Pacman Development Team <pacman-dev@archlinux.org>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
@ -32,10 +32,10 @@ lint_config_variables() {
|
|||
local array=(DLAGENTS VCSCLIENTS BUILDENV OPTIONS INTEGRITY_CHECK MAN_DIRS
|
||||
DOC_DIRS PURGE_TARGETS COMPRESSGZ COMPRESSBZ2 COMPRESSXZ
|
||||
COMPRESSLRZ COMPRESSLZO COMPRESSZ)
|
||||
local string=(CARCH CHOST CPPFLAGS CFLAGS CXXFLAGS LDFLAGS DEBUG_CFLAGS
|
||||
DEBUG_CXXFLAGS DISTCC_HOSTS BUILDDIR STRIP_BINARIES STRIP_SHARED
|
||||
STRIP_STATIC PKGDEST SRCDEST SRCPKGDEST LOGDEST PACKAGER GPGKEY
|
||||
PKGEXT SRCEXT)
|
||||
local string=(CARCH CHOST CPPFLAGS CFLAGS CXXFLAGS RUSTFLAGS LDFLAGS DEBUG_CFLAGS
|
||||
DEBUG_CXXFLAGS DEBUG_RUSTFLAGS DISTCC_HOSTS BUILDDIR STRIP_BINARIES
|
||||
STRIP_SHARED STRIP_STATIC PKGDEST SRCDEST SRCPKGDEST LOGDEST PACKAGER
|
||||
GPGKEY PKGEXT SRCEXT)
|
||||
|
||||
local i keys ret=0
|
||||
|
||||
|
@ -60,5 +60,11 @@ lint_config_variables() {
|
|||
fi
|
||||
done
|
||||
|
||||
# pacman should be able to extract an email address from PACKAGER for WKD key lookup
|
||||
local match='^([^<>]+ )?<[^<>]*>$'
|
||||
if ! [[ $PACKAGER == "Unknown Packager" || $PACKAGER =~ $match ]]; then
|
||||
warning "$(gettext "PACKAGER should have the format 'Example Name <email@address.invalid>'")"
|
||||
fi
|
||||
|
||||
return $ret
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue