Replies: 11 comments 37 replies
-
In ubuntu we maintain rust toolchains in all releases, with regular updates to newer versions due to maintaining ability to build Firefox and Linux Kernel. In general, Ubuntu welcomes use of rust in the system components and kernel. Note that linux kernel currently only has x86 config spec file for rust support. It would be nice for kernel Z maintainers to basically copy LLVM config and integrate it with rust support. |
Beta Was this translation helpful? Give feedback.
-
@ngueorguiev fyi, I couldn't find your GitHub tag at first. |
Beta Was this translation helpful? Give feedback.
-
For completeness I will state that we don't have any network connectivity during the builds, so every dependency needs to resolve from the existing Fedora (or CentOS Stream or RHEL) repositories. I am expecting the new tools will require some Rust based libraries, but hopefully nothing too fancy :-) |
Beta Was this translation helpful? Give feedback.
-
@sharkcz @frank-heimes @ngueorguiev Have you had any time to test if you can build a package with the resources we gave you? |
Beta Was this translation helpful? Give feedback.
-
I managed to build pvinfo, on Ubuntu, using debcargo / dh-cargo and all dependencries from the ubuntu archive itself (i.e. without access to crates.io / using OS provided dependencies). All of them look trivial, some of them are missing on Jammy, but that can be solved with a couple of SRUs or by vendoring deps. I am happy with this as is. I have no concerns about the dependencies you are using, or if you want to add more dependencies in the future. There is no need for you to restrict yourself in any way. Ubuntu is more rust friendly than Fedora ;-) Note about use of workspace: |
Beta Was this translation helpful? Give feedback.
-
@xnox @sharkcz @frank-heimes @ngueorguiev Do you care about If you do not use the |
Beta Was this translation helpful? Give feedback.
-
We've just pushed the recent changes of our Rust integration to the The branch now also includes the preview of the new tool |
Beta Was this translation helpful? Give feedback.
-
Yup, new packages are needed. They are in that COPR repo too. Just grab them there via builds/repofile or you can install them locally after enabling that copr repo
They either vendor the dependencies or use minimal external dependencies in rust or both.
Thank you. :) I have been trying to hack something together within the Fedora packaging framework, but I haven't had much success yet. I need to do a deeper dive on the rustc/cargo's config structure and inheritance. |
Beta Was this translation helpful? Give feedback.
-
for the record, librsvg2 is an example that contains Rust source code, provides a normal shared library and uses a classic build system, see https://src.fedoraproject.org/rpms/librsvg2/blob/rawhide/f/librsvg2.spec |
Beta Was this translation helpful? Give feedback.
-
fyi, release v2.29.0 now has Rust support: https://github.com/ibm-s390-linux/s390-tools/releases/tag/v2.29.0 |
Beta Was this translation helpful? Give feedback.
-
Hello, When I am trying to build pvsecret in release mode:
The s390-tools are in the latest version 2.29.0. Is it "normal" or "as expected"? Thanks. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
there is now a separate branch that showcases the integration of Rust written tools into the currently used Makefile based buildsystem of s390-tools. Since Rust comes with it's own buildsystem (Cargo), make simply calls into Cargo without any further interference.
Build requirements are:
There is a new
common_rust.mak
file that defines all Cargo calls. Build targets arerust_build
,rust_clean
, andrust_test
.These are not supposed to be called directly. When working on Rust tools, Cargo should be used during development.
Per default, Cargo is called with the
--quiet
flag to avoid any noise in the pretty print of the make output. SpecifyingV=1
will display all Cargo output.The
pvinfo
tool presented in this POC branch should be considered an example and is not supposed to be an official or upcoming tool.This preview is primarily targeted towards distribution package maintainers to gather feedback for Rust related packaging.
@sharkcz @frank-heimes adding you for your awareness.
Please test and share your experience and let us know what could be improved to make it easier for packaging.
https://github.com/ibm-s390-linux/s390-tools/tree/rustRelease v2.29.0 now has Rust support: https://github.com/ibm-s390-linux/s390-tools/releases/tag/v2.29.0
Beta Was this translation helpful? Give feedback.
All reactions