Hi Everyone,
While working on patches to get the root.* items back into
build.properties of rcp.config [1] I've run into 2 issues that I'm
not sure if they are Tycho bugs or not.
The 1st one has to do with using "*" when defining the
root.permissions. For example in rcp.config build.properties it
defines:
root.linux.gtk.x86.permissions.755=*.so*
While building rcp.config is successful there is an issue when
building the SDK product fails with the error at the end of this
email stating that we cannot set permissions on a file that does not
exist. With Paul's help I was able to find some discrepancies
between PDE build and CBI build with regards to this parameter.
In the CBI build the content.xml that is produced for the
root.permission appears as:
chmod(targetDir:${installFolder}, targetFile:*.so*,
permissions:755);
However in PDE build the *s are expanded to specify the specific
file:
chmod(targetDir:${installFolder},
targetFile:libcairo-swt.so, permissions:755);
We'd like to understand if Tycho does any expansion of the "*" or
not since the behaviour seems different than what PDE produces.
The 2nd issue I noticed is regarding root.permissions for the
eclipse executable:
root.permissions.755=eclipse
I get a compile error when I try to build rcp.config with this
parameter set as follows:
[ERROR] Failed to execute goal
org.eclipse.tycho:tycho-p2-plugin:0.16.0-SNAPSHOT:p2-metadata-default
(default-p2-metadata-default) on project
org.eclipse.rcp.configuration: Execution
default-p2-metadata-default of goal
org.eclipse.tycho:tycho-p2-plugin:0.16.0-SNAPSHOT:p2-metadata-default
failed: Cannot set permissions or symbolic links if there are no
root files -> [Help 1]
I'm not sure why it's throwing this error but the root.<arch>
for each architecture points to a directory that includes the
eclipse file.
Thanks,
Thanh
[1]
http://git.eclipse.org/c/platform/eclipse.platform.releng.aggregator.git/tree/eclipse.platform.releng.tychoeclipsebuilder/rcp.config/build.properties
[INFO] Installing product org.eclipse.sdk.ide for environment
linux/gtk/x86 to
/home/user/Downloads/eclipse2/eclipse.platform.releng.aggregator/eclipse.platform.releng.tychoeclipsebuilder/sdk/target/products/org.eclipse.sdk.ide/linux/gtk/x86/eclipse
Installing org.eclipse.sdk.ide 3.8.0.v20120822-1153.
Installation failed.
An error occurred while installing the items
session context was:(profile=""
phase=org.eclipse.equinox.internal.p2.engine.phases.Install,
operand=null -->
[R]org.eclipse.rcp.configuration_root.gtk.linux.x86
1.0.0.v20120822-1153,
action="">
The action chmod failed - file
/home/user/Downloads/eclipse2/eclipse.platform.releng.aggregator/eclipse.platform.releng.tychoeclipsebuilder/sdk/target/products/org.eclipse.sdk.ide/linux/gtk/x86/eclipse/*.so*
does not exist
Application failed, log file location:
/tmp/config6886614045885557697equinox/1348083011889.log
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 42.991s
[INFO] Finished at: Wed Sep 19 15:30:53 EDT 2012
[INFO] Final Memory: 33M/375M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.eclipse.tycho:tycho-p2-director-plugin:0.16.0-SNAPSHOT:materialize-products
(materialize-products) on project org.eclipse.sdk.ide:
Installation of product org.eclipse.sdk.ide for environment
linux/gtk/x86 failed: Call to p2 director application failed with
exit code 13. Program arguments were: [-metadataRepository,
file:/home/user/Downloads/eclipse2/eclipse.platform.releng.aggregator/eclipse.platform.releng.tychoeclipsebuilder/sdk/target/,file:/home/user/Downloads/eclipse2/eclipse.platform.releng.aggregator/eclipse.platform.releng.tychoeclipsebuilder/sdk/target/targetPlatformRepository/,
-artifactRepository,
file:/home/user/Downloads/eclipse2/eclipse.platform.releng.aggregator/eclipse.platform.releng.tychoeclipsebuilder/sdk/target/,file:/resolution-context-artifacts@/home/user/Downloads/eclipse2/eclipse.platform.releng.aggregator/eclipse.platform.releng.tychoeclipsebuilder/sdk,file:/var/tmp/lts/R3_localrepo/,
-installIU, org.eclipse.sdk.ide, -destination,
/home/user/Downloads/eclipse2/eclipse.platform.releng.aggregator/eclipse.platform.releng.tychoeclipsebuilder/sdk/target/products/org.eclipse.sdk.ide/linux/gtk/x86/eclipse,
-profile, SDKProfile, -profileProperties,
org.eclipse.update.install.features=true, -roaming, -p2.os, linux,
-p2.ws, gtk, -p2.arch, x86]. -> [Help 1]
|