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