On Mon, 2009-12-14 at 12:41 -0600, Andy Speagle wrote: > I'm managing RHEL4, RHEL5 and Solaris 10 installs with my Spacewalk, > and > I'm running into a little trouble with Solaris packages for which I > need > a bit of assistance. I'm not certain exactly how this works. > > The solaris2mpm command... I've gotten the Solaris 10 i386 packages > from > BalaBit... and am attempting to use solaris2mpm to turn those into > nice > packages that I can upload to my Solaris channel(s). What I'm seeing > is... while I can install these packages directly on Solaris 10 x86 > machines... solaris2mpm will only spit out a SPARC version MPM... > regardless of the "--select-arch" flag. > > I'm wondering... can someone tell me what in these Solaris packages is > rhnpush/solaris2mpm looking for to determine and set the correct ARCH > on > the mpm...? The Solaris host itself is able to discern that this > package is of the correct ARCH... but something's being lost in the > conversion to MPM.
Ok... so answering some of this myself... it's looking like the $ARCH variable in the pkginfo file is set to "sparc" rather than "i386" ... So, I've reasoned out that I can change this by doing the following on the Solaris i86pc host. 1) "Unpack" the Solaris package... pkgtrans syslog-ng_2.1.4_i386.pkg /tmp/syslog-ng 2) Edit the pkginfo file.. change the arch from "sparc" to "i386"... /tmp/syslog-ng/ZOSsyslng/pkginfo 3) Note the new file size for the "pkginfo" file... 4) Calculate a new "sum" for the "pkginfo" file... sum /tmp/syslog-ng/ZOSsyslng/pkginfo 5) Update the "pkgmap" file with the new size and sum.. /tmp/syslog-ng/ZOSsyslng/pkgmap 6) "Repack" the Solaris package... pkgtrans /software/syslog-ng syslog-ng_2.1.4_i386.pkg Now I can convert this to MPM format via "solaris2mpm"... which pooches out an i386 package. Yay! > If I can figure out what magic is missing... perhaps I can approach > BalaBit package maintainers to fix these... if'n I can't do it myself I'm not sure if anyone else cares about this... but I thought I'd share the experience. -- Andy Speagle "THE Student" - UCATS Wichita State University
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Spacewalk-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/spacewalk-list
