Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Equinox/p2/CUDFResolver"
Line 13: | Line 13: | ||
java -jar p2cudf.jar [flags] inputFile [outputFile] | java -jar p2cudf.jar [flags] inputFile [outputFile] | ||
-obj (paranoid | trendy | p2) The objective function to be used to resolve the problem. p2 is used by default. | -obj (paranoid | trendy | p2) The objective function to be used to resolve the problem. p2 is used by default. | ||
− | -timeout <number>(c|s) The time out after which the solver will stop. e.g. 10s stops after 10 seconds, 10c stops after 10 conflicts. Default is set to 200c for p2 and 2000c for other objective functions. | + | -timeout <number>(c|s) The time out after which the solver will stop. e.g. 10s stops after 10 seconds, |
+ | 10c stops after 10 conflicts. | ||
+ | Default is set to 200c for p2 and 2000c for other objective functions. | ||
-sort Sorts the output. | -sort Sorts the output. | ||
-explain Provides one reason of the unability to fullfil the request | -explain Provides one reason of the unability to fullfil the request |
Revision as of 17:42, 14 January 2010
Contents
p2 CUDF Resolver
What is it?
A frontend to p2 that allows p2 to resolve Linux dependencies. The CUDF format has been designed by the Mancoosi European project.
How to use it?
The resolver uses the following command line:
java -jar p2cudf.jar [flags] inputFile [outputFile] -obj (paranoid | trendy | p2) The objective function to be used to resolve the problem. p2 is used by default. -timeout <number>(c|s) The time out after which the solver will stop. e.g. 10s stops after 10 seconds, 10c stops after 10 conflicts. Default is set to 200c for p2 and 2000c for other objective functions. -sort Sorts the output. -explain Provides one reason of the unability to fullfil the request -verbose
where
<input-file> is a CUDF formatted file describing the universe and the query.
<output-file> is a CUDF formatted file describing the packages to install. If no output file is provided, the solution is displayed on STDOUT.
java -jar p2cudf.jar -timeout 100s -obj p2 foo.cudf output.cudf
launches the solver for 100 seconds on the problem foo.cudf using the p2 optimization criteria.
The main advantage of using a conflict based timeout is that the results of the solver should be identical on all architectures, while the result provided by a time based timeout is likely to differ from one machine to the other.
Relationship with p2?
Where can I get the code?
repository: :pserver:anonymous@dev.eclipse.org:/cvsroot/rt/
module: org.eclipse.equinox/incubator/p2/demos/misc-conf-2010/
Reporting bugs?
Create a bug in the p2 component in Equinox's Bugzilla.
Getting in touch with the developers?
Just send an email to the developer mailing list: p2-dev@eclipse.org
License?
This code is made available under the terms of the EPL: http://eclipse.org/org/documents/epl-v10.php