Answering myself:
- In Oxygen p2 publisher will not parse the
Require-Capability/Provide-Capability manifest headers.
- The support for generic reqs/caps is limited to p2.inf files that need to
be maintained manually.
- The p2 internal representation of a capability is limited to the
(namespace, name, version) triplet.
- Therefore it is not possible to express the full information contained in
the bundle manifest via p2.inf or generally in p2.
  The users need to select one most meaningful capability attribute and map
that to the p2 model.

After a lot of digging through the p2 code it seems that:
- The internal representation of a requirement can already match against
capabilities using an LDAP filter.
- Therefore there is hope for a generic solution if the internal
representation of a capability is extended to support an attribute map.

Regards,
Todor

On Fri, Jan 27, 2017 at 6:41 PM, Todor Boev <[email protected]> wrote:

> I noticed that in Oxygen M1, p2 was extended to support some generic
> capabilities/requirements:
> https://www.eclipse.org/eclipse/news/4.7/M1/#Equinox
>
> I have two questions:
> - Does this mean p2 now has a mechanism to support the general OSGi
> capability/requirement model? (i.e. where a capability is a set of
> properties and a requirement is an LDAP filter)
> - Why are only "osgi.service" capabilities added? Should't there be also
> "osgi.implementation" capabilities?
>
> Regards
> Todor
>
> On Fri, Jan 27, 2017 at 2:46 PM, Sravan K Lakkimsetti <
> [email protected]> wrote:
>
>> Hi,
>>
>> We are pleased to announce that Oxygen M5 is available for download and
>> updates.
>>
>> Eclipse downloads:
>> http://download.eclipse.org/eclipse/downloads/drops4/S-4.7M5
>> -201701261030/
>>
>> New and Noteworthy:
>> http://www.eclipse.org/eclipse/news/4.7/M5/
>>
>> Update existing (non-production) installs:
>> http://download.eclipse.org/eclipse/updates/4.7milestones/
>>
>> Specific repository good for building against:
>> http://download.eclipse.org/eclipse/updates/4.7milestones/S-
>> 4.7M5-201701261030/
>>
>> Equinox specific downloads:
>> http://download.eclipse.org/equinox/drops/S-OxygenM5-201701261030/
>>
>> Thank you to everyone who made this checkpoint possible.
>>
>>
>> Thanks and Regards,
>> Sravan
>>
>> Sravan Kumar Lakkimsetti
>> IBM India Pvt Ltd,
>> Embassy Golf Links Business Park, D Block,
>> Off Indiranagar-Kormangla Inner Ring Road,
>> Bangalore - 560071, India
>> Phone: 91-80-41776858
>>
>> _______________________________________________
>> equinox-dev mailing list
>> [email protected]
>> To change your delivery options, retrieve your password, or unsubscribe
>> from this list, visit
>> https://dev.eclipse.org/mailman/listinfo/equinox-dev
>>
>
>
_______________________________________________
equinox-dev mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/equinox-dev

Reply via email to