[opensuse-factory] Pinephone: Squeekboard and Rust dependencies
Hi, I am trying to port to OBS a package related with on screen keyboard for Pinephone but i have some problems with Rust dependencies, could anyone give me some tips to continue? https://build.opensuse.org/package/show/home:alefnode:pinephone/squeekboard Greetings! -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 2020-07-16 08:55, Adrian Campos wrote:
Hi,
I am trying to port to OBS a package related with on screen keyboard for Pinephone but i have some problems with Rust dependencies, could anyone give me some tips to continue?
https://build.opensuse.org/package/show/home:alefnode:pinephone/squeekboard
The situation of rust in OBS still needs a lot of improvement. Meanwhile you can try to use cargo vendor, to fetch locally the versions that you require. Alternatively you can try to add devel:languages:rust and devel:languages:rust:crates in your repo path, and update the crates that are missing or outdated. Kanidm is an application written in rust, and building in OBS (home:firstyear:kanidm/kanidm), maybe you can use it as an example to make changes in your spec. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Hi, On Thu, 16 Jul 2020 08:55:03 +0200 Adrian Campos <adriancampos@teachelp.com> wrote:
I am trying to port to OBS a package related with on screen keyboard for Pinephone but i have some problems with Rust dependencies, could anyone give me some tips to continue?
You can take a look at: https://build.opensuse.org/package/show/network:utilities/newsboat In the spec file I create the cargo config file. I then download the tarball, extract it, run `cargo vendor`. Create a tarball out of the vendor directory and use that one. ``` osc co network:utilities/newsboat cd network:utilities/newsboat tar xfv *gz cd newsb* cargo vendor tar c vendor/ | xz > vendor.tar.xz cp vendor.tar.xz .. ``` Then you add the vendor tarball as source and adapt the %setup call. Hope this helps. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (3)
-
Adrian Campos
-
aplanas
-
Michael Vetter