Bug 2329745

Summary: F41FailsToInstall: rust-sev+crypto_nossl-devel
Product: [Fedora] Fedora Reporter: Fedora Fails To Install <fti-bugs>
Component: rust-sevAssignee: Tyler Fanelli <tfanelli>
Status: CLOSED ERRATA QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 41CC: berrange, crobinso, decathorpe, rust-sig, slopezpa, tfanelli, virt-maint
Target Milestone: ---Flags: tfanelli: needinfo-
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rust-sev-4.0.0-8.fc41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-12-24 01:46:34 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:    
Bug Blocks: 2260877    

Description Fedora Fails To Install 2024-12-01 15:39:59 UTC
Hello,

Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py
If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/

Your package (rust-sev) Fails To Install in Fedora 41:

can't install rust-sev+crypto_nossl-devel:
  - nothing provides (crate(x509-cert/default) >= 0.2.5 with crate(x509-cert/default) < 0.3.0~) needed by rust-sev+crypto_nossl-devel-4.0.0-4.fc41.noarch
  
If you know about this problem and are planning on fixing it, please acknowledge so by setting the bug status to ASSIGNED. If you don't have time to maintain this package, consider orphaning it, so maintainers of dependent packages realize the problem.


If you don't react accordingly to the policy for FTBFS/FTI bugs (https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/), your package may be orphaned in 8+ weeks.


P.S. The data was generated solely from koji buildroot, so it might be newer than the latest compose or the content on mirrors. To reproduce, use the koji/local repo only, e.g. in mock:

    $ mock -r fedora-41-x86_64 --config-opts mirrored=False install rust-sev+crypto_nossl-devel


P.P.S. If this bug has been reported in the middle of upgrading multiple dependent packages, please consider using side tags: https://docs.fedoraproject.org/en-US/fesco/Updates_Policy/#updating-inter-dependent-packages

Thanks!

Comment 1 Fedora Update System 2024-12-04 06:28:56 UTC
FEDORA-2024-b54685734d (rust-sev-4.0.0-6.fc41, rust-sevctl-0.6.0-2.fc41, and 1 more) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-b54685734d

Comment 2 Fabio Valentini 2024-12-04 14:58:07 UTC
Hey, it seems like there's a misunderstanding of how optional dependencies are treated here ...
https://src.fedoraproject.org/rpms/rust-sev/c/d442d79939812a99c7a3031e74b4e3c8dc6eb1f6?branch=rawhide

Looking at your commit upstream too:
https://github.com/virtee/sev/commit/f8927227b409d955796f5952fb7ff15161a6a389

Optional dependencies *are* features. You can verify this by inspecting the output of "cargo metadata".
The only way to "hide" them from the public API is by using them with the "dep:" syntax, as done in the commit.

But without that, optional dependencies *are* features, they aren't "mistaken" for them. rust2rpm does the correct thing here.

As such, the commit you pushed to the rust-sev package is wrong, and introduces a broken dependency:

"""
$ repoquery --whatrequires rust-sev+rdrand-devel 
rust-sev+openssl-devel-0:4.0.0-4.fc42.noarch
"""

Comment 3 Cole Robinson 2024-12-15 00:52:41 UTC
Fabio thanks for the info yet again. Pulling the `dep:` change from upstream and letting rust2rpm handle it lets me install the whole package output.

Comment 4 Fedora Update System 2024-12-15 01:27:31 UTC
FEDORA-2024-158690ab96 (rust-sev-4.0.0-8.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-158690ab96

Comment 5 Fedora Update System 2024-12-16 02:53:59 UTC
FEDORA-2024-158690ab96 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-158690ab96`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-158690ab96

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2024-12-24 01:46:34 UTC
FEDORA-2024-158690ab96 (rust-sev-4.0.0-8.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.