Danek Duvall wrote:
On Tue, May 26, 2009 at 02:59:24PM -0700, Rich Burridge wrote:
RuntimeError: ['Duplicate actions', [(('dir', 'lib/svc'),
set([<pkg.actions.directory.DirectoryAction object at 0xab2988c>,
<pkg.actions.directory.DirectoryAction object at 0xab141ac>])), (('dir',
'lib/svc/method'), set([<pkg.actions.directory.DirectoryAction object at
0xab2998c>, <pkg.actions.directory.DirectoryAction object at
0xab142ac>]))]]
The root cause is a busted set of SVr4 packages. Though these duplicate
action errors are hard to read, the information is all there: the
directories "lib/svc" and "lib/svc/method" are duplicated. Normally we
treat directories as duplicatable without consequence (though we may be
stricter in the future), but in this case the perms on the directories
differ (and inside the same package, no less), so it keels over, not
knowing what you want it to do.
As it turns out, SUNWsamfsr delivers the two directories with mode 0444
(which makes practically no sense for a directory) and SUNWsamfsu delivers
them with 0755, which is correct. The two packages get imported into the
same pkg(5) package, and boom.
Note that initially the SUNWsamfsr SVR4 package had them with "? ? ?"
and output from solaris.py told be that it was changing that to "0444
root bin"
so I edited the pkgmap and imported them again. I didn't realize that
they had a different set of permissions in the SUNWsamfsu SVR4 package
(or that that would confuse it).
I'll work with Todd to get consistency here.
I'm not sure this can be fixed from the import script, though you can see
if excluding the ones from SUNWsamfsr would do the trick. Regardless, this
should be fixed in the SVr4 package itself.
Yup. They will need to be respun again, because all the files in the
pkgmap now need to start without a leading "/" as they are under "reloc"
now instead of "root". This was the reason why solaris.py wasn't
publishing the SMF manifests.
I'll get Todd to make that change to his new packages on lake12-mn.central
and then we can work from there.
Thanks.
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss