fetch2: Add module for ClearCase (ccrc://)
PATCH 1/1 fetch2: Add module for ClearCase (ccrc://)
I sumbitted this patch as a pull request on github this morning (https://github.com/openembedded/bitbake/pull/6). After consulting Richard Purdie on IRC I'm resubmitting here. I hope to comply with all the formalities :). We are looking forward to hearing from you.
Kind Regards,
Dennis
The clearcase fetcher is used to retrieve files from a ClearCase (http://en.wikipedia.org/wiki/Rational_ClearCase) repository.
Usage in the recipe:
SRC_URI = "ccrc://cc.example.org/ccrc;vob=/example_vob;module=/example_module" SRCREV = "EXAMPLE_CLEARCASE_TAG"
PV = "${@d.getVar("SRCREV").replace("/", "+")}"
The fetcher uses the rcleartool or cleartool remote client, depending on which one is available.
Supported SRC_URI options are:
- vob
(required) The name of the clearcase VOB (with prepending "/")
- module
The module in the selected VOB (with prepending "/")
The module and vob parameters are combined to create the following load rule in the view config spec:
load <vob><module>
- proto
http or https
Related variables:
CCASE_CUSTOM_CONFIG_SPEC
Write a config spec to this variable in your recipe to use it instead of the default config spec generated by this fetcher. Please note that the SRCREV loses its functionality if you specify this variable. SRCREV is still used to label the archive after a fetch, but it doesn't define what's fetched.
User credentials:
When using cleartool:
The login of cleartool is handled by the system. No special steps needed.
When using rcleartool:
In order to use rcleartool with authenticated users an rcleartool login is necessary before using the fetcher.
--- lib/bb/fetch2/__init__.py | 2 + lib/bb/fetch2/clearcase.py | 263 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 265 insertions(+) create mode 100644 lib/bb/fetch2/clearcase.py
lib/bb/fetch2/__init__.py +2 -0
@@ -1560,6 +1560,7 @@ from . import bzr from . import hg from . import osc from . import repo +from . import clearcase methods.append(local.Local()) methods.append(wget.Wget())
@@ -1575,3 +1576,4 @@ methods.append(bzr.Bzr()) methods.append(hg.Hg()) methods.append(osc.Osc()) methods.append(repo.Repo()) +methods.append(clearcase.ClearCase())
lib/bb/fetch2/clearcase.py new file +263 -0
263 lines not on this page · raw message
Signature · 1 line
1.7.10.4
Quoted 4 lines · Dennis Meier
I sumbitted this patch as a pull request on github this morning
(https://github.com/openembedded/bitbake/pull/6). After consulting Richard Purdie on IRC I'm resubmitting here. I hope to comply with all the formalities :). We are looking forward to hearing from you.
I'm going to merge this as is. I don't have clearcase and I don't really want to know either. I'll therefore be relying on users of it to keep to keep it working.
Cheers,
Richard