Ubuntu 20.04 build steps after opensmalltalk-vm clone.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Ubuntu 20.04 build steps after opensmalltalk-vm clone.

Robert Withers-2
 

Hey everyone,

I just reinstalled my OS and erased my disk to get it to work right. A few issues that downgrading the version helps: LibreOffice, Adobe Acroread, Facebook Messenger clone called Caprine. These all required special versions.

Then I clone the opensmalltalk/vm, and proceed...

Image generation for VMMaker

I thought I would explain what I had to do to generate all sources and build a working build.linux64x64/squeak.cog.spur VM.

In /image I had to add the following scripts or update existing ones, I forget. We definitely need these two scripts:

  • buildspurtrunk64image.sh
  • updatevmmaker64image.sh

With running these I was able to come up with a Spur64VMMaker.image, with latest loaded. I modified the in-image VMMaker method #generateVMPlugins to reflect the new Cryptography plugins:

  • "Cryptography Plugins:" DESPlugin DSAPlugin MD5Plugin SHA2Plugin

The method version with the clone has a reference to SHA256Plugin which is no longer apropos.

I generate the vm and plugins.

Building dependencies

From the HowToBuild in the linux64x64 directory, I ran the following for installing support libraries for my brand new Ubuntu 20.04 OS:

  • sudo apt-get install uuid-dev libcairo2-dev libpango1.0-dev libgl1-mesa-dev libgl1-mesa-glx libssl-dev

In addition, my new shiny OS needed clang installed so I also ran:

  • sudo apt-get install clang

Running mvm:

First, I needed to update the plugins.ext file to reflect the new Cryptography plugins. I am attaching that file.

Finally, I am ready to build. Go to build.linux64x64/squeak.cog.spur/build/. I run the following:

  • build.linux64x64/squeak.cog.spur/build/$ .mvm > ../mvm.log
  • and after running I type Y and return to cause the script to make clean. (The clean? prompt is hidden given the stdout redirection. See it in the log).

Once the VM and Plugins are generated, I installed to my system by typing:

  • build.linux64x64/squeak.cog.spur/build/$ sudo make install

Now squeak is installed in my machine and I can run the following:

  • image/$ squeak Spur64VMMaker.image &
  • then save as rabbit.image

For my purposes, I now load my Crypto stuff and run all tests:

  • Installer ss
        project: 'Cryptography'; install: 'ProCrypto-1-1-1';
        project: 'Cryptography'; install: 'ProCryptoTests-1-1-1';
        project: 'Cryptography'; install: 'SSLLoader'.

Now I can pass all Crypto and ParrotTalk tests. SSL is still failing, expectedly.

Well I think this is accurate enough. As I have gone through all of this, already, I do not relish trying to replicate my steps. Hopefully the other Ubuntu heads out there will have success!

Kindly,
Rabbit


plugins.ext (528 bytes) Download Attachment
buildspurtrunk64image.sh (352 bytes) Download Attachment
updatevmmaker64image.sh (430 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Ubuntu 20.04 build steps after opensmalltalk-vm clone.

Robert Withers-2
 

Hey,

As I had changed a couple of scripts in the vm/image directory, something was bugging me about them. I took a long look at what git was pushing and made some changes. I am attaching the changed/new files. What steps could I take to publish on a branch in git? For review. My git skills are rusty and there is a policy issue for how you all proceed here. I am on Cog branch atm.

A few issues,

  1. when UpdateSqueakTrunkImage.st, there are two changesets requiring a merge. I click Rest Accept and then click Merge, to get past them. It would be really good to be able to auto-merge when updating the trunk image, for CI and such. Is it possible?
    • Merging Tools-eem.959
    • Merging Morphic-mt.1653
  2. The PreferenceWizard was not open in the resulting images. I added a SetPreferenceWizardMorph.st squeak script to restore and collapse any Workspaces (VMMaker) and close any transcripts. Works for both spur64 & vmmaker64 scripts.
  3. The getGoodSpurVM.sh (32-bits) is not working on my 64-bit system. Should it? Can I do 32-bits on a 64-bit OS?
  4. The scripts for building the spur64image was occurring in the update script. The buildspurtrunk64image.sh (I think it was called), is actually a migratespur32to64vmmakerimage.sh, so I renamed it. It doesn't work due to #3.
  5. The scripts for building the vmmaker64image was occurring in the build script. The two sets of scripts (spur64 & vmmaker64) were opposite. spur64 was building in the update script and vmmaker was building in the build script. I liked the way the spur64 was being built so I made the vmmaker build happen in the update script, like spur64.
  6. Then I decided that the update scripts were doing building and the building wass also doin gan update. So I renamed everything and now the #build scripts for spur64 and vmmaker are the scripts that both build and update the image (trunk6-64 or Spur64VMMaker). The update scripts simply call the build script.
  7. I renamed buildspurtrunkvmmaker64image.sh & buildspurtrunkvmmakerimage.sh to buildvmmakerimage.sh and buildvmmaker64image.sh
  8. I made all the 32 bit scripts, for spur & vmmaker, look like the 64 bit scripts. Due to #3, I cannot test.

I think this is everything I ventured into and changed, based on a "ll -t". I realize I changed the way vmmaker/64 images are built, and also spur/64 images. I tried testing all combos and they worked. Don't really need the #update scripts anymore. Please let me know if you accept these and help me commit&push.

I appreciate all'y'all for all y'all do!

Kindly,
Rabbit


On 5/24/20 4:23 PM, Robert Withers wrote:

Hey everyone,

I just reinstalled my OS and erased my disk to get it to work right. A few issues that downgrading the version helps: LibreOffice, Adobe Acroread, Facebook Messenger clone called Caprine. These all required special versions.

Then I clone the opensmalltalk/vm, and proceed...

Image generation for VMMaker

I thought I would explain what I had to do to generate all sources and build a working build.linux64x64/squeak.cog.spur VM.

In /image I had to add the following scripts or update existing ones, I forget. We definitely need these two scripts:

  • buildspurtrunk64image.sh
  • updatevmmaker64image.sh

With running these I was able to come up with a Spur64VMMaker.image, with latest loaded. I modified the in-image VMMaker method #generateVMPlugins to reflect the new Cryptography plugins:

  • "Cryptography Plugins:" DESPlugin DSAPlugin MD5Plugin SHA2Plugin

The method version with the clone has a reference to SHA256Plugin which is no longer apropos.

I generate the vm and plugins.

Building dependencies

From the HowToBuild in the linux64x64 directory, I ran the following for installing support libraries for my brand new Ubuntu 20.04 OS:

  • sudo apt-get install uuid-dev libcairo2-dev libpango1.0-dev libgl1-mesa-dev libgl1-mesa-glx libssl-dev

In addition, my new shiny OS needed clang installed so I also ran:

  • sudo apt-get install clang

Running mvm:

First, I needed to update the plugins.ext file to reflect the new Cryptography plugins. I am attaching that file.

Finally, I am ready to build. Go to build.linux64x64/squeak.cog.spur/build/. I run the following:

  • build.linux64x64/squeak.cog.spur/build/$ .mvm > ../mvm.log
  • and after running I type Y and return to cause the script to make clean. (The clean? prompt is hidden given the stdout redirection. See it in the log).

Once the VM and Plugins are generated, I installed to my system by typing:

  • build.linux64x64/squeak.cog.spur/build/$ sudo make install

Now squeak is installed in my machine and I can run the following:

  • image/$ squeak Spur64VMMaker.image &
  • then save as rabbit.image

For my purposes, I now load my Crypto stuff and run all tests:

  • Installer ss
        project: 'Cryptography'; install: 'ProCrypto-1-1-1';
        project: 'Cryptography'; install: 'ProCryptoTests-1-1-1';
        project: 'Cryptography'; install: 'SSLLoader'.

Now I can pass all Crypto and ParrotTalk tests. SSL is still failing, expectedly.

Well I think this is accurate enough. As I have gone through all of this, already, I do not relish trying to replicate my steps. Hopefully the other Ubuntu heads out there will have success!

Kindly,
Rabbit


migratespur32to64vmmakerimage.sh (348 bytes) Download Attachment
SetPreferenceWizardMorph.st (406 bytes) Download Attachment
buildspur64image.sh (1K) Download Attachment
updatespurimage.sh (90 bytes) Download Attachment
updatespur64image.sh (94 bytes) Download Attachment
updatevmmakerimage.sh (94 bytes) Download Attachment
updatevmmaker64image.sh (98 bytes) Download Attachment
buildspurimage.sh (1K) Download Attachment
buildvmmakerimage.sh (992 bytes) Download Attachment
buildvmmaker64image.sh (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Ubuntu 20.04 build steps after opensmalltalk-vm clone.

Eliot Miranda-2
In reply to this post by Robert Withers-2
 
i Rob, Hi Levente,
oscogvm$ ls src/plugins/ | egrep "DESPlugin|DSAPlugin|MD5Plugin|SHA2Plugin"
DESPlugin
MD5Plugin

So where are DSAPlugin and SHA2Plugin?  They're not in the standard source tree.

On Sun, May 24, 2020 at 1:24 PM Robert Withers <[hidden email]> wrote:
 

Hey everyone,

I just reinstalled my OS and erased my disk to get it to work right. A few issues that downgrading the version helps: LibreOffice, Adobe Acroread, Facebook Messenger clone called Caprine. These all required special versions.

Then I clone the opensmalltalk/vm, and proceed...

Image generation for VMMaker

I thought I would explain what I had to do to generate all sources and build a working build.linux64x64/squeak.cog.spur VM.

In /image I had to add the following scripts or update existing ones, I forget. We definitely need these two scripts:

  • buildspurtrunk64image.sh
  • updatevmmaker64image.sh

With running these I was able to come up with a Spur64VMMaker.image, with latest loaded. I modified the in-image VMMaker method #generateVMPlugins to reflect the new Cryptography plugins:

  • "Cryptography Plugins:" DESPlugin DSAPlugin MD5Plugin SHA2Plugin

The method version with the clone has a reference to SHA256Plugin which is no longer apropos.

I generate the vm and plugins.

Building dependencies

From the HowToBuild in the linux64x64 directory, I ran the following for installing support libraries for my brand new Ubuntu 20.04 OS:

  • sudo apt-get install uuid-dev libcairo2-dev libpango1.0-dev libgl1-mesa-dev libgl1-mesa-glx libssl-dev

In addition, my new shiny OS needed clang installed so I also ran:

  • sudo apt-get install clang

Running mvm:

First, I needed to update the plugins.ext file to reflect the new Cryptography plugins. I am attaching that file.

Finally, I am ready to build. Go to build.linux64x64/squeak.cog.spur/build/. I run the following:

  • build.linux64x64/squeak.cog.spur/build/$ .mvm > ../mvm.log
  • and after running I type Y and return to cause the script to make clean. (The clean? prompt is hidden given the stdout redirection. See it in the log).

Once the VM and Plugins are generated, I installed to my system by typing:

  • build.linux64x64/squeak.cog.spur/build/$ sudo make install

Now squeak is installed in my machine and I can run the following:

  • image/$ squeak Spur64VMMaker.image &
  • then save as rabbit.image

For my purposes, I now load my Crypto stuff and run all tests:

  • Installer ss
        project: 'Cryptography'; install: 'ProCrypto-1-1-1';
        project: 'Cryptography'; install: 'ProCryptoTests-1-1-1';
        project: 'Cryptography'; install: 'SSLLoader'.

Now I can pass all Crypto and ParrotTalk tests. SSL is still failing, expectedly.

Well I think this is accurate enough. As I have gone through all of this, already, I do not relish trying to replicate my steps. Hopefully the other Ubuntu heads out there will have success!

Kindly,
Rabbit



--
_,,,^..^,,,_
best, Eliot
Reply | Threaded
Open this post in threaded view
|

Re: Ubuntu 20.04 build steps after opensmalltalk-vm clone.

Eliot Miranda-2
In reply to this post by Robert Withers-2
 
Hi Rob,

On Mon, May 25, 2020 at 10:25 AM Robert Withers <[hidden email]> wrote:
 

Hey,

As I had changed a couple of scripts in the vm/image directory, something was bugging me about them. I took a long look at what git was pushing and made some changes. I am attaching the changed/new files. What steps could I take to publish on a branch in git? For review. My git skills are rusty and there is a policy issue for how you all proceed here. I am on Cog branch atm.

A few issues,

  1. when UpdateSqueakTrunkImage.st, there are two changesets requiring a merge. I click Rest Accept and then click Merge, to get past them. It would be really good to be able to auto-merge when updating the trunk image, for CI and such. Is it possible?
    • Merging Tools-eem.959
    • Merging Morphic-mt.1653
  2. The PreferenceWizard was not open in the resulting images. I added a SetPreferenceWizardMorph.st squeak script to restore and collapse any Workspaces (VMMaker) and close any transcripts. Works for both spur64 & vmmaker64 scripts.
  3. The getGoodSpurVM.sh (32-bits) is not working on my 64-bit system. Should it? Can I do 32-bits on a 64-bit OS?

No guarantee.  MacOS is dropping support from 32-bits.  So best to use a 64-bit toolchain on a 64-bit OS and a 32-bit toolchain on a 32-bit OS.
 
  1. The scripts for building the spur64image was occurring in the update script. The buildspurtrunk64image.sh (I think it was called), is actually a migratespur32to64vmmakerimage.sh, so I renamed it. It doesn't work due to #3.
(Notice the auto renumber bug) Now that a 64-bit release is available we should probably apply UpdateSqueakTrunkImage.st to it and avoid the image rewrite.
  1. The scripts for building the vmmaker64image was occurring in the build script. The two sets of scripts (spur64 & vmmaker64) were opposite. spur64 was building in the update script and vmmaker was building in the build script. I liked the way the spur64 was being built so I made the vmmaker build happen in the update script, like spur64.
  2. Then I decided that the update scripts were doing building and the building wass also doin gan update. So I renamed everything and now the #build scripts for spur64 and vmmaker are the scripts that both build and update the image (trunk6-64 or Spur64VMMaker). The update scripts simply call the build script.
  3. I renamed buildspurtrunkvmmaker64image.sh & buildspurtrunkvmmakerimage.sh to buildvmmakerimage.sh and buildvmmaker64image.sh
  4. I made all the 32 bit scripts, for spur & vmmaker, look like the 64 bit scripts. Due to #3, I cannot test.

I think this is everything I ventured into and changed, based on a "ll -t". I realize I changed the way vmmaker/64 images are built, and also spur/64 images. I tried testing all combos and they worked. Don't really need the #update scripts anymore. Please let me know if you accept these and help me commit&push.

Can you push on a branch? Then I can take a look... 

I appreciate all'y'all for all y'all do!

Kindly,
Rabbit


On 5/24/20 4:23 PM, Robert Withers wrote:

Hey everyone,

I just reinstalled my OS and erased my disk to get it to work right. A few issues that downgrading the version helps: LibreOffice, Adobe Acroread, Facebook Messenger clone called Caprine. These all required special versions.

Then I clone the opensmalltalk/vm, and proceed...

Image generation for VMMaker

I thought I would explain what I had to do to generate all sources and build a working build.linux64x64/squeak.cog.spur VM.

In /image I had to add the following scripts or update existing ones, I forget. We definitely need these two scripts:

  • buildspurtrunk64image.sh
  • updatevmmaker64image.sh

With running these I was able to come up with a Spur64VMMaker.image, with latest loaded. I modified the in-image VMMaker method #generateVMPlugins to reflect the new Cryptography plugins:

  • "Cryptography Plugins:" DESPlugin DSAPlugin MD5Plugin SHA2Plugin

The method version with the clone has a reference to SHA256Plugin which is no longer apropos.

I generate the vm and plugins.

Building dependencies

From the HowToBuild in the linux64x64 directory, I ran the following for installing support libraries for my brand new Ubuntu 20.04 OS:

  • sudo apt-get install uuid-dev libcairo2-dev libpango1.0-dev libgl1-mesa-dev libgl1-mesa-glx libssl-dev

In addition, my new shiny OS needed clang installed so I also ran:

  • sudo apt-get install clang

Running mvm:

First, I needed to update the plugins.ext file to reflect the new Cryptography plugins. I am attaching that file.

Finally, I am ready to build. Go to build.linux64x64/squeak.cog.spur/build/. I run the following:

  • build.linux64x64/squeak.cog.spur/build/$ .mvm > ../mvm.log
  • and after running I type Y and return to cause the script to make clean. (The clean? prompt is hidden given the stdout redirection. See it in the log).

Once the VM and Plugins are generated, I installed to my system by typing:

  • build.linux64x64/squeak.cog.spur/build/$ sudo make install

Now squeak is installed in my machine and I can run the following:

  • image/$ squeak Spur64VMMaker.image &
  • then save as rabbit.image

For my purposes, I now load my Crypto stuff and run all tests:

  • Installer ss
        project: 'Cryptography'; install: 'ProCrypto-1-1-1';
        project: 'Cryptography'; install: 'ProCryptoTests-1-1-1';
        project: 'Cryptography'; install: 'SSLLoader'.

Now I can pass all Crypto and ParrotTalk tests. SSL is still failing, expectedly.

Well I think this is accurate enough. As I have gone through all of this, already, I do not relish trying to replicate my steps. Hopefully the other Ubuntu heads out there will have success!

Kindly,
Rabbit


_,,,^..^,,,_
best, Eliot
Reply | Threaded
Open this post in threaded view
|

Re: Ubuntu 20.04 build steps after opensmalltalk-vm clone.

Robert Withers-2
In reply to this post by Eliot Miranda-2
 


On 5/25/20 2:23 PM, Eliot Miranda wrote:
i Rob, Hi Levente,
oscogvm$ ls src/plugins/ | egrep "DESPlugin|DSAPlugin|MD5Plugin|SHA2Plugin"
DESPlugin
MD5Plugin

So where are DSAPlugin and SHA2Plugin?  They're not in the standard source tree.

I made this change and it generated them.

I modified the in-image VMMaker method #generateVMPlugins to reflect the new Cryptography plugins:

  • "Cryptography Plugins:" DESPlugin DSAPlugin MD5Plugin SHA2Plugin

That results in rabbit@ganymede:~/tribe/opensmalltalk-vm$ ls src/plugins/ | egrep "DESPlugin|DSAPlugin|MD5Plugin|SHA2Plugin"
DESPlugin
MD5Plugin
SHA2Plugin

While the DSAPlugin is internal. Does the generateVMPlugins discard DSAPlugin as it was internal?

When I do the following, I get:

rabbit@ganymede:~/tribe/opensmalltalk-vm$ ll products/sqcogspur64linuxht/lib/squeak/5.0-202005170205/ | egrep "DESPlugin|DSAPlugin|MD5Plugin|SHA2Plugin"
-rwxr-xr-x 1 rabbit rabbit   29664 May 24 15:52 DESPlugin.so*
-rwxr-xr-x 1 rabbit rabbit   15528 May 24 15:52 DSAPlugin.so*
-rwxr-xr-x 1 rabbit rabbit   30696 May 24 15:52 MD5Plugin.so*
-rwxr-xr-x 1 rabbit rabbit   32392 May 24 15:52 SHA2Plugin.so*

I dunno beyond this data.

K, r


On Sun, May 24, 2020 at 1:24 PM Robert Withers <[hidden email]> wrote:
 

Hey everyone,

I just reinstalled my OS and erased my disk to get it to work right. A few issues that downgrading the version helps: LibreOffice, Adobe Acroread, Facebook Messenger clone called Caprine. These all required special versions.

Then I clone the opensmalltalk/vm, and proceed...

Image generation for VMMaker

I thought I would explain what I had to do to generate all sources and build a working build.linux64x64/squeak.cog.spur VM.

In /image I had to add the following scripts or update existing ones, I forget. We definitely need these two scripts:

  • buildspurtrunk64image.sh
  • updatevmmaker64image.sh

With running these I was able to come up with a Spur64VMMaker.image, with latest loaded. I modified the in-image VMMaker method #generateVMPlugins to reflect the new Cryptography plugins:

  • "Cryptography Plugins:" DESPlugin DSAPlugin MD5Plugin SHA2Plugin

The method version with the clone has a reference to SHA256Plugin which is no longer apropos.

I generate the vm and plugins.

Building dependencies

From the HowToBuild in the linux64x64 directory, I ran the following for installing support libraries for my brand new Ubuntu 20.04 OS:

  • sudo apt-get install uuid-dev libcairo2-dev libpango1.0-dev libgl1-mesa-dev libgl1-mesa-glx libssl-dev

In addition, my new shiny OS needed clang installed so I also ran:

  • sudo apt-get install clang

Running mvm:

First, I needed to update the plugins.ext file to reflect the new Cryptography plugins. I am attaching that file.

Finally, I am ready to build. Go to build.linux64x64/squeak.cog.spur/build/. I run the following:

  • build.linux64x64/squeak.cog.spur/build/$ .mvm > ../mvm.log
  • and after running I type Y and return to cause the script to make clean. (The clean? prompt is hidden given the stdout redirection. See it in the log).

Once the VM and Plugins are generated, I installed to my system by typing:

  • build.linux64x64/squeak.cog.spur/build/$ sudo make install

Now squeak is installed in my machine and I can run the following:

  • image/$ squeak Spur64VMMaker.image &
  • then save as rabbit.image

For my purposes, I now load my Crypto stuff and run all tests:

  • Installer ss
        project: 'Cryptography'; install: 'ProCrypto-1-1-1';
        project: 'Cryptography'; install: 'ProCryptoTests-1-1-1';
        project: 'Cryptography'; install: 'SSLLoader'.

Now I can pass all Crypto and ParrotTalk tests. SSL is still failing, expectedly.

Well I think this is accurate enough. As I have gone through all of this, already, I do not relish trying to replicate my steps. Hopefully the other Ubuntu heads out there will have success!

Kindly,
Rabbit



--
_,,,^..^,,,_
best, Eliot
Reply | Threaded
Open this post in threaded view
|

Re: Ubuntu 20.04 build steps after opensmalltalk-vm clone.

Eliot Miranda-2
 
Hi Rob,

On Mon, May 25, 2020 at 11:31 AM Robert Withers <[hidden email]> wrote:


On 5/25/20 2:23 PM, Eliot Miranda wrote:
i Rob, Hi Levente,
oscogvm$ ls src/plugins/ | egrep "DESPlugin|DSAPlugin|MD5Plugin|SHA2Plugin"
DESPlugin
MD5Plugin

So where are DSAPlugin and SHA2Plugin?  They're not in the standard source tree.

I made this change and it generated them.

I modified the in-image VMMaker method #generateVMPlugins to reflect the new Cryptography plugins:

  • "Cryptography Plugins:" DESPlugin DSAPlugin MD5Plugin SHA2Plugin

That results in rabbit@ganymede:~/tribe/opensmalltalk-vm$ ls src/plugins/ | egrep "DESPlugin|DSAPlugin|MD5Plugin|SHA2Plugin"
DESPlugin
MD5Plugin
SHA2Plugin

While the DSAPlugin is internal. Does the generateVMPlugins discard DSAPlugin as it was internal?


No.  There are two things to do here.

First, modify the manifest in BuildSqueakSpurTrunkVMMakerImage.st to load the plugins from the official repository.
Second, modify VMMaker class>>generateVMPlugins top include the new plugins.

Email me these two files and I'll integrate.
 

When I do the following, I get:

rabbit@ganymede:~/tribe/opensmalltalk-vm$ ll products/sqcogspur64linuxht/lib/squeak/5.0-202005170205/ | egrep "DESPlugin|DSAPlugin|MD5Plugin|SHA2Plugin"
-rwxr-xr-x 1 rabbit rabbit   29664 May 24 15:52 DESPlugin.so*
-rwxr-xr-x 1 rabbit rabbit   15528 May 24 15:52 DSAPlugin.so*
-rwxr-xr-x 1 rabbit rabbit   30696 May 24 15:52 MD5Plugin.so*
-rwxr-xr-x 1 rabbit rabbit   32392 May 24 15:52 SHA2Plugin.so*

I dunno beyond this data.

K, r


On Sun, May 24, 2020 at 1:24 PM Robert Withers <[hidden email]> wrote:
 

Hey everyone,

I just reinstalled my OS and erased my disk to get it to work right. A few issues that downgrading the version helps: LibreOffice, Adobe Acroread, Facebook Messenger clone called Caprine. These all required special versions.

Then I clone the opensmalltalk/vm, and proceed...

Image generation for VMMaker

I thought I would explain what I had to do to generate all sources and build a working build.linux64x64/squeak.cog.spur VM.

In /image I had to add the following scripts or update existing ones, I forget. We definitely need these two scripts:

  • buildspurtrunk64image.sh
  • updatevmmaker64image.sh

With running these I was able to come up with a Spur64VMMaker.image, with latest loaded. I modified the in-image VMMaker method #generateVMPlugins to reflect the new Cryptography plugins:

  • "Cryptography Plugins:" DESPlugin DSAPlugin MD5Plugin SHA2Plugin

The method version with the clone has a reference to SHA256Plugin which is no longer apropos.

I generate the vm and plugins.

Building dependencies

From the HowToBuild in the linux64x64 directory, I ran the following for installing support libraries for my brand new Ubuntu 20.04 OS:

  • sudo apt-get install uuid-dev libcairo2-dev libpango1.0-dev libgl1-mesa-dev libgl1-mesa-glx libssl-dev

In addition, my new shiny OS needed clang installed so I also ran:

  • sudo apt-get install clang

Running mvm:

First, I needed to update the plugins.ext file to reflect the new Cryptography plugins. I am attaching that file.

Finally, I am ready to build. Go to build.linux64x64/squeak.cog.spur/build/. I run the following:

  • build.linux64x64/squeak.cog.spur/build/$ .mvm > ../mvm.log
  • and after running I type Y and return to cause the script to make clean. (The clean? prompt is hidden given the stdout redirection. See it in the log).

Once the VM and Plugins are generated, I installed to my system by typing:

  • build.linux64x64/squeak.cog.spur/build/$ sudo make install

Now squeak is installed in my machine and I can run the following:

  • image/$ squeak Spur64VMMaker.image &
  • then save as rabbit.image

For my purposes, I now load my Crypto stuff and run all tests:

  • Installer ss
        project: 'Cryptography'; install: 'ProCrypto-1-1-1';
        project: 'Cryptography'; install: 'ProCryptoTests-1-1-1';
        project: 'Cryptography'; install: 'SSLLoader'.

Now I can pass all Crypto and ParrotTalk tests. SSL is still failing, expectedly.

Well I think this is accurate enough. As I have gone through all of this, already, I do not relish trying to replicate my steps. Hopefully the other Ubuntu heads out there will have success!

Kindly,
Rabbit



--
_,,,^..^,,,_
best, Eliot


--
_,,,^..^,,,_
best, Eliot
Reply | Threaded
Open this post in threaded view
|

Re: Ubuntu 20.04 build steps after opensmalltalk-vm clone.

Robert Withers-2
In reply to this post by Eliot Miranda-2
 

Hi Eliot,

On 5/25/20 2:29 PM, Eliot Miranda wrote:
Hi Rob,

On Mon, May 25, 2020 at 10:25 AM Robert Withers <[hidden email]> wrote:
 

Hey,

As I had changed a couple of scripts in the vm/image directory, something was bugging me about them. I took a long look at what git was pushing and made some changes. I am attaching the changed/new files. What steps could I take to publish on a branch in git? For review. My git skills are rusty and there is a policy issue for how you all proceed here. I am on Cog branch atm.

A few issues,

  1. when UpdateSqueakTrunkImage.st, there are two changesets requiring a merge. I click Rest Accept and then click Merge, to get past them. It would be really good to be able to auto-merge when updating the trunk image, for CI and such. Is it possible?
    • Merging Tools-eem.959
    • Merging Morphic-mt.1653
  2. The PreferenceWizard was not open in the resulting images. I added a SetPreferenceWizardMorph.st squeak script to restore and collapse any Workspaces (VMMaker) and close any transcripts. Works for both spur64 & vmmaker64 scripts.
  3. The getGoodSpurVM.sh (32-bits) is not working on my 64-bit system. Should it? Can I do 32-bits on a 64-bit OS?

No guarantee.  MacOS is dropping support from 32-bits.  So best to use a 64-bit toolchain on a 64-bit OS and a 32-bit toolchain on a 32-bit OS.

Oh dear, that's unfortunate. Would have been nice to test 32-bits.

  1. The scripts for building the spur64image was occurring in the update script. The buildspurtrunk64image.sh (I think it was called), is actually a migratespur32to64vmmakerimage.sh, so I renamed it. It doesn't work due to #3.
(Notice the auto renumber bug) Now that a 64-bit release is available we should probably apply UpdateSqueakTrunkImage.st to it and avoid the image rewrite.

My apologies, I don't know what this means. The buildspur64image.sh script is running UpdateSqueakTrunkImage.st and avoids a re-retrieval of the latest 64 bit image, as the image is already here. The only rewrite occurs in buildvmmaker64image.sh when the Spur64VMMaker.image is absent. Once again the buildspur64image.sh, called from there, only retrieves if the trunk6-64.image is missing. This buildvmmaker64image.sh also does a UpdateSqueakTrunkImage.st on the Spur64VMMaker.image. Those calls to UpdateSqueakTrunkImage.st happen every time a buildspur64image.sh/buildvmmmaker64image.sh is evaluated.


  1. The scripts for building the vmmaker64image was occurring in the build script. The two sets of scripts (spur64 & vmmaker64) were opposite. spur64 was building in the update script and vmmaker was building in the build script. I liked the way the spur64 was being built so I made the vmmaker build happen in the update script, like spur64.
  2. Then I decided that the update scripts were doing building and the building wass also doin gan update. So I renamed everything and now the #build scripts for spur64 and vmmaker are the scripts that both build and update the image (trunk6-64 or Spur64VMMaker). The update scripts simply call the build script.
  3. I renamed buildspurtrunkvmmaker64image.sh & buildspurtrunkvmmakerimage.sh to buildvmmakerimage.sh and buildvmmaker64image.sh
  4. I made all the 32 bit scripts, for spur & vmmaker, look like the 64 bit scripts. Due to #3, I cannot test.

I think this is everything I ventured into and changed, based on a "ll -t". I realize I changed the way vmmaker/64 images are built, and also spur/64 images. I tried testing all combos and they worked. Don't really need the #update scripts anymore. Please let me know if you accept these and help me commit&push.

Can you push on a branch? Then I can take a look...

Can I branch off Cog after having made changes and have those changes follow into the new branch? This is my concern. So,

  • "git branch -c rabbits" - *check*
  • "git checkout rabbits" - *check*
  • "git add ...", "git add ...", ***add all new/changed files*** - *check*

...

  • "git log ???" ***validate local changes***
  • "git commit -m ' scripts updated' "
  • "git push"

Or somehow? How can I check the my immediate changes in the log?  That will be committed? I tried "git log" and it had all changes since the first big bang.

K, r

I appreciate all'y'all for all y'all do!

Kindly,
Rabbit


On 5/24/20 4:23 PM, Robert Withers wrote:

Hey everyone,

I just reinstalled my OS and erased my disk to get it to work right. A few issues that downgrading the version helps: LibreOffice, Adobe Acroread, Facebook Messenger clone called Caprine. These all required special versions.

Then I clone the opensmalltalk/vm, and proceed...

Image generation for VMMaker

I thought I would explain what I had to do to generate all sources and build a working build.linux64x64/squeak.cog.spur VM.

In /image I had to add the following scripts or update existing ones, I forget. We definitely need these two scripts:

  • buildspurtrunk64image.sh
  • updatevmmaker64image.sh

With running these I was able to come up with a Spur64VMMaker.image, with latest loaded. I modified the in-image VMMaker method #generateVMPlugins to reflect the new Cryptography plugins:

  • "Cryptography Plugins:" DESPlugin DSAPlugin MD5Plugin SHA2Plugin

The method version with the clone has a reference to SHA256Plugin which is no longer apropos.

I generate the vm and plugins.

Building dependencies

From the HowToBuild in the linux64x64 directory, I ran the following for installing support libraries for my brand new Ubuntu 20.04 OS:

  • sudo apt-get install uuid-dev libcairo2-dev libpango1.0-dev libgl1-mesa-dev libgl1-mesa-glx libssl-dev

In addition, my new shiny OS needed clang installed so I also ran:

  • sudo apt-get install clang

Running mvm:

First, I needed to update the plugins.ext file to reflect the new Cryptography plugins. I am attaching that file.

Finally, I am ready to build. Go to build.linux64x64/squeak.cog.spur/build/. I run the following:

  • build.linux64x64/squeak.cog.spur/build/$ .mvm > ../mvm.log
  • and after running I type Y and return to cause the script to make clean. (The clean? prompt is hidden given the stdout redirection. See it in the log).

Once the VM and Plugins are generated, I installed to my system by typing:

  • build.linux64x64/squeak.cog.spur/build/$ sudo make install

Now squeak is installed in my machine and I can run the following:

  • image/$ squeak Spur64VMMaker.image &
  • then save as rabbit.image

For my purposes, I now load my Crypto stuff and run all tests:

  • Installer ss
        project: 'Cryptography'; install: 'ProCrypto-1-1-1';
        project: 'Cryptography'; install: 'ProCryptoTests-1-1-1';
        project: 'Cryptography'; install: 'SSLLoader'.

Now I can pass all Crypto and ParrotTalk tests. SSL is still failing, expectedly.

Well I think this is accurate enough. As I have gone through all of this, already, I do not relish trying to replicate my steps. Hopefully the other Ubuntu heads out there will have success!

Kindly,
Rabbit


_,,,^..^,,,_
best, Eliot
Reply | Threaded
Open this post in threaded view
|

Re: Ubuntu 20.04 build steps after opensmalltalk-vm clone.

Robert Withers-2
In reply to this post by Eliot Miranda-2
 

Eliot, I have attached the change to #generateVMPlugins for you. How do I change the manifest of that script and which to what? I am confused as to what you need me to do.

K, r

On 5/25/20 2:41 PM, Eliot Miranda wrote:
Hi Rob,

On Mon, May 25, 2020 at 11:31 AM Robert Withers <[hidden email]> wrote:


On 5/25/20 2:23 PM, Eliot Miranda wrote:
i Rob, Hi Levente,
oscogvm$ ls src/plugins/ | egrep "DESPlugin|DSAPlugin|MD5Plugin|SHA2Plugin"
DESPlugin
MD5Plugin

So where are DSAPlugin and SHA2Plugin?  They're not in the standard source tree.

I made this change and it generated them.

I modified the in-image VMMaker method #generateVMPlugins to reflect the new Cryptography plugins:

  • "Cryptography Plugins:" DESPlugin DSAPlugin MD5Plugin SHA2Plugin

That results in rabbit@ganymede:~/tribe/opensmalltalk-vm$ ls src/plugins/ | egrep "DESPlugin|DSAPlugin|MD5Plugin|SHA2Plugin"
DESPlugin
MD5Plugin
SHA2Plugin

While the DSAPlugin is internal. Does the generateVMPlugins discard DSAPlugin as it was internal?


No.  There are two things to do here.

First, modify the manifest in BuildSqueakSpurTrunkVMMakerImage.st to load the plugins from the official repository.
Second, modify VMMaker class>>generateVMPlugins top include the new plugins.

Email me these two files and I'll integrate.
 

When I do the following, I get:

rabbit@ganymede:~/tribe/opensmalltalk-vm$ ll products/sqcogspur64linuxht/lib/squeak/5.0-202005170205/ | egrep "DESPlugin|DSAPlugin|MD5Plugin|SHA2Plugin"
-rwxr-xr-x 1 rabbit rabbit   29664 May 24 15:52 DESPlugin.so*
-rwxr-xr-x 1 rabbit rabbit   15528 May 24 15:52 DSAPlugin.so*
-rwxr-xr-x 1 rabbit rabbit   30696 May 24 15:52 MD5Plugin.so*
-rwxr-xr-x 1 rabbit rabbit   32392 May 24 15:52 SHA2Plugin.so*

I dunno beyond this data.

K, r


On Sun, May 24, 2020 at 1:24 PM Robert Withers <[hidden email]> wrote:
 

Hey everyone,

I just reinstalled my OS and erased my disk to get it to work right. A few issues that downgrading the version helps: LibreOffice, Adobe Acroread, Facebook Messenger clone called Caprine. These all required special versions.

Then I clone the opensmalltalk/vm, and proceed...

Image generation for VMMaker

I thought I would explain what I had to do to generate all sources and build a working build.linux64x64/squeak.cog.spur VM.

In /image I had to add the following scripts or update existing ones, I forget. We definitely need these two scripts:

  • buildspurtrunk64image.sh
  • updatevmmaker64image.sh

With running these I was able to come up with a Spur64VMMaker.image, with latest loaded. I modified the in-image VMMaker method #generateVMPlugins to reflect the new Cryptography plugins:

  • "Cryptography Plugins:" DESPlugin DSAPlugin MD5Plugin SHA2Plugin

The method version with the clone has a reference to SHA256Plugin which is no longer apropos.

I generate the vm and plugins.

Building dependencies

From the HowToBuild in the linux64x64 directory, I ran the following for installing support libraries for my brand new Ubuntu 20.04 OS:

  • sudo apt-get install uuid-dev libcairo2-dev libpango1.0-dev libgl1-mesa-dev libgl1-mesa-glx libssl-dev

In addition, my new shiny OS needed clang installed so I also ran:

  • sudo apt-get install clang

Running mvm:

First, I needed to update the plugins.ext file to reflect the new Cryptography plugins. I am attaching that file.

Finally, I am ready to build. Go to build.linux64x64/squeak.cog.spur/build/. I run the following:

  • build.linux64x64/squeak.cog.spur/build/$ .mvm > ../mvm.log
  • and after running I type Y and return to cause the script to make clean. (The clean? prompt is hidden given the stdout redirection. See it in the log).

Once the VM and Plugins are generated, I installed to my system by typing:

  • build.linux64x64/squeak.cog.spur/build/$ sudo make install

Now squeak is installed in my machine and I can run the following:

  • image/$ squeak Spur64VMMaker.image &
  • then save as rabbit.image

For my purposes, I now load my Crypto stuff and run all tests:

  • Installer ss
        project: 'Cryptography'; install: 'ProCrypto-1-1-1';
        project: 'Cryptography'; install: 'ProCryptoTests-1-1-1';
        project: 'Cryptography'; install: 'SSLLoader'.

Now I can pass all Crypto and ParrotTalk tests. SSL is still failing, expectedly.

Well I think this is accurate enough. As I have gone through all of this, already, I do not relish trying to replicate my steps. Hopefully the other Ubuntu heads out there will have success!

Kindly,
Rabbit



--
_,,,^..^,,,_
best, Eliot


--
_,,,^..^,,,_
best, Eliot

VMMaker class-generateVMPlugins.st (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Ubuntu 20.04 build steps after opensmalltalk-vm clone.

Levente Uzonyi
In reply to this post by Eliot Miranda-2
 
Hi Eliot,

On Mon, 25 May 2020, Eliot Miranda wrote:

> So where are DSAPlugin and SHA2Plugin?  They're not in the standard source tree.

The Cryptography repository on squeaksource.com contains the code for the
plugins: http://squeaksource.com/Cryptography/CryptographyPlugins-ul.22.mcz .

I wrote the following mail when I published the plugins:

> Hi all,
>
> I've fixed the parameter validation of all plugins in the
> CryptographyPlugins package[1] and removed SHA256Plugin[2] because
> SHA2Plugin does the same and more.
> I ran the tests of the Cryptography package on my machine (64-bit linux)
> and all of them passed (except for those using SHA256Plugin obviously).
> Please review and test the code, and if everything looks good, I suggest
> adding all plugins as external to the official VMs.
>
>
> Levente
http://forum.world.st/CryptographyPlugins-td5113751.html


Levente
Reply | Threaded
Open this post in threaded view
|

Re: Ubuntu 20.04 build steps after opensmalltalk-vm clone.

Robert Withers-2
In reply to this post by Eliot Miranda-2
 

Hey Eliot, I just realized I had made 2 changes for plugin making. I added the 4 Crypto plugins to the plugins.ext but I ALSO removed DSAPrims from the plugins.int. I am thinking this is why DSAPlugin came as an external plugin.

K, r

On 5/25/20 2:41 PM, Eliot Miranda wrote:
Hi Rob,

On Mon, May 25, 2020 at 11:31 AM Robert Withers <[hidden email]> wrote:


On 5/25/20 2:23 PM, Eliot Miranda wrote:
i Rob, Hi Levente,
oscogvm$ ls src/plugins/ | egrep "DESPlugin|DSAPlugin|MD5Plugin|SHA2Plugin"
DESPlugin
MD5Plugin

So where are DSAPlugin and SHA2Plugin?  They're not in the standard source tree.

I made this change and it generated them.

I modified the in-image VMMaker method #generateVMPlugins to reflect the new Cryptography plugins:

  • "Cryptography Plugins:" DESPlugin DSAPlugin MD5Plugin SHA2Plugin

That results in rabbit@ganymede:~/tribe/opensmalltalk-vm$ ls src/plugins/ | egrep "DESPlugin|DSAPlugin|MD5Plugin|SHA2Plugin"
DESPlugin
MD5Plugin
SHA2Plugin

While the DSAPlugin is internal. Does the generateVMPlugins discard DSAPlugin as it was internal?


No.  There are two things to do here.

First, modify the manifest in BuildSqueakSpurTrunkVMMakerImage.st to load the plugins from the official repository.
Second, modify VMMaker class>>generateVMPlugins top include the new plugins.

Email me these two files and I'll integrate.
 

When I do the following, I get:

rabbit@ganymede:~/tribe/opensmalltalk-vm$ ll products/sqcogspur64linuxht/lib/squeak/5.0-202005170205/ | egrep "DESPlugin|DSAPlugin|MD5Plugin|SHA2Plugin"
-rwxr-xr-x 1 rabbit rabbit   29664 May 24 15:52 DESPlugin.so*
-rwxr-xr-x 1 rabbit rabbit   15528 May 24 15:52 DSAPlugin.so*
-rwxr-xr-x 1 rabbit rabbit   30696 May 24 15:52 MD5Plugin.so*
-rwxr-xr-x 1 rabbit rabbit   32392 May 24 15:52 SHA2Plugin.so*

I dunno beyond this data.

K, r


On Sun, May 24, 2020 at 1:24 PM Robert Withers <[hidden email]> wrote:
 

Hey everyone,

I just reinstalled my OS and erased my disk to get it to work right. A few issues that downgrading the version helps: LibreOffice, Adobe Acroread, Facebook Messenger clone called Caprine. These all required special versions.

Then I clone the opensmalltalk/vm, and proceed...

Image generation for VMMaker

I thought I would explain what I had to do to generate all sources and build a working build.linux64x64/squeak.cog.spur VM.

In /image I had to add the following scripts or update existing ones, I forget. We definitely need these two scripts:

  • buildspurtrunk64image.sh
  • updatevmmaker64image.sh

With running these I was able to come up with a Spur64VMMaker.image, with latest loaded. I modified the in-image VMMaker method #generateVMPlugins to reflect the new Cryptography plugins:

  • "Cryptography Plugins:" DESPlugin DSAPlugin MD5Plugin SHA2Plugin

The method version with the clone has a reference to SHA256Plugin which is no longer apropos.

I generate the vm and plugins.

Building dependencies

From the HowToBuild in the linux64x64 directory, I ran the following for installing support libraries for my brand new Ubuntu 20.04 OS:

  • sudo apt-get install uuid-dev libcairo2-dev libpango1.0-dev libgl1-mesa-dev libgl1-mesa-glx libssl-dev

In addition, my new shiny OS needed clang installed so I also ran:

  • sudo apt-get install clang

Running mvm:

First, I needed to update the plugins.ext file to reflect the new Cryptography plugins. I am attaching that file.

Finally, I am ready to build. Go to build.linux64x64/squeak.cog.spur/build/. I run the following:

  • build.linux64x64/squeak.cog.spur/build/$ .mvm > ../mvm.log
  • and after running I type Y and return to cause the script to make clean. (The clean? prompt is hidden given the stdout redirection. See it in the log).

Once the VM and Plugins are generated, I installed to my system by typing:

  • build.linux64x64/squeak.cog.spur/build/$ sudo make install

Now squeak is installed in my machine and I can run the following:

  • image/$ squeak Spur64VMMaker.image &
  • then save as rabbit.image

For my purposes, I now load my Crypto stuff and run all tests:

  • Installer ss
        project: 'Cryptography'; install: 'ProCrypto-1-1-1';
        project: 'Cryptography'; install: 'ProCryptoTests-1-1-1';
        project: 'Cryptography'; install: 'SSLLoader'.

Now I can pass all Crypto and ParrotTalk tests. SSL is still failing, expectedly.

Well I think this is accurate enough. As I have gone through all of this, already, I do not relish trying to replicate my steps. Hopefully the other Ubuntu heads out there will have success!

Kindly,
Rabbit



--
_,,,^..^,,,_
best, Eliot


--
_,,,^..^,,,_
best, Eliot