List Info

Thread: Re: auto-provides and requires for OSGi packages




Re: auto-provides and requires for OSGi packages
country flaguser name
United States
2007-03-27 21:24:26
If you are ok with running java code to generate your RPM
metadata, then
you could take a look at the class PDEState in PDEBuild or
the class with
the same name in the
org.eclipse.equinox.prov.metadata.generator bundle
from the equinox provisioning work (note that the last one
is about to be
replaced / changed). These helper classes will read the
manifest.mf
(whether the bundle is jar'ed or not) and create a
BundleDescription object
from it where every little detail about the dependencies are
already
reified.

Also, as a point of interest for me, does RPM has the
ability to express
constraints similar to import and export?

PaScaL


                                                            
              
             Andrew                                         
              
             Overholt                                       
              
             <overholtr                          
                     To 
             edhat.com>          linux-distros-deveclipse.org,            
             Sent by:            fedora-devel-java-listredhat.com         
             linux-distr                                    
           cc 
             os-dev-boun                                    
              
             ceseclipse                                   
       Subject 
             .org                [linux-distros-dev]
auto-provides and     
                                 requires for OSGi packages 
              
                                                            
              
             03/27/2007                                     
              
             05:33 PM                                       
              
                                                            
              
                                                            
              
                                                            
              




Hi,

We'd like Eclipse packages (which we want to extend to all
OSGi
packages and then to whatever module system Sun puts into
Java 7 or 8)
to have RPM automatically generate Provides and Requires. 
This is
similar to how it's done for DSOs or perl, python, or mono
modules.

Example:

$ rpm -q --requires tomboy
[I've stripped the non-mono requirements]
...
mono(glib-sharp) = 2.10.0.0
mono(gnome-sharp) = 2.16.0.0
mono(gtk-sharp) = 2.10.0.0
...

$ rpm -q --provides gnome-sharp
mono(gnome-sharp) = 2.16.0.0

I imagine this will manifest itself in a shell script to run
over jars
in a certain location and extract their META-INF/MANIFEST.MF
and parse
out the OSGi provides and requires.  It would of course be
better to do
this as an OSGi app but I wonder how the RPM guys would feel
about
having an Eclipse or Java dependency.

I don't think we want to do something like java(modulename)
yet, but
just having it automatically generate these lists would get
us a long
way there.

Anyone have any thoughts?

Kyu Lee is going to investigate this and will keep us posted
as he
progresses.

Andrew
(See attached file: attqvcz6.dat)
_______________________________________________
linux-distros-dev mailing list
linux-distros-deveclipse.org
https://dev.eclipse.org/mailman/listinfo/linux-distros
-dev

_______________________________________________
linux-distros-dev mailing list
linux-distros-deveclipse.org
https://dev.eclipse.org/mailman/listinfo/linux-distros
-dev

  
Re: auto-provides and requires for OSGi packages
user name
2007-03-28 17:00:32
Hi,

* Pascal Rapicault <Pascal_Rapicaultca.ibm.com> [2007-03-27 22:24]:
> If you are ok with running java code to generate your
RPM metadata

Unfortunately I doubt that this will be acceptable to the
RPM people.
Thanks for the pointers anyway, though 

> Also, as a point of interest for me, does RPM has the
ability to express
> constraints similar to import and export?

I'm confused as to what import does that is different from
requires.
Can you please elaborate or tell me what to read?

Export I guess you could compare with Provides in RPM
parlance.  Anyone
else have thoughts on this?  For those that don't know --
and please
correct me if I'm wrong -- Export is used to limit what java
package
names are visible to other bundles.

Thanks,

Andrew

_______________________________________________
linux-distros-dev mailing list
linux-distros-deveclipse.org
https://dev.eclipse.org/mailman/listinfo/linux-distros
-dev

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )