[squeak-dev] Re: [ANN] Squeak 5.1 Feature Freeze -- Trunk closed for new features; only bug fixes or text updates

H. Hirzel hannes.hirzel at gmail.com
Sat Aug 13 21:31:26 UTC 2016


Note: squeak.sh should come with a version number and a modification date.

#!/usr/bin/env bash
# File:        squeak.sh (All-in-One version)
# Authors:     Bert Freudenberg, Paul DeBruicker, Craig Latta, Chris Muller,
#              Fabio Niephaus
# Description: Script to run Squeak from the all-in-one app structure
#              (based on Etoys-To-Go)

APP_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}"
)/Squeak5.1beta-16420-64bit-r201608051639-All-in-One.app" && pwd )"
IMAGE="${APP_DIR}/Contents/Resources/Squeak5.1beta-16420-64bit.image"
IMAGE_BITS="64"
CPU="$(uname -m)"

case "${CPU}" in
  "x86_64")
    if [[ "${IMAGE_BITS}" == "32" ]]; then
      CPU="i686"
      echo "Running 32-bit Squeak on a 64-bit System. install-libs32
may install them."
    fi
    ;;
  "armv6l"|"armv7l")
    CPU="ARM"
    ;;
esac

VM="${APP_DIR}/Contents/Linux-${CPU}/bin/squeak"
echo "${VM}"

showerror() {
  if [[ -n "${DISPLAY}" ]] && [[ -x "$(which kdialog 2>/dev/null)" ]]; then
    kdialog --error "$1"
  elif [[ -n "${DISPLAY}" ]] && [[ -x "$(which zenity 2>/dev/null)" ]]; then
    zenity --error --text "$1"
  else
    dialog --msgbox "$1" 0 0
  fi
}

if [[ ! -x "${VM}" ]]; then
  if [[ ! -r "${VM}" ]]; then
    showerror "This Squeak version does not support $(uname -s)-${CPU}"
  else
    showerror "Squeak does not have permissions to execute"
  fi
fi

exec "${VM}" "${IMAGE}"

On 8/13/16, H. Hirzel <hannes.hirzel at gmail.com> wrote:
> Hello Levente
>
> I can not figure out what to by reading
> http://www.mirandabanda.org/files/Cog/VM/latest/README.3732
>
> For example I do not know which VM I have as they seem to be renamed
> to just squeak.
> /home/user8/Squeak5.1beta-16420-64bit-r201608051639-All-in-One.app/Contents/Linux-x86_64/bin/squeak
>
>
> So it is difficult to find out which of the remarks in
> http://www.mirandabanda.org/files/Cog/VM/latest/README.3732
> apply.
>
> I think it is the task of the script
>      squeak.sh
>
> to tell me more what to do (script copied in below)
>
> --Hannes
>
>
>
> On 8/13/16, Levente Uzonyi <leves at caesar.elte.hu> wrote:
>> Hi Hannes,
>>
>> It's a VM bug that it prints the wrong URL. You get this error message,
>> because you haven't allowed Squeak to use higher process priorities.
>> Try this link:
>> http://www.mirandabanda.org/files/Cog/VM/latest/README.3732
>>
>> Levente
>>
>> On Sat, 13 Aug 2016, H. Hirzel wrote:
>>
>>> Hello
>>>
>>> On Ubuntu 14.04.1 I get an error with All-in-one-64bit,
>>>
>>> user8 at user8-Latitude:~$ chmod +x squeak.sh
>>> user8 at user8-Latitude:~$ ./squeak.sh
>>> /home/user8/Squeak5.1beta-16420-64bit-r201608051639-All-in-One.app/Contents/Linux-x86_64/bin/squeak
>>> pthread_setschedparam failed: Operation not permitted
>>> Read e.g.
>>> http://www.mirandabanda.org/files/Cog/VM/VM.r201608051639/README.201608051639
>>> user8 at user8-Latitude:~$ uname -a
>>> Linux user8-Latitude-E6410 3.19.0-25-generic #26~14.04.1-Ubuntu SMP
>>> Fri Jul 24 21:16:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
>>> user8 at user8-Latitude:~$
>>>
>>>
>>> The requested URL /files/Cog/VM/VM.r201608051639/README.201608051639
>>> was not found on this server.
>>>
>>> Additionally, a 404 Not Found error was encountered while trying to
>>> use an ErrorDocument to handle the request.
>>>
>>> Best wishes
>>>
>>> Hannes
>>>
>>> On 8/13/16, marcel.taeumel <Marcel.Taeumel at hpi.de> wrote:
>>>> Hi there,
>>>>
>>>> here are new builds:
>>>> http://files.squeak.org/5.1beta/Squeak5.1beta-16420-32bit/
>>>> http://files.squeak.org/5.1beta/Squeak5.1beta-16420-64bit/
>>>>
>>>> Note that the VM version in the file name is true for 32-bit but not so
>>>> true
>>>> for 64-bit because the 64-bit Windows VM is different but the version
>>>> comes
>>>> from the macOS VM, which is used to update the image.
>>>>
>>>> Best,
>>>> Marcel
>>>>
>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://forum.world.st/ANN-Squeak-5-1-Feature-Freeze-Trunk-closed-for-new-features-only-bug-fixes-or-text-updates-tp4909004p4910909.html
>>>> Sent from the Squeak - Dev mailing list archive at Nabble.com.
>>>>
>>>>
>>>
>>>
>>
>>
>


More information about the Squeak-dev mailing list