Bug 38474
Summary: | rpm doesn't give the option of creating symlinks when relocating file locations | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | fruitbat | ||||
Component: | rpm | Assignee: | Jeff Johnson <jbj> | ||||
Status: | CLOSED WONTFIX | QA Contact: | David Lawrence <dkl> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 7.1 | Keywords: | FutureFeature | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i386 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Enhancement | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2001-04-30 23:28:59 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: | |||||||
Attachments: |
|
Description
fruitbat
2001-04-30 23:26:14 UTC
Created attachment 16926 [details]
"Actual" and "Expected" results
While I understand the need, rpm --relocate is not the right place to implement this, there are far too many problems with overloading --relocate. For example, should directories be created or symlinked. etc? You can detect that the package is being relocated, create the symlinks in %post, add a %verifyscript section to check that, if relocated, the symlinks are correct, and filnally remove, if relocated, the symlinks in %preun if erasing the package if you wish rpm to manage the functionality. Alternatively, write a script, possibly using rpm -q, to create the shadow directories and symlink the files. |