Bug 1319150

Summary: incorrect use of Requires(pre)?
Product: [Fedora] Fedora Reporter: Honza Silhan <jsilhan>
Component: fedora-releaseAssignee: Dennis Gilmore <dennis>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dennis, jdisnard, kevin, pbrobinson, sgallagh, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-18 16:24:09 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:

Description Honza Silhan 2016-03-18 15:55:56 UTC
We've identified your package for having `Requires(pre)` RPM flag without `Requires` [1]. `Requires(pre)` rpm tag could be interpreted wrongly, so to prevent any harm to Fedora users I am notifying you about this fact.

Any package that is specified in `Requires(pre)` could be freely removed. Citing from RPM pages:
```
If there are no other dependencies on the package providing /usr/sbin/useradd, that package is permitted to be removed from the system after installation(!)
``` [2]

If you really rely on dependency just during the installation process and your package don't necessary require the dependency for the proper run of your application then ignore this bug report and close it as NOTABUG. Otherwise add to your spec file additional `Requires` for the dependency, please.


[1] paste.fedoraproject.org/341611/82208431
[2] http://www.rpm.org/wiki/PackagerDocs/MoreOnDependencies

Comment 1 Dennis Gilmore 2016-03-18 16:24:09 UTC
do not use paste.fedoraproject.org  links in buzilla, they are short lived. the bugs are forever. fedora-release also does not have a Require(pre) in it. Please be sure to make less noise. there is two Requires(post) 

rpm -qp fedora-release-server-25-0.6.noarch.rpm --verbose --requires 
manual: cockpit-bridge
manual: cockpit-networkmanager
manual: cockpit-shell
manual: cockpit-storaged
manual: cockpit-ws
config: config(fedora-release-server) = 25-0.6
manual: fedora-release = 25-0.6
manual: openssh-server
manual: rolekit
rpmlib: rpmlib(BuiltinLuaScripts) <= 4.2.2-1
rpmlib: rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib: rpmlib(FileDigests) <= 4.6.0-1
rpmlib: rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib: rpmlib(PayloadIsXz) <= 5.2-1
post: sed
manual: systemd
post: systemd

Comment 2 Zbigniew Jędrzejewski-Szmek 2016-03-18 16:25:30 UTC
Actually sed was not used. I removed "Requires(post): sed".