This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

libcdl tweak


This patch helps with providing upgrade epk's to a full release.
Configuration savefiles contain the versions of each package, which is
a good idea. Currently templates are implemented using the same
savefile code, so templates also contain versions for each package.
The templates are generated during a release process, so they end up
being tied to the package versions in that release. That makes it more
difficult to upgrade a package by releasing a new epk.

With this patch the package versions in a savefile become optional, so
we can ship templates which do not specify particular versions of each
package. (Previously this would have worked as well but libcdl would
have given warnings). It is not a perfect solution, for example the
template can refer to an option that has been removed from the
package, but the benefits outweigh the risks.

The current templates in anoncvs cannot be changed yet, because we
don't want to force people to upgrade their host tools. Instead we'll
have to wait till the next major release, or until there is some other
reason for forcing people to upgrade the host tools.

Bart

Index: ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/host/libcdl/ChangeLog,v
retrieving revision 1.28
diff -u -r1.28 ChangeLog
--- ChangeLog	1 May 2003 23:00:20 -0000	1.28
+++ ChangeLog	19 Aug 2003 22:33:07 -0000
@@ -1,3 +1,10 @@
+2003-08-19  Bart Veer  <bartv@ecoscentric.com>
+
+	* config.cxx (savefile_package_command):
+	If no version is specified, silently default to the most recent.
+	That can avoid problems with templates specifying particular versions
+	and then providing an update epk.
+
 2003-05-01  Jonathan Larmour  <jifl@eCosCentric.com>
 
 	* doc/package.sgml: Use PNGs instead of GIFs.
Index: config.cxx
===================================================================
RCS file: /cvs/ecos/ecos/host/libcdl/config.cxx,v
retrieving revision 1.7
diff -u -r1.7 config.cxx
--- config.cxx	26 Mar 2003 17:57:58 -0000	1.7
+++ config.cxx	19 Aug 2003 22:33:29 -0000
@@ -1790,8 +1790,7 @@
     int data_index = CdlParse::parse_options(interp, "cdl_configuration/package command", optlist, argc, argv, 1, options);
 
     if (data_index == (argc - 1)) {
-        CdlParse::report_warning(interp, "", std::string("Missing version information for package `")
-                                 + argv[argc - 1] + "'.");
+        // If no version is specified, silently default to the most recent.
         pkgname = argv[argc - 1];
         pkgversion = "";
     } else if (data_index == (argc - 2)) {



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]