Mailinglist Archive: opensuse-buildservice (48 mails)

< Previous Next >
[opensuse-buildservice] Re: Build dependency rust cargo packages
Am 14.10.2018 18:01, schrieb Andreas Schwab:
On Okt 14 2018, Markus Kolb <suse+ml-opensuse-buildservice@xxxxxxxxxxxx> wrote:

is it possible to build binaries on OBS which depend on packages installed
by rust cargo?
cargo wants to download from with curl library.

Build workers have no network connectivity at all. You need to make
sure all build dependencies are present in the build root.


Yes. That is the cause of the error.
The question is what is the official way to build these rpms?

I'm using now the cargo-vendor package.
I've downloaded the cargo-package-source, called cargo-vendor over it, tar(ed) the package-source with vendor directory and use this as a spec-source.
Modify ~/.cargo/config in the build worker chroot with the prep-step in spec-file for using the vendor directory.

But I've thought of a build service which would handle this?!

Another way would be to use rust2rpm command, I guess.
But I've no idea how to find the 1st crate, which has no build dependency on another crate.

And I think, that the versioned dependencies of cargo packages might be a problem for rpm.
cargo packages can/must be installed in different versions next to each other.
rust2rpm makes the cargo package version to rpm package version. So a newer one will replace/update other versions.
This breaks the dependency tree of cargo packages.
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >