This is the mail archive of the
ecos-bugs@sources.redhat.com
mailing list for the eCos project.
[Bug 21996] New: Configuration tool 1.3.1.2 unable to treat versions (named or latest)
- From: bugzilla-daemon at ecoscentric dot com
- To: ecos-bugs at sources dot redhat dot com
- Date: Fri, 25 Apr 2003 01:49:44 +0100 (BST)
- Subject: [Bug 21996] New: Configuration tool 1.3.1.2 unable to treat versions (named or latest)
http://bugs.ecos.sourceware.org/show_bug.cgi?id=21996
Summary: Configuration tool 1.3.1.2 unable to treat versions
(named or latest)
Product: eCos
Version: 1.3.1
Platform: edb7xxx (Cirrus Logic EDB7xxx development board)
OS/Version: ARM
Status: UNCONFIRMED
Severity: normal
Priority: low
Component: Other
AssignedTo: jld at ecoscentric dot com
ReportedBy: anonymous at sourceware dot cygnus dot com
The ecosconfig 1.3.1.2 is unable to handle the "version" param
with the new command - this is a command line parsing issue.
With no version argument, there is also a problem to detect
the latest revision of templates. This affect not only
ecosconfig but also configtool. But this is can not be observed
with a classic "cvs co" tree.
How-To-Repeat:
When using a cvs repository without "current.ect" or "current"
directories (for instance, to avoid cvs co influence over
existing installed trees), ecosconfig new edb7xxx default is
expected IMO to get the latest configuration. This work for
hardware packages but not for template packages.
Fix:
The command line problem is due to a too-speedy evolution of the
command_index variable in file
host/tools/configtool/standalone/common/ecosconfig.cxx between
version 1.4 and 1.5. The fix is obvious, after analyzing the
diff.
The no-version problem is due to an obscur (to me) behavior
in libcdl. The packages.versions and the templates.versions
are not initialized the same way in host/libcdl/database.cxx
Packages subdirs are sorted with version_cmp(). Templates names
(without .ect) are not sorted and then the first element of the
TCL glob is selected, i.e. it is like an "ls -U" order.
The templates versions should be IMO sorted with version_cmp
I do NOT want to recompile the windows MFC binaries ... As a
workaround, I just use a small script that recreate the
template directory with the expected order. piggy but works.
---------------------------------------------------------------------------
Originator:
eric donnat
Organization:
Silicomp Research Institute
Unformatted:
Originator:
page: sourceware.cygnus.com/ecos/problemreport.html
Send_PR_form: Sent_from_sourceware.cygnus.com
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.