Dan Price wrote:
On Mon 30 Nov 2009 at 11:39PM, Brock Pytlik wrote:
[snip]
$ uname -a
SunOS xanadu 5.11 snv_127 i86pc i386 i86pc
$ pkgdep generate 
/var/pkg/pkg/SUNWcs/0.5.11%2C5.11-0.127%3A291111T043632Z/manifest /

It output some stuff about sparc things which weren't found on
my x86 box.  I then applied your patch, and got some good looking
deps, but also a lot of:
Sorry, I spaced on this the first time around. Can you clarify what you mean by "it output some stuff about sparc things which weren't found"? Generate shouldn't care what platform it's being run on (modulo not being able to find the files because they're not present on the system). This does mean that in the situation below, it would report the x86 dependencies for the sparc files if we went the option 4 I outlined in the previous email.

I suppose that if we wanted to really handle this case, we should validate the hashes (the chash if available?) in the event we fall back to the path defined in the action.

Given that, I'm now leaning towards option 1 (saying don't run pkgdep on a published package) for now and filing a bug to add the more complicated behavior later.

Brock

file 46d582feff77d6155e4ee2346b852bc3b2829673 chash=5d01a515a26b1b352dc53000d321b60520625a55 elfarch=i386 elfbits=32 elfhash=ed68896d44ae9f653bf668f9c9354bb55e1c1e33 group=bin mode=0555 owner=root path=etc/fs/dev/mount pkg.csize=7642 pkg.size=18416 variant.arch=i386
Couldn't find /436c1dd11526f76624f40c837081d082d2614fa8

I wasn't really sure what to make of these new msgs, or what I
might do about them.

        -dp


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

Reply via email to