Update to perl-5.39.5.
This commit is contained in:
parent
f96d02415d
commit
1f616954a5
4 changed files with 662 additions and 605 deletions
|
@ -11,6 +11,13 @@ UPSTREAM_SITE=$(tix-vars -d '' "$1" UPSTREAM_SITE)
|
||||||
VERSION=$(tix-vars -d '' "$1" VERSION)
|
VERSION=$(tix-vars -d '' "$1" VERSION)
|
||||||
VERSION_REGEX=$(tix-vars -d '' "$1" VERSION_REGEX)
|
VERSION_REGEX=$(tix-vars -d '' "$1" VERSION_REGEX)
|
||||||
|
|
||||||
|
# TODO: UPDATE_BLOCKED metadata.
|
||||||
|
if grep -Eiq 'VERSION=.*#.*blocked' "$1"; then
|
||||||
|
UPDATE_BLOCKED=true
|
||||||
|
else
|
||||||
|
UPDATE_BLOCKED=false
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -z "$UPSTREAM_ARCHIVE" ]; then exit; fi
|
if [ -z "$UPSTREAM_ARCHIVE" ]; then exit; fi
|
||||||
|
|
||||||
escape_regex() {
|
escape_regex() {
|
||||||
|
@ -66,10 +73,12 @@ NEW_VERSION="$(echo "$LATEST" | sed -E "s,$RELEASE_SEARCH_REGEX,\1,")"
|
||||||
if [ -t 1 ]; then
|
if [ -t 1 ]; then
|
||||||
RED='\033[91m'
|
RED='\033[91m'
|
||||||
GREEN='\033[92m'
|
GREEN='\033[92m'
|
||||||
|
YELLOW='\033[93m'
|
||||||
RESET='\033[m'
|
RESET='\033[m'
|
||||||
else
|
else
|
||||||
RED=''
|
RED=''
|
||||||
GREEN=''
|
GREEN=''
|
||||||
|
YELLOW=''
|
||||||
RESET=''
|
RESET=''
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -78,10 +87,12 @@ if [ -z "$NEW_VERSION" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
NEW_VERSION=$({ echo "$NEW_VERSION" && echo "$VERSION"; } | sort -Vu | tail -1)
|
||||||
|
|
||||||
NEW_UPSTREAM_SITE=$(instantiate "$1" "$NEW_VERSION" "UPSTREAM_SITE")
|
NEW_UPSTREAM_SITE=$(instantiate "$1" "$NEW_VERSION" "UPSTREAM_SITE")
|
||||||
NEW_UPSTREAM_ARCHIVE=$(instantiate "$1" "$NEW_VERSION" "UPSTREAM_ARCHIVE")
|
NEW_UPSTREAM_ARCHIVE=$(instantiate "$1" "$NEW_VERSION" "UPSTREAM_ARCHIVE")
|
||||||
|
|
||||||
if ! wget -q "$NEW_UPSTREAM_SITE/$NEW_UPSTREAM_ARCHIVE" -O /dev/null; then
|
if ! wget -q --spider "$NEW_UPSTREAM_SITE/$NEW_UPSTREAM_ARCHIVE"; then
|
||||||
printf "$RED%s$RESET\n" "$NAME failed to download: $NEW_UPSTREAM_SITE/$NEW_UPSTREAM_ARCHIVE"
|
printf "$RED%s$RESET\n" "$NAME failed to download: $NEW_UPSTREAM_SITE/$NEW_UPSTREAM_ARCHIVE"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -91,7 +102,7 @@ if [ "$VERSION" = "$NEW_VERSION" ]; then
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$2" = upgrade ]; then
|
if [ "$2" = upgrade ] && ! $UPDATE_BLOCKED; then
|
||||||
if [ "$(tix-vars -d false "$1" DEVELOPMENT)" = true ]; then
|
if [ "$(tix-vars -d false "$1" DEVELOPMENT)" = true ]; then
|
||||||
echo "$0: warning: Not upgrading $1 in DEVELOPMENT=true mode" >&2
|
echo "$0: warning: Not upgrading $1 in DEVELOPMENT=true mode" >&2
|
||||||
exit
|
exit
|
||||||
|
@ -100,4 +111,10 @@ if [ "$2" = upgrade ]; then
|
||||||
mv "$1.new" "$1"
|
mv "$1.new" "$1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "$GREEN%s$RESET\n" "$NAME $VERSION -> $NEW_VERSION $NEW_UPSTREAM_SITE/$NEW_UPSTREAM_ARCHIVE"
|
if $UPDATE_BLOCKED; then
|
||||||
|
COLOR=$YELLOW
|
||||||
|
else
|
||||||
|
COLOR=$GREEN
|
||||||
|
fi
|
||||||
|
|
||||||
|
printf "$COLOR%s$RESET\n" "$NAME $VERSION -> $NEW_VERSION $NEW_UPSTREAM_SITE/$NEW_UPSTREAM_ARCHIVE"
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,17 +1,17 @@
|
||||||
NAME=perl
|
NAME=perl
|
||||||
BUILD_LIBRARIES=
|
BUILD_LIBRARIES=
|
||||||
VERSION=5.32.0
|
VERSION=5.39.5
|
||||||
DISTNAME=$NAME-$VERSION
|
DISTNAME=$NAME-$VERSION
|
||||||
COMPRESSION=tar.gz
|
COMPRESSION=tar.xz
|
||||||
ARCHIVE=$DISTNAME.$COMPRESSION
|
ARCHIVE=$DISTNAME.$COMPRESSION
|
||||||
SHA256SUM=efeb1ce1f10824190ad1cadbcccf6fdb8a5d37007d0100d2d9ae5f2b5900c0b4
|
SHA256SUM=4048cf0065f347a03ec85e989631a64e03ba9c9ccbc8f2a35153cad07fe21930
|
||||||
UPSTREAM_SITE=https://www.cpan.org/src/5.0
|
UPSTREAM_SITE=https://www.cpan.org/src/5.0
|
||||||
UPSTREAM_ARCHIVE=$ARCHIVE
|
UPSTREAM_ARCHIVE=$ARCHIVE
|
||||||
VERSION_2=1.3.4
|
VERSION_2=1.5.2
|
||||||
DISTNAME_2=perl-cross-$VERSION_2
|
DISTNAME_2=perl-cross-$VERSION_2
|
||||||
COMPRESSION_2=tar.gz
|
COMPRESSION_2=tar.gz
|
||||||
ARCHIVE_2=$DISTNAME_2.$COMPRESSION_2
|
ARCHIVE_2=$DISTNAME_2.$COMPRESSION_2
|
||||||
SHA256SUM_2=755aa0ca8141a942188a269564f86c3c82349f82c346ed5c992495d7f35138ba
|
SHA256SUM_2=584dc54c48dca25e032b676a15bef377c1fed9de318b4fc140292a5dbf326e90
|
||||||
UPSTREAM_SITE_2=https://github.com/arsv/perl-cross/releases/download/$VERSION_2
|
UPSTREAM_SITE_2=https://github.com/arsv/perl-cross/releases/download/$VERSION_2
|
||||||
UPSTREAM_ARCHIVE_2=$ARCHIVE_2
|
UPSTREAM_ARCHIVE_2=$ARCHIVE_2
|
||||||
BUILD_SYSTEM=configure
|
BUILD_SYSTEM=configure
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
# The default perl installation is quite large (62 MB) but a lot of it isn't
|
# The default perl installation is quite large (62 MB) but a lot of it isn't
|
||||||
# actually needed and there's a lot of value in keeping the Sortix build lean.
|
# actually needed and there's a lot of value in keeping the Sortix build lean.
|
||||||
# This script isn't safe to run on an actual installation so make sure it's in
|
# This script isn't safe to run on an actual installation so make sure it's in
|
||||||
|
@ -17,7 +18,7 @@ if [ -n "$TIX_INSTALL_DIR" ]; then
|
||||||
# take up a bunch space (6 MB).
|
# take up a bunch space (6 MB).
|
||||||
rm -rf -- "$TIX_INSTALL_DIR$PREFIX/share/man/man3"
|
rm -rf -- "$TIX_INSTALL_DIR$PREFIX/share/man/man3"
|
||||||
# The pod documentation takes up space (9 MB).
|
# The pod documentation takes up space (9 MB).
|
||||||
PERLDIR="$TIX_INSTALL_DIR$PREFIX/lib/perl5/5."*
|
PERLDIR=$(find -maxdepth 1 -name '*.*.*' "$TIX_INSTALL_DIR$PREFIX/lib/perl5")
|
||||||
find -- "$PERLDIR" -name '*.pod' -delete
|
find -- "$PERLDIR" -name '*.pod' -delete
|
||||||
# The per-architecture statically linked modules aren't needed (16MB).
|
# The per-architecture statically linked modules aren't needed (16MB).
|
||||||
rm -rf -- "$PERLDIR/$HOST"/{CORE,auto}
|
rm -rf -- "$PERLDIR/$HOST"/{CORE,auto}
|
||||||
|
|
Loading…
Reference in a new issue