Re: Help with Rust packaging

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks Miro! %cargo_prep solved the problem and now I have a different one I have to tackle :D

Thanks a lot!

Lumír

On 1/9/23 11:23, Miro Hrončok wrote:
On 07. 01. 23 23:41, Lumír Balhar wrote:
Hi.

I'm working on packaging new version of Juyter Notebook and Lab into Fedora and I have a problem with one Rust/Python package - y-py.

The problem is that when I'm building python-y-py in COPR https://copr.fedorainfracloud.org/coprs/lbalhar/notebook/builds/ I'm getting

error: no matching package named `lib0` found

It seems to be obvious but the situation is more complex. y-py upstream uses maturin as a build backend which is not available in Fedora yet so I had to add some metadata manually to port it to setuptools-rust, see the specfile: https://download.copr.fedorainfracloud.org/results/lbalhar/notebook/fedora-rawhide-x86_64/05201544-python-y-py/python-y-py.spec

The dependency it complains about (rust-lib0) is not yet available in Fedora but it is available in the COPR and as you can see in the build log, it is also installed: https://download.copr.fedorainfracloud.org/results/lbalhar/notebook/fedora-rawhide-x86_64/05201544-python-y-py/builder-live.log.gz

I've tried to play around with the Cargo.toml config and I've removed the versions from the requirements but I have no idea how to fix this problem. Might be the rust-lib0 package broken?

My best guess is that without %cargo_prep, the libraries are not searched for in the RPM-installed locations but rather in some project-local cargo directory.

I suggest adding %cargo_prep to %prep and use %cargo_generate_buildrequires in %generate_buildrequires instead of manualyl specifying the dependencies.

This should be possible:

  %generate_buildrequires
  %cargo_generate_buildrequires
  %pyproject_buildrequires


_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux