Bug 2007995

Summary: Review Request: rust-yansi - Rust terminal color painting library
Product: [Fedora] Fedora Reporter: Jan Baudisch <jan>
Component: Package ReviewAssignee: Michel Lind <michel>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: michel, package-review
Target Milestone: ---Flags: michel: fedora-review?
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-03 21:21:51 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:

Comment 1 Michel Lind 2022-02-03 05:48:52 UTC
Taking this review (removing the blocker on FE-NEEDSPONSOR since you're sponsored now!)

One change request: so the %bcond_without you see at the top of the spec as generated by rust2rpm actually controls whether that flag is enabled or not, see https://rpm-software-management.github.io/rpm/manual/conditionalbuilds.html

so:

%bcond_without check means %{with check} by default, unless compiled --without check

If the Rust compiler we have is too old for the test suite, then you just flip that definition to be %bcond_with check, and put a comment above it, no need to comment out the entire %check section

This makes it easy to test locally if you think checks can be enabled again:

fedpkg srpm (or rpmbuild -bs rust-yansi.spec)
mock /path/to/rust-yansi-*.src.rpm --with check

Comment 2 Jan Baudisch 2022-02-13 13:02:31 UTC
Thank you for pointing this out. I changed it and updated the spec and srpm.

Comment 3 Jan Baudisch 2022-05-03 21:21:51 UTC

*** This bug has been marked as a duplicate of bug 2079341 ***