[MacPorts] #60838: Update mono from 6.8.0.123 to 6.10.0.104 stable
MacPorts
noreply at macports.org
Tue Aug 4 13:53:23 UTC 2020
#60838: Update mono from 6.8.0.123 to 6.10.0.104 stable
----------------------+---------------------------------
Reporter: breiter | Owner: MarcusCalhoun-Lopez
Type: update | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: haspatch
Port: mono |
----------------------+---------------------------------
Comment (by breiter):
OK. Thanks.
I have created a pull request. I did not actually realize that this worked
by having all the portfiles in a big repo.
In the meantime, I have a workaround script that finds and installs the
current stable pkg from mono-project.com. You can automate installs and
upgrades with the script. For example:
{{{
sudo port deactivate mono
$ sudo port deactivate mono
Password:
---> Deactivating mono @6.10.0.104_0
---> Cleaning mono
$ sudo sh ./update-mono.sh
Downloading mono 6.10.0.104 pkg installer.
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 346M 100 346M 0 0 11.2M 0 0:00:30 0:00:30 --:--:--
11.6M
Installing mono 6.10.0.104
installer: Package name is Mono Framework
installer: Installing at base path /
installer: The install was successful.
$ mono --version
Mono JIT compiler version 6.10.0.104 (2019-12/5d03a6fe116 Wed Apr 29
20:51:09 EDT 2020)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www
.mono-project.com
TLS:
SIGSEGV: altstack
Notification: kqueue
Architecture: amd64
Disabled: none
Misc: softdebug
Interpreter: yes
LLVM: yes(610)
Suspend: hybrid
GC: sgen (concurrent by default)
$ sudo sh ./update-mono.sh
mono 6.10.0.104 is up to date.
}}}
https://gist.github.com/breiter/1c01ae6ee49a4f245ffb49ef31fdff97
{{{
#!/bin/sh
current_userid=$(id -u)
if [ $current_userid -ne 0 ]; then
echo "$(basename "$0") requires superuser privileges to run" >&2
exit 1
fi
INSTALLED_VERSION=$(mono --version 2> /dev/null | grep -o -E 'version
[0-9\.]+'| grep -o -E [0-9\.]+)
STABLE_VERSION=$(curl -s https://www.mono-project.com/download/stable/ |
grep -o -E 'Stable \(.+\)' | grep -E -o '[0-9\.]+')
do_install() {
MAJOR_VERSION=$(echo $STABLE_VERSION | grep -o -E '([0-9\]+\.){,3}' |
cut -d'.' -f1-3)
URL="https://download.mono-
project.com/archive/${MAJOR_VERSION}/macos-10-universal/"
FILE="MonoFramework-
MDK-${STABLE_VERSION}.macos10.xamarin.universal.pkg"
echo "Downloading mono ${STABLE_VERSION} pkg installer."
curl "${URL}${FILE}" > "/tmp/${FILE}"
echo "Installing mono ${STABLE_VERSION}"
installer -pkg "/tmp/${FILE}" -target /
rm "/tmp/${FILE}"
eval $(/usr/libexec/path_helper -s)
}
if [ "$INSTALLED_VERSION" = "$STABLE_VERSION" ]; then
echo "mono $INSTALLED_VERSION is up to date."
else
do_install
fi
}}}
--
Ticket URL: <https://trac.macports.org/ticket/60838#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list