Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1442015
Summary: | rpmbuild: a way to request that /var/rpm/rpm-tmp* files are not removed | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Pavel Raiskup <praiskup> |
Component: | rpm | Assignee: | Packaging Maintenance Team <packaging-team-maint> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 27 | CC: | ignatenko, kardos.lubos, mjw, packaging-team-maint, pmatilai, vmukhame |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | rpm-4.14.0-0.rc1.1.fc27 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-09-30 06:20:07 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: |
Description
Pavel Raiskup
2017-04-13 10:23:46 UTC
https://github.com/rpm-software-management/rpm/blob/054f3ce53ce71dfdcae5559aa4a7f9cbb1df9bae/build/build.c#L53 is what runs the build-side scripts, not rpmscript.c. The build-side only cleans up scripts which exited succesfully, see https://github.com/rpm-software-management/rpm/blob/054f3ce53ce71dfdcae5559aa4a7f9cbb1df9bae/build/build.c#L188: if (scriptName) { if (rc == RPMRC_OK) (void) unlink(scriptName); free(scriptName); } So technically there is a way: exit non-zero from scriptlet. This bug appears to have been reported against 'rawhide' during the Fedora 27 development cycle. Changing version to '27'. Implemented upstream: https://github.com/rpm-software-management/rpm/commit/ee33773218d5bda08a32c3775101b8aa211f2b13 rpm-4.14.0-0.rc1.1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-b46d2f3c29 rpm-4.14.0-0.rc1.1.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-b46d2f3c29 rpm-4.14.0-0.rc1.1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report. |