From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18554 invoked by alias); 8 Mar 2013 18:56:42 -0000 Received: (qmail 18545 invoked by uid 22791); 8 Mar 2013 18:56:40 -0000 X-SWARE-Spam-Status: No, hits=-4.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-ee0-f51.google.com (HELO mail-ee0-f51.google.com) (74.125.83.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 08 Mar 2013 18:56:21 +0000 Received: by mail-ee0-f51.google.com with SMTP id d17so1199612eek.24 for ; Fri, 08 Mar 2013 10:56:20 -0800 (PST) X-Received: by 10.15.45.201 with SMTP id b49mr8606963eew.9.1362768979914; Fri, 08 Mar 2013 10:56:19 -0800 (PST) Received: from sg-laptop ([93.85.12.73]) by mx.google.com with ESMTPS id s3sm9289440eem.4.2013.03.08.10.56.17 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 08 Mar 2013 10:56:18 -0800 (PST) Date: Fri, 08 Mar 2013 18:56:00 -0000 From: Sergei Gavrikov To: Bob Brusa cc: ecos discuss In-Reply-To: <5139F817.6090701@gmail.com> Message-ID: References: <5139C644.1020200@gmail.com> <5139F817.6090701@gmail.com> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] adding a package with configtool fails X-SW-Source: 2013-03/txt/msg00012.txt.bz2 On Fri, 8 Mar 2013, Bob Brusa wrote: > Am 08.03.2013 13:40, schrieb Sergei Gavrikov: > > On Fri, 8 Mar 2013, Bob Brusa wrote: > > > > > Hi, > > > I moved eCos and tools and the sourcecode of project P2 to a new(er) > > > pc (W7). Actually I had already done an eCos-related project P1 on > > > this pc and hence, I know that everything is working, but P2 needs a > > > (user written) package, not yet included in eCos: > > > > > > - When adding this package with configtool>Tools>Administration and > > > opening the corresponding epk-file, configtool does not report any > > > errors, but the added package is still not part of ecos. > > > > > > When performing this same operation with the same epk-file on the > > > previous old PC, it works. There seems to be something missing on my > > > new pc. But how to find out what? > > > > Hi Bob > > > > May be your installation lacks Tcl. Try from cygwin bash prompt > > > > tclsh "${ECOS_REPOSITORY}"/ecosadmin.tcl list > > > > if this works, then > > > > tclsh "${ECOS_REPOSITORY}"/ecosadmin.tcl add foo.epk > > > > > > Sergei > > > > > Thanks for advice and best regards - Bob > > > > > > > > > -- > > > Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos > > > and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss > > > > Hi Sergei, > In cygwin-terminal I get the following response: > > rwb@w500 ~ > $ tclsh ${ECOS_REPOSITORY}/ecosadmin.tcl list > ecosadmin error: parsing /home/rwb/c:/cygwin/opt/ecos/packages/ecos.db: > couldn't open "/home/rwb/c:/cygwin/opt/ecos/packages/ecos.db": no such file or > directory > > No idea why it adds /home/rwb/ in front of the correctly specified > ECOS_REPOSITORY variable. And what is about echo $ECOS_REPOSITORY output in cygwin bash? It seems that Tcl cannot read the variable, so it does try to calculate the path (see lines 101-111 in ecosadmin.tcl) > On the other hand, when changing to the packages directory - the list is > printed out: > > rwb@w500 ~ > $ cd ${ECOS_REPOSITORY} > > rwb@w500 /opt/ecos/packages > $ tclsh ecosadmin.tcl list > CYGPKG_HAL: current > CYGPKG_INFRA: current... And now, as you can see (lines 107-110) Tcl calculates the path from this point properly. > Any further advice to make it work also from configtool? IMHO, you have to set ECOS_REPOSITORY variable for Cygwin's Bash, do you source any `ecosenv.sh' profile on a login? Sorry, I have not Windows/Cygwin installed (above is my guess only). Sergei > Thank you and regards - Bob > > > -- > Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos > and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss > -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss