Bug 1536349

Summary: ca-legacy uses /usr/bin/sln and doesn't require it (and it doesn't exist anymore)
Product: [Fedora] Fedora Reporter: Igor Gnatenko <ignatenko>
Component: ca-certificatesAssignee: Kai Engert (:kaie) (inactive account) <kengert>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: fweimer, jorton, kengert, msuchy, pwouters, tis, tmraz
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ca-certificates-2017.2.20-5.fc28 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-01-19 12:20:32 UTC Type: Bug
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: 1531546    
Bug Blocks:    

Description Igor Gnatenko 2018-01-19 08:23:00 UTC
https://src.fedoraproject.org/rpms/glibc/c/d8e1573f9c8c28f6390791c329512045f0c52868?branch=master

When building packages in koji, shows warning:
DEBUG util.py:439:  /usr/bin/ca-legacy: line 38: sln: command not found

Comment 1 Kai Engert (:kaie) (inactive account) 2018-01-19 11:21:07 UTC
In the past, I had been asked to avoid using the "ln" command, as it had introduced a circular dependency. The coreutils package had an indirect dependency on ca-certificates, which means ca-certificates shouldn't depend on coreutils.

Comment 2 Kai Engert (:kaie) (inactive account) 2018-01-19 11:27:10 UTC
Today in F28:
- coreutils requires libcrypto/openssl
- openssl requires openssl-libs
- openssl-libs requires ca-certificates

I conclude that ca-certificates shouldn't depend on coreutils?

Comment 3 Kai Engert (:kaie) (inactive account) 2018-01-19 11:54:51 UTC
Discussed with Florian. He recommends that we use ln, without requiring coreutils. We already use mkdir in %install without requiring coreutils.

Comment 4 Kai Engert (:kaie) (inactive account) 2018-01-19 12:20:32 UTC
fixed

Comment 5 Miroslav Suchý 2018-02-08 09:45:02 UTC
However, this "solution" causes
    Installing       : ca-certificates-2017.2.20-6.fc28.noarch
    Running scriptlet: ca-certificates-2017.2.20-6.fc28.noarch                                                          68/171 
/usr/bin/ca-legacy: line 38: ln: command not found

Can be easily reproduced with mock for any build which use ca-cartificates as build deps transitively (i.e. nearly every build).

Comment 6 Tuomo Soini 2018-02-08 10:17:52 UTC
That's exactly the original error which is caused by cyclic dependency.