Patch for svn uri for local path specification
Aloah,
for a 3rd party module we need a precompiled v8 on our target - in a specific version ;) Simply adding a recipe leads to suffer and pain for the nice google lib ...
I end up with https://github.com/rehsack/meta-jens/tree/master/recipes-www/v8 and attached patch to poky:
Comments or applying is appreciated :)
Best regards
Signature · 2 lines
Jens Rehsack [email protected]
bitbake/lib/bb/fetch2/svn.py +7 -2
@@ -54,6 +54,11 @@ class Svn(FetchMethod): ud.module = ud.parm["module"] + if not "path_spec" in ud.parm: + ud.path_spec = ud.module + else: + ud.path_spec = ud.parm["path_spec"] + # Create paths to svn checkouts relpath = self._strip_leading_slashes(ud.path) ud.pkgdir = os.path.join(data.expand('${SVNDIR}', d), ud.host, relpath)
@@ -101,7 +106,7 @@ class Svn(FetchMethod): suffix = "@%s" % (ud.revision) if command == "fetch": - svncmd = "%s co %s %s://%s/%s%s %s" % (ud.basecmd, " ".join(options), proto, svnroot, ud.module, suffix, ud.module) + svncmd = "%s co %s %s://%s/%s%s %s" % (ud.basecmd, " ".join(options), proto, svnroot, ud.module, suffix, ud.path_spec) elif command == "update": svncmd = "%s update %s" % (ud.basecmd, " ".join(options)) else:
@@ -148,7 +153,7 @@ class Svn(FetchMethod): os.chdir(ud.pkgdir) # tar them up to a defined filename - runfetchcmd("tar %s -czf %s %s" % (tar_flags, ud.localpath, ud.module), d, cleanup = [ud.localpath]) + runfetchcmd("tar %s -czf %s %s" % (tar_flags, ud.localpath, ud.path_spec), d, cleanup = [ud.localpath]) def clean(self, ud, d): """ Clean SVN specific files and dirs """