Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » P2 Director product-based install fails unable to satisfy dependencies
P2 Director product-based install fails unable to satisfy dependencies [message #121356] Thu, 20 November 2008 15:40 Go to next message
Chris Williams is currently offline Chris WilliamsFriend
Messages: 29
Registered: July 2009
Junior Member
I'm trying to get a p2-enabled 3.4+ compatible version of our product
building. I started from scratch with a new product build, and I can get
it to build the zips for the platforms we're targeting and it seems to
generate the p2 metadata fine. But when I try to run the p2 director to
generate a complete p2-enabled product it fails:

!SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2008-11-20 10:25:26.335
!MESSAGE Unsatisfied dependency: [com.aptana.ide.rcp.product 1.2.0.019866]
requiredCapability:
toolingcom.aptana.ide.rcp.product/com.aptana.ide.rcp.product .ini/[1.2.0.019866,1.2.0.019866]
!SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2008-11-20 10:25:26.335
!MESSAGE Unsatisfied dependency: [com.aptana.ide.rcp.product 1.2.0.019866]
requiredCapability:
toolingcom.aptana.ide.rcp.product/com.aptana.ide.rcp.product .config/[1.2.0.019866,1.2.0.019866]
!SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2008-11-20 10:25:26.336
!MESSAGE Unsatisfied dependency: [com.aptana.ide.rcp.product 1.2.0.019866]
requiredCapability:
toolingcom.aptana.ide.rcp.product/com.aptana.ide.rcp.product .launcher/[1.2.0.019866,1.2.0.019866]

If I look at the content.xml file, I assume these are the crucial lines:

<required namespace='toolingcom.aptana.ide.rcp.product'
name='com.aptana.ide.rcp.product.launcher'
range='[1.2.0.019866,1.2.0.019866]' multiple='true'/>
<required namespace='toolingcom.aptana.ide.rcp.product'
name='com.aptana.ide.rcp.product.ini' range='[1.2.0.019866,1.2.0.019866]'/>
<required namespace='toolingcom.aptana.ide.rcp.product'
name='com.aptana.ide.rcp.product.config'
range='[1.2.0.019866,1.2.0.019866]'/>

But to my naive eye, it looks like that same file does contain the
dependency it's asking for:

<unit id='com.aptana.ide.rcp.product.launcher.carbon.macosx.x86'
version='1.2.0.019866'>
<provides size='2'>
<provided namespace='org.eclipse.equinox.p2.iu'
name='com.aptana.ide.rcp.product.launcher.carbon.macosx.x86'
version='1.2.0.019866'/>
<provided namespace='toolingcom.aptana.ide.rcp.product'
name='com.aptana.ide.rcp.product.launcher' version='1.2.0.019866'/>
</provides>


Am I missing something here? why can't it satisfy those dependencies? Has
anyone else seen anything like this?

-Chris
Re: P2 Director product-based install fails unable to satisfy dependencies [message #121457 is a reply to message #121356] Mon, 24 November 2008 16:10 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
Which architecture are you specifying in your call to the director?
Even though the Mac has universal binaries, you still need to specify an
architecture (either x86 or ppc) using -p2.arch.

Even though Eclipse's universal binaries will run on both x86 and ppc,
the install itself needs to specify one or the other. The launcher will
set the runtime architecture based on the machine it is running on, but
the p2 profile is static and it must be specified at install time.

You may want to consider generating metadata for both x86 and ppc. For
example the Eclipse SDK zip for carbon are created for ppc (though it
runs on both) and will require ppc IUs to be installed on top of it.

-Andrew

Chris Williams wrote:
> I'm trying to get a p2-enabled 3.4+ compatible version of our product
> building. I started from scratch with a new product build, and I can get
> it to build the zips for the platforms we're targeting and it seems to
> generate the p2 metadata fine. But when I try to run the p2 director to
> generate a complete p2-enabled product it fails:
>
> !SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2008-11-20 10:25:26.335
> !MESSAGE Unsatisfied dependency: [com.aptana.ide.rcp.product
> 1.2.0.019866] requiredCapability:
> toolingcom.aptana.ide.rcp.product/com.aptana.ide.rcp.product .ini/[1.2.0.019866,1.2.0.019866]
>
> !SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2008-11-20 10:25:26.335
> !MESSAGE Unsatisfied dependency: [com.aptana.ide.rcp.product
> 1.2.0.019866] requiredCapability:
> toolingcom.aptana.ide.rcp.product/com.aptana.ide.rcp.product .config/[1.2.0.019866,1.2.0.019866]
>
> !SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2008-11-20 10:25:26.336
> !MESSAGE Unsatisfied dependency: [com.aptana.ide.rcp.product
> 1.2.0.019866] requiredCapability:
> toolingcom.aptana.ide.rcp.product/com.aptana.ide.rcp.product .launcher/[1.2.0.019866,1.2.0.019866]
>
>
> If I look at the content.xml file, I assume these are the crucial lines:
>
> <required namespace='toolingcom.aptana.ide.rcp.product'
> name='com.aptana.ide.rcp.product.launcher'
> range='[1.2.0.019866,1.2.0.019866]' multiple='true'/>
> <required namespace='toolingcom.aptana.ide.rcp.product'
> name='com.aptana.ide.rcp.product.ini' range='[1.2.0.019866,1.2.0.019866]'/>
> <required namespace='toolingcom.aptana.ide.rcp.product'
> name='com.aptana.ide.rcp.product.config'
> range='[1.2.0.019866,1.2.0.019866]'/>
>
> But to my naive eye, it looks like that same file does contain the
> dependency it's asking for:
>
> <unit id='com.aptana.ide.rcp.product.launcher.carbon.macosx.x86'
> version='1.2.0.019866'>
> <provides size='2'>
> <provided namespace='org.eclipse.equinox.p2.iu'
> name='com.aptana.ide.rcp.product.launcher.carbon.macosx.x86'
> version='1.2.0.019866'/>
> <provided namespace='toolingcom.aptana.ide.rcp.product'
> name='com.aptana.ide.rcp.product.launcher' version='1.2.0.019866'/>
> </provides>
>
>
> Am I missing something here? why can't it satisfy those dependencies?
> Has anyone else seen anything like this?
>
> -Chris
>
Re: P2 Director product-based install fails unable to satisfy dependencies [message #121506 is a reply to message #121457] Tue, 25 November 2008 15:20 Go to previous messageGo to next message
Chris Williams is currently offline Chris WilliamsFriend
Messages: 29
Registered: July 2009
Junior Member
Actually, I finally managed to figure this one out eventually. Oddly
enough it was a result of my having used "SDKProfile" as the profile name
to generate for these complete product installs. Must be some sort of
clash or assumptions made when the profile you're generating matches the
name of the Eclipse instance running the director app. When I changed the
-profile value to a unique one, i.e. "AptanaProfile", the installs worked.
Re: P2 Director product-based install fails unable to satisfy dependencies [message #121680 is a reply to message #121506] Wed, 26 November 2008 19:27 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
The Eclipse SDK zip for carbon was installed as carbon.macosx.ppc
(though it runs on both x86 & ppc). So by using the same profile name
as the running instance, it probably chose to install into the running
instance instead of the destinations you gave. Hence the x86 IUs you
provided wouldn't resolve against the existing ppc profile.


-Andrew

Chris Williams wrote:
> Actually, I finally managed to figure this one out eventually. Oddly
> enough it was a result of my having used "SDKProfile" as the profile
> name to generate for these complete product installs. Must be some sort
> of clash or assumptions made when the profile you're generating matches
> the name of the Eclipse instance running the director app. When I
> changed the -profile value to a unique one, i.e. "AptanaProfile", the
> installs worked.
>
Previous Topic:Equinox Hackathon
Next Topic:Problems with p2-izing a product
Goto Forum:
  


Current Time: Tue Apr 16 05:21:51 GMT 2024

Powered by FUDForum. Page generated in 0.30089 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top