<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>RE: rtems source builde git repository</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Dear Chris,<BR>
thank you for your quick response. From the doku I understand that the syntax has changed.<BR>
I should use<BR>
%source set rtems_gr-4.10 git.nanotronic:rtems.git?reset=hard?pull?branch=gr-4.10<BR>
<BR>
However I wanted to have a look how the other builds are working. Thus I checked out the latest commit from 2014-08-09<BR>
sb: Add INI format output to the reports.   <BR>
    The INI format report is a way to export a configuration.<BR>
<BR>
There I wanted to build the normal sparc toolchain + rtems Kernel before I proceed with our gaisler patched rtems git tree:<BR>
<BR>
hoefle@wheezy:~/projects/customers/unibern/cassis/clone/source_build_test/scripts$ cd ..<BR>
hoefle@wheezy:~/projects/customers/unibern/cassis/clone/source_build_test$ CUR_DIR=$PWD<BR>
hoefle@wheezy:~/projects/customers/unibern/cassis/clone/source_build_test$ TOOLCHAIN_DIR=$CUR_DIR/build/toolchain<BR>
hoefle@wheezy:~/projects/customers/unibern/cassis/clone/source_build_test$ RTEMS_SOURCE_BUILDER=$CUR_DIR/<BR>
hoefle@wheezy:~/projects/customers/unibern/cassis/clone/source_build_test$ mkdir -p $TOOLCHAIN_DIR<BR>
hoefle@wheezy:~/projects/customers/unibern/cassis/clone/source_build_test$ cd rtems-source-builder/rtems<BR>
hoefle@wheezy:~/projects/customers/unibern/cassis/clone/source_build_test/rtems-source-builder/rtems$ ../source-builder/sb-set-builder --log=$TOOLCHAIN_DIR/4.10-sparc.log --prefix=$TOOLCHAIN_DIR --no-clean 4.10/rtems-sparc.bset<BR>
RTEMS Source Builder - Set Builder, v0.4.0<BR>
Build Set: 4.10/rtems-sparc.bset<BR>
config: devel/expat-2.1.0-1.cfg<BR>
package: expat-2.1.0-x86_64-linux-gnu-1<BR>
Build Set: Time 0:00:00.079997<BR>
Traceback (most recent call last):<BR>
  File "../source-builder/sb-set-builder", line 26, in <module><BR>
    setbuilder.run()<BR>
  File "../source-builder/sb/setbuilder.py", line 468, in run<BR>
    b.build(deps)<BR>
  File "../source-builder/sb/setbuilder.py", line 343, in build<BR>
    self.build_package(configs[s], b)<BR>
  File "../source-builder/sb/setbuilder.py", line 179, in build_package<BR>
    _build.make()<BR>
  File "../source-builder/sb/build.py", line 421, in make<BR>
    self.prep(package)<BR>
  File "../source-builder/sb/build.py", line 317, in prep<BR>
    self.source_setup(package, args[1:])<BR>
  File "../source-builder/sb/build.py", line 219, in source_setup<BR>
    for source in self.source(setup_name):<BR>
  File "../source-builder/sb/build.py", line 173, in source<BR>
    src = download.parse_url(url, '_sourcedir', self.config, self.opts)<BR>
  File "../source-builder/sb/download.py", line 222, in parse_url<BR>
    _hash_check(source['file'], local, config.macros)<BR>
  File "../source-builder/sb/download.py", line 56, in _hash_check<BR>
    hash = sources.get_hash(file_.lower(), macros)<BR>
NameError: global name 'sources' is not defined<BR>
<BR>
<BR>
This was how I used rtems source builder before, is there something missing when trying v0.4.0?<BR>
Thanks,<BR>
Marco<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: Chris Johns [<A HREF="mailto:chrisj@rtems.org">mailto:chrisj@rtems.org</A>]<BR>
Sent: Sat 09/08/2014 05:11<BR>
To: Hoefle Marco; users@rtems.org<BR>
Subject: Re: rtems source builde git repository<BR>
<BR>
On 9/08/2014 1:01 am, Hoefle Marco wrote:<BR>
> Hello,<BR>
> in rtems source build commit 2be445d2aafae21849c5d626b3787e2ab1ac846b<BR>
> this works:<BR>
><BR>
> %define Source0 git.nanotronic:rtems.git?reset=hard?pull?branch=gr-4.10<BR>
><BR>
> rtems source builder output:<BR>
> git: reset: git.nanotronic:rtems.git<BR>
> git: pull: git.nanotronic:rtems.git<BR>
> git: checkout: git.nanotronic:rtems.git => gr-4.10<BR>
><BR>
> With the latest commit 8c19df26f679f53f22144c43b3141278e19da80e (and<BR>
> commits before probably as well)<BR>
> rtems source builder complains about malformed url.<BR>
><BR>
> Is this as the URL does not start with git:// ?<BR>
><BR>
<BR>
You have not provided any output so it is difficult to say. I suspect it<BR>
is related to the changes I talk about below.<BR>
<BR>
> Does anybody know why?<BR>
<BR>
This commit ...<BR>
<BR>
<A HREF="http://git.rtems.org/rtems-source-builder/diff/source-builder/sb/config.py?id=a083b52921a86a3bc49e2cc1d7d102612694557c">http://git.rtems.org/rtems-source-builder/diff/source-builder/sb/config.py?id=a083b52921a86a3bc49e2cc1d7d102612694557c</A><BR>
<BR>
removed support for 'Source0' and 'Patch0'. Please refer to the<BR>
documentation:<BR>
<BR>
<A HREF="http://www.rtems.org/ftp/pub/rtems/people/chrisj/source-builder/source-builder.html#_source">http://www.rtems.org/ftp/pub/rtems/people/chrisj/source-builder/source-builder.html#_source</A><BR>
<BR>
for details.<BR>
<BR>
The %source0, %source1, etc and %patch0, %patch1, etc were difficult to<BR>
maintain and with this change there is no number and so no clashes. All<BR>
you do is add the source or patch.<BR>
<BR>
Chris<BR>
<BR>
<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>