> >>Um. What is it that idr-create is actually doing that it needs individual > >>filenames, > > > >I believe it downloads the official package and replaces the binaries > >you specify with files taken from your repository. Why? I believe > >historic reasons. > > That's so incredibly pointless, since IPS already takes care of only > downloading > the binaries that changed.
I agree. But until we have something better ... > >The goal is to have IDR pkg repository. The repository differs from what > >'gmake publish' produces (and I am not 100% sure about the details). One > >example is that IDR repository has it's own publisher. So either we need > >ON gate, Userland gate, Desktop gate etc. to have direct way of creating > >IDRs with the correct publisher. Something like 'gmake idr' (but of > >course one IDR can contain several components so running just singe > >'gmake idr' will not be enough). Or we will use regular build process > >and pkg repository (gmake publish in userland, not sure about ON) _and_ > >we need some tool to convert the just created pkg repository into IDR. > >For example to change 'userland' publisher to 'idrXXXX' publisher. Do we > >have any API to change pkg repository publisher? I'm not aware of it. > >Only directly edit manifest file. > > The publisher is not included in the manifest of the unpublished package. What is unpublished package? The only package I know in Userland is $(hg root)/$(uname -p)/repo/publisher/userland/... > At least ON, X & Userland allow setting the publisher name to use at build > time (this is how we set publishers like x-nightly for gk builds vs xnv-devel > for individual developer builds) - is that not good enough? Yes, that would work. As I said I can see three ways of IDR creation. 1) userland (ON, X, ...) creates the IDR itself 2) userland (ON, X, ...) creates standard pkg and there is a tool to convert that pkg into IDR 3) use existing idr-create tool described at https://rpe.us.oracle.com/bin/view/PE/InterimDiagnosticReliefS11 You are saying (if I understand well) that best would be 1, and it should be possible to do that. I can't agree more, but we don't have that. By not having API I meant that we don't have tools to do 2). So we have 3). Even for ON. Why idr-create was made the way it was made? I do not know. I guess sustaining really didn't how will pkg work and then it was too late to create "proper" solution? My guess. I was invited to bend and duck-tape idr-create to work with Userland. I will be the first one happy to use anything better. -- Vlad _______________________________________________ userland-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/userland-discuss
