#125 cdylib-only crates break rust2rpm
Closed: Fixed a year ago by decathorpe. Opened 3 years ago by decathorpe.

$ rust2rpm -s sequoia-octopus-librnp -p
Traceback (most recent call last):
  File "/usr/bin/rust2rpm", line 33, in <module>
    sys.exit(load_entry_point('rust2rpm==16', 'console_scripts', 'rust2rpm')())
  File "/usr/lib/python3.9/site-packages/rust2rpm/__main__.py", line 295, in main
    raise ValueError("No bins and no libs")
ValueError: No bins and no libs

While the error message is technically true (no Rust binary, no Rust library), it would be very helpful if rust2rpm at least copied back the patch diff file, or even created a partial .spec file (just one without using %cargo_install, in this case).


Metadata Update from @decathorpe:
- Issue set to the milestone: 23

2 years ago

This will require significant rewrite, so this won't happen in time for v23.

Metadata Update from @decathorpe:
- Issue set to the milestone: 24 (was: 23)

a year ago

This should be fixed with rust2rpm v24.

The %install scriptlet will be empty, since there's no way to know how to handle the install for shared libraries programmatically.

Two possibilities are:

  • use cargo cbuild / cargo cinstall
  • use patchelf to set the soname / soversion and copy files to buildroot manually

Metadata Update from @decathorpe:
- Issue close_status updated to: Fixed
- Issue set to the milestone: None (was: 24)
- Issue status updated to: Closed (was: Open)

a year ago

Login to comment on this ticket.

Metadata