Development : : MorphOS Software Development Kit 3.16 (February 2021)
Posted By: ASiegel. on 2021/2/16 8:30:57

The MorphOS Team is proud to announce the immediate availability of the MorphOS 3.16 SDK, February 2021 release. This update includes a greatly enhanced GDB, with TUI, syntax highlighting and shared library debugging. Two new profiling utilities were added. EventProfiler may be used to instrument a applications and generate Chrome Debugger files that may be loaded into Wayfarer for analysis. Koprofiler is a sampling profile that can be used to record a selected thread. Several GG packages were also updated, including git, wget, nano and perl. Updated OpenSSH now comes with ssh-agent.

Our new SDK requires MorphOS 3.15 and about 2 GB of free disk space and can be found in our files section. As usual, a separate source package is available for download as well.

 
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    tolkien
    Joined: 2013/5/29
    Posts: 523
    From:
    Fantastic the tui gdb, both profilers, update git and other tools.
    Great work!
    MorphOS: PowerMac G5 - PowerBook G4 - MacMini.
    Classic: Amiga 1200/060 - A500 PiStorm
  • »2021/2/16 18:36
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    emeck
    Joined: 2014/7/15
    Posts: 173
    From:
    Thanks for the update.

    I'm interested in ssh-agent/ssh-add. I ran:
    ssh-agent sh

    and then:
    ssh-add.

    It found my key and prompted for the passphrase. After typing it, the output was:

    Identity added: path/to/key(email) which was correct

    But when I commit to github it still asks for my passphrase.

    Am I missing something?
    PowerBook 5.8 MorphOS 3.18
    Mac Mini MorphOS 3.18
  • »2021/2/17 19:29
    Profile
  • MorphOS Developer
    Piru
    Joined: 2003/2/24
    Posts: 587
    From: finland, the l...
    Quote:

    Am I missing something?

    Couple of things:
    - Did you add the public key to your profile at https://github.com/settings/keys?
    - Does ssh -T git@github.com work?

    It works just fine here:
    Code:

    Ram Disk:T> ssh-agent sh
    $ ssh-add
    Enter passphrase for xxxxx/.ssh/id_ed25519:
    Identity added: xxxxx/.ssh/id_ed25519 (username@host)
    $ ssh -T git@github.com
    The authenticity of host 'github.com (140.82.1.4)' can't be established.
    RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
    Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
    Warning: Permanently added 'github.com,140.82.1.4' (RSA) to the list of known hosts.
    Hi piru! You've successfully authenticated, but GitHub does not provide shell access.
    $


    I also have this in my .ssh/config:
    Code:
    Host github.com
    user git
    IdentityFile ~/.ssh/id_ed25519

    (Specifying the IdentityFile isn't absolutely necessary, but is nice style IMO, as then it will only attempt to use the key that I have configured at github.com)

    Then this will work just fine without password:
    Code:
    git clone github.com:user/repository.git


    [ Edited by Piru On 2021/2/18 1:23 ]
  • »2021/2/17 22:34
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    emeck
    Joined: 2014/7/15
    Posts: 173
    From:
    Thanks Piru!

    Got it working following your steps. Created also the .ssh/config file.

    Edit: Well, not quite. Opened a new shell to push commit to github for another project and it asked for the passphrase. Tried from MOS shell and inside the sh shell (after running ssh-agent sh). In both cases asked for the passphrase.

    So it worked during the shell session when the key was added, but it is not remembered in later sessions?
    [ Edited by emeck On 2021/2/18 22:13 ]

    [ Edited by emeck On 2021/2/18 22:15 ]
    PowerBook 5.8 MorphOS 3.18
    Mac Mini MorphOS 3.18
  • »2021/2/18 21:02
    Profile
  • MorphOS Developer
    jacadcaps
    Joined: 2003/3/5
    Posts: 3111
    From: Canada
    Sure your HOME: is set up correctly? This is done in Users preferences.
  • »2021/2/18 21:23
    Profile Visit Website
  • MorphOS Developer
    Piru
    Joined: 2003/2/24
    Posts: 587
    From: finland, the l...
    The "ssh-agent sh" method only applies to the specific shell started by ssh-agent.

    Meanwhile you can make it global so it applies to other sh instances though. It'll work as long as the ssh-agent is running.

    In the sh started with "ssh-agent sh" type:

    Code:
    echo setenv SSH_AUTH_SOCK $SSH_AUTH_SOCK


    Then copy paste output from this command to regular MorphOS shell. I know this is a bit cumbersome but I couldn't come up with a better solution for current SDK so far.

    I think I'll probably look into making "ssh-agent -D" setenv the variable directly for future MorphOS SDK releases. Then you could just execute it on the background from user-startup or so.

    [ Edited by Piru On 2021/2/19 1:13 ]
  • »2021/2/18 23:12
    Profile
  • MorphOS Developer
    Piru
    Joined: 2003/2/24
    Posts: 587
    From: finland, the l...
    Quote:

    I think I'll probably look into making "ssh-agent -D" setenv the variable directly for future MorphOS SDK releases. Then you could just execute it on the background from user-startup or so.

    I've now implemented it and the next SDK release will support the daemon mode.

    n.b. The February 2021 SDK ssh-agent won't work in daemon mode like this since the environment variable isn't set by it.
  • »2021/2/19 20:43
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    emeck
    Joined: 2014/7/15
    Posts: 173
    From:
    @jacadcaps
    Quote:

    Sure your HOME: is set up correctly? This is done in Users preferences.

    Yes, it is set in System/Users preferences.

    @Piru
    Code:
    echo setenv SSH_AUTH_SOCK $SSH_AUTH_SOCK

    Yes, it works. Thanks.


    Quote:

    Quote:

    I think I'll probably look into making "ssh-agent -D" setenv the variable directly for future MorphOS SDK releases. Then you could just execute it on the background from user-startup or so.

    I've now implemented it and the next SDK release will support the daemon mode.

    WOW! That was fast. Thanks!

    Iris, Wayfarer, Flowstudio, Hollywood, Designer, git and its recent improvements, and lots of other apps and tools we have... It makes it possible to use MorphOS daily not just for fun but productively.

    Again, THANKS to all! You are a great team.
    PowerBook 5.8 MorphOS 3.18
    Mac Mini MorphOS 3.18
  • »2021/2/20 6:44
    Profile
  • MorphOS Developer
    Piru
    Joined: 2003/2/24
    Posts: 587
    From: finland, the l...
    Quote:

    I couldn't come up with a better solution for current SDK so far.

    I figured it out. It's not very elegant but it should work.

    Helper scripts for running ssh-agent daemon as global service with February 2021 SDK:
    https://sintonen.fi/bin/ssh-agent-launcher.lha

    Requirements

    - February 2021 MorphOS SDK installed.

    Installation

    1. Extract the downloaded archive to SYS:
    lha x ssh-agent-launcher.lha SYS:

    2. Add the following line to s:user-startup:
    run >nil: s:ssh-agent-launcher

    3. Reboot

    After this you should be able to just use ssh-add directly.

    [ Edited by Piru On 2021/2/20 18:42 ]
  • »2021/2/20 16:39
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    emeck
    Joined: 2014/7/15
    Posts: 173
    From:
    Quote:



    Requirements

    - February 2021 MorphOS SDK installed.


    Quote:


    Installation

    1. Extract the downloaded archive to SYS:
    lha x ssh-agent-launcher.lha SYS:

    2. Add the following line to s:user-startup:
    run >nil: s:ssh-agent-launcher

    3. Reboot

    After this you should be able to just use ssh-add directly.
    [ Edited by Piru On 2021/2/20 18:42 ]

    Hello Piru.

    Downloaded and extracted the archive. Line added to the top of user-startup. Rebooted.

    Now if I understand correctly, using ssh-add directly:

    Code:

    Work:> ssh-add
    Could not open a connection to your authentication agent.
    Work:> sh
    $ ssh-add
    Could not open a connection to your authentication agent.


    Maybe I'm missing something?

    [ Edited by emeck On 2021/2/24 8:03 ]
    PowerBook 5.8 MorphOS 3.18
    Mac Mini MorphOS 3.18
  • »2021/2/24 7:02
    Profile
  • MorphOS Developer
    Piru
    Joined: 2003/2/24
    Posts: 587
    From: finland, the l...
    Quote:

    Maybe I'm missing something?


    Well, first lets check couple of things:
    1. Code:
    list s:ssh-agent-#?


    This should show the files as "-s--rwed"

    2. Code:
    status


    You should have ssh-agent, sed, bin:sh and xargs running (among other things). If, not what happens if you try Code:
    s:ssh-agent-launcher
    in shell?

    [ Edited by Piru On 2021/2/24 16:55 ]
  • »2021/2/24 14:47
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    emeck
    Joined: 2014/7/15
    Posts: 173
    From:
    Ok, here is the output:

    Code:

    Ram Disk:> list s:ssh-agent-#?
    Directory "s:" on Wednesday 24-Feb-21
    ssh-agent-launcher 106 -s--rwed Saturday 19:22:28
    ssh-agent-helper 59 -s--rwed Saturday 19:19:34
    2 files - 165 bytes used


    Code:

    Ram Disk:> status
    Process 2: Loaded as command: status
    Process 3: Loaded as command: MOSSYS:Net/WirelessManager
    Process 4: Loaded as command: MOSSYS:Net/b43
    Process 5: Loaded as command: bin:sh
    Process 6: Loaded as command: ssh-agent
    Process 7: Loaded as command: sed
    Process 8: Loaded as command: xargs
    Process 9: Loaded as command: MOSSYS:Ambient/Ambient
    PowerBook 5.8 MorphOS 3.18
    Mac Mini MorphOS 3.18
  • »2021/2/24 18:55
    Profile
  • MorphOS Developer
    Piru
    Joined: 2003/2/24
    Posts: 587
    From: finland, the l...
    I think I got it sorted out now, redownload the archive, extract it again (overwriting the old files) and reboot. It should work now.

    Please let me know if you still have issues.
  • »2021/2/25 5:42
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    emeck
    Joined: 2014/7/15
    Posts: 173
    From:
    Quote:

    I think I got it sorted out now, redownload the archive, extract it again (overwriting the old files) and reboot. It should work now.

    Please let me know if you still have issues.


    Hi. Can't access the archive:

    Forbidden
    You don't have permission to access this resource.
    PowerBook 5.8 MorphOS 3.18
    Mac Mini MorphOS 3.18
  • »2021/2/25 19:23
    Profile
  • MorphOS Developer
    Piru
    Joined: 2003/2/24
    Posts: 587
    From: finland, the l...
    Fixed, sorry about that.
  • »2021/2/25 20:55
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    emeck
    Joined: 2014/7/15
    Posts: 173
    From:
    Quote:

    Fixed, sorry about that.


    Works like a charm. Thank you very much!
    PowerBook 5.8 MorphOS 3.18
    Mac Mini MorphOS 3.18
  • »2021/2/26 8:02
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    BSzili
    Joined: 2012/6/8
    Posts: 559
    From: Hungary
    I was wondering, could setup-cross-sdk.sh be updated too to build GCC 10? I tried but couldn't build GCC 7 or 9 either from the current SDK.

    [ Edited by BSzili On 2021/3/20 9:01 ]
  • »2021/3/20 5:47
    Profile Visit Website