Bug 103335
Summary: | RFE: provide a way to override the platform | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Raw Hide | Reporter: | Enrico Scholz <rh-bugzilla> | ||||
Component: | rpm | Assignee: | Paul Nasrat <nobody+pnasrat> | ||||
Status: | CLOSED DEFERRED | QA Contact: | Mike McLean <mikem> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 1.0 | CC: | leonard-rh-bugzilla | ||||
Target Milestone: | --- | Keywords: | FutureFeature | ||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Enhancement | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2006-01-06 16:31:52 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
Enrico Scholz
2003-08-28 23:15:39 UTC
Created attachment 94057 [details]
rpm-platform.patch
patch is untested but on the first glance, it should be compilable.
This seems a bit of a half baked solution, although I can understand you don't want to touch /etc/rpm/platform every time. A real fix would be a command line switch (--targetarch). Now how about adding a patch for that ;) ? Why half baked? Configuration through environment variables is an often used and very effective solution (e.g. think on all the *_proxy variables or TERM or TZ or ...). A CLI switch does not really help since tools like apt or yum would not know how to use it. AFAIR, reading of /etc/rpm/platform happens *very* early and before CLI options are evaluated. The latter fact makes it impossible too, to use a %macro for it. I guess you are right. Your argumentation completely convinced me ;-) . No way is rpm arch going to be set from an RPM_PLATFORM environment variable. Teaching install/erase/upgrade modes about --target (which has already been done for --query --specedit) is an alternative. Deferred until somewhen ... |