You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@gump.apache.org by Graham Leggett <mi...@sharp.fm> on 2005/10/14 16:05:50 UTC
Problems with tag in a project
Hi all,
I am still having hassles with C/C++ projects and dependencies. I have a
project that depends on other projects, and is configured like this:
<project name="hoops-feed-configure">
<configure>
<arg name="--prefix" path="dest-@@DATE@@"/>
<arg name="--with-hoops" project="hoops-make-install"
reference="home" path="dest-@@DATE@@"/>
<arg name="--with-monacoxml" project="monaco-xml-make-install"
reference="home" path="dest-@@DATE@@"/>
</configure>
<depend project="hoops-make-install"/>
<depend project="monaco-xml-make-install"/>
<license name="LICENSE.txt" />
</project>
The resultant configure line from the above looks like this:
configure
--with-hoops=/udd001/hoops/gump/work/hoops
--with-monacoxml=/udd001/hoops/gump/work/monaco-xml
--prefix=/udd001/hoops/gump/work/hoops-feed/dest-13102005
The key difference is the missing path in --with-hoops and
--with-monacoxml. In both cases, it picks the project source ddirectory up
correctly, but as the path of "dest-@@DATE@@" is ignored, the library is
being searched for in the wrong place, and ./configure fails.
Is there a different way I should configure the project tag?
Regards,
Graham
--
---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org
Re: Problems with tag in a project
Posted by Bill Barker <wb...@wilshire.com>.
"Stefan Bodewig" <bo...@apache.org> wrote in message
news:87mzl9fn59.fsf@www.samaflost.de...
> On Sat, 15 Oct 2005, Bill Barker <wb...@wilshire.com> wrote:
>
>> As stated in
>> http://gump.apache.org/metadata/builder.html#property%2Farg, you
>> can't mix 'reference=' and 'path=' in an <arg/> tag. You have to
>> use one or the other.
>
> Yes, this probably is the problem - sorry I didn't spot this earlier.
>
> Our configure/make combo isn't tested that well. It seems to work
> reasonably for httpd's needs but our whole notion of dependencies and
> build artifacts is pretty much Java centric - wittness Bill's abuse of
> <jar> in the httpd/tomcat-connector situation.
>
Abuse or not, it's working great now :). No longer is j-t-c dependent on
how httpd wants to setup it's paths. In any case, I understand that Gump-3
will abstract this sort of thing properly.
> Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org
Re: Problems with tag in a project
Posted by Stefan Bodewig <bo...@apache.org>.
On Sat, 15 Oct 2005, Bill Barker <wb...@wilshire.com> wrote:
> As stated in
> http://gump.apache.org/metadata/builder.html#property%2Farg, you
> can't mix 'reference=' and 'path=' in an <arg/> tag. You have to
> use one or the other.
Yes, this probably is the problem - sorry I didn't spot this earlier.
Our configure/make combo isn't tested that well. It seems to work
reasonably for httpd's needs but our whole notion of dependencies and
build artifacts is pretty much Java centric - wittness Bill's abuse of
<jar> in the httpd/tomcat-connector situation.
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org
Re: Problems with tag in a project
Posted by Bill Barker <wb...@wilshire.com>.
"Graham Leggett" <mi...@sharp.fm> wrote in message
news:12347.196.8.104.31.1129298750.squirrel@www.sharp.fm...
> Hi all,
>
> I am still having hassles with C/C++ projects and dependencies. I have a
> project that depends on other projects, and is configured like this:
>
> <project name="hoops-feed-configure">
> <configure>
> <arg name="--prefix" path="dest-@@DATE@@"/>
> <arg name="--with-hoops" project="hoops-make-install"
> reference="home" path="dest-@@DATE@@"/>
> <arg name="--with-monacoxml" project="monaco-xml-make-install"
> reference="home" path="dest-@@DATE@@"/>
> </configure>
> <depend project="hoops-make-install"/>
> <depend project="monaco-xml-make-install"/>
> <license name="LICENSE.txt" />
> </project>
>
As stated in http://gump.apache.org/metadata/builder.html#property%2Farg,
you can't mix 'reference=' and 'path=' in an <arg/> tag. You have to use
one or the other.
The usual way to set this up would be to define <home nested="dest-@@DATE@@"
/> (see http://gump.apache.org/metadata/project.html#home) in the
hoops-make-install project, and just reference="home" in
hoops-feed-configure. This frees hoops-feed-configure from knowing about
how hoops-make-install is setup. Of course, I don't know how this affects
the rest of your setup :).
> The resultant configure line from the above looks like this:
>
> configure
> --with-hoops=/udd001/hoops/gump/work/hoops
> --with-monacoxml=/udd001/hoops/gump/work/monaco-xml
> --prefix=/udd001/hoops/gump/work/hoops-feed/dest-13102005
>
> The key difference is the missing path in --with-hoops and
> --with-monacoxml. In both cases, it picks the project source ddirectory up
> correctly, but as the path of "dest-@@DATE@@" is ignored, the library is
> being searched for in the wrong place, and ./configure fails.
>
> Is there a different way I should configure the project tag?
>
> Regards,
> Graham
> --
---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org