fetch: Drop osc (OpenSUSE Build Service) fetcher
PATCH 1/2 fetch: Drop osc (OpenSUSE Build Service) fetcher
The OpenSUSE Build Service fetcher was for a specialist niche usecase which never went into production use as far as I know. At this point it makes sense to remove it as it is unused and bitrotted.
Signed-off-by Richard Purdie <[email protected]>
--- .../bitbake-user-manual-fetching.rst | 3 - .../bitbake-user-manual-ref-variables.rst | 3 - lib/bb/fetch2/__init__.py | 2 - lib/bb/fetch2/osc.py | 165 ------------------ 4 files changed, 173 deletions(-) delete mode 100644 lib/bb/fetch2/osc.py
doc/bitbake-user-manual/bitbake-user-manual-fetching.rst +0 -3
@@ -87,7 +87,6 @@ Here are some examples that show commonly used mirror definitions:: cvs://.*/.\* http://somemirror.org/sources/ \ git://.*/.\* http://somemirror.org/sources/ \ hg://.*/.\* http://somemirror.org/sources/ \ - osc://.*/.\* http://somemirror.org/sources/ \ p4://.*/.\* http://somemirror.org/sources/ \ svn://.*/.\* http://somemirror.org/sources/"
@@ -828,8 +827,6 @@ Fetch submodules also exist for the following: - Mercurial (``hg://``) -- OSC (``osc://``) - - S3 (``s3://``) - Secure FTP (``sftp://``)
doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst +0 -3
@@ -1672,9 +1672,6 @@ overview of their function and contents. - ``npm://``: Fetches JavaScript modules from a registry. - - ``osc://``: Fetches files from an OSC (OpenSUSE Build service) - revision control repository. - - ``p4://``: Fetches files from a Perforce (``p4``) revision control repository.
lib/bb/fetch2/__init__.py +0 -2
@@ -2112,7 +2112,6 @@ from . import sftp from . import s3 from . import perforce from . import hg -from . import osc from . import repo from . import clearcase from . import npm
@@ -2134,7 +2133,6 @@ methods.append(sftp.SFTP()) methods.append(s3.S3()) methods.append(perforce.Perforce()) methods.append(hg.Hg()) -methods.append(osc.Osc()) methods.append(repo.Repo()) methods.append(clearcase.ClearCase()) methods.append(npm.Npm())
lib/bb/fetch2/osc.py deleted +0 -165
165 lines not on this page · raw message
PATCH 2/2 fetch: Drop CVS fetcher module
CVS is extremely dated technology and is not used anywhere significant/public any more. The existing code is not well maintained and is hard to test without any public CVS repositories. To be honest, if you're still using CVS you really shouldn't be.
Remove the fetcher as obsolete and a generally bad idea now.
Signed-off-by Richard Purdie <[email protected]>
--- .../bitbake-user-manual-fetching.rst | 71 -------- .../bitbake-user-manual-ref-variables.rst | 7 - lib/bb/fetch2/__init__.py | 2 - lib/bb/fetch2/cvs.py | 157 ------------------ lib/bb/tests/fetch.py | 35 ---- 5 files changed, 272 deletions(-) delete mode 100644 lib/bb/fetch2/cvs.py
doc/bitbake-user-manual/bitbake-user-manual-fetching.rst +0 -71
@@ -84,7 +84,6 @@ fetcher does know how to use HTTP as a transport. Here are some examples that show commonly used mirror definitions:: PREMIRRORS ?= "\ - cvs://.*/.\* http://somemirror.org/sources/ \ git://.*/.\* http://somemirror.org/sources/ \ hg://.*/.\* http://somemirror.org/sources/ \ p4://.*/.\* http://somemirror.org/sources/ \
@@ -264,76 +263,6 @@ Some example URLs are as follows:: SRC_URI = "http://abc123.org/git/?p=gcc/gcc.git&a=snapshot&h=a5dd47;downloadfilename=myfile.bz2" - -.. _cvs-fetcher: - -CVS fetcher (``(cvs://``) -------------------------- - -This submodule handles checking out files from the CVS version control -system. You can configure it using a number of different variables: - -- :term:`FETCHCMD_cvs <FETCHCMD>`: The name of the executable to use when running - the ``cvs`` command. This name is usually "cvs". - -- :term:`SRCDATE`: The date to use when fetching the CVS source code. A - special value of "now" causes the checkout to be updated on every - build. - -- :term:`CVSDIR`: Specifies where a temporary - checkout is saved. The location is often ``DL_DIR/cvs``. - -- CVS_PROXY_HOST: The name to use as a "proxy=" parameter to the - ``cvs`` command. - -- CVS_PROXY_PORT: The port number to use as a "proxyport=" - parameter to the ``cvs`` command. - -As well as the standard username and password URL syntax, you can also -configure the fetcher with various URL parameters: - -The supported parameters are as follows: - -- *"method":* The protocol over which to communicate with the CVS - server. By default, this protocol is "pserver". If "method" is set to - "ext", BitBake examines the "rsh" parameter and sets ``CVS_RSH``. You - can use "dir" for local directories. - -- *"module":* Specifies the module to check out. You must supply this - parameter. - -- *"tag":* Describes which CVS TAG should be used for the checkout. By - default, the TAG is empty. - -- *"date":* Specifies a date. If no "date" is specified, the - :term:`SRCDATE` of the configuration is used to - checkout a specific date. The special value of "now" causes the - checkout to be updated on every build. - -- *"localdir":* Used to rename the module. Effectively, you are - renaming the output directory to which the module is unpacked. You - are forcing the module into a special directory relative to - :term:`CVSDIR`. - -- *"rsh":* Used in conjunction with the "method" parameter. - -- *"scmdata":* Causes the CVS metadata to be maintained in the tarball - the fetcher creates when set to "keep". The tarball is expanded into - the work directory. By default, the CVS metadata is removed. - -- *"fullpath":* Controls whether the resulting checkout is at the - module level, which is the default, or is at deeper paths. - -- *"norecurse":* Causes the fetcher to only checkout the specified - directory with no recurse into any subdirectories. - -- *"port":* The port to which the CVS server connects. - -Some example URLs are as follows:: - - SRC_URI = "cvs://CVSROOT;module=mymodule;tag=some-version;method=ext" - SRC_URI = "cvs://CVSROOT;module=mymodule;date=20060126;localdir=usethat" - .. _svn-fetcher: Subversion (SVN) Fetcher (``svn://``)
doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst +0 -7
@@ -1131,10 +1131,6 @@ overview of their function and contents. Specifies the directory BitBake uses to store a cache of the metadata so it does not need to be parsed every time BitBake is started. - :term:`CVSDIR` - The directory in which files checked out under the CVS system are - stored. - :term:`DEFAULT_PREFERENCE` Specifies a weak bias for recipe selection priority.
@@ -1635,9 +1631,6 @@ overview of their function and contents. - ``ccrc://``: Fetches files from a ClearCase repository. - - ``cvs://``: Fetches files from a CVS revision control - repository. - - ``file://``: Fetches files, which are usually files shipped with the Metadata, from the local machine. The path is relative to the :term:`FILESPATH`
lib/bb/fetch2/__init__.py +0 -2
@@ -2100,7 +2100,6 @@ class FetchConnectionCache(object): self.cache[cn].close() del self.cache[cn] -from . import cvs from . import git from . import gitsm from . import gitannex
@@ -2127,7 +2126,6 @@ methods.append(svn.Svn()) methods.append(git.Git()) methods.append(gitsm.GitSM()) methods.append(gitannex.GitANNEX()) -methods.append(cvs.Cvs()) methods.append(ssh.SSH()) methods.append(sftp.SFTP()) methods.append(s3.S3())
lib/bb/fetch2/cvs.py deleted +0 -157
157 lines not on this page · raw message
lib/bb/tests/fetch.py +0 -35
@@ -158,39 +158,6 @@ class URITest(unittest.TestCase): 'query': {}, 'relative': False }, - "cvs://[email protected]/cvs;module=familiar/dist/ipkg" : { - 'uri': 'cvs://[email protected]/cvs;module=familiar/dist/ipkg', - 'scheme': 'cvs', - 'hostname': 'cvs.handhelds.org', - 'port': None, - 'hostport': 'cvs.handhelds.org', - 'path': '/cvs', - 'userinfo': 'anoncvs', - 'username': 'anoncvs', - 'password': '', - 'params': { - 'module': 'familiar/dist/ipkg' - }, - 'query': {}, - 'relative': False - }, - "cvs://anoncvs:[email protected]/cvs;tag=V0-99-81;module=familiar/dist/ipkg": { - 'uri': 'cvs://anoncvs:[email protected]/cvs;tag=V0-99-81;module=familiar/dist/ipkg', - 'scheme': 'cvs', - 'hostname': 'cvs.handhelds.org', - 'port': None, - 'hostport': 'cvs.handhelds.org', - 'path': '/cvs', - 'userinfo': 'anoncvs:anonymous', - 'username': 'anoncvs', - 'password': 'anonymous', - 'params': collections.OrderedDict([ - ('tag', 'V0-99-81'), - ('module', 'familiar/dist/ipkg') - ]), - 'query': {}, - 'relative': False - }, "file://example.diff": { # NOTE: Not RFC compliant! 'uri': 'file:example.diff', 'scheme': 'file',
@@ -1417,8 +1384,6 @@ class URLHandle(unittest.TestCase): password = urllib.parse.quote(r"!#$%^&*()-_={}[]\|:?,.<>~`", r"!$&'/()*+,;=") datatable = { "http://www.google.com/index.html" : ('http', 'www.google.com', '/index.html', '', '', {}), - "cvs://[email protected]/cvs;module=familiar/dist/ipkg" : ('cvs', 'cvs.handhelds.org', '/cvs', 'anoncvs', '', {'module': 'familiar/dist/ipkg'}), - "cvs://anoncvs:[email protected]/cvs;tag=V0-99-81;module=familiar/dist/ipkg" : ('cvs', 'cvs.handhelds.org', '/cvs', 'anoncvs', 'anonymous', collections.OrderedDict([('tag', 'V0-99-81'), ('module', 'familiar/dist/ipkg')])), "git://git.openembedded.org/bitbake;branch=@foo;protocol=https" : ('git', 'git.openembedded.org', '/bitbake', '', '', {'branch': '@foo', 'protocol' : 'https'}), "file://somelocation;someparam=1": ('file', '', 'somelocation', '', '', {'someparam': '1'}), "file://[email protected]": ('file', '', '[email protected]', '', '', {}),