Danek Duvall wrote:
On Thu, Jul 16, 2009 at 01:57:16PM -0700, Bart Smaalders wrote:

       # For kernel modules, default path resolution is /platform/<platform>,
       # /kernel, /usr/kernel.  But how do we know what <platform> would be for
       # a given module?  Does it do fallbacks to, say, sun4u?
       if path.startswith("kernel") or path.startswith("usr/kernel") or \
           (path.startswith("platform") and path.split("/")[2] == "kernel"):
               if rp:
                       print "RUNPATH set for kernel module (%s): %s" % \
                           (path, rp)

               if path.startswith("platform"): # add this platform to search 
path
                       rp.append("/platform/%s/kernel" % path.split("/")[1])
               # Default kernel search path
               rp.extend(("/kernel", "/usr/kernel"))
This helps find dependencies in the platform modules; since the
module is in a platform dir, we know which platform dir in which
to search for dependencies.

Probably want to do the same for /usr/platform, no?

Danek

Sure; I didn't find any unresolved dependencies in the wos because of
/usr/platform/* but it would still be a good idea.

-= Bart


--
Bart Smaalders                  Solaris Kernel Performance
[email protected]         http://blogs.sun.com/barts
"You will contribute more with mercurial than with thunderbird."
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to