Bug 2318048

Summary: Review Request: rust-serial-unix - Serial port implementation for Unix
Product: [Fedora] Fedora Reporter: solomoncyj
Component: Package ReviewAssignee: Nobody's working on this, feel free to take it <nobody>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 41CC: decathorpe, package-review
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-12-06 02:52:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2318054, 2318059    
Bug Blocks: 2321312    

Comment 1 Fabio Valentini 2024-10-11 15:18:25 UTC
Two things:

1. This is a library-only package. It doesn't look like it was generated by rust2rpm? It looks like it was generated from a checkout of your own (?) GitHub fork, and not from the sources on crates.io (which is a MUST for library crates). You MUST generate the spec file with "rust2rpm serial-unix", not from local sources.

2. This project is *really old* (last updated over 7 years ago). Are you *absolutely sure* you need it for what you're working on?

Comment 2 solomoncyj 2024-10-11 15:45:08 UTC
1. rust2rpm *will not* work on the crate from crates.io due to the  path dependency
2. ``` cargo tree -i serial-unix
serial-unix v0.4.0
└── serial v0.4.0
    └── portable-pty v0.8.1
        └── linutil_tui v24.9.28 (/home/solomoncyj/Downloads/linutil/tui)
```

Comment 3 Fabio Valentini 2024-10-11 16:05:28 UTC
> 1. rust2rpm *will not* work on the crate from crates.io due to the  path dependency

Well ... then patch it? "rust2rpm -p serial-unix", remove "path = ...", done.
There's no "if I don't feel like it" excpetion to the "MUST be from crates.io sources" rule.

> 2. ``` cargo tree -i serial-unix

*sigh* ok, it looks like it's a hard dependency, but I wonder why anybody would need this.

Comment 5 Fabio Valentini 2024-10-20 10:51:40 UTC
I don't have time to continue with this review, so I'm marking it as "not taken" so it can be picked up by somebody else.