Red Hat Bugzilla – Bug 514805
Patch 125953-19 does not get converted to mpm by solaris2mpm.
Last modified: 2016-07-03 20:54:27 EDT
Escalated to Bugzilla from IssueTracker
Event posted on 07-22-2009 11:00am EDT by savas
solaris2mpm gets the architecture a patch applies to from the README.* file in the patch. The _normalize_arch function in solaris2mpm.py does not understand the x86 value in the "Relevant Architectures" field.
At the bottom of this entry is a patch to _normalize_arch that adds x86 as valid architectures (converts x86 to i386).
Another solution would be to get the architecture of a patch from the patchinfo file in the PATCH_ARCH field which in the case of this patch is "i386". I'm not sure the logic of using the README file and not the patchinfo file.
--- solaris2mpm.py.orig Wed Jul 22 10:13:40 2009
+++ solaris2mpm.py Wed Jul 22 10:25:24 2009
@@ -939,7 +939,7 @@
arch = "sparc"
# fix the arch label
- if arch in ("intel", "i86pc", "i386.i86pc", "i386 i386.i86pc"):
+ if arch in ("intel", "x86", "X86", "i86pc", "i386.i86pc", "i386 i386.i86pc"):
arch = "i386"
elif re.match(".*sun4.*", arch, re.IGNORECASE):
This event sent from IssueTracker by xdmoon [SEG - RHN]
Partially fixed by BZ 569946 (commit d71dab20e42b8794c037d89578a9170597bf7095).
But I there was only added x86, I will add X86 too.
Commited to spacewalk-git as commit 63dc945b58821b4e51ca2cdd0e5d7ea9246bdf13
Commited to satellite.git
Commits: fd6ad0c538c35f9b94c566c8b99dad9ebfa9d347 .. b7a8c9eb94de4caabaaaceff82f8b4008ed3a207
And I had to cherrypick e7a174a368ee496f3a7928bedb0e46f2a1ceede4
Err. Ignore comment #8. It was meant for different window.
Chery picked to satellite.git as commit c3c2c2241a262440f330ad871534e94570852696
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
The solaris2mpm utility now recognizes both "x86" and "X86" as valid architecture strings.