|Re: [p2-dev] P2 default fragment requirements|
thanks for the response! In this particular case, though, I don't see what will break if <requires> is simply removed from
On 28.02.2014 11:53, Krzysztof Daniel wrote:
thanks for your questions.
Regarding http://wiki.eclipse.org/Equinox/p2/P2_Fragments - the name is unfortunate. It's a secondary mechanism for assembling installation
from "Installation Fragments". I expect you have no interest in it.
I think that the main reason you have hostRequirements and requires are because hostRequirements are usually smaller than required.
hostRequirements says where to attach the fragment, and required means what the fragment needs.
They are identical because P2 will minimize the installation, hence the same bundle used in hostRequirements will be used for satisfying
requires. I think the protocol could be improved here, but there is almost no gain here, so I'd not expect changes.
On Thu, Feb 27, 2014 at 5:57 PM, Vladimir Prus <vladimir@xxxxxxxxxxxxxxxx <mailto:firstname.lastname@example.org>> wrote:Â Â I'm looking at http://wiki.eclipse.org/__Equinox/p2/Setting_Start___Levels <http://wiki.eclipse.org/Equinox/p2/Setting_Start_Levels> and
Â Â Hi,
Â Â Â Â Â Â<required namespace='org.eclipse.__equinox.p2.eclipse.type' name='bundle' range='0.0.0' multiple='true' greedy='false'/>
Â Â it mentions that default fragment
Â Â is added to all IUs, and in particular it contains this:
Â Â Â Â <hostRequirements size='1'>
Â Â Â Â </hostRequirements>
Â Â Â Â <requires size='1'>
Â Â Â Â Â Â<required namespace='org.eclipse.__equinox.p2.eclipse.type' name='bundle' range='0.0.0' multiple='true' greedy='false'/>Â Â Unrelatedly, looking at http://wiki.eclipse.org/__Equinox/p2/P2_Fragments <http://wiki.eclipse.org/Equinox/p2/P2_Fragments> is seems
Â Â Â Â </requires>
Â Â What exactly is the role of the 'requires' element? It is rather board requirements already, and then this fragment
Â Â is added to every other IU, so effectively every bundle IU has a requirement that can be satisfied by any other
Â Â bundle IU, and the practical impact of this is rather unclear to me.
Â Â http://www.mentor.com/__embedded-software/ <http://www.mentor.com/embedded-software/>
Â Â that 'fragments' is used in completely
Â Â different way there? What is the current primary meaning?
Â Â Thanks in advance,
Â Â --
Â Â Vladimir Prus
Â Â CodeSourcery / Mentor Graphics
Â Â _________________________________________________
Â Â p2-dev mailing list
Â Â p2-dev@xxxxxxxxxxx <mailto:p2-dev@xxxxxxxxxxx>
Â Â https://dev.eclipse.org/__mailman/listinfo/p2-dev <https://dev.eclipse.org/mailman/listinfo/p2-dev>