1 2010-08-19 Keith Marshall <keithmarshall@users.sourceforge.net>
3 Some dependency resolver enhancements and bug fixes.
5 * src/pkgbase.h (pkgXmlNode::GetContainerAttribute): New method;
8 * src/pkgdeps.cpp (pkgXmlNode::GetContainerAttribute): Implement it;
9 it is used to retrieve package name attributes from the containing
10 'package' element, when given a pointer to a 'release' element by...
11 (assert_unmatched, assert_installed): ...these new static functions.
12 (pkgXmlDocument::Schedule): Use them to reconstruct and register
13 dependency reference data for previously installed packages which are
14 no longer included in the distribution manifest.
15 (pkgXmlDocument::ResolveDependencies): Fix a block nesting error;
16 catch and diagnose unresolved dependencies; don't look beyond the XML
17 document root node, (tinyxml error not caught?), when searching for
18 requirements specified on container nodes.
20 2010-08-17 Keith Marshall <keithmarshall@users.sourceforge.net>
22 Improve scheduling of package processing requests.
24 * src/pkgexec.cpp (pkgXmlDocument::Schedule): Inspect entire `actions'
25 list, when checking for duplicate package processing requests; decline
26 to schedule any such duplicate, or any request which lacks a package
29 2010-08-15 Keith Marshall <keithmarshall@users.sourceforge.net>
31 Lay foundation for selective compilation of debugging code.
33 * src/debug.h: New file...
34 * src/sysroot.cpp: Include it.
35 (pkgXmlDocument::LoadSystemMap): Make debugging output conditional...
36 [DEBUGLEVEL & DEBUG_TRACE_INIT]: ...on this new debugging state.
38 2010-08-15 Keith Marshall <keithmarshall@users.sourceforge.net>
40 * src/pkgkeys.h: Typo in comment: file was previously identified as
43 2010-08-13 Keith Marshall <keithmarshall@users.sourceforge.net>
45 Improve diagnostics for invalid references to non-release XML nodes.
47 * src/pkgkeys.h (value_unknown): New global string; declare it.
48 * src/pkgkeys.c (value_unknown): Implement it.
50 * src/pkgname.cpp (pkgArchiveName): Identify XML element type when
51 diagnosing references to elements of types other than release; use...
52 (value_unknown): ...this, as appropriate.
54 2010-08-12 Keith Marshall <keithmarshall@users.sourceforge.net>
56 Guard against a potential buffer overrun.
58 * src/pkgreqs.cpp (pkgSpecs::SetProperty): Allocate an additional
59 byte to accommodate an extra field separator, when inserting a new
60 data value into a previously empty field.
62 2010-07-27 Cesar Strauss <cestrauss@gmail.com>
64 Handle the GNU long name tar header format.
66 * src/pkgproc.h (TAR_ENTITY_TYPE_GNU_LONGNAME): New manifest constant;
68 (pkgTarArchiveProcessor::EntityDataAsString): New protected method;
70 * src/tarproc.cpp: ...implement it.
71 (pkgTarArchiveProcessor::Process): Before building the entry pathname,
72 check for a GNU long name type header; when found, read pathname from
73 the entry data area, before fetching the following header, from which
74 to retrieve the associated entity data.
76 2010-06-24 Keith Marshall <keithmarshall@users.sourceforge.net>
78 Work around an autoconf bug (reported by Stefano Sabatini).
80 * Makefile.in (VPATH): Use @top_srcdir@ instead of ${srcdir}; current
81 autoconf incorrectly elides references to @srcdir@ and ${srcdir} when
82 substituting within a VPATH specification for building `in-source'.
83 Also, prefer colons to blanks as path name separators, for improved
84 portability to non-GNU implementations of make; (recommendation by
87 2010-06-24 Keith Marshall <keithmarshall@users.sourceforge.net>
89 Include alias search, when matching component package name.
91 * src/keyword.c (has_keyword): Rearrange argument declarations for
92 more natural order; update all callers accordingly. Simplify; compare
93 keyword to be matched with each successive candidate from match-list,
94 character-by-character and in-place, so avoiding memory allocation
95 for any local duplicate of the passed match-list; thus...
96 (safe_strdup): ...this static function no longer required; delete it.
97 (string.h): No references remain; do not include it.
99 * src/pkgfind.cpp (pkgXmlNode::FindPackageByName): Augment component
100 package name matching to include potential matches of the look-up name
101 with trailing component name stripped off, when that matches the class
102 name of an identified component package, and the initial substring of
103 the look-up name, after stripping, matches any specified alias name
104 for the containing package.
106 2010-06-10 Keith Marshall <keithmarshall@users.sourceforge.net>
108 Address FIXME relating to identification of distributable files.
110 * install-sh: Move to...
111 * build-aux: ...this new directory.
113 * Makefile.in (PACKAGE_DISTVERSION): Modify `sed' edit sequence; make
114 it depend on, and ensure that it incorporates the expansion of...
115 (PACKAGE_SUBSYSTEM): ...this new macro; defined as substitution of...
116 (host_os): ...this autoconf variable, set by...
118 * configure.ac (AC_CANONICAL_HOST): ...this; add it, requiring...
119 (AC_CONFIG_AUX_DIR): ...`build-aux' directory reference, providing...
121 * build-aux/config.guess, build-aux/config.sub: ...these new standard
122 files; import them from the standard `build-aux' repository.
124 2010-05-17 Keith Marshall <keithmarshall@users.sourceforge.net>
126 Bump version for next release cycle.
128 * configure.ac (AC_INIT): Bump version suffix to alpha-3.
130 2010-05-17 Keith Marshall <keithmarshall@users.sourceforge.net>
132 mingw-get-0.1-mingw32-alpha-2 released.
134 * README: Add new release notes.
136 * xml/profile.xml: Update to use default referencing for...
137 (package-list.xml.lzma): ...this repository master catalogue.
139 * All files (r0-1-alpha-2): Tag assigned.
141 2010-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
143 Make provision to protect user's profile settings during upgrade.
145 * Makefile.in (install): Remove `profile.xml'; replace it with...
146 (install-profile): ...this new prerequisite installation goal; it
147 renames the installed copy of `profile.xml' as `defaults.xml', within
148 the installed package image.
150 * src/pkgkeys.h (defaults_key): New key; declare it.
151 * src/pkgkeys.c: Some cosmetic formatting (tabulation) adjustments.
152 (defaults_key): Implement it; it refers to the `defaults.xml' file.
154 * src/climain.cpp (climain): Check `profile_key' for accessibility of
155 the `profile.xml' file; if [! R_OK] emit a diagnostic warning, fall
156 back on `defaults_key', and attempt to load configuration from the
157 distributed `defaults.xml' file.
159 2010-05-11 Keith Marshall <keithmarshall@users.sourceforge.net>
161 Add preliminary support for future `-reinstall' option.
163 * src/pkgexec.cpp (pkgActionItem::Execute) [ACTION_INSTALL]: Force
164 installation if `-reinstall' option is selected, overriding state of
165 any prior installation; temporarily assume that this option is always
166 selected, to permit proper `upgrade' operation in the absence of any
167 functional `uninstall' capability, and pending implementation of a
168 mechanism for interpreting user specified options.
170 2010-05-11 Keith Marshall <keithmarshall@users.sourceforge.net>
172 Correct handling for "%R" macro in relative sysroot path specs.
174 * src/tarproc.cpp (pkgTarArchiveProcessor): In constructor, expand the
175 sysroot path specification a second time, to capture the effect of any
176 embedded macros, before computing the recorded `sysroot_len' value.
178 2010-05-05 Keith Marshall <keithmarshall@users.sourceforge.net>
180 Handle "%" wildcard matches in package and subsystem version strings.
182 * src/pkgbase.h (pkgSpecs): Forward declare it.
183 (pkgActionItem::~pkgActionItem): Declare explicit destructor.
184 (pkgActionItem::SetRequirements): Add extra `pkgSpecs*' argument;
185 update references, passing additional argument in...
187 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): ...this.
189 * src/pkgexec.cpp (pkgActionItem::~pkgActionItem): Implement it.
190 (pkgActionItem::SetRequirements): Delete obsolete implementation.
192 * src/pkginfo/pkginfo.h: Update copyright notice; add year 2010.
193 (pkgSpecs::GetTarName): New public method; declare it.
194 (pkgSpecs::SetProperty): New private method; declare it.
195 (pkgSpecs::SetPackageName): New inline method; implement it.
196 (pkgSpecs::SetPackageVersion, pkgSpecs::SetPackageBuild): Likewise.
197 (pkgSpecs::SetSubSystemName, pkgSpecs::SetSubSystemVersion): Likewise.
198 (pkgSpecs::SetSubSystemBuild, pkgSpecs::SetReleaseStatus): Likewise.
199 (pkgSpecs::SetReleaseIndex, pkgSpecs::SetComponentClass): Likewise.
200 (pkgSpecs::SetComponentVersion, pkgSpecs::SetPackageFormat): Likewise.
201 (pkgSpecs::SetCompressionType): Likewise.
203 * src/pkginfo/pkginfo.l: Update copyright notice; add year 2010.
204 (TRANS): Interpret "%" as wildcard in version string matches.
206 * src/pkgreqs.cpp: New file.
207 (pkgActionItem::SetRequirements): Reimplement per new declaration;
208 it now always allocates heap memory for requirements specifications.
209 (pkgSpecs::GetTarName, pkgSpecs::SetProperty): Implement them.
211 * Makefile.in (CORE_DLL_OBJECTS): Add `pkgreqs.$(OBJEXT)'.
213 2010-04-30 Keith Marshall <keithmarshall@users.sourceforge.net>
215 Revert 2010-04-04 refactoring of tarproc.cpp and tarinst.cpp
217 * src/tarinst.cpp: File removed; its content merged into...
218 * src/tarproc.cpp: ...this; it cannot be cleanly separated out.
220 * Makefile.in (tarinst.$OBJEXT): Remove reference.
222 2010-04-29 Keith Marshall <keithmarshall@users.sourceforge.net>
224 Handle "*" wildcard matches in package and subsystem version strings.
226 * src/vercmp.h (pkgVersionInfo::version_string): New private member
227 variable; it stores a pointer to a dynamically allocated local copy of
228 the invariant `version' argument, to facilitate correct parsing.
229 (pkgVersionInfo::build_string): Likewise; it provides similar handling
230 for the invariant `build' argument.
231 (pkgVersionInfo::Free): New private inline method; it provides a NULL
232 pointer safe wrapper, calling the C library `free()' function, (since
233 some implementations are believed to be unsafe); it is used by...
234 (pkgVersionInfo::~pkgVersionInfo): ...this new inline destructor, to
235 release the memory allocated by the constructor, for `version_string'
238 * src/vercmp.cpp (pkgVersionInfo::pkgVersionInfo): Allocate memory for
239 `version_string' and `build_string', as required; populate it.
240 Explicitly handle "*" as a `match anything' wildcard...
241 (pkgVersionInfo::Compare): ...matching it as `equal' to everything.
243 2010-04-18 Keith Marshall <keithmarshall@users.sourceforge.net>
245 Correct omission from configure script prerequisite checks.
247 * aclocal.m4 (MINGW_AC_OUTPUT): New macro; it wraps AC_OUTPUT itself,
248 adding a trap to force an abort if any preceding prerequisite check
249 was handled by MINGW_AC_ASSERT_MISSING.
251 * configure.ac: Qualify package component types, in prerequisite
252 checks handled by MINGW_AC_ASSERT_MISSING; invoke MINGW_AC_OUTPUT
253 in place of AC_OUTPUT.
255 2010-04-17 Keith Marshall <keithmarshall@users.sourceforge.net>
257 Add configure script checks for prerequisite library headers.
258 (Thanks to Cesar Strauss for proposing a rudimentary implementation).
260 * aclocal.m4: New file; it does no more than include...
261 * m4/missing.m4: ...this; new file incorporated from build-aux module.
263 * configure.ac: Add AC_CHECK_HEADER assertions for...
264 (zlib.h, bzlib.h, lzma.h): ...these; invoke MINGW_AC_ASSERT_MISSING in
265 respect of each failing assertion.
267 2010-04-17 Keith Marshall <keithmarshall@users.sourceforge.net>
269 Case-insensitive subsystem name matching revisited.
271 * src/pkgfind.cpp (pkgXmlDocument::FindPackageByName): Use...
272 (subsystem_strcmp): ...this to match subsystem names, instead of...
273 (match_if_explicit): ...this.
275 2010-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
277 Enable recursive processing of repository package lists.
279 * src/pkgbase.h (pkgXmlDocument::SyncRepository): Make it public.
281 * src/pkgbind.cpp (pkgRepository): New locally defined and implemented
282 class; it facilitates recursive loading and parsing of package lists,
283 replacing much of the original non-recursive functionality within...
284 (pkgXmlDocument::BindRepositories): ...this; use it.
286 2010-04-04 Keith Marshall <keithmarshall@users.sourceforge.net>
288 Implement installer function; use per-package file manifests.
290 * src/pkgproc.h (pkgManifest): New class; declare it.
291 (pkgArchiveProcessor::origin): New protected member variable.
292 (pkgArchiveProcessor::sysroot_len): New protected member variable.
293 (pkgArchiveProcessor::installed): Type changed to `pkgManifest *'.
294 (pkgTarArchiveInstaller::Process): Declare specialisation hook.
295 (pkgTarArchiveInstaller::UpdateInstallationManifest): Disused member
296 function; remove redundant declaration from class definition.
297 (pkgInstall): New generalised installation function; declare it.
298 (pkgRegister): New function; declare it.
300 * src/pkginst.cpp: New file.
301 (pkgManifest, pkgInstall, pkgRegister): Implement them.
303 * src/pkgexec.cpp (pkgActionItem::Execute): Use `pkgInstall' in place
304 of stub formerly provided here.
306 * src/pkgkeys.h (manifest_key, reference_key): New keys; declare them.
307 * src/pkgkeys.c (manifest_key, reference_key): Implement them.
309 * src/tarproc.cpp: Code refactored.
310 (pkgTarArchiveProcessor::sysroot_len): Initialise it.
311 (pkgTarArchiveProcessor::origin): Initialise it.
312 (pkgTarArchiveProcessor::installed): Initialise; associate it with a
313 pkgManifest class entity, and populate this as appropriate.
314 (pkgTarArchiveProcessor::~pkgTarArchiveProcessor): Add explicit clean
315 up of linked `pkgManifest *' entity referenced by `installed'.
316 (pkgTarArchiveProcessor::Process) [TAR_ENTITY_TYPE_DIRECTORY]: Add
317 braces to demarcate localised inner scope of string scan for removal
318 of trailing directory name separators; (thanks to Cesar Strauss for
319 reporting invalid local pointer declaration error in GCC >= 4.4).
320 (pkgTarArchiveInstaller::UpdateInstallationManifest): Deleted.
321 (pkgTarArchiveInstaller::pkgTarArchiveInstaller): Factor out.
322 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
323 (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
324 (commit_saved_entity): Likewise.
326 * src/tarinst.cpp: New file; it implements...
327 (pkgTarArchiveInstaller::Process): ...this new specialisation
328 of the original pkgTarArchiveProcessor::Process method...
329 (pkgTarArchiveInstaller::pkgTarArchiveInstaller): ...and this
330 refactored code, abstracted from src/tarproc.cpp and modified to
331 use the pkgManifest class for installation tracking.
332 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
333 (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
334 (commit_saved_entity): Relocated from src/tarproc.cpp.
336 * Makefile.in (CORE_DLL_OBJECTS): Add...
337 (pkginst.OBJEXT, tarinst.OBJEXT): ...these new object files.
339 2010-03-31 Keith Marshall <keithmarshall@users.sourceforge.net>
341 Guard against NULL pointer dereferences in tinyxml code.
343 * src/pkgbase.h (pkgXmlNode::GetName): Verify `this' pointer is
344 non-NULL, before invoking the underlying tinyxml method.
345 (pkgXmlNode::GetParent, pkgXmlNode::GetChildren): Likewise.
346 (pkgXmlNode::GetNext, pkgXmlNode::GetPropVal): Likewise.
347 (pkgXmlNode::AddChild, pkgXmlNode::DeleteChild): Likewise.
348 (pkgXmlNode::GetDocumentRoot): Likewise.
349 (pkgXmlNode::IsElementOfType): Likewise.
351 2010-03-28 Cesar Strauss <cestrauss@gmail.com>
353 Avoid running InternetAttemptConnect in pkgInternetAgent
354 constructor, since it is called during DLL initialisation.
356 * src/pkginet.cpp (pkgInternetAgent::pkgInternetAgent): Move the
357 InternetAttemptConnect call from constructor...
358 (pkgInternetAgent::OpenURL): ...to here.
360 2010-03-23 Keith Marshall <keithmarshall@users.sourceforge.net>
362 Automate object code dependency tracking.
364 * Makefile.in (DEPFLAGS): New macro; define it.
365 (%.OBJEXT: %.c, %.OBJEXT: %.cpp): Add dependency generator commands...
366 (%.d): ...to create these dependency maps; `sinclude' them, and...
367 (clean): ...remove them.
369 * .cvsignore (*.d): Add wild card template to match them.
371 2010-03-22 Keith Marshall <keithmarshall@users.sourceforge.net>
373 Support case insensitive matching for file and subsystem names.
375 * src/pkgbase.h (safe_strcmp): New inline function; it provides NULL
376 argument safe comparison of strings, returning the boolean inverse of
377 the `strcmp' result, using either case-sensitive or case-insensitive
378 semantics; derive it from...
379 (match_if_explicit): ...this; redefine as macro; invoke `safe_strcmp'
380 using explicitly case-sensitive semantics.
381 (subsystem_strcmp): New macro; it invokes `safe_strcmp' with either
382 case-sensitive or case-insensitive semantics, depending on...
383 (CASE_INSENSITIVE_SUBSYSTEMS): ...this new context selection macro; it
384 fixes the choice between case-sensitive and case-insensitive matching
385 semantics for any given implementation, at compile time.
386 (pkg_strcmp): New macro; it invokes `safe_strcmp' with either
387 case-sensitive or case-insensitive semantics, depending on...
388 (CASE_INSENSITIVE_FILESYSTEM): ...this new context selection macro; it
389 fixes the choice between case-sensitive and case-insensitive matching
390 semantics for any given implementation, at compile time.
392 * src/sysroot.cpp (pkgXmlNode::GetSysRoot): Use `subsystem_strcmp'.
394 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
396 Add preliminary support for virtual packages.
398 * src/pkgkeys.h (yes_value, no_value): Redefine as aliases...
399 (value_yes, value_no): ...for these new global strings; declare them.
400 (value_none, value_virtual): New global strings; declare them.
402 * src/pkgkeys.c (yes_value, no_value): Rename...
403 (value_yes, value_no): ...to implement these, respectively.
404 (value_none, value_virtual): Implement them.
406 * src/pkgname.cpp (pkgXmlNode::ArchiveName): Check containing package
407 node for `class' attribute set to `value_virtual'; if present, always
408 return the effective `tarname' property as `value_none'.
410 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): For packages
411 with an effective `tarname' of `value_none', do not download anything.
413 * src/pkgexec.cpp (pkgActionItem::Execute): For packages with an
414 effective `tarname' of `value_none', do not invoke any tar archive
417 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
419 Don't write installation records for unavailable packages.
421 * src/tarproc.cpp (pkgTarArchiveInstaller): In constructor, ensure
422 archive is ready for processing, before initialising an installation
425 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
427 Rationalise path identification for XML file locations.
429 * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Use `xmlfile()'
430 function to locate `sysroot' map file; free memory when done.
431 (pkgXmlDocument::UpdateSystemMap): Likewise.
432 (sigpath): Static global variable disused; delete it.
434 2010-03-01 Keith Marshall <keithmarshall@users.sourceforge.net>
436 Extend package name search to include component packages.
438 * src/pkgfind.cpp (pkgHasMatchingName): Remove; fold it into...
439 (pkgXmlNode::FindPackageByName): ...this; augment to extend search
440 within package definition elements, seeking a potential match on an
441 included component package name or component class-implied name.
443 * src/pkgkeys.h (class_key): New global string constant; declare it.
444 * src/pkgkeys.c (class_key): Implement it.
446 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
448 Bump version for next release cycle.
450 * configure.ac (AC_INIT): Bump version suffix to alpha-2.
452 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
454 mingw-get-0.1-mingw32-alpha-1 released.
456 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
458 Prepare initial package release.
460 * README: New file; use it to source release notes.
462 * Makefile.in (SRCDIST_FILES): Use ...
463 (LICENCE_FILES): ...this new macro; define it.
464 (licdist): New build goal; implement it.
465 (bindist): Require it; add alternative `zip' format package.
467 * xml/profile.xml (repository): Set default `package-index' name.
468 (system-map): Normalise spelling for default `sysroot' path names.
470 2010-02-10 Keith Marshall <keithmarshall@users.sourceforge.net>
472 Add directory/file records in installation manifests.
474 * src/pkgkeys.h (dirname_key, filename_key): New strings; declare...
475 * src/pkgkeys.c (dirname_key, filename_key): ...and implement them.
477 * src/pkgproc.h (pkgArchiveProcessor::installed): New class member
478 variable; declare it.
479 (pkgTarArchiveInstaller::UpdateInstallationManifest): New method;
482 * src/tarproc.cpp: Miscellaneous comment updates.
483 (pkgTarArchiveInstaller): In constructor...
484 (pkgTarArchiveInstaller::installed): ...use new member variable...
485 (pkgArchiveProcessor::installed): ...inherited from this.
486 (pkgTarArchiveInstaller::UpdateInstallationManifest): Implement and...
487 (pkgTarArchiveInstaller::ProcessDataStream): ...use it.
488 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
490 2010-02-06 Keith Marshall <keithmarshall@users.sourceforge.net>
492 Work around a deficiency in Microsoft's stat() implementation.
494 * src/tarproc.cpp (pkgTarArchiveProcessor::ProcessDirectory): Don't
495 pass a `pathname' argument with trailing slashes; strip them off.
497 2010-02-06 Keith Marshall <keithmarshall@users.sourceforge.net>
499 Add machinery for installation and packaging for distribution.
501 * install-sh: New file; source it from autoconf distribution.
503 * configure.ac (AC_PREFIX_DEFAULT): Assign it as `C:/MinGW'.
504 (AC_PROG_MKDIR_P, AC_PROG_INSTALL, AC_PROG_LN_S): Invoke these.
505 (STRIP): New output variable; use AC_CHECK_TOOL to define it.
507 * Makefile.in (abs_top_srcdir): Define to AC_SUBST value.
508 (PACKAGE_TARNAME, PACKAGE_VERSION): Define to AC_SUBST values.
509 (prefix, exec_prefix, bindir, libexecdir, localstatedir): Likewise.
510 (INSTALL, INSTALL_PROGRAM, INSTALL_SCRIPT, INSTALL_DATA): Likewise.
511 (STRIP): New macro; define it using AC_CHECK_TOOL substitution.
512 (mkinstalldirs): New macro; define it as AC_PROG_MKDIR_P result.
513 (LN_S): New macro; define it as AC_PROG_LN_S result.
514 (dist, srcdist, bindist): New build objectives; implement them.
515 (install, installdirs, install-strip, maintainer-clean): Likewise.
516 (SRCDIST_FILES, SRCDIST_SUBDIRS): New macros; define them.
517 (PACKAGE_DISTNAME, PACKAGE_DISTVERSION): Likewise.
518 (PACKAGE_DISTROOT, PACKAGE_ROOTVERSION): Likewise.
519 (PACKAGE_CONFIG_DIR): Likewise.
521 2010-02-02 Keith Marshall <keithmarshall@users.sourceforge.net>
523 Implement package installer for tar archives.
525 * src/pkgexec.cpp (pkgXmlDocument::Execute): Replace existing
526 stub implementation of installer, using methods provided by...
527 * src/pkgproc.h, src/tarproc.cpp: ...these new files, with trap...
528 * src/pkgdeps.cpp (pkgXmlDocument::Schedule) [installed]: Add entry...
529 (pkgActionItem::Selection) [to_remove]: ...for this; use it to detect
530 `install' requests for packages which are aleady installed.
532 * Makefile.in (CORE_DLL_OBJECTS): Add tarproc.$(OBJEXT); specify
533 dependencies as appropriate.
535 * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Don't commit
536 newly created `sysroot' mapping records to disk; defer to...
537 (pkgXmlDocument::UpdateSystemMap): ...this new method.
538 (sigpath): Make it a global variable, with file (static) scope.
540 * src/climain.cpp (pkgXmlDocument::UpdateSystemMap): Invoke it.
542 * src/pkgkeys.h (download_key, modified_key, source_key): New global
543 string variables; declare them, providing their implementations...
544 * src/pkgkeys.c (download_key, modified_key, source_key): ...here.
545 * src/pkgname.cpp (download_key, source_key): Use them.
547 * src/pkginet.cpp (pkgActionItem::ArchivePath): Delete; replace...
548 * src/mkpath.c (pkgArchivePath): ...with this free standing function.
549 * src/mkpath.h (pkgArchivePath): Declare its prototype.
551 * src/pkgbase.h (pkgActionItem::ArchivePath): Delete declaration.
552 (pkgXmlDocument): Add a default constructor; implement as `inline'.
553 (pkgXmlDocument::AddDeclaration): Use heap memory to allocate the new
554 declaration object, instead of `auto' variable, to avoid scope error.
555 (pkgXmlDocument::UpdateSystemMap): Declare it.
557 2010-01-26 Keith Marshall <keithmarshall@users.sourceforge.net>
559 Implement rudimentary dependency resolver.
561 * src/pkgdeps.cpp: New file.
563 * Makefile.in (CORE_DLL_OBJECTS): Add pkgdeps.$(OBJEXT) reference;
564 establish header file dependencies.
566 * src/pkgbase.h (to_remove, to_install, selection_types): New enum.
567 (pkgActionItem::selection): Extend it to store as enumerated pair...
568 (pkgActionItem::SelectPackage): New inline method; assign them.
569 (pkgActionItem::Selection): New inline method; retrieve them.
570 (pkgXmlNode::GetInstallationRecord): New method; declare it.
572 * src/pkgexec.cpp (pkgActionItem): In constructor...
573 (selection): ...initialise both references in enumerated pair.
574 (pkgActionItem::GetReference): Use `Selection()' method.
575 (pkgActionItem::SelectIfMostRecent): Ditto; also correct logic for
576 making selection, and assign to `to_install' element.
577 (pkgXmlDocument::Schedule): Don't update `request'.
578 (pkgActionItem::Execute): Implement as stub.
580 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): Use new
581 `Selection()' method.
583 * src/pkgkeys.h (yes_value, no_value): Declare new string constants.
584 * src/pkgkeys.c (yes_value, no_value): Implement them.
586 * src/vercmp.cpp: Update copyright notice.
587 (pkgVersionInfo::operator<=): Bug fix; must test for `<', but had `>'.
589 2010-01-23 Keith Marshall <keithmarshall@users.sourceforge.net>
591 Avoid segmentation faults when processing invalid data streams.
593 * src/pkgstrm.h: Update copyright notice.
594 (pkgArchiveStream::IsReady): New pure virtual method.
595 (pkgRawArchiveStream::IsReady): Provide inline implementation.
596 (pkgGzipArchiveStream::IsReady): Likewise.
597 (pkgBzipArchiveStream::IsReady): Likewise.
598 (pkgLzmaArchiveStream::IsReady): Likewise.
599 (pkgXzArchiveStream::IsReady): Likewise.
601 * src/pkgstrm.cpp: Update copyright notice.
602 (pkgLzmaArchiveStream, pkgXzArchiveStream) [fd == -1]: Decline to
603 perform any form of read or decode processing.
605 * src/pkginet.cpp (pkgInternetLzmaStreamingAgent): Use `fd = -2' as
606 pseudo-descriptor for the pkgLzmaArchiveStream derived component of
607 this internet data streaming class.
609 2010-01-23 Keith Marshall <keithmarshall@users.sourceforge.net>
611 Require liblzma >= liblzma-4.999.9beta_20091209-3-mingw32-dev
613 * src/pkgstrm.h (LZMA_API_STATIC): Remove definition and associated
614 comment; it was required to permit, (but not to enforce), linking to
615 the static liblzma.a library, with earlier beta releases, but this
616 anomaly has now been corrected.
618 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
620 Remove zlib sources from trunk.
621 (Application builders should use free standing implementation of
622 zlib, from MinGW's package distribution page on SourceForge).
624 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
626 Remove bzip2 sources from trunk.
627 (Application builders should use free standing implementation of
628 bzip2, from MinGW's package distribution page on SourceForge).
630 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
632 Add subsystem specific sysroot mapping facility.
634 * src/pkghash.c: New file; required by...
635 * src/sysroot.cpp: New file; it implements...
636 (pkgXmlDocument::LoadSystemMap, pkgXmlNode::GetSysRoot): New methods.
638 * src/pkgbase.h: Update copyright notice.
639 (pkgXmlDocument::LoadSystemMap): Declare it.
640 (pkgXmlDocument::AddDeclaration): New inline method.
641 (pkgXmlDocument::SetRoot, pkgXmlDocument::Save): Likewise.
642 (pkgXmlNode::GetSysRoot): Declare it.
643 (pkgXmlNode::GetDocumentRoot): New inline method.
644 (pkgXmlNode::AddChild, pkgXmlNode::DeleteChild): Likewise.
646 * src/climain.cpp: Update copyright notice.
647 (climain): Invoke pkgXmlDocument::LoadSystemMap() as required.
649 * Makefile.in (CORE_DLL_OBJECTS): Add ...
650 (pkghash.$(OBJEXT), sysroot.$(OBJEXT)): ...these; upate dependencies.
651 (DEBUGLEVEL): New macro; define it.
654 2010-01-16 Keith Marshall <keithmarshall@users.sourceforge.net>
656 Assign standardised keys for XML database lookup.
658 * src/pkgkeys.h: New file; provide public key declarations.
659 * src/pkgkeys.c: New file; implement them.
661 * src/pkgbind.cpp: Use them; update copyright notice.
662 * src/pkgexec.cpp, src/pkgfind.cpp, src/pkginet.cpp: Likewise.
663 * src/pkgname.cpp, src/pkgspec.cpp: Likewise.
665 * Makfile.in (CORE_DLL_OBJECTS): Add pkgkeys.$(OBJEXT); update all
666 dependencies accordingly.
668 2010-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
670 Add CLI version reporting option.
672 * configure.ac: Update copyright notice for new year.
673 (COPYRIGHT_HOLDER): New AC_SUBST variable; define it.
674 (YEARS_OF_ISSUE): New AC_SUBST variable; define it.
675 (AC_CONFIG_FILES): Add `version.c'; source it from...
677 * version.c.in: ...this new file.
679 * Makefile.in: Update copyright notice for new year.
680 (mingw-get$(EXEEXT)): Add dependency on `version.$(OBJEXT)'.
681 (distclean): Add `version.c'.
683 * configure: Regenerated.
685 * src/clistub.c: Update copyright notice for new year.
686 (options): New array of `struct option'; define and use it as the
687 reference for `argv' parsing with `getopt_long_only()'.
689 2009-12-17 Keith Marshall <keithmarshall@users.sourceforge.net>
691 Add CLI support for "update" action.
693 * src/pkgtask.h (ACTION_UPDATE): Define it, derived from...
694 (action_update): ...this new entry in anonymous enumeration.
696 * src/pkgexec.cpp (action_name): Add "update" keyword identification.
698 * src/pkgbase.h: Typo in comment; s/xwXmlDocument/wxXmlDocument/.
699 (pkgXmlDocument::BindRepositories): Add `force_update' parameter...
700 * src/pkgbind.cpp (pkgXmlDocument::BindRepositories): Use it to...
701 (pkgXmlDocument::SyncRepository): ...invoke this method when passed as
702 a `true' flag, in addition to (as previously) first time reference.
704 * src/climain.cpp (climain): Interpret "update" keyword for...
705 [ACTION_UPDATE]: ...passing state as `force_update' parameter to...
706 (pkgXmlDocument::BindRepositories): ...this method, then...
707 [!ACTION_UPDATE]: Follow with normal action processing.
709 2009-12-16 Keith Marshall <keithmarshall@users.sourceforge.net>
711 Add status checking for Internet URL connections.
713 * src/pkginet.cpp (pkgInternetAgent::QueryStatus): New method.
714 (pkgInternetStreamingAgent::Get): Use it; set `dl_status' as return
715 value, deferring failure diagnostics to callers, i.e. to...
716 (pkgXmlDocument::SyncRepositories): ...this, and to...
717 (pkgActionItem::DownloadArchiveFiles): ...this.
719 2009-11-23 Keith Marshall <keithmarshall@users.sourceforge.net>
721 Add package download and repository synchronisation machinery.
723 * src/pkgstrm.h: New header file.
725 * src/pkgbind.cpp, src/pkginet.cpp, src/pkgstrm.cpp,
726 src/pkgfind.cpp, src/pkgname.cpp, src/keyword.c: New files.
727 * Makefile.in (CORE_DLL_OBJECTS): Add build goals for them.
729 * xml: New directory.
731 * src/climain.cpp (climain): Establish repository bindings from...
732 * xml/profile.xml: ...this new configuration file.
734 2009-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
736 Add XML database bindings and preliminary action executive for CLI.
738 * src/pkgbase.h, src/pkgtask.h,
739 src/mkpath.h, src/vercmp.h: New header files.
741 * src/climain.cpp, src/pkgexec.cpp, src/pkgspec.cpp,
742 src/mkpath.c, src/vercmp.cpp, src/xmlfile.c: New files.
744 * Makefile.in (CORE_DLL_OBJECTS): Define initial set of files...
745 (mingw-get-0.dll): ...build them into this new DLL target; add it...
746 (all): ...as prerequisite for this primary build goal.
748 2009-11-12 Keith Marshall <keithmarshall@users.sourceforge.net>
750 Avoid some potential GCC warnings.
752 * src/clistub.c: Include process.h for `execv' prototype...
753 (main): Cast `argv' to appropriately matched type when calling it.
755 * src/pkginfo/driver.c: Include stdlib.h for `free' prototype.
757 2009-11-11 Keith Marshall <keithmarshall@users.sourceforge.net>
759 Create diagnostic message handler for CLI usage.
761 * src/dmh.h: New header file; it defines the public interface.
762 * src/dmh.cpp: New file; it implements the message handler.
764 2009-11-05 Keith Marshall <keithmarshall@users.sourceforge.net>
766 Correct some identified TinyXML issues.
768 * tinyxml/tinyxml.h (IsWhiteSpace): Add FIXME annotation to flag
769 probable redundancy of checks for '\n' and '\r'.
770 * tinyxml/tinyxmlparser.cpp: Revert John E's 2008-08-09 change; remove
771 all such redundancies in IsWhiteSpace() calls throughout.
773 * tinyxml/tinyxml.cpp (TiXmlAttribute::SetDoubleValue): Correct format
774 specification in sprintf()/snprintf() calls; "%lf" is invalid; replace
777 2009-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
781 * src/clistub.c: New file.
782 * Makefile.in: Add build rule for it; build as...
783 (mingw-get.exe): ...this; also add to...
784 (clean): ...this goal.
786 2009-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
788 Set up build mechanism.
790 * configure.ac, Makefile.in: New files.
791 * .cvsignore (configure, autom4te.cache): Add to ignored files.
793 2009-10-30 Keith Marshall <keithmarshall@users.sourceforge.net>
795 Add GPL-v3 licensing terms.
797 * COPYING: New file, sourced from gnu.org.
799 2009-10-12 Keith Marshall <keithmarshall@users.sourceforge.net>
801 Add pkginfo implementation.
803 * src, src/pkginfo: New directories.
804 * src/pkginfo/pkginfo.h, src/pkginfo/pkginfo.l: New files.
805 * src/pkginfo/driver.c: New file.
807 2009-10-12 Keith Marshall <keithmarshall@users.sourceforge.net>
811 * All files (tdm-branch): Assign new branch tag.
812 * All top-level files: Remove from trunk.
813 * ChangeLog: New file.