Skip to content

Reproducing rust/cargo packages for sb2 #12

@rubdos

Description

@rubdos

Hi! This is kind-of a continuation of the derailed discussion of #11.

I've finally been able to build rust.spec (now with Rust 1.51), and I have a few questions and proposals.

First a few observations:

  1. The current version of this package can be built for three architectures. However, only on x86/i486 this yields an actual package; on aarch64/armv7hl this produces a stub that says "This is the stub rustc. If you see this, scratchbox2 is not working".
  2. The version -git3 (rust-1.44.0+git3-1.2.3.jolla.armv7hl) is what gets shipped in the Application SDK. Until that version (in fact, until git5/31dd484), the rust.spec in here produced an actual rustc/cargo that worked in sb2 for emulated building of applications. That commit changed this behaviour to produce stubs, and changed the paradigm from sb2-building to Platform SDK cross compiling.
  3. This repository still contains the 0006-Provide-ENV-controls-to-bypass-some-sb2-calls-betwee.patch patch that makes it possible to compile a rustc that runs in sb2.

Now a few questions:

  1. Are my observations correct?
  2. Where is Jolla headed with this package? Are you targeting the Application SDK or the Platform SDK, or both?
  3. What will become of the Application SDK Rust package, will this be abandoned and be a forever 1.44+git3, or will this eventually get an update?
  4. This thing was really painful to build. As in: I have never felt that enraged and emotional about a piece of software since I left MS Windows when I was 15. That's ten years ago. I will open a merge request with build instructions, let's document this thing together, and keep the documentation in sync.
  5. I still would like to get rid of the crappy build "system" that I use for Whisperfish, in favour of something mainstream, i.e., I want to build Whisperfish in sfdk, ideally, or in Platform SDK if necessary. The former is preferred (because there's a ton of invoking gcc that I don't want to cross build anymore). How can I help Jolla to get Rust as a tier-1 language for SailfishOS, at least as a compiler for stupid CLI applications?

Best regards,

Ruben

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions