Bug 979443
Summary: | RPM: scriptlet: RPM_INSTALL_PREFIX not defined by default | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Yann Droneaud <yann> | ||||||||
Component: | rpm | Assignee: | Panu Matilainen <pmatilai> | ||||||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||
Severity: | unspecified | Docs Contact: | |||||||||
Priority: | unspecified | ||||||||||
Version: | 19 | CC: | ffesti, jzeleny, novyjindrich, packaging-team-maint, pknirsch, pmatilai | ||||||||
Target Milestone: | --- | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | rpm-4.11.1-1.fc19 | Doc Type: | Bug Fix | ||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2013-07-08 00:54:48 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: | |||||||||||
Attachments: |
|
Description
Yann Droneaud
2013-06-28 14:26:36 UTC
Created attachment 766592 [details]
SPEC: empty package with Prefix:
This SPEC file produces an empty package. The Prefix: tag line in SPEC and --prefix on command line is ignored by RPM in Fedora 17 and Fedora 19 when installing (rpm -i) and uninstalling (rpm -e).
This package is not showing a regression between Fedora 17 and Fedora 19,
but it could be good to have RPM_INSTALL_PREFIX for scriptlets ...
Created attachment 766593 [details] SPEC: non empty package with Prefix: This SPEC file produces a test package. Tested when installing (rpm -i) and uninstalling (rpm -e). The Prefix: tag line in SPEC is reported in RPM_INSTALL_PREFIX variable on Fedora 17 but not on Fedora 19. --prefix on command line is reported in RPM_INSTALL_PREFIX variable on Fedora 17 and Fedora 19. This package demonstrates a regression between Fedora 17 and Fedora 19. Note: like attachment #766592 [details], this SPEC file is a derivative work of http://www.redhat.com/archives/rpm-list/2003-May/msg00486.html Created attachment 766602 [details]
Script: git bisect script
This is the script I used to find the commit 5d3018c4ed476b1b7ac18e2573af517f872cb303,
using git bisect.
git bisect was ran inside a dedicated "mock" chroot in order to not clobber a real system: the script backup the RPM database, install/remove a package, restore the RPM database:
git bisect start
git bisect good rpm-4.9.1.3-release
git bisect bad rpm-4.11.0.1-release
git bisect run /tmp/BISECT-979443.sh /builddir/build/RPMS/test-package-nonempty-1.0-2.noarch.rpm
Right, its indeed an unintended behavior change, aka regression. Thanks for the extremely detailed report :) Will fix. rpm-4.11.1-1.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/rpm-4.11.1-1.fc19 Package rpm-4.11.1-1.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing rpm-4.11.1-1.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-12411/rpm-4.11.1-1.fc19 then log in and leave karma (feedback). rpm-4.11.1-1.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report. |