Re: kitgen with packages - KBS

"rene" <[email protected]>
Newsgroups gmane.comp.lang.tcl.starkit
Message-ID <[email protected]>
Jean-Claude Wippler schrieb:

> On 13 Apr 2007, at 14:22, rene wrote:
>
> > At first two changes in "kbs.tcl":
> >
> > old:
> >   cd [file dirname [info nameofexe]]
> > new (may be this get better):
> >   cd [file dirname [info nameofexe]]/../..
>
> Wait, that means you'll be building results at the kitgen top-level
> dir.  This is ok for a single configuration, but prevents using kbs
> to build for different configurations (e.g. symbols, profiling).
> Hmmm, looking again - I don't see how your change can work actually,
> doesn't this break kbs::make, which uses ../../extdefs?
I am building in the same directory as before but using a different
executable, the "tclsh.." from the build directory.

>
> Would it be an idea to remove the "cd" command completely?  That way
> both ways of using kbs could perhaps be supported after some tweaking.
I changed as minimal as possible.
IMHO it would be better to start the kbs.tcl from the directory where
it lives.
But then the kbs.tcl must reside in the build directory or we need a
parameter for "v::maindir"

Now some remarks to specific extensions:

"kbs.tcl build Itk" failed in
  Sources symlink [Srcdir]/../Itcl-[Version]
could not create new link ".../kitgen/sources/Itk-3.3": target ".../
kitgen/sources/Itk-3.3/../Itcl-3.3" doesn't exist

workaround in itk.kbs:
#Sources symlink [Srcdir]/../Itcl-[Version]
Sources cvs incrtcl.cvs.sourceforge.net:/cvsroot/incrtcl incrTcl

Tkhtml
  fetching /home/rene/devel/test/kitgen/downloads/tkhtml3-
alpha-14.tar.gz
gzip: /home/rene/devel/test/kitgen/downloads/tkhtml3-alpha-14.tar.gz:
not in gzip format
 --> 1230545 byte

mmh..? If I fetch the file by hand it works?
 wget http://tkhtml.tcl.tk/tkhtml3-alpha-14.tar.gz --> 821190 byte


trofs:
checking system version (for dynamic loading)... /home/rene/devel/test/
kitgen/sources/trofs-0.4.3/configure: line 10146: syntax error near
unexpected token `('
/home/rene/devel/test/kitgen/sources/trofs-0.4.3/configure: line
10146: `    case `(ac_space=' '; set | grep ac_space) 2>&1` in'
child process exited abnormally

workaround in "sources/trofs-0.4.3/configure (line 7145):
old:
                system=MP-RAS-`awk '{print }' /etc/.relid'`
changed:
                system=MP-RAS-`awk '{print }' /etc/.relid`


With the above errors in mind I would vote for a repository with
patched and ready to go versions.
May be a special target like "kbs.tcl getrepository"


rene
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.