On 01/22/11 05:02 PM, Alasdair Lumsden wrote:
...
 It was quite a journey, and took the best part of 2 days to achieve.
My understanding is that one of the original design goals of IPS was
for it to be cross-platform, and of course Webstack 1.5 for Solaris
10 shipped in an IPS format with a mini pkg5 install based on Python
2.4. But is cross-platform support still a design consideration? Is
any QA being done with pkg5 on Solaris 10?

There are currently no resources assigned to ensure that pkg(5) remains cross platform capable. With that said, reasonable efforts are generally made to see that it does.

However, keep in mind that on Solaris 10, only pkg.depotd(1M) is expected to be used. pkg(1) isn't -- managing packages with pkg(5) on Solaris 10 is not recommended unless the target image is a user image that will never be touched by the old SVr4 package management system.

The reason I ask is that pkg5 now has quite a lot of dependencies on
stuff not present or too old in Solaris 10 to build out of the box. I
don't mind dependencies, dependencies are okay (even if they are a
major PITA to fulfil on Solaris 10 given how many of them there are).
But I did encounter some issues that could probably be addressed
within the pkg build system itself.

First, when building M2Crypto, pkg5 assumes patch is GNU patch.
Obviously on Solaris 10, /usr/bin/patch doesn't support the GNU
options, so /usr/bin/gpatch has to be used. That's an easy fix.

That would be because /usr/bin/patch is GNU patch on Solaris Express / OpenSolaris systems. If you want to file a bug for that, it sounds entirely reasonable to call /usr/bin/gpatch instead if the platform is 'SunOS'.

Secondly, M2Crypto uses SWIG to generate python bindings for
functions in OpenSSL. One of those is ENGINE_load_openssl, which
isn't present in OpenSSL on Solaris 10. Fixing this is fairly easy,
the patch is:

That one I'm not so certain about. Keep in mind that we deliver the Python bindings for all consumers. If you have a way to make this change only for Solaris 10, that's probably acceptable.

In general, pkg(5) isn't regularly tested or maintained on anything other than Solaris Express builds at this point.

I suspect Solaris 10 usage will be revisited at a later date. But for the moment, you'll have to do the heavy lifting on your own.

-Shawn
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to