> > Not entirely true, idr-create needs list of binaries you deliver. It was
> > my first reaction - this is wrong thing to do. But, since pkg has no api
> > to work with repositories (so that we could gmake publish and then change
> > the repository so that it's IDR) and since userland can't build IDRs by
> > any other means, idr-create is the best thing we have at the moment.
>
> 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. It evolved from idr-create used for SVR4 packages. As
I said I think that it's bad way of creating IDRs, but we have nothing
better available.
> and what package repository API are you missing that would obviate
> that?
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. Or rename directory in 'publisher'
directory, depending on which version of pkg repository you are using.
Since we don't have direct creation of IDRs and we don't have means of
converting regular pkg reposiotry into IDR, we are stuck with current
implementation - and we need list of binaries changed.
And in userland the process is super ugly since there is no single proto
area. So the hack I wrote to make at least some way of creating IDRs
first converts your pkg repository to proto area ...
--
Vlad
_______________________________________________
userland-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/userland-discuss