Bug 2379294
| Summary: | post-without-tmpfile-creation has different ideas than systemd-rpm-macros | ||
|---|---|---|---|
| Product: | [Fedora] Fedora EPEL | Reporter: | Ulrik Haugen <ulrik.haugen> |
| Component: | rpmlint | Assignee: | Tom "spot" Callaway <spotrh> |
| Status: | NEW --- | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | epel10 | CC: | j, mhroncok, spotrh, twoerner |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | --- | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 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: | |||
Description of problem: In a specfile with: %pre %{tmpfiles_create_package %{name} %{S:4}} rpmlint warns for two reasons about post-without-tmpfile-creation: First that i called tmpfiles_create_package in %pre instead of %post (as that is what's suggested in /usr/lib/rpm/macros.d/macros.systemd from systemd-rpm-macros-257-9.el10_0.1.noarch). Second because that macro expansion does not match "systemd-tmpfiles --create .* pkgname" although that might also be somewhat handy since that means i don't get a pre-with-tmpfile-creation warning as well. In my example i can't think of a reason that tmpfiles_create_package has to go in one or the other so if the example in macros.systemd is ill advised please let me know and i'll file a bug against systemd as well. In any case i think rpmlint/checks/TmpFilesCheck.py should recognise the expansion of tmpfiles_create_package, perhaps in addition to tmpfiles_create but that macro is deprecated according to /usr/lib/rpm/macros.d/macros.systemd. Version-Release number of selected component (if applicable): rpmlint-2.7.0-3.el10_1.noarch How reproducible: always Steps to Reproduce: Call rpmlint on binary package created according to the example above the macro definition of %tmpfiles_create_package(). Actual results: Warning about post-without-tmpfile-creation... Expected results: No warnings. Additional info: