OSDN Git Service

Note relocation of m4 when packaging source distribution.
[mingw/mingw-get.git] / ChangeLog
1 2012-09-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
2
3         Note relocation of m4 when packaging source distribution.
4
5         * Makefile.in (SRCDIST_SUBDIRS): Refer to build-aux/m4, not m4.
6
7 2012-09-09  Keith Marshall  <keithmarshall@users.sourceforge.net>
8
9         Fix typo, and update licensing terms for embedded getopt.c
10
11         * src/getopt.c: Incorporate MIT/X style licence; update copyright
12         notice, to reflect chronology of publication; correct degenerate RCS
13         keyword usage in EOF marker comment.
14
15 2012-09-03  Keith Marshall  <keithmarshall@users.sourceforge.net>
16
17         Correct omission from copyright notice.
18
19         * src/pkgkeys.c: Add year 2012, to reflect 2012-09-02 update.
20
21 2012-09-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
22
23         Redefine paragraph_key with project global scope.
24
25         * src/pkgkeys.h (paragraph_key): Declare it.
26         * src/pkgkeys.c (paragraph_key): Define it.
27
28         * src/pkgshow.cpp (pkgDirectoryViewer::EmitDescription): Delete
29         function local definition; use global definition instead.
30
31 2012-09-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
32
33         Correct defect introduced by 2012-08-03 commit.
34
35         * src/approot.c (AppPathNameW): Add omitted 'else', so that tail
36         pointer isn't moved after the APPROOT prefix is truncated.
37
38 2012-09-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
39
40         Remap Mercurial subrepository reference via local hg-git clone.
41
42         * .hgsub (build-aux): Point to ../build-aux; this must be a locally
43         hosted hg clone of the git origin repository, and it must pre-exist as
44         a sibling of any created hg clone of the mingw-get repository.
45
46         * .hgsubstate: New file, automatically generated by Mercurial.
47
48 2012-08-31  Keith Marshall  <keithmarshall@users.sourceforge.net>
49
50         Add Mercurial subrepository reference for build-aux.
51
52         * .hgsub: New file.
53
54 2012-08-03  Keith Marshall  <keithmarshall@users.sourceforge.net>
55
56         More code refactoring, to facilitate GUI implementation.
57
58         * src/clistub.c (AppPathNameW): Factor out; relocate to...
59         * src/approot.c: ...this new file; it reproduces the original
60         implementation, modified to also consider any "libexec" directory in
61         the executable path as the first child of the APPROOT prefix.  Note
62         also, that no longer terminates APPROOT with a trailing backslash.
63
64         * src/approot.h: New file; it trivially declares the prototype for...
65         (AppPathNameW): ...this relocated extern "C" function.
66
67         * src/clistub.c (main): Adapt usage of AppPathNameW(), to reinstate
68         trailing backslash on assignment to APPROOT environment variable.
69
70         * Makefile.in (CLI_EXE_OBJECTS): New macro; define it as the original
71         set of prerequisites, with the addition of approot.OBJEXT, for...
72         (mingw-get.EXEEXT): ...this; use it.
73
74         * src/rites.c: Add comment regarding APPROOT usage.
75
76 2012-08-02  Earnie Boyd  <earnie@users.sourceforge.net>
77
78         Find missing.m4 in build-aux/m4 directory.
79
80         * aclocal.m4: Change path  m4/missing.m4 to build-aux/m4/missing.m4.
81
82 2012-07-31  Earnie Boyd  <earnie@users.sourceforge.net>
83
84         Add build-aux as a submodule.
85         Move .cvsignore to .gitignore.
86
87         * .gitmodules: New file.
88         * build-aux: New submodule directory.
89         * .cvsignore: Remove.
90         * .gitignore: New file.
91
92 2012-07-13  Keith Marshall  <keithmarshall@users.sourceforge.net>
93
94         Disable globbing of command line arguments.
95
96         * src/clistub.c (_CRT_glob): Define and initialise to zero; we don't
97         need globbing, and it may cause case transliteration of case-sensitive
98         action keywords, when a file system entity with a case-insensitively
99         matching name exists.
100
101 2012-06-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
102
103         Refactor API to facilitate implementation of GUI ListView hooks.
104
105         * src/pkgkeys.h (title_key, description_key): Declare them.
106         * src/pkgkeys.c (title_key, description_key): Define them; relocate...
107         * src/pkgshow.cpp (pkgDirectoryViewer::EmitDescription): ...from here.
108         (pkgXmlDocument::CalalogueAllPackages): New public method; factor...
109         (pkgXmlDocument::DisplayPackageInfo): ...from here, whence use it.
110         (pkgDirectoryViewerEngine::EnumerateComponents): New private method;
111         implement as a concrete method of this abstract base class; factor...
112         (pkgDirectoryViewer::Dispatch): ...from original inline implementation
113         within this method of the concrete derived class, whence use it.
114         (pkgDirectoryViewerEngine, pkgDirectory): Factor class declarations...
115         * src/pkglist.h: ...into this new header file; include it.
116
117         * src/pkgbase.h (pkgDirectory): Add forward class declaration.
118         (pkgXmlDocument::CatalogueAllPackages): Declare it.
119
120 2012-05-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
121
122         Update help text to document package version selection capability.
123
124         * src/clistub.c (help_text): Add description of command line syntax
125         which may be used to specify an alternative to the default package
126         version selection, for install and upgrade actions.
127
128 2012-05-01  Keith Marshall  <keithmarshall@users.sourceforge.net>
129
130         Support options set by preferences assigned within profile.xml
131
132         * xml/profile.xml (preferences): New element; add defaults.
133
134         * src/pkgopts.h (OPTION_ASSIGNED_FLAGS, OPTION_DESKTOP_ARGS):
135         (OPTION_START_MENU_ARGS): New enumerated constants; define them.
136         (OPTION_DESKTOP, OPTION_START_MENU): New manifest constants.
137         (OPTION_ASSIGNED, mark_option_as_set): New macros; define them.
138         (pkgOpts::GetValue, pkgOpts::GetString): Restrict look-up index to
139         least significant 12-bits of full-range index value.
140         (pkgOpts::IsSet): New inline method; implement it.
141
142         * src/clistub.c (main): Reimplement --desktop and --start-menu
143         options; each now becomes an OPTION_GENERIC optarg string store.
144         (set_script_hook): Function no longer used; delete it; delegate to...
145         * src/pkgbase.h (pkgXmlDocument::EstablishPreferences): ...this new
146         method; declare it, providing its implementation in...
147         * src/pkgopts.cpp: ...this new file; invoke it...
148         * src/climain.cpp (climain): ...here.
149
150         * Makefile.in (CORE_DLL_OBJECTS): Add pkgopts.$OBJEXT
151
152 2012-04-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
153
154         Correct sequence of installation/removal progress reporting.
155
156         * src/pkgunst.cpp (pkgRemove): Delay output of "removing package ..."
157         message, until after pre-remove hooks have run; this ensures that any
158         output from the pre-remove hook scripts appears in correct sequence.
159
160         * src/pkginst.cpp (pkgInstall): Likewise, for "installing package ..."
161         message, in relation to pre-install hooks.
162
163 2012-04-26  Keith Marshall  <keithmarshall@users.sourceforge.net>
164
165         mingw-get-0.5-beta-20120426-1 released.
166
167         * configure.ac (AC_INIT): Version number updated.
168         * srcdist-doc/NEWS.in: Updated; bug-fix notifications added.
169         * All files (r0-5-beta-20120426-1): Tag assigned.
170
171 2012-04-25  Keith Marshall  <keithmarshall@users.sourceforge.net>
172
173         Interim work-around for MinGW-Bug #3520864.
174
175         * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
176         [DEBUG_TRACE_DEPENDENCIES]: Add request flags to messages reporting
177         the scheduling of installation activities.
178
179         * src/pkgexec.cpp (pkgXmlDocument::Schedule): Add temporary diagnostic
180         hooks to confirm request flags; bracket them with #if 0 ... #endif.
181         [ACTION_PRIMARY && pre-scheduled request]: Don't trash request flags
182         when updating the pre-existing action item data.
183
184 2012-04-23  Keith Marshall  <keithmarshall@users.sourceforge.net>
185
186         Fix MinGW-Bug #3520488
187
188         * src/pkgexec.cpp (action_code): Check for, and reject NULL pointer
189         passed as action request string; also reject ambiguous abbreviations.
190
191         * src/climain.cpp (climain): Discriminate between NULL pointer and
192         other forms of invalid action keyword matching failures.
193
194 2012-04-16  Keith Marshall  <keithmarshall@users.sourceforge.net>
195
196         mingw-get-0.5-beta-20120416-1 released.
197
198         * configure.ac (AC_INIT): Version number updated.
199         (YEARS_OF_ISSUE): 2012 added.
200
201         * srcdist-doc/NEWS.in: Updated; release notes added.
202         * All files (r0-5-beta-20120416-1): Tag assigned.
203
204 2012-04-16  Keith Marshall  <keithmarshall@users.sourceforge.net>
205
206         Assign icon to temporary GUI executable file.
207
208         * icons/pkgicon.ico: New file, shamelessly copied from synaptic.
209
210         * configure.ac: Add identification for windres; propagate it to...
211         * Makefile.in: ...here; use it to compile object from icon files...
212         (srcdir/icons) [%.ico]: ...from this new vpath location.
213         (gui.exe): Link to compiled icon's object file.
214         (SRCDIST_SUBDIRS): Add icons directory.
215
216 2012-04-15  Keith Marshall  <keithmarshall@users.sourceforge.net>
217
218         Ensure that package removal requests are correctly scheduled.
219
220         * src/pkgdeps.cpp (pkgXmlDocument::Schedule) [ACTION_REMOVE]: Schedule
221         as a distinct case, when the installed version is not the most recent
222         available release; consideration of this distinct case was previously
223         erroneously overlooked.
224
225 2012-04-15  Keith Marshall  <keithmarshall@users.sourceforge.net>
226
227         Correct scheduling of new prerequisites when upgrading.
228
229         * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
230         [ACTION_UPGRADE && ACTION_PRIMARY]: Don't exclude scheduling for this
231         case of a prerequisite with no previously installed version; it may be
232         a delegated primary requirement of a meta-package.
233
234 2012-04-15  Keith Marshall  <keithmarshall@users.sourceforge.net>
235
236         Don't require subsystem within user specified version bounds.
237
238         * src/pkgdeps.cpp (pkgActionItem::ApplyBounds): Automatically consider
239         "*" wild-card matches for subsystem, if user doesn't specify it.
240
241 2012-04-09  Charles Wilson  <mingw@cwilson.fastmail.fm>
242
243         Fix missing include.
244
245         * src/pkgdeps.cpp (pkgopts.h): Include unconditionally; do not rely...
246         (debug.h) [DEBUG_TRACE_DYNAMIC]: ...on this, for indirect inclusion.
247
248 2012-04-07  Keith Marshall  <keithmarshall@users.sourceforge.net>
249
250         Correct a srcdist package construction defect.
251
252         * Makefile.in (srcdist) [for SRCDIST_SUBDIRS]: Use...
253         (mkinstalldirs): ...this, to create package image directories.
254
255 2012-04-06  Keith Marshall  <keithmarshall@users.sourceforge.net>
256
257         Add scripting hooks to support creation of MS-Windows shortcuts.
258
259         * src/clistub.c (progname): New static variable with file scope; it
260         replaces former automatic variable, of same name, in main() function.
261         (set_script_hook): New static function; implement it, and call it...
262         (main) [--desktop, --start-menu]: ...from here, to interpret these new
263         command line options; they are propagated to scripts via...
264         (MINGW_GET_DESKTOP_HOOK, MINGW_GET_START_MENU_HOOK): ...these new
265         internally assigned environment variables.
266         (help_text): Document --desktop and --start-menu.
267
268         * scripts/libexec/setup.lua scripts/libexec/wsh.lua: New lua module
269         files; they implement a lua scripting API; they delegate requests to
270         the Windows Scripting Host, via either of this pair of...
271         * scripts/libexec/shlink.js: ...new script to create shortcuts, or...
272         * scripts/libexec/unlink.js: ...its complement, to remove them.
273         * Makefile.in (SRCDIST_SUBDIRS): Integrate them; enumerate them in...
274         (scripts_srcdir, LIBEXEC_SCRIPTS): ...these new macros; use to...
275         (install): ...install them.
276
277 2012-04-06  Keith Marshall  <keithmarshall@users.sourceforge.net>
278
279         Initialise $LUA_PATH to locate mingw-get specific scripts.
280
281         * src/pkgexec.cpp (lua_path_init): New static inline function.
282         (pkgXmlNode::DispatchScript): Call it on first time invocation, per...
283         [lua_path_setup == false]: ...this static function local variable.
284
285 2012-04-01  Keith Marshall  <keithmarshall@users.sourceforge.net>
286
287         Support installation of releases other than latest available.
288
289         * src/pkgbase.h (pkgActionItem::ApplyBounds): New method; declare it.
290
291         * src/pkgdeps.cpp (pkgActionItem::ApplyBounds): Implement it.
292         (pkgXmlDocument::Schedule): Use it to interpret user specified version
293         bounds, and apply them to scheduled action items.  Having used...
294         (get_version_bounds): ...this new static inline function...
295         ...to acquire any user specified version bounds, check that they can
296         be honoured, before scheduling any action; delegate diagnostics to...
297         (dmh_notify_no_match): ...this new local helper function, to report
298         when they can't, and to indicate viable alternatives.
299
300 2012-03-26  Keith Marshall  <keithmarshall@users.sourceforge.net>
301
302         Rework previously inadequate solution for MinGW-Bug #3424406
303
304         * src/pkgtask.h: Update copyright notice for current year.
305         (ACTION_MAY_SELECT): New manifest constant for use as flag; define it.
306         * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit): Assign it.
307
308         * src/pkgdeps.cpp (STATIC_INLINE): New macro; define it.
309         (ACTION_RECURSIVE_REINSTALL, ACTION_RECURSIVE_UPGRADE):
310         (ACTION_RECURSIVE_REPLACE): New action code constants; define them.
311         (with_flags): Original macro deleted; replace it with...
312         (with_request_flags): ...this new static inline function.
313         (if_noref, if_match, if_alias, with_download, promote): New static
314         inline functions; they replace original macros of the same names.
315         (is_recursive_action): Function no longer used; delete it.
316         (action_class): New static inline function; implement and use it...
317         (pkgXmlDocument::ResolveDependencies): ...here, to identify scheduling
318         requirements for packages which are already installed; depends on...
319         (request_mode): ...this new automatic variable; it augments and...
320         (recursive_mode): ...replaces this one; rename it accordingly.
321         (viable): Automatic variable no longer used; delete it.
322         [DEBUG_REQUEST & DEBUG_TRACE_DEPENDENCIES]: Emit notification for
323         scheduled installation.
324         (pkgXmlDocument::Schedule): Add an implied...
325         (ACTION_REMOVE): ...when scheduling a reinstallation.
326
327 2012-03-13  Keith Marshall  <keithmarshall@users.sourceforge.net>
328
329         Address reinstallation issues per MinGW-Bugs #3416013 and #3424406
330
331         * src/pkgexec.cpp (reinstall_action_scheduled): New inline function.
332         (pkgActionItem::Execute): Use it to identify cases where...
333         [--reinstall]: ...implicit package removal is required, and also to
334         facilitate improved progress reporting in such cases.
335
336         * src/pkgdeps.cpp (is_recursive_action): New inline function.
337         (pkgXmlDocument::ResolveDependencies): Use it in tandem with...
338         (recursive_mode): ...this new automatic variable, so as to handle...
339         [meta-package dependency]: ...implicit recursion, to extend the scope
340         of the current action to the first level of non-meta dependency.
341         [install --reinstall]: ...reinstall original version of nominated
342         package, ignoring any available upgrade; extend scope of operation...
343         [install --reinstall --recursive]: ...to all prerequisite packages.
344         [upgrade --reinstall]: ...upgrade nominated package if possible; if no
345         upgrade available, reinstall current version; extend scope...
346         [upgrade --reinstall --recursive]: ...to all prerequisites.
347         (pkgXmlDocument::Schedule): Partially revert 2012-03-05 change;
348         reimplement selectively; never promote...
349         [install, install --reinstall]: ...these operations to become...
350         [upgrade]: ...this, even if available; issue diagnostic instead.
351
352 2012-03-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
353
354         Rationalise implementation and usage of --all-related option.
355
356         * src/pkgopts.h: Update copyright notice; add year 2012.
357         (OPTION_RECURSIVE, OPTION_ALL_RELATED): New constants; define them.
358         (pkgOpts::SetFlags): New method; declare and implement it inline.
359
360         * src/clistub.c: Update copyright notice; add year 2012.
361         (options) [recursive, all-related]: Redefine in terms of...
362         (OPTION_RECURSIVE, OPTION_ALL_RELATED): ...these.
363         (help_text): Update appropriately.
364
365         * src/climain.cpp: Update copyright notice; add year 2012.
366         (climain) [all-related]: Associate its use exclusively with...
367         (source, licence): ...these package processing operations; use...
368         (pkgOptions::SetFlags): ...this, to propagate its effect.
369
370 2012-03-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
371
372         Don't report failed downloads in respect of virtual packages.
373
374         * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): Clear...
375         [ACTION_DOWNLOAD]: ...this status flag for any package identified as
376         a meta-package; this corrects a further regression introduced with the
377         2011-11-09 update, whereby pending download requests for such virtual
378         packages were not cancelled, resulting in failure to install due to
379         failed downloads, when no download is actually required.
380
381 2012-03-05  Keith Marshall  <keithmarshall@users.sourceforge.net>
382
383         Don't suppress implied downloads for top-level actions.
384
385         * src/pkgdeps.cpp: Update copyright notice for new year.
386         (pkgXmlDocument::Schedule) [!OPTION_PRINT_URIS]: Ensure that...
387         [ACTION_DOWNLOAD]: ...this is enabled, when scheduling an install or
388         an upgrade action for a package specified as a command line argument;
389         this corrects a regression introduced on 2011-11-09, which resulted in
390         ACTION_DOWNLOAD being enabled only for second tier dependent actions.
391
392 2012-02-20  Keith Marshall  <keithmarshall@users.sourceforge.net>
393
394         Copyright notice updates.
395
396         * Makefile.in: Add 2012 as year of republication.
397         * src/pkgbase.h src/sysroot.cpp src/pkgexec.cpp: Likewise.
398         * src/rites.c src/pkginst.cpp src/pkgunst.cpp: Likewise.
399
400 2012-02-20  Keith Marshall  <keithmarshall@users.sourceforge.net>
401
402         Fix ill-advised optimisation in $APPROOT environment lookup.
403
404         * src/rites.c (approot_path): Don't save result of getenv() lookup
405         across calls; the environment may have been moved in the interim,
406         making the original result invalid on any subsequent call.  Also,
407         prefer MS-Windows style (with backslashes) for default.
408         (pkgLastRites): Report full path name for lastrites.exe, on execl()
409         failure, rather than only the path relative to $APPROOT.
410
411 2012-02-20  Keith Marshall  <keithmarshall@users.sourceforge.net>
412
413         Propagate sysroot path settings to scripts via the environment.
414
415         * src/pkgbase.h (PKG_PUTENV_FLAGS_MASK): New constant; it maps...
416         (PKG_PUTENV_DIRSEP_MSW, PKG_PUTENV_DIRSEP_POSIX): ...these flags...
417         (PKG_PUTENV_SCAN_VARNAME, PKG_PUTENV_NAME_TOUPPER): ...and these;
418         they are used to specify optional behavioural choices for...
419         (pkgPutEnv): ...this new function; declare it.
420
421         * src/sysroot.cpp (pkgPutEnv): Implement it.
422         (pkgXmlDocument::LoadSystemMap): Use it to add $SUBSYSTEM_SYSROOT path
423         specifications to the environment, for each named subsystem associated
424         with the active system map.
425
426         * src/pkgexec.cpp (pkgActionItem::Execute): Invoke pkgPutEnv() prior
427         to processing of each package install, upgrade, or remove action, so
428         as to update environment variable $SYSROOT to represent the sysroot
429         path for each package processed, during execution of script hooks.
430
431 2012-02-17  Keith Marshall  <keithmarshall@users.sourceforge.net>
432
433         Implement hooks to support lua scripting interface.
434
435         * Makefile.in (LIBS): Add -llua.
436
437         * src/pkgbase.h (pkgXmlNode::InvokeScript): New method; declare it
438         as private, and provide overloaded public inline API implementation.
439         (pkgXmlNode::DispatchScript): New private method; declare it.
440
441         * src/pkgexec.cpp (pkgXmlNode::InvokeScript): Implement it.
442         (pkgXmlNode::DispatchScript): Likewise; it directs InvokeScript to...
443         (pkgInvokeScript): ...this new static function; implement it.
444
445         * src/pkginst.cpp (pkgInstall): Call InvokeScript as appropriate.
446         * src/pkgunst.cpp (pkgRemove): Likewise.
447
448 2011-11-24  Keith Marshall  <keithmarshall@users.sourceforge.net>
449
450         Avoid implicit cast warnings; reported by Robert Hartmann.
451
452         * src/dmh.h (DMH_BEGIN_DIGEST): Explicitly cast to uint16_t.
453         (DMH_END_DIGEST): Likewise.
454
455 2011-11-09  Keith Marshall  <keithmarshall@users.sourceforge.net>
456
457         Avoid unnecessary downloads for already installed packages.
458
459         * src/pkginet.cpp (pkgActionItem::DownloadSingleArchive): Require
460         external scheduling of ACTION_DOWNLOAD; cancel the scheduled request
461         on completion, or when not required due to pre-existing local copy.
462
463         * src/climain.cpp (pkgActionItem::GetSourceArchive): Must always be
464         prepared to download the associated archive; enable ACTION_DOWNLOAD.
465
466         * src/pkgexec.cpp (pkgActionItem::Schedule) [OPTION_REINSTALL]:
467         May need to download the archive, even when the requested package was
468         previously installed; schedule ACTION_DOWNLOAD to enable this.
469
470         * src/pkgdeps.cpp (promote): Macro redefined in terms of...
471         (with_flags, with_download): ...these new macros; implement and...
472         (pkgXmlDocument::ResolveDependencies): ...use them to enable/schedule
473         ACTION_DOWNLOAD only when expected that it may be necessary.
474
475 2011-11-06  Keith Marshall  <keithmarshall@users.sourceforge.net>
476
477         Fix packaging anomalies for source and licence distributions.
478
479         * Makefile.in (licdist): Link README from ${CURDIR}, not from '..'.
480         (srcdist): Explicitly link pkginfo.c from ${CURDIR} to src/pkginfo,
481         rather than as implied prerequisite; this avoids a bogus attempt to
482         link srcdist-doc into src/pkginfo.
483
484 2011-11-06  Keith Marshall  <keithmarshall@users.sourceforge.net>
485
486         Bump version number for subsequent CVS snapshots.
487
488         * configure.ac (AC_INIT): Set version to 0.4-alpha-1.1cvs
489
490 2011-11-06  Keith Marshall  <keithmarshall@users.sourceforge.net>
491
492         mingw-get-0.4-mingw32-alpha-1 released.
493
494         * configure.ac (AC_INIT): Adjust version number.
495         * srcdist-doc/NEWS.in: Updated; document new features and bugs fixed.
496         * All files (r0-4-alpha-1): Tag assigned.
497
498 2011-11-04  Keith Marshall  <keithmarshall@users.sourceforge.net>
499
500         Don't upgrade installed DLL components to incompatible version.
501         Provide clearer diagnostics for failed requests on implied packages.
502
503         * src/pkgdeps.cpp (is_abi_compatible): New static inline function.
504         (pkgXmlDocument::ResolveDependencies) [is_installed]: Use it.
505         (pkgXmlDocument::ResolveDependencies) [DEBUG_TRACE_DEPENDENCIES]:
506         Clean up and improve diagnostic message content and formatting.
507         (pkgXmlDocument::Schedule) [(upgrade || remove) && ! installed]:
508         Downgrade diagnostic to WARNING, for implicitly specified component
509         packages; provide additional explanatory diagnostics.
510
511         * src/pkgspec.cpp (pkgSpecs::VersionComparator):
512         * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit):
513         [DEBUG_TRACE_DEPENDENCIES]: Eliminate diagnostic noise.
514
515 2011-10-11  Keith Marshall  <keithmarshall@users.sourceforge.net>
516
517         Fix --download-only vs. --reinstall conflict.
518
519         * src/pkgexec.cpp (pkgActionItem::Execute) [OPTION_DOWNLOAD_ONLY]:
520         Test for explicit inequality, rather than equality to zero; since the
521         2011-08-30 update, which made --download-only also imply --reinstall,
522         it will test as non-zero when --reinstall is specified, even though
523         --download-only is not.
524
525 2011-10-07  Keith Marshall  <keithmarshall@users.sourceforge.net>
526
527         Add support for non-specific upgrade of all installed packages.
528
529         * src/pkgbase.h (pkgXmlDocument::RescheduleInstalledPackages):
530         New public method; declare it.
531
532         * src/pkgdeps.cpp (pkgXmlDocument::RescheduleInstalledPackages):
533         Implement it.
534
535         * src/climain.cpp (climain) [ACTION_UPGRADE && argc < 2]: Invoke
536         pkgXmlDocument::RescheduleInstalledPackages() to schedule the upgrade
537         request for all packages currently registered as installed.
538
539 2011-10-06  Keith Marshall  <keithmarshall@users.sourceforge.net>
540
541         Implement "source" and "licence" operations.
542
543         * src/pkgopts.h (OPTION_ALL_DEPS): New option code; define it.
544         * src/clistub.c (main): Associate it with...
545         (all-related, recursive): ...these synonymous option names...
546         (options): ...defined within this local structured array.
547         (help_text): Document them; also document "source" and "licence" as
548         new operations which may be specified on the command line.
549
550         * src/pkgtask.h (action_source, action_licence): Enumerate them.
551         (ACTION_SOURCE, ACTION_LICENCE): Define their manifest values, and...
552         * src/pkgexec.cpp (action_name): ...associate with operation names.
553
554         * src/pkgbase.h (pkgActionItem::GetScheduledSourceArchives):
555         (pkgActionItem::GetSourceArchive, pkgXmlDocument::GetSourceArchive):
556         New public methods; declare them for external implementation.
557         (pkgXmlDocument::GetScheduledSourceArchives): New public method;
558         implement it as inline.
559
560         * src/climain.cpp (pkgProcessedArchives): New pointer to stack of...
561         (pkgArchiveNameList): ...this new locally defined class; implement it.
562         (pkgActionItem::GetSourceArchive, pkgXmlDocument::GetSourceArchive):
563         (pkgActionItem::GetScheduledSourceArchives): Implement them.
564         (climain): Add invocation hooks.
565
566 2011-10-04  Keith Marshall  <keithmarshall@users.sourceforge.net>
567
568         Establish mapping from release tarname to source tarname.
569
570         * src/pkgreqs.cpp (inherited_requirement): New inline function.
571         (requirement): Use it; adapt to propagate release archive format and
572         compression type fields, in addition to version fields, when resolving
573         "%" wildcard matches within the template for the resultant tarname.
574         (pkgAssociateName): New public function; implement it for use by...
575         * src/pkgname.cpp (pkgResolvedName): ...this new inline function.
576         (pkgXmlNode::SourceArchiveName): Use it; adapt to accept a category
577         selector, so it may resolve source or licence tarnames on demand.
578
579         * src/pkgbase.h (pkgXmlNode::SourceArchiveName): Modify declaration;
580         add category selector argument to support source/licence choice.
581
582 2011-10-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
583
584         Facilitate downloads using diverse cache directories.
585
586         * src/pkgbase.h (pkgActionItem::DownloadSingleArchive): New private
587         method; declare it; it handles the download for a single named archive
588         file, and stores it in a specifed cache directory.
589
590         * src/pkginet.cpp (pkgActionItem::DownloadSingleArchive): Implement
591         it; factor its code from the original implementation within...
592         (pkgActionItem::DownloadArchiveFiles): ...this; adapt to use it.
593
594 2011-10-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
595
596         Establish cache directory for source archive downloads.
597
598         * src/mkpath.h (pkgSourceArchivePath): New function; declare it.
599         * src/mkpath.c (pkgSourceArchivePath): Implement it.
600
601 2011-08-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
602
603         Support archive extraction to arbitrary destination without install.
604
605         * src/pkgproc.h (pkgArchiveProcessor::ExtractFile): New virtual
606         helper method for use, as core helper, by derived classes; declare it.
607         (pkgArchiveProcessor::CreateExtractionDirectory): Likewise.
608         (pkgTarArchiveProcessor): Declare overloaded default constructor.
609         (pkgTarArchiveExtractor): New class definition; it is derived from
610         pkgTarArchiveProcessor.
611
612         * src/tarproc.cpp (pkgArchiveProcessor::ExtractFile): Implement it.
613         (pkgArchiveProcessor::CreateExtractionDirectory): Likewise.
614         (pkgTarArchiveExtractor): Implement constructor, together with...
615         (pkgTarArchiveExtractor::ProcessDirectory): ...this method, and also...
616         (pkgTarArchiveExtractor::ProcessDataStream): ...this one; these are
617         declared as abstract, in the pkgTarArchiveProcessor base class.
618         (pkgTarArchiveInstaller::ProcessDirectory): Simplify; it now delegates
619         directory creation to pkgArchiveProcessor::CreateExtractionDirectory.
620         (pkgTarArchiveInstaller::ProcessDataStream): Simplify; delegate file
621         handling to pkgArchiveProcessor::ExtractFile, as appropriate.
622
623 2011-08-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
624
625         Make --download-only and --print-uris imply --reinstall.
626
627         * src/pkgopts.h (OPTION_PRINT_URIS): Adjust definition.
628         (OPTION_DNLOAD_ONLY, OPTION_DOWNLOAD_ONLY): Likewise.
629
630 2011-08-07  Keith Marshall  <keithmarshall@users.sourceforge.net>
631
632         Implement --download-only and --print-uris options.
633
634         * src/pkgopts.h (OPTION_DOWNLOAD_ONLY, OPTION_PRINT_URIS):
635         New manifest constants, identifying flag bits; define them.
636         (OPTION_DNLOAD_ONLY): Likewise; an alias for OPTION_DOWNLOAD_ONLY.
637
638         * src/pkgbase.h (pkgActionItem::PrintURI): New private method.
639         * src/pkginet.cpp: Implement it.
640
641         * src/clistub.c (options): Add "download-only" and "print-uris".
642         (help_text): Document them.
643         * src/pkgexec.cpp (pkgActionItem::Execute): Process them.
644
645 2011-07-29  Keith Marshall  <keithmarshall@users.sourceforge.net>
646
647         mingw-get-0.3-mingw32-alpha-2.1 released.
648
649         * configure.ac (AC_INIT): Adjust version number.
650         * srcdist-doc/NEWS.in: Updated; document bugs fixed.
651         * All files (r0-3-alpha-2-1): Tag assigned.
652
653 2011-07-29  Keith Marshall  <keithmarshall@users.sourceforge.net>
654
655         Adopt tar.xz as default package archive format.
656
657         * Makefile.in (TARZIP, TAREXT): New macros; define them.
658         (bindist, licdist, srcdist): Use them in place of hardcoded tar.gz
659         (maintainer-clean): Expunge tar files of any compression format.
660
661 2011-07-27  Keith Marshall  <keithmarshall@users.sourceforge.net>
662
663         Correct handling of release status in requirements specifications.
664
665         * src/debug.h (DEBUG_TRACE_DEPENDENCIES): New tracing hook; define it.
666         * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit): Use it; add
667         function entry/exit tracing report hooks.
668         * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): Likewise;
669         also add internal trace point reporting, which may also require...
670         (show_required): ...this new static inline DEBUG_INVOKED function.
671
672         * src/pkgreqs.cpp (requirement): Propagate release status and release
673         reference index fields from requirer, when package version requirement
674         is specified by a '%' token, and no explicit release status override
675         is included in the requirement specification.
676
677         * src/pkgspec.cpp (is_wildcard_spec): New static inline helper.
678         (pkgSpecs::VersionComparator): Use it to identify any package version
679         specification which may require the extension of a wildcard match, to
680         span the package version and release status fields; also add tracing
681         hooks, triggered on DEBUG_TRACE_DEPENDENCIES, to facilitate debugging.
682
683 2011-06-18  Keith Marshall  <keithmarshall@users.sourceforge.net>
684
685         Avoid accidental RCS keyword substitutions.
686
687         * Makefile.in (DOLLAR): New macro; define it.
688         (readme.txt, readme.txt.in): Use it, where unexpanded RCS Id keyword
689         matching is intended.
690
691 2011-06-18  Keith Marshall  <keithmarshall@users.sourceforge.net>
692
693         Mercurial support revisited.
694
695         * .cvsignore (.hgtags): Add to CVS untracked list.
696
697 2011-06-18  Keith Marshall  <keithmarshall@users.sourceforge.net>
698
699         Update readme.txt ID tag-line to track NEWS rather than README.
700
701         * Makefile.in (readme.txt.in): New rule; implement it.
702         (readme.txt.tag): Likewise; this implements the tag-line tracking.
703         (readme.txt): Rule redefined in terms of the preceding pair.
704
705 2011-06-17  Keith Marshall  <keithmarshall@users.sourceforge.net>
706
707         mingw-get-0.3-mingw32-alpha-2 released.
708
709         * configure.ac (AC_INIT): Adjust version number.
710         * srcdist-doc/NEWS.in: Updated; document new features and bugs fixed.
711         * All files (r0-3-alpha-2): Tag assigned.
712
713 2011-06-15  Keith Marshall  <keithmarshall@users.sourceforge.net>
714
715         Add internal documentation for --reinstall option.
716
717         * src/clistub.c (help_text): Add description for "--reinstall".
718
719 2011-06-14  Keith Marshall  <keithmarshall@users.sourceforge.net>
720
721         Support use of Mercurial within a CVS working copy.
722
723         * .cvsignore (.hg, .hgignore): Don't have CVS track these.
724
725 2011-06-13  Keith Marshall  <keithmarshall@users.sourceforge.net>
726
727         Implement --reinstall option.
728
729         * src/pkgopts.h (OPTION_REINSTALL): New macro; define it.
730         (OPTION_GENERIC, OPTION_SHIFT_MASK): Likewise.
731         (OPTION_EXTRA_FLAGS): New field; declare it.
732
733         * src/clistub.c (options): Add "reinstall".
734         (OPTION_GENERIC): Use it where appropriate; within its scope...
735         (OPTION_STORAGE_CLASS): Improve descriptive comments; add handling for
736         default case of flag type options requiring an alignment shift.
737
738         * src/pkgexec.cpp: Remove previous "always reinstall" kludge.
739         (pkgOptionSelected, PKG_OPTION_REINSTALL): Remove obsolete macros.
740         (pkgActionItem::Execute): Check for "upgrade" request on any package
741         which is already up to date; report this state, otherwise...
742         [OPTION_REINSTALL || ACTION_UPGRADE]: Mark package as "removed", to
743         avoid bail-out on "package already installed", when calling...
744         (pkgInstall): ...this.
745
746 2011-06-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
747
748         Don't require -vv to report progress of update operation.
749
750         * src/pkgbind.cpp (pkgRepository::GetPackageList): Eliminate all
751         basename() calls; `dname' already tells us what it should return.
752         [update]: Report progress, irrespective of verbosity setting.
753
754 2011-06-11  Keith Marshall  <keithmarshall@users.sourceforge.net>
755
756         Fix MinGW-Bug #3313806.
757
758         * src/pkginfo/pkginfo.l (CMS_KEYWORDS): Do not match them within the
759         PACKAGE_NAME field; this avoids misinterpretation as a release status
760         qualifier when intended as part of the package name, as in msys-cvs.
761
762 2011-06-07  Keith Marshall  <keithmarshall@users.sourceforge.net>
763
764         Provisional correction for MinGW-Bug #3309438.
765
766         * src/debug.h [DEBUGLEVEL == 0]: Provide defaults for...
767         (DEBUG_ENABLED, DEBUG_REQUEST): ...these macros.
768
769         * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDirectory):
770         (pkgTarArchiveInstaller::ProcessDataStream): Use DEBUG_REQUEST to
771         enable runtime trace activation for previous compile time choices.
772
773 2011-05-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
774
775         mingw-get-0.3-mingw32-alpha-1 released.
776
777         * configure.ac (AC_INIT): Adjust version number.
778         * srcdist-doc/NEWS.in: Updated; document new features.
779         * All files (r0-3-alpha-1): Tag assigned.
780
781 2011-05-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
782
783         Support assignment of DEBUGLEVEL at configure time.
784
785         * configure.ac (DEBUGLEVEL): Declare as a precious variable, using
786         AC_ARG_VAR; also declare with AC_SUBST, to ensure it is initialised.
787
788         * Makefile.in (DEBUGLEVEL): Let AC_SUBST assign it.
789
790 2011-05-29  Keith Marshall  <keithmarshall@users.sourceforge.net>
791
792         Work around bugs in MinGW and GNU getopt_long_only() implementations.
793
794         * src/getopt.c: New file; this is a free-standing replacement for any
795         implementation provided by system libraries.  We will always use this
796         to ensure correct operation irrespective of system bugs; (different
797         bug manifestations have been identified in the stock MinGW and GNU
798         implementations).
799
800         * Makefile.in (mingw-get.EXEEXT): Use it.
801
802         * src/clistub.c (options): Remove redundant declaration of `-v' as a
803         long form option.
804
805 2011-05-29  Keith Marshall  <keithmarshall@users.sourceforge.net>
806
807         Implement user selection of traceable features at run-time.
808
809         * src.pkgopts.h (OPTION_VERBOSE_MAX): New macro; define it.
810
811         * src/debug.h (DEBUG_ENABLED): New macro; define it.
812         (DEBUG_REQUEST, DEBUG_REQUEST_FLAGS, DEBUG_TRACE_DYNAMIC): Likewise.
813
814         * src/clistub.c (main) [--trace]: Don't make it available unless...
815         [DEBUG_ENABLED(DEBUG_TRACE_DYNAMIC)]: ...this is set (at compile-time).
816         [--verbose]: Limit to OPTION_VERBOSE_MAX, using...
817         (atmost): ...this new macro; define it.
818         (options): Declare `-v' as both long and short form, pending bug fix
819         in MinGW's getopt_long_only() implementation.
820
821         * src/pkginet.cpp (pkgInternetAgent::OpenURL): Use DEBUG_REQUEST.
822         (pkgInternetLzmaStreamingAgent::TransferData): Likewise.
823         (pkgInternetStreamingAgent::TransferData): Likewise.
824         (pkgInternetStreamingAgent::Get): Likewise.
825
826         * src/pkgunst.cpp (pkgActionItem::SetAuthorities): Use DEBUG_REQUEST.
827         (pkg_rmdir, pkg_unlink): Likewise.
828
829         * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Use DEBUG_REQUEST.
830
831 2011-05-21  Keith Marshall  <keithmarshall@users.sourceforge.net>
832
833         Implement protocol for processing global program options.
834
835         * src/pkgopts.h: New file.
836
837         * src/climain.cpp (cli_setopts): New function; implement it.
838         (pkgOptions): Likewise.
839
840         * src/clistub.c (xatoi): New function; implement it.
841         (cli_setargv): New inline helper function; implement it.
842         (main): Use it.  Also incorporate implementation of...
843         (parsed_options): New structure; it accommodates...
844         (verbose, trace): New options; interpret them, and...
845         (help_text): ...document them.
846
847         * src/pkgbind.cpp (pkgRepository::GetPackageList): Make catalogue
848         loading notifications and progress reports conditional on...
849         [OPTION_VERBOSE > 1]: ...this.
850
851 2011-05-18  Keith Marshall  <keithmarshall@users.sourceforge.net>
852
853         Augment known development status keywords and accept CMS labels.
854
855         * src/pkginfo/pkginfo.l (CMS_KEYWORDS): Define new provisional list;
856         add transitional state scanner rule and code to interpret them.
857         (STATUS_KEYWORDS): Add "pre" and "rc" to existing list; modify scanner
858         code to maintain consistency with CMS_KEYWORDS processing; also extend
859         this coding strategy to other rules.
860
861         * src/pkginfo/driver.c (spec): Strip initial '$' token from displayed
862         field values; (we expect it only for a CMS_KEYWORDS field value).
863
864         * src/pkgreqs.cpp (pkgSpecs::GetTarName): Remove any initial '$' token
865         from PACKAGE_RELEASE_STATUS field, when performing reverse of tarname
866         decomposition transformation.
867
868 2011-05-18  Keith Marshall  <keithmarshall@users.sourceforge.net>
869
870         Correct omission from 2011-02-18 commit.
871
872         * src/tarproc.cpp (Copyright Notice): Add 2011 as year of release.
873
874 2011-05-14  Keith Marshall  <keithmarshall@users.sourceforge.net>
875
876         mingw-get-0.2-mingw32-alpha-4 released.
877
878         * configure.ac (AC_INIT): Adjust version number.
879         * srcdist-doc/NEWS.in: Updated; add bug-fix/feature descriptions.
880         * All files (r0-2-alpha-4): Tag assigned.
881
882 2011-05-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
883
884         Fix MinGW-Bug #3297660 (reported by Chris Sutcliffe).
885
886         * src/pkgbase.h (pkgActionItem::SetAuthorities): Return unsigned long.
887         (pkgActionItem::HasAttribute): New inline method; implement it.
888
889         * src/pkgtask.h (ACTION_DOWNLOAD, ACTION_DOWNLOAD_OK): New macros.
890
891         * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles):
892         [ACTION_DOWNLOAD]: Assert it at commencement of each package download;
893         clear it again, on successful download completion.
894
895         * src/pkginst.cpp (pkgtask.h): #include it.
896         (pkgInstall) [ACTION_DOWNLOAD]: Don't proceed with installation when
897         set; this indicates failed download; diagnose it.
898
899         * src/pkgunst.cpp (pkgRemove) [ACTION_DOWNLOAD && ACTION_UPGRADE]:
900         Don't proceed with pre-emptive removal when both set; this indicates
901         failed download of replacement package; diagnose it.
902
903 2011-05-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
904
905         Fix MinGW-Bug #3295526 (reported by Charles Wilson).
906
907         * src/pkgunst.cpp (sys/stat.h): #include it; we need it for...
908         (pkg_unlink): ...chmod( file, S_IWRITE ), emulating `rm -f' semantics.
909
910 2011-05-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
911
912         Diagnose and aggressively retry failed download connections.
913
914         * src/debug.h (DEBUG_TRACE_INTERNET_REQUESTS): New macro; define it.
915
916         * src/pkginet.cpp (debug.h): #include it.
917         (pkgDownloadMeter): New abstract class; declare it and implement its
918         default (non-abstract) data and methods; derive...
919         (pkgDownloadMeterTTY): ...this new class from it; implement it...
920         (pkgInternetStreamingAgent::Get): ...and instantiate it (naively for
921         now), as associated pkgDownloadMeter object; add tracing diagnostic.
922         (pkgInternetAgent::OpenURL): Don't inline it; move implementation out
923         of line; add retry loops to aggressively retry failed connections.
924         (pkgInternetAgent::QueryContentLength): New method; implement it.
925         (pkgInternetStreamingAgent::TransferData): Avoid Microsoft specific
926         data type `DWORD'; prefer equivalent standard `unsigned long'.  Add
927         tracing diagnostic.  Remove progress diagnostic; replace it with an
928         `Update' request to associated pkgDownloadMeter.
929         (pkgInternetLzmaStreamingAgent::GetRawData): Avoid `DWORD' data type.
930         (pkgInternetLzmaStreamingAgent::TransferData): Likewise; add tracing
931         diagnostic on failure.
932
933 2011-03-31  Keith Marshall  <keithmarshall@users.sourceforge.net>
934
935         mingw-get-0.2-mingw32-alpha-3 released.
936
937         * configure.ac (AC_INIT): Adjust version number.
938         * srcdist-doc/NEWS.in: Updated; add bug-fix description.
939         * All files (r0-2-alpha-3): Tag assigned.
940
941 2011-03-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
942
943         Provisional handling for http proxy authentication.
944         (Adapted from patch by Scott Michel <pingbak@users.sourceforge.net>)
945         (ref: MinGW-Patch #3158453)
946
947         * src/pkginet.cpp: Several format/layout adjustments; add comments.
948         Eliminate several instances of Microsoft specific typedef nastiness.
949         (dmh_dialogue_context): New macro; kludge definition to support...
950         (pkgInternetAgent::OpenURL) [HTTP_STATUS_PROXY_AUTH_REQ]: Detect
951         and handle it.
952
953 2011-03-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
954
955         Expand macros in path names for files and directories to be removed.
956
957         * src/pkgunst.cpp (pkgRemove): Format sysroot as a template, so...
958         (pkg_rmdir, pkg_unlink): ...are able to use mkpath() to construct the
959         full path name for each file or directory to be removed.
960
961 2011-03-29  Keith Marshall  <keithmarshall@users.sourceforge.net>
962
963         Correct defective activation logic for some debugging hooks.
964
965         * src/pkgunst.cpp (pkg_rmdir, pkg_unlink) [DEBUG_INVOKE_IF]:
966         (pkgActionItem::SetAuthorities) [DEBUG_INVOKE_IF]: Use bit-wise `&'
967         operator, not `&&', to evaluate DEBUGLEVEL state.
968
969 2011-03-22  Keith Marshall  <keithmarshall@users.sourceforge.net>
970
971         Avoid Unicode hyphens in generated ASCII document files.
972
973         * Makefile.in (NROFF): New macro; define it to invoke `nroff -Tascii'.
974         (%.dist, readme.txt): Use it to ensure that output is pure ASCII.
975
976 2011-03-15  Keith Marshall  <keithmarshall@users.sourceforge.net>
977
978         mingw-get-0.2-mingw32-alpha-2 released.
979
980         * configure.ac (AC_INIT): Adjust version number.
981         * srcdist-doc/NEWS.in: Updated; add bug-fix description.
982         * All files (r0-2-alpha-2): Tag assigned.
983
984 2011-03-15  Keith Marshall  <keithmarshall@users.sourceforge.net>
985
986         Fix MinGW-Bug 3212246.
987
988         * src/keyword.c (has_keyword): Avoid incrementing the comparison
989         pointers when a significant character in one string is not matched in
990         the other; previously the pointers were left pointing one character to
991         the right of the mismatch, and this was overlooked if the mismatch
992         occurred at the rightmost character in both strings.
993
994 2011-03-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
995
996         mingw-get-0.2-mingw32-alpha-1 released.
997
998         * configure.ac (AC_INIT): Set version number; correct capitalisation
999         in URI reference to bug reporting instructions.
1000
1001         * srcdist-doc/NEWS.in: Confirm release date.
1002         [bug reporting]: Remove redundant paragraph; the information is
1003         provided, via reference to mingw.org. in the README and INSTALL files.
1004
1005         * All files (r0-2-alpha-1): Tag assigned.
1006
1007 2011-03-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
1008
1009         * srcdist-doc/INSTALL.in [building]: Qualify liblzma.a requirement;
1010         add earliest acceptable snapshot release date.
1011
1012 2011-03-11  Keith Marshall  <keithmarshall@users.sourceforge.net>
1013
1014         Remove unused 7zip and boost source code from CVS trunk.
1015
1016         * 7z: Directory and all content removed.
1017         * boost: Likewise.
1018
1019 2011-03-11  Keith Marshall  <keithmarshall@users.sourceforge.net>
1020
1021         Refactor and update existing installation and usage instructions.
1022
1023         * src/clistub.c (help_text): Updated.
1024
1025         * srcdist-doc: New directory.
1026
1027         * README: Deleted; its content refactored into...
1028         * srcdist-doc/README.in srcdist-doc/INSTALL.in srcdist-doc/NEWS.in:
1029         ...these new template files, updated for current development state.
1030
1031         * srcdist-doc/gendoc.sed.in: New sed script; it directs formatting of
1032         generated text files derived from the srcdist-doc templates.
1033
1034         * Makefile.in (SRCDIST_SUBDIRS): Add srcdist-doc.
1035         (SRCDIST_FILES): Add NEWS and INSTALL.
1036         (srcdist-doc): New build rule to generate README, NEWS and INSTALL.
1037         (srcdist, licdist): Adjust path to locate them.
1038         (readme.txt): New build rule to generate on-line package description.
1039         (dist): Require it.
1040         (distclean): Don't remove Makefile...
1041         (maintainer-clean): ...but do it here instead.  Also remove generated
1042         README, NEWS and INSTALL, the autom4te cache, and all distributable
1043         zip files, in addition to tarballs, for the current version.
1044
1045 2011-02-27  Keith Marshall  <keithmarshall@users.sourceforge.net>
1046
1047         Initial implementation for "remove" feature.
1048
1049         * src/pkgbase.h: Update copyright notice; add current year.
1050         (pkgActionItem::SetPrimary): New inline public method; declare it.
1051         (pkgActionItem::SetAuthorities): New public method; declare it.
1052
1053         * src/pkgtask.h (ACTION_PREFLIGHT, ACTION_REMOVE_OK): New defines.
1054
1055         * src/pkgproc.h: Update copyright notice; add current year.
1056         (pkgManifest::GetSysRootReference): New public method; declare it.
1057         (pkgManifest::GetRoot): New inline method; declare and implement it.
1058         (pkgManifest::DetachSysRoot): Argument type changed to const char*.
1059         (pkgRemove): New extern "C" function; declare it.
1060
1061         * src/pkgexec.cpp (pkgActionItem::SetPrimary): Implement it, and...
1062         (pkgXmlDocument::Schedule): ...use it to promote actions on all user
1063         specified packages, as listed on the command line, to primary status.
1064         (pkgActionItem::Execute): Repeatedly invoke...
1065         (pkgActionItem::SetAuthorities): ...this; incorporate call of...
1066         (pkgActionItem::DownloadArchiveFiles): ...this, within the loop, so
1067         that we retry failed downloads at least a second time.
1068         [ACTION_REMOVE]: Delete stub; invoke pkgRemove().
1069
1070         * src/pkgunst.cpp: New file.
1071         (pkgActionItem::SetAuthorities): Implement it.
1072         (pkgManifest::GetSysRootReference): Implement it.
1073         (pkgManifest::DetachSysRoot): Implement it per new declaration.
1074         (pkgRemove): Implement it.
1075
1076         * Makefile.in (CORE_DLL_OBJECTS): Add pkgunst.OBJEXT
1077
1078 2011-02-26  Keith Marshall  <keithmarshall@users.sourceforge.net>
1079
1080         Work-around for improper stderr buffering in MSYS mintty and rxvt.
1081         (Merged from r0-1-alpha-5 branch).
1082
1083         * src/dmh.cpp (dmhTypeTTY::emit_and_flush): New private method.
1084         (dmhTypeTTY::printf, dmhTypeTTY::notify): Use it to force an fflush()
1085         after each output record is written to stderr.
1086
1087         * README: Update as appropriate.
1088
1089 2011-02-18  Keith Marshall  <keithmarshall@users.sourceforge.net>
1090
1091         Tidy up some debugging hooks.
1092
1093         * src/debug.h (DEBUG_INVOKED): New macro; define it.
1094         (DEBUG_INVOKE_IF): Likewise; this takes arguments providing for
1095         conditional invocation of code when DEBUGLEVEL is non-zero; make it
1096         expand to nothing, when DEBUGLEVEL is zero.
1097         (DEBUG_TRACE_INIT): Redefined macro; value changed to 0x0010.
1098         (DEBUG_TRACE_TRANSACTIONS, DEBUG_SUPPRESS_INSTALLATION):
1099         (DEBUG_UPDATE_INVENTORY): New macros; define them.
1100
1101         * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDirectory):
1102         (pkgTarArchiveInstaller::ProcessDataStream): Refactor debugging hooks;
1103         implement them in terms of DEBUGLEVEL, with reference to...
1104         (DEBUG_SUPPRESS_INSTALLATION, DEBUG_UPDATE_INVENTORY): ...these.
1105
1106 2011-02-15  Keith Marshall  <keithmarshall@users.sourceforge.net>
1107
1108         Make package version comparisons more robust.
1109
1110         Fixes an issue reported by Chris Sutcliffe: previously, version
1111         comparisons were evaluated solely on the basis of differences in the
1112         package version field itself.  Henceforth, if this field compares as
1113         equal, then the comparison is extended to also consider differences
1114         between development phase qualifiers, and, if these too compare as
1115         equal, to differences in the target subsystem version fields.
1116
1117         * src/pkginfo/pkginfo.h (pkgSpecs::VersionComparator): New private
1118         method; declare it.
1119
1120         * src/pkgspec.cpp (pkgSpecs::VersionComparator): Implement it.
1121         (pkgSpecs::operator<, pkgSpecs::operator<=, pkgSpecs::operator>=):
1122         (pkgSpecs::operator>): Use it, replacing...
1123         (version): ...this static function; now unreferenced; delete it.
1124
1125         * src/vercmp.h (pkgVersionInfo::pkgVersionInfo): Make it inline; it
1126         now delegates the entire class construction operation to...
1127         (pkgVersionInfo::Parse): ...this new private method; declare it.  This
1128         is also used to facilitate implementation of...
1129         (pkgVersionInfo::Reset): ...this new inline method, also requiring...
1130         (pkgVersionInfo::FreeAll): ...this new inline method; also now used by
1131         the class destructor, it encapsulates separate calls to...
1132         (pkgVersionInfo::Free): ...this original inline method, renamed...
1133         (pkgVersionInfo::FreeEntry): ...as this.
1134
1135         * src/vercmp.cpp (pkgVersionInfo::Parse): Implement it.
1136
1137 2011-02-13  Keith Marshall  <keithmarshall@users.sourceforge.net>
1138
1139         Merge from mingw-get-0.1-mingw32-alpha-5 bug-fix branch.
1140
1141         * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): Promote
1142         "install" action on new prerequisites, where a previously uninstalled
1143         package is required to satisfy any "upgrade" dependency.
1144
1145         * src/pkgexec.cpp (pkgActionList::Execute): Don't make misleading
1146         claims concerning package removal.
1147
1148         * src/pkgtask.h (STRICTLY_GT, STRICTLY_LT, ACTION_PRIMARY): Add one
1149         level of parentheses around defining expressions.
1150
1151 2011-02-10  Keith Marshall  <keithmarshall@users.sourceforge.net>
1152
1153         Publish mingw-get-0.0-mingw32-alpha-5.1 bug-fix release.
1154
1155         * README: Updated to reflect changes.
1156
1157 2011-02-08  Keith Marshall  <keithmarshall@users.sourceforge.net>
1158
1159         Improve diagnostics for failed GUI invocation.
1160
1161         * src/guimain.cpp: New file; currently delivers only a diagnostic
1162         stub, provided by Sze Howe Koh <axfangli@users.sourceforge.net>, to
1163         pop-up a message block explaining why GUI mode cannot be invoked.
1164
1165         * Makefile.in (GUI_LDFLAGS): New macro; it is required by...
1166         (gui$EXEEXT): ...this new build rule; add to prerequisites of...
1167         (all): ...this [default] build rule; redefine this in terms of...
1168         (BIN_PROGRAMS, LIBEXEC_PROGRAMS, LIBEXEC_DATA): ...these new macros;
1169         define them, and also use them as loop iterator objectives for...
1170         (install, install_strip): ...these; also schedule them...
1171         (clean): ...for removal by this.
1172
1173         * src/clistub.c (Copyright): Add new year.
1174         (main): Amend error message, if gui$EXEEXT doesn't start; make it
1175         more intelligible to normal users.
1176
1177 2011-02-07  Keith Marshall  <keithmarshall@users.sourceforge.net>
1178
1179         Correct omissions from packaged source tarball.
1180
1181         * Makefile.in (Copyright): Add new year.
1182         (SRCDIST_FILES): Add aclocal.m4
1183         (SRCDIST_SUBDIRS): Add m4
1184
1185 2011-01-05  Keith Marshall  <keithmarshall@users.sourceforge.net>
1186
1187         Reduce path names to base names, in some diagnostic message contexts.
1188
1189         * src/climain.cpp: Update copyright notice for new year.
1190         (climain): Extract base name from argv[0], to pass as program name tag
1191         in initialisation of diagnostic message handler.
1192
1193         * src/dmh.h, src/dmh.cpp: Update copyright notices; make some layout
1194         adjustments, for more consistent formatting style.
1195
1196         * src/pkgbind.cpp: Update copyright notice.
1197         (pkgRepository::GetPackageList): Reduce path names for catalogue files
1198         to their base names, when reporting them in diagnostic messages.
1199
1200 2011-01-05  Keith Marshall  <keithmarshall@users.sourceforge.net>
1201
1202         Avoid a potential out-of-range action name look-up.
1203
1204         * src/pkgdeps.cpp: Update copyright notice for new year.
1205         (pkgXmlDocument::Schedule): Mask action code with ACTION_MASK, to
1206         determine correct action name when diagnosing uninstalled package.
1207
1208 2011-01-03  Keith Marshall  <keithmarshall@users.sourceforge.net>
1209
1210         Make "install" and "remove" notifications symmetric.
1211
1212         * configure.ac (AC_INIT): Bump version to "0.1-alpha-6cvs".
1213         (YEARS_OF_ISSUE): Add new year.
1214         
1215         * src/pkginst.cpp: Update copyright notice for new year.
1216         (pkgInstall): Add notification for package being installed.
1217
1218 2010-12-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
1219
1220         Add preliminary CLI support for "list" and "show" actions.
1221
1222         * src/pkgtask.h (ACTION_PRIMARY): New manifest constant; define it.
1223         (ACTION_LIST, ACTION_SHOW): Likewise; cast to enumerated values for...
1224         (action_list, action_show): ...these; define them.
1225
1226         * src/pkgexec.cpp (action_name): Add defining text for...
1227         (action_list, action_show): ...these.
1228
1229         * src/climain.cpp: Partially revert 2010-11-01 change...
1230         (climain) [! ACTION_UPDATE]: Reinstate original "if" block, moving
1231         the "switch" block within it, but without the ACTION_UPDATE case.
1232         [ACTION_LIST, ACTION_SHOW]: New "switch" cases; they invoke...
1233         (pkgXmlDocument::DisplayPackageInfo): ...this new method.
1234
1235         * src/pkgbase.h (pkgXmlDocument::DisplayPackageInfo): Declare it.
1236         (pkgActionItem::ConfirmInstallationStatus): New method; declare it.
1237         (pkgXmlNode::GetSysRoot): Make declaration style consistent with
1238         others in the class; do not name arguments in the declaration.
1239         (pkgXmlNode::FindFirstAssociate): Likewise.
1240         (pkgXmlNode::FindNextAssociate): Likewise.
1241
1242         * src/pkgshow.cpp: New file.
1243         (pkgXmlDocument::DisplayPackageInfo): Implement it.
1244
1245         * src/pkgdeps.cpp (pkgMsgUnknownPackage): New extern "C" function;
1246         implement it temporarily, pending a future i18n reimplementation.
1247         (assert_installed): Drop "inline" attribute; leave it as "static".
1248         Set "tarname" correctly, to match the installed package version; (it
1249         previously incorrectly returned the latest available version).
1250         (pkgActionItem::ConfirmInstallationStatus): Implement it.
1251         (pkgXmlDocument::Schedule) [ACTION_PRIMARY]: Set as appropriate.
1252         (pkgXmlDocument::Schedule) [ACTION_REMOVE || ACTION_UPGRADE]: Complain
1253         if requested package is not recorded as having been installed.
1254         (pkgXmlDocument::ResolveDependencies) [! ACTION_INSTALL]: Do not
1255         invoke it recursively.
1256
1257         * Makefile.in (pkgshow.$OBJEXT): Add reference.
1258
1259 2010-11-01  Keith Marshall  <keithmarshall@users.sourceforge.net>
1260
1261         Lay groundwork for implentation of additional actions.
1262
1263         * src/climain.cpp (climain): Adjust indentation; replace `if' block...
1264         [action != ACTION_UPDATE]: ...with this default `switch' case, and...
1265         [action == ACTION_UPDATE]: ...this as explicit "do nothing" case.
1266
1267 2010-10-29  Keith Marshall  <keithmarshall@users.sourceforge.net>
1268
1269         mingw-get-0.1-mingw32-alpha-5 released.
1270
1271         * configure.ac (AC_INIT): Bump version to 0.1-alpha-5.
1272         * README: Update release notes accordingly.
1273         * All files (r0-1-alpha-5): Tag assigned.
1274
1275 2010-10-22  Keith Marshall  <keithmarshall@users.sourceforge.net>
1276
1277         Make pkgInitRites/pkgLastRites processing more robust;
1278         avoid a potential race condition in mingw-get-inst.
1279
1280         * src/rites.c: Refactor conditional code to segregate execution of...
1281         [defined IMPLEMENT_INITIATION_RITES]: ...this into distinct phases.
1282         (PHASE_ONE_RITES, PHASE_TWO_RITES): Define constants to identify them.
1283         (do_init_rites): Renamed to...
1284         (invoke_rites): ...this; inline it.
1285         (pkgLastRites): Invoke it, to pre-empt rename action of...
1286         (lastrites.exe): ...this, subsequently exec()ed process.
1287         (perror): Issue more informative diagnostic on exec() failure.
1288
1289         * src/clistub.c (IMPLEMENT_INITIATION_RITES): Stipulate as...
1290         (PHASE_ONE_RITES): ...this phase of implementation only.
1291
1292         * src/pkgexec.cpp (IMPLEMENT_INITIATION_RITES): Define to provide...
1293         (PHASE_TWO_RITES): ...this phase of implementation, facilitated by...
1294         (self_upgrade_rites): ...this locally defined RITES_INLINE function.
1295         (pkgActionItem::Execute): Invoke it, in remove/install loop, while...
1296         [init_rites_pending]: ...new loop local variable remains true.
1297
1298 2010-09-10  Charles Wilson  <mingw@cwilson.fastmail.fm>
1299
1300         Fix packaging bug in -lic package.
1301
1302         * Makefile.in (licdist): Use directory named
1303         "share", not "shared".
1304
1305 2010-09-10  Charles Wilson  <mingw@cwilson.fastmail.fm>
1306
1307         mingw-get-0.1-mingw32-alpha-4 released.
1308
1309         * All files (r0-1-alpha-4): Tag assigned.
1310
1311 2010-09-10  Charles Wilson  <mingw@cwilson.fastmail.fm>
1312
1313         Add rudimentary help option.
1314
1315         * README: Update release notes.
1316
1317         * src/clistub.c: Add --help option.
1318
1319 2010-09-10  Charles Wilson  <mingw@cwilson.fastmail.fm>
1320
1321         Fix "mingw-get deletes itself" bug in last rites handling.
1322
1323         * README: Add new release notes.
1324
1325         * configure.ac: Bump version to 0.1-alpha-4.
1326
1327         * src/dmh.h: If __cplusplus, include <exception> and
1328         declare dmh_exception class.
1329
1330         * src/dmh.cpp (class dmh_exception): Implement.
1331         (abort_if_fatal): If DMH_FATAL, throw dmh_exception rather
1332         than calling exit().
1333
1334         * src/climain.cpp (climain): Wrap entire function body in try/
1335         catch block. If dmh_exception is caught, return EXIT_FAILURE.
1336
1337         * src/clistub.c (main): Capture return value of climain(). If
1338         non-zero, perform last rites and return EXIT_FAILURE.
1339
1340 2010-08-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
1341
1342         mingw-get-0.1-mingw32-alpha-3 released.
1343
1344         * README: Add new release notes.
1345
1346         * All files (r0-1-alpha-3): Tag assigned.
1347
1348 2010-08-27  Keith Marshall  <keithmarshall@users.sourceforge.net>
1349
1350         Add runtime hooks to support self-upgrade for future releases.
1351
1352         * src/rites.c: New file; compile it free-standing, to provide...
1353         (lastrites.exe): ...this helper application for context clean-up;
1354         alternatively, use it as an include file, with pre-definition of...
1355         (IMPLEMENT_INITIATION_RITES): ...this, to implement...
1356         (pkgInitRites, pkgLastRites): ...these inline functions.
1357
1358         * src/clistub.c (main) [argc > 1]: Use them.
1359         (progname): New local variable within `main'; set it once, then use it
1360         instead of repeated references to `basename(*argv)' in diagnostics.
1361         (MINGW_GET_DLL, MINGW_GET_GUI): Relocate to `src/rites.c'.
1362
1363         * src/debug.h (DEBUG_INHIBIT_RITES_OF_PASSAGE):
1364         (DEBUG_FAIL_FILE_RENAME_RITE, DEBUG_FAIL_FILE_UNLINK_RITE): New
1365         defines; they facilitate debugging of the src/rites.c code.
1366
1367         * Makefile.in (lastrites$EXEEXT): New target; build as prerequisite...
1368         (all): ...of this primary target.
1369         (install, install-strip): Install it.
1370         (SRCDIST_FILES): Remove install-sh; it is now included in...
1371         (build-aux): ...this directory; add it to...
1372         (SRCDIST_SUBDIRS): ...this.
1373
1374 2010-08-24  Keith Marshall  <keithmarshall@users.sourceforge.net>
1375
1376         Set default sysroots relative to mingw-get installation directory.
1377
1378         * xml/profile.xml (system-map) [name == default]: For each of...
1379         [subsystem == mingw32]: ...set sysroot path to value of %R macro...
1380         [subsystem == msys]: ...and to its %R/msys/1.0 subdirectory.
1381
1382 2010-08-19  Keith Marshall  <keithmarshall@users.sourceforge.net>
1383
1384         Some dependency resolver enhancements and bug fixes.
1385
1386         * src/pkgbase.h (pkgXmlNode::GetContainerAttribute): New method;
1387         declare it.
1388
1389         * src/pkgdeps.cpp (pkgXmlNode::GetContainerAttribute): Implement it;
1390         it is used to retrieve package name attributes from the containing
1391         'package' element, when given a pointer to a 'release' element by...
1392         (assert_unmatched, assert_installed): ...these new static functions.
1393         (pkgXmlDocument::Schedule): Use them to reconstruct and register
1394         dependency reference data for previously installed packages which are
1395         no longer included in the distribution manifest.
1396         (pkgXmlDocument::ResolveDependencies): Fix a block nesting error;
1397         catch and diagnose unresolved dependencies; don't look beyond the XML
1398         document root node, (tinyxml error not caught?), when searching for
1399         requirements specified on container nodes.
1400
1401 2010-08-17  Keith Marshall  <keithmarshall@users.sourceforge.net>
1402
1403         Improve scheduling of package processing requests.
1404
1405         * src/pkgexec.cpp (pkgXmlDocument::Schedule): Inspect entire `actions'
1406         list, when checking for duplicate package processing requests; decline
1407         to schedule any such duplicate, or any request which lacks a package
1408         association.
1409
1410 2010-08-15  Keith Marshall  <keithmarshall@users.sourceforge.net>
1411
1412         Lay foundation for selective compilation of debugging code.
1413
1414         * src/debug.h: New file...
1415         * src/sysroot.cpp: Include it.
1416         (pkgXmlDocument::LoadSystemMap): Make debugging output conditional...
1417         [DEBUGLEVEL & DEBUG_TRACE_INIT]: ...on this new debugging state.
1418
1419 2010-08-15  Keith Marshall  <keithmarshall@users.sourceforge.net>
1420
1421         * src/pkgkeys.h: Typo in comment: file was previously identified as
1422         pkgkeys.c; corrected.
1423
1424 2010-08-13  Keith Marshall  <keithmarshall@users.sourceforge.net>
1425
1426         Improve diagnostics for invalid references to non-release XML nodes.
1427
1428         * src/pkgkeys.h (value_unknown): New global string; declare it.
1429         * src/pkgkeys.c (value_unknown): Implement it.
1430
1431         * src/pkgname.cpp (pkgArchiveName): Identify XML element type when
1432         diagnosing references to elements of types other than release; use...
1433         (value_unknown): ...this, as appropriate.
1434
1435 2010-08-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
1436
1437         Guard against a potential buffer overrun.
1438
1439         * src/pkgreqs.cpp (pkgSpecs::SetProperty): Allocate an additional
1440         byte to accommodate an extra field separator, when inserting a new
1441         data value into a previously empty field.
1442
1443 2010-07-27  Cesar Strauss  <cestrauss@gmail.com>
1444
1445         Handle the GNU long name tar header format.
1446
1447         * src/pkgproc.h (TAR_ENTITY_TYPE_GNU_LONGNAME): New manifest constant;
1448         define it.
1449         (pkgTarArchiveProcessor::EntityDataAsString): New protected method;
1450         declare and...
1451         * src/tarproc.cpp: ...implement it.
1452         (pkgTarArchiveProcessor::Process): Before building the entry pathname,
1453         check for a GNU long name type header; when found, read pathname from
1454         the entry data area, before fetching the following header, from which
1455         to retrieve the associated entity data.
1456
1457 2010-06-24  Keith Marshall  <keithmarshall@users.sourceforge.net>
1458
1459         Work around an autoconf bug (reported by Stefano Sabatini).
1460
1461         * Makefile.in (VPATH): Use @top_srcdir@ instead of ${srcdir}; current
1462         autoconf incorrectly elides references to @srcdir@ and ${srcdir} when
1463         substituting within a VPATH specification for building `in-source'.
1464         Also, prefer colons to blanks as path name separators, for improved
1465         portability to non-GNU implementations of make; (recommendation by
1466         Ralf Wildenhues).
1467
1468 2010-06-24  Keith Marshall  <keithmarshall@users.sourceforge.net>
1469
1470         Include alias search, when matching component package name.
1471
1472         * src/keyword.c (has_keyword): Rearrange argument declarations for
1473         more natural order; update all callers accordingly.  Simplify; compare
1474         keyword to be matched with each successive candidate from match-list,
1475         character-by-character and in-place, so avoiding memory allocation
1476         for any local duplicate of the passed match-list; thus...
1477         (safe_strdup): ...this static function no longer required; delete it.
1478         (string.h): No references remain; do not include it.
1479
1480         * src/pkgfind.cpp (pkgXmlNode::FindPackageByName): Augment component
1481         package name matching to include potential matches of the look-up name
1482         with trailing component name stripped off, when that matches the class
1483         name of an identified component package, and the initial substring of
1484         the look-up name, after stripping, matches any specified alias name
1485         for the containing package.
1486
1487 2010-06-10  Keith Marshall  <keithmarshall@users.sourceforge.net>
1488
1489         Address FIXME relating to identification of distributable files.
1490
1491         * install-sh: Move to...
1492         * build-aux: ...this new directory.
1493
1494         * Makefile.in (PACKAGE_DISTVERSION): Modify `sed' edit sequence; make
1495         it depend on, and ensure that it incorporates the expansion of...
1496         (PACKAGE_SUBSYSTEM): ...this new macro; defined as substitution of...
1497         (host_os): ...this autoconf variable, set by...
1498
1499         * configure.ac (AC_CANONICAL_HOST): ...this; add it, requiring...
1500         (AC_CONFIG_AUX_DIR): ...`build-aux' directory reference, providing...
1501
1502         * build-aux/config.guess, build-aux/config.sub: ...these new standard
1503         files; import them from the standard `build-aux' repository.
1504
1505 2010-05-17  Keith Marshall  <keithmarshall@users.sourceforge.net>
1506
1507         Bump version for next release cycle.
1508
1509         * configure.ac (AC_INIT): Bump version suffix to alpha-3.
1510
1511 2010-05-17  Keith Marshall  <keithmarshall@users.sourceforge.net>
1512
1513         mingw-get-0.1-mingw32-alpha-2 released.
1514
1515         * README: Add new release notes.
1516
1517         * xml/profile.xml: Update to use default referencing for...
1518         (package-list.xml.lzma): ...this repository master catalogue.
1519
1520         * All files (r0-1-alpha-2): Tag assigned.
1521
1522 2010-05-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
1523
1524         Make provision to protect user's profile settings during upgrade.
1525
1526         * Makefile.in (install): Remove `profile.xml'; replace it with...
1527         (install-profile): ...this new prerequisite installation goal; it
1528         renames the installed copy of `profile.xml' as `defaults.xml', within
1529         the installed package image.
1530
1531         * src/pkgkeys.h (defaults_key): New key; declare it.
1532         * src/pkgkeys.c: Some cosmetic formatting (tabulation) adjustments.
1533         (defaults_key): Implement it; it refers to the `defaults.xml' file.
1534
1535         * src/climain.cpp (climain): Check `profile_key' for accessibility of
1536         the `profile.xml' file; if [! R_OK] emit a diagnostic warning, fall
1537         back on `defaults_key', and attempt to load configuration from the
1538         distributed `defaults.xml' file.
1539
1540 2010-05-11  Keith Marshall  <keithmarshall@users.sourceforge.net>
1541
1542         Add preliminary support for future `-reinstall' option.
1543
1544         * src/pkgexec.cpp (pkgActionItem::Execute) [ACTION_INSTALL]: Force
1545         installation if `-reinstall' option is selected, overriding state of
1546         any prior installation; temporarily assume that this option is always
1547         selected, to permit proper `upgrade' operation in the absence of any
1548         functional `uninstall' capability, and pending implementation of a
1549         mechanism for interpreting user specified options.
1550
1551 2010-05-11  Keith Marshall  <keithmarshall@users.sourceforge.net>
1552
1553         Correct handling for "%R" macro in relative sysroot path specs.
1554
1555         * src/tarproc.cpp (pkgTarArchiveProcessor): In constructor, expand the
1556         sysroot path specification a second time, to capture the effect of any
1557         embedded macros, before computing the recorded `sysroot_len' value.
1558
1559 2010-05-05  Keith Marshall  <keithmarshall@users.sourceforge.net>
1560
1561         Handle "%" wildcard matches in package and subsystem version strings.
1562
1563         * src/pkgbase.h (pkgSpecs): Forward declare it.
1564         (pkgActionItem::~pkgActionItem): Declare explicit destructor.
1565         (pkgActionItem::SetRequirements): Add extra `pkgSpecs*' argument;
1566         update references, passing additional argument in...
1567
1568         * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): ...this.
1569
1570         * src/pkgexec.cpp (pkgActionItem::~pkgActionItem): Implement it.
1571         (pkgActionItem::SetRequirements): Delete obsolete implementation.
1572
1573         * src/pkginfo/pkginfo.h: Update copyright notice; add year 2010.
1574         (pkgSpecs::GetTarName): New public method; declare it.
1575         (pkgSpecs::SetProperty): New private method; declare it.
1576         (pkgSpecs::SetPackageName): New inline method; implement it.
1577         (pkgSpecs::SetPackageVersion, pkgSpecs::SetPackageBuild): Likewise.
1578         (pkgSpecs::SetSubSystemName, pkgSpecs::SetSubSystemVersion): Likewise.
1579         (pkgSpecs::SetSubSystemBuild, pkgSpecs::SetReleaseStatus): Likewise.
1580         (pkgSpecs::SetReleaseIndex, pkgSpecs::SetComponentClass): Likewise.
1581         (pkgSpecs::SetComponentVersion, pkgSpecs::SetPackageFormat): Likewise.
1582         (pkgSpecs::SetCompressionType): Likewise.
1583
1584         * src/pkginfo/pkginfo.l: Update copyright notice; add year 2010.
1585         (TRANS): Interpret "%" as wildcard in version string matches.
1586
1587         * src/pkgreqs.cpp: New file.
1588         (pkgActionItem::SetRequirements): Reimplement per new declaration;
1589         it now always allocates heap memory for requirements specifications.
1590         (pkgSpecs::GetTarName, pkgSpecs::SetProperty): Implement them.
1591
1592         * Makefile.in (CORE_DLL_OBJECTS): Add `pkgreqs.$(OBJEXT)'.
1593
1594 2010-04-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
1595
1596         Revert 2010-04-04 refactoring of tarproc.cpp and tarinst.cpp
1597
1598         * src/tarinst.cpp: File removed; its content merged into...
1599         * src/tarproc.cpp: ...this; it cannot be cleanly separated out.
1600
1601         * Makefile.in (tarinst.$OBJEXT): Remove reference.
1602
1603 2010-04-29  Keith Marshall  <keithmarshall@users.sourceforge.net>
1604
1605         Handle "*" wildcard matches in package and subsystem version strings.
1606
1607         * src/vercmp.h (pkgVersionInfo::version_string): New private member
1608         variable; it stores a pointer to a dynamically allocated local copy of
1609         the invariant `version' argument, to facilitate correct parsing.
1610         (pkgVersionInfo::build_string): Likewise; it provides similar handling
1611         for the invariant `build' argument.
1612         (pkgVersionInfo::Free): New private inline method; it provides a NULL
1613         pointer safe wrapper, calling the C library `free()' function, (since
1614         some implementations are believed to be unsafe); it is used by...
1615         (pkgVersionInfo::~pkgVersionInfo): ...this new inline destructor, to
1616         release the memory allocated by the constructor, for `version_string'
1617         and `build_string'.
1618
1619         * src/vercmp.cpp (pkgVersionInfo::pkgVersionInfo): Allocate memory for
1620         `version_string' and `build_string', as required; populate it.
1621         Explicitly handle "*" as a `match anything' wildcard...
1622         (pkgVersionInfo::Compare): ...matching it as `equal' to everything.
1623
1624 2010-04-18  Keith Marshall  <keithmarshall@users.sourceforge.net>
1625
1626         Correct omission from configure script prerequisite checks.
1627
1628         * aclocal.m4 (MINGW_AC_OUTPUT): New macro; it wraps AC_OUTPUT itself,
1629         adding a trap to force an abort if any preceding prerequisite check
1630         was handled by MINGW_AC_ASSERT_MISSING.
1631
1632         * configure.ac: Qualify package component types, in prerequisite
1633         checks handled by MINGW_AC_ASSERT_MISSING; invoke MINGW_AC_OUTPUT
1634         in place of AC_OUTPUT.
1635
1636 2010-04-17  Keith Marshall  <keithmarshall@users.sourceforge.net>
1637
1638         Add configure script checks for prerequisite library headers.
1639         (Thanks to Cesar Strauss for proposing a rudimentary implementation).
1640
1641         * aclocal.m4: New file; it does no more than include...
1642         * m4/missing.m4: ...this; new file incorporated from build-aux module.
1643
1644         * configure.ac: Add AC_CHECK_HEADER assertions for...
1645         (zlib.h, bzlib.h, lzma.h): ...these; invoke MINGW_AC_ASSERT_MISSING in
1646         respect of each failing assertion.
1647
1648 2010-04-17  Keith Marshall  <keithmarshall@users.sourceforge.net>
1649
1650         Case-insensitive subsystem name matching revisited.
1651
1652         * src/pkgfind.cpp (pkgXmlDocument::FindPackageByName): Use...
1653         (subsystem_strcmp): ...this to match subsystem names, instead of...
1654         (match_if_explicit): ...this.
1655
1656 2010-04-15  Keith Marshall  <keithmarshall@users.sourceforge.net>
1657
1658         Enable recursive processing of repository package lists.
1659
1660         * src/pkgbase.h (pkgXmlDocument::SyncRepository): Make it public.
1661
1662         * src/pkgbind.cpp (pkgRepository): New locally defined and implemented
1663         class; it facilitates recursive loading and parsing of package lists,
1664         replacing much of the original non-recursive functionality within...
1665         (pkgXmlDocument::BindRepositories): ...this; use it.
1666
1667 2010-04-04  Keith Marshall  <keithmarshall@users.sourceforge.net>
1668
1669         Implement installer function; use per-package file manifests.
1670
1671         * src/pkgproc.h (pkgManifest): New class; declare it.
1672         (pkgArchiveProcessor::origin): New protected member variable.
1673         (pkgArchiveProcessor::sysroot_len): New protected member variable.
1674         (pkgArchiveProcessor::installed): Type changed to `pkgManifest *'.
1675         (pkgTarArchiveInstaller::Process): Declare specialisation hook.
1676         (pkgTarArchiveInstaller::UpdateInstallationManifest): Disused member
1677         function; remove redundant declaration from class definition.
1678         (pkgInstall): New generalised installation function; declare it.
1679         (pkgRegister): New function; declare it.
1680
1681         * src/pkginst.cpp: New file.
1682         (pkgManifest, pkgInstall, pkgRegister): Implement them.
1683
1684         * src/pkgexec.cpp (pkgActionItem::Execute): Use `pkgInstall' in place
1685         of stub formerly provided here.
1686
1687         * src/pkgkeys.h (manifest_key, reference_key): New keys; declare them.
1688         * src/pkgkeys.c (manifest_key, reference_key): Implement them.
1689
1690         * src/tarproc.cpp: Code refactored.
1691         (pkgTarArchiveProcessor::sysroot_len): Initialise it.
1692         (pkgTarArchiveProcessor::origin): Initialise it.
1693         (pkgTarArchiveProcessor::installed): Initialise; associate it with a
1694         pkgManifest class entity, and populate this as appropriate.
1695         (pkgTarArchiveProcessor::~pkgTarArchiveProcessor): Add explicit clean
1696         up of linked `pkgManifest *' entity referenced by `installed'.
1697         (pkgTarArchiveProcessor::Process) [TAR_ENTITY_TYPE_DIRECTORY]: Add
1698         braces to demarcate localised inner scope of string scan for removal
1699         of trailing directory name separators; (thanks to Cesar Strauss for
1700         reporting invalid local pointer declaration error in GCC >= 4.4).
1701         (pkgTarArchiveInstaller::UpdateInstallationManifest): Deleted.
1702         (pkgTarArchiveInstaller::pkgTarArchiveInstaller): Factor out.
1703         (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
1704         (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
1705         (commit_saved_entity): Likewise.
1706
1707         * src/tarinst.cpp: New file; it implements...
1708         (pkgTarArchiveInstaller::Process): ...this new specialisation
1709         of the original pkgTarArchiveProcessor::Process method...
1710         (pkgTarArchiveInstaller::pkgTarArchiveInstaller): ...and this
1711         refactored code, abstracted from src/tarproc.cpp and modified to
1712         use the pkgManifest class for installation tracking.
1713         (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
1714         (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
1715         (commit_saved_entity): Relocated from src/tarproc.cpp.
1716
1717         * Makefile.in (CORE_DLL_OBJECTS): Add...
1718         (pkginst.OBJEXT, tarinst.OBJEXT): ...these new object files.
1719
1720 2010-03-31  Keith Marshall  <keithmarshall@users.sourceforge.net>
1721
1722         Guard against NULL pointer dereferences in tinyxml code.
1723
1724         * src/pkgbase.h (pkgXmlNode::GetName): Verify `this' pointer is
1725         non-NULL, before invoking the underlying tinyxml method.
1726         (pkgXmlNode::GetParent, pkgXmlNode::GetChildren): Likewise.
1727         (pkgXmlNode::GetNext, pkgXmlNode::GetPropVal): Likewise.
1728         (pkgXmlNode::AddChild, pkgXmlNode::DeleteChild): Likewise.
1729         (pkgXmlNode::GetDocumentRoot): Likewise.
1730         (pkgXmlNode::IsElementOfType): Likewise.
1731
1732 2010-03-28  Cesar Strauss  <cestrauss@gmail.com>
1733
1734         Avoid running InternetAttemptConnect in pkgInternetAgent
1735         constructor, since it is called during DLL initialisation.
1736
1737         * src/pkginet.cpp (pkgInternetAgent::pkgInternetAgent): Move the
1738         InternetAttemptConnect call from constructor...
1739         (pkgInternetAgent::OpenURL): ...to here.
1740
1741 2010-03-23  Keith Marshall  <keithmarshall@users.sourceforge.net>
1742
1743         Automate object code dependency tracking.
1744
1745         * Makefile.in (DEPFLAGS): New macro; define it.
1746         (%.OBJEXT: %.c, %.OBJEXT: %.cpp): Add dependency generator commands...
1747         (%.d): ...to create these dependency maps; `sinclude' them, and...
1748         (clean): ...remove them.
1749         
1750         * .cvsignore (*.d): Add wild card template to match them.
1751
1752 2010-03-22  Keith Marshall  <keithmarshall@users.sourceforge.net>
1753
1754         Support case insensitive matching for file and subsystem names.
1755
1756         * src/pkgbase.h (safe_strcmp): New inline function; it provides NULL
1757         argument safe comparison of strings, returning the boolean inverse of
1758         the `strcmp' result, using either case-sensitive or case-insensitive
1759         semantics; derive it from...
1760         (match_if_explicit): ...this; redefine as macro; invoke `safe_strcmp'
1761         using explicitly case-sensitive semantics.
1762         (subsystem_strcmp): New macro; it invokes `safe_strcmp' with either
1763         case-sensitive or case-insensitive semantics, depending on...
1764         (CASE_INSENSITIVE_SUBSYSTEMS): ...this new context selection macro; it
1765         fixes the choice between case-sensitive and case-insensitive matching
1766         semantics for any given implementation, at compile time.
1767         (pkg_strcmp): New macro; it invokes `safe_strcmp' with either
1768         case-sensitive or case-insensitive semantics, depending on...
1769         (CASE_INSENSITIVE_FILESYSTEM): ...this new context selection macro; it
1770         fixes the choice between case-sensitive and case-insensitive matching
1771         semantics for any given implementation, at compile time.
1772
1773         * src/sysroot.cpp (pkgXmlNode::GetSysRoot): Use `subsystem_strcmp'.
1774
1775 2010-03-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
1776
1777         Add preliminary support for virtual packages.
1778
1779         * src/pkgkeys.h (yes_value, no_value): Redefine as aliases...
1780         (value_yes, value_no): ...for these new global strings; declare them.
1781         (value_none, value_virtual): New global strings; declare them.
1782
1783         * src/pkgkeys.c (yes_value, no_value): Rename...
1784         (value_yes, value_no): ...to implement these, respectively.
1785         (value_none, value_virtual): Implement them.
1786
1787         * src/pkgname.cpp (pkgXmlNode::ArchiveName): Check containing package
1788         node for `class' attribute set to `value_virtual'; if present, always
1789         return the effective `tarname' property as `value_none'.
1790
1791         * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): For packages
1792         with an effective `tarname' of `value_none', do not download anything.
1793
1794         * src/pkgexec.cpp (pkgActionItem::Execute): For packages with an
1795         effective `tarname' of `value_none', do not invoke any tar archive
1796         processing function.
1797
1798 2010-03-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
1799
1800         Don't write installation records for unavailable packages.
1801
1802         * src/tarproc.cpp (pkgTarArchiveInstaller): In constructor, ensure
1803         archive is ready for processing, before initialising an installation
1804         manifest record.
1805
1806 2010-03-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
1807
1808         Rationalise path identification for XML file locations.
1809
1810         * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Use `xmlfile()'
1811         function to locate `sysroot' map file; free memory when done.
1812         (pkgXmlDocument::UpdateSystemMap): Likewise.
1813         (sigpath): Static global variable disused; delete it.
1814
1815 2010-03-01  Keith Marshall  <keithmarshall@users.sourceforge.net>
1816
1817         Extend package name search to include component packages.
1818
1819         * src/pkgfind.cpp (pkgHasMatchingName): Remove; fold it into...
1820         (pkgXmlNode::FindPackageByName): ...this; augment to extend search
1821         within package definition elements, seeking a potential match on an
1822         included component package name or component class-implied name.
1823
1824         * src/pkgkeys.h (class_key): New global string constant; declare it.
1825         * src/pkgkeys.c (class_key): Implement it.
1826
1827 2010-02-16  Keith Marshall  <keithmarshall@users.sourceforge.net>
1828
1829         Bump version for next release cycle.
1830
1831         * configure.ac (AC_INIT): Bump version suffix to alpha-2.
1832
1833 2010-02-16  Keith Marshall  <keithmarshall@users.sourceforge.net>
1834
1835         mingw-get-0.1-mingw32-alpha-1 released.
1836
1837 2010-02-16  Keith Marshall  <keithmarshall@users.sourceforge.net>
1838
1839         Prepare initial package release.
1840
1841         * README: New file; use it to source release notes.
1842
1843         * Makefile.in (SRCDIST_FILES): Use ...
1844         (LICENCE_FILES): ...this new macro; define it.
1845         (licdist): New build goal; implement it.
1846         (bindist): Require it; add alternative `zip' format package.
1847
1848         * xml/profile.xml (repository): Set default `package-index' name.
1849         (system-map): Normalise spelling for default `sysroot' path names.
1850
1851 2010-02-10  Keith Marshall  <keithmarshall@users.sourceforge.net>
1852
1853         Add directory/file records in installation manifests.
1854
1855         * src/pkgkeys.h (dirname_key, filename_key): New strings; declare...
1856         * src/pkgkeys.c (dirname_key, filename_key): ...and implement them.
1857
1858         * src/pkgproc.h (pkgArchiveProcessor::installed): New class member
1859         variable; declare it.
1860         (pkgTarArchiveInstaller::UpdateInstallationManifest): New method;
1861         declare it.
1862
1863         * src/tarproc.cpp: Miscellaneous comment updates.
1864         (pkgTarArchiveInstaller): In constructor...
1865         (pkgTarArchiveInstaller::installed): ...use new member variable...
1866         (pkgArchiveProcessor::installed): ...inherited from this.
1867         (pkgTarArchiveInstaller::UpdateInstallationManifest): Implement and...
1868         (pkgTarArchiveInstaller::ProcessDataStream): ...use it.
1869         (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
1870
1871 2010-02-06  Keith Marshall  <keithmarshall@users.sourceforge.net>
1872
1873         Work around a deficiency in Microsoft's stat() implementation.
1874
1875         * src/tarproc.cpp (pkgTarArchiveProcessor::ProcessDirectory): Don't
1876         pass a `pathname' argument with trailing slashes; strip them off.
1877
1878 2010-02-06  Keith Marshall  <keithmarshall@users.sourceforge.net>
1879
1880         Add machinery for installation and packaging for distribution.
1881
1882         * install-sh: New file; source it from autoconf distribution.
1883
1884         * configure.ac (AC_PREFIX_DEFAULT): Assign it as `C:/MinGW'.
1885         (AC_PROG_MKDIR_P, AC_PROG_INSTALL, AC_PROG_LN_S): Invoke these.
1886         (STRIP): New output variable; use AC_CHECK_TOOL to define it.
1887
1888         * Makefile.in (abs_top_srcdir): Define to AC_SUBST value.
1889         (PACKAGE_TARNAME, PACKAGE_VERSION): Define to AC_SUBST values.
1890         (prefix, exec_prefix, bindir, libexecdir, localstatedir): Likewise.
1891         (INSTALL, INSTALL_PROGRAM, INSTALL_SCRIPT, INSTALL_DATA): Likewise.
1892         (STRIP): New macro; define it using AC_CHECK_TOOL substitution.
1893         (mkinstalldirs): New macro; define it as AC_PROG_MKDIR_P result.
1894         (LN_S): New macro; define it as AC_PROG_LN_S result.
1895         (dist, srcdist, bindist): New build objectives; implement them.
1896         (install, installdirs, install-strip, maintainer-clean): Likewise.
1897         (SRCDIST_FILES, SRCDIST_SUBDIRS): New macros; define them.
1898         (PACKAGE_DISTNAME, PACKAGE_DISTVERSION): Likewise.
1899         (PACKAGE_DISTROOT, PACKAGE_ROOTVERSION): Likewise.
1900         (PACKAGE_CONFIG_DIR): Likewise.
1901
1902 2010-02-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
1903
1904         Implement package installer for tar archives.
1905
1906         * src/pkgexec.cpp (pkgXmlDocument::Execute): Replace existing
1907         stub implementation of installer, using methods provided by...
1908         * src/pkgproc.h, src/tarproc.cpp: ...these new files, with trap...
1909         * src/pkgdeps.cpp (pkgXmlDocument::Schedule) [installed]: Add entry...
1910         (pkgActionItem::Selection) [to_remove]: ...for this; use it to detect
1911         `install' requests for packages which are aleady installed.
1912
1913         * Makefile.in (CORE_DLL_OBJECTS): Add tarproc.$(OBJEXT); specify
1914         dependencies as appropriate.
1915
1916         * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Don't commit
1917         newly created `sysroot' mapping records to disk; defer to...
1918         (pkgXmlDocument::UpdateSystemMap): ...this new method.
1919         (sigpath): Make it a global variable, with file (static) scope.
1920
1921         * src/climain.cpp (pkgXmlDocument::UpdateSystemMap): Invoke it.
1922
1923         * src/pkgkeys.h (download_key, modified_key, source_key): New global
1924         string variables; declare them, providing their implementations...
1925         * src/pkgkeys.c (download_key, modified_key, source_key): ...here.
1926         * src/pkgname.cpp (download_key, source_key): Use them.
1927
1928         * src/pkginet.cpp (pkgActionItem::ArchivePath): Delete; replace...
1929         * src/mkpath.c (pkgArchivePath): ...with this free standing function.
1930         * src/mkpath.h (pkgArchivePath): Declare its prototype.
1931
1932         * src/pkgbase.h (pkgActionItem::ArchivePath): Delete declaration.
1933         (pkgXmlDocument): Add a default constructor; implement as `inline'.
1934         (pkgXmlDocument::AddDeclaration): Use heap memory to allocate the new
1935         declaration object, instead of `auto' variable, to avoid scope error.
1936         (pkgXmlDocument::UpdateSystemMap): Declare it.
1937
1938 2010-01-26  Keith Marshall  <keithmarshall@users.sourceforge.net>
1939
1940         Implement rudimentary dependency resolver.
1941
1942         * src/pkgdeps.cpp: New file.
1943
1944         * Makefile.in (CORE_DLL_OBJECTS): Add pkgdeps.$(OBJEXT) reference;
1945         establish header file dependencies.
1946
1947         * src/pkgbase.h (to_remove, to_install, selection_types): New enum.
1948         (pkgActionItem::selection): Extend it to store as enumerated pair...
1949         (pkgActionItem::SelectPackage): New inline method; assign them.
1950         (pkgActionItem::Selection): New inline method; retrieve them.
1951         (pkgXmlNode::GetInstallationRecord): New method; declare it.
1952
1953         * src/pkgexec.cpp (pkgActionItem): In constructor...
1954         (selection): ...initialise both references in enumerated pair.
1955         (pkgActionItem::GetReference): Use `Selection()' method.
1956         (pkgActionItem::SelectIfMostRecent): Ditto; also correct logic for
1957         making selection, and assign to `to_install' element.
1958         (pkgXmlDocument::Schedule): Don't update `request'.
1959         (pkgActionItem::Execute): Implement as stub.
1960
1961         * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): Use new
1962         `Selection()' method.
1963
1964         * src/pkgkeys.h (yes_value, no_value): Declare new string constants.
1965         * src/pkgkeys.c (yes_value, no_value): Implement them.
1966
1967         * src/vercmp.cpp: Update copyright notice.
1968         (pkgVersionInfo::operator<=): Bug fix; must test for `<', but had `>'.
1969
1970 2010-01-23  Keith Marshall  <keithmarshall@users.sourceforge.net>
1971
1972         Avoid segmentation faults when processing invalid data streams.
1973
1974         * src/pkgstrm.h: Update copyright notice.
1975         (pkgArchiveStream::IsReady): New pure virtual method.
1976         (pkgRawArchiveStream::IsReady): Provide inline implementation.
1977         (pkgGzipArchiveStream::IsReady): Likewise.
1978         (pkgBzipArchiveStream::IsReady): Likewise.
1979         (pkgLzmaArchiveStream::IsReady): Likewise.
1980         (pkgXzArchiveStream::IsReady): Likewise.
1981
1982         * src/pkgstrm.cpp: Update copyright notice.
1983         (pkgLzmaArchiveStream, pkgXzArchiveStream) [fd == -1]: Decline to
1984         perform any form of read or decode processing.
1985
1986         * src/pkginet.cpp (pkgInternetLzmaStreamingAgent): Use `fd = -2' as
1987         pseudo-descriptor for the pkgLzmaArchiveStream derived component of
1988         this internet data streaming class.
1989
1990 2010-01-23  Keith Marshall  <keithmarshall@users.sourceforge.net>
1991
1992         Require liblzma >= liblzma-4.999.9beta_20091209-3-mingw32-dev
1993
1994         * src/pkgstrm.h (LZMA_API_STATIC): Remove definition and associated
1995         comment; it was required to permit, (but not to enforce), linking to
1996         the static liblzma.a library, with earlier beta releases, but this
1997         anomaly has now been corrected.
1998
1999 2010-01-22  Keith Marshall  <keithmarshall@users.sourceforge.net>
2000
2001         Remove zlib sources from trunk.
2002         (Application builders should use free standing implementation of
2003          zlib, from MinGW's package distribution page on SourceForge).
2004
2005 2010-01-22  Keith Marshall  <keithmarshall@users.sourceforge.net>
2006
2007         Remove bzip2 sources from trunk.
2008         (Application builders should use free standing implementation of
2009          bzip2, from MinGW's package distribution page on SourceForge).
2010
2011 2010-01-22  Keith Marshall  <keithmarshall@users.sourceforge.net>
2012
2013         Add subsystem specific sysroot mapping facility.
2014
2015         * src/pkghash.c: New file; required by...
2016         * src/sysroot.cpp: New file; it implements...
2017         (pkgXmlDocument::LoadSystemMap, pkgXmlNode::GetSysRoot): New methods.
2018
2019         * src/pkgbase.h: Update copyright notice.
2020         (pkgXmlDocument::LoadSystemMap): Declare it.
2021         (pkgXmlDocument::AddDeclaration): New inline method.
2022         (pkgXmlDocument::SetRoot, pkgXmlDocument::Save): Likewise.
2023         (pkgXmlNode::GetSysRoot): Declare it.
2024         (pkgXmlNode::GetDocumentRoot): New inline method.
2025         (pkgXmlNode::AddChild, pkgXmlNode::DeleteChild): Likewise.
2026
2027         * src/climain.cpp: Update copyright notice.
2028         (climain): Invoke pkgXmlDocument::LoadSystemMap() as required.
2029
2030         * Makefile.in (CORE_DLL_OBJECTS): Add ...
2031         (pkghash.$(OBJEXT), sysroot.$(OBJEXT)): ...these; upate dependencies.
2032         (DEBUGLEVEL): New macro; define it.
2033         (CPPFLAGS): Use it.
2034
2035 2010-01-16  Keith Marshall  <keithmarshall@users.sourceforge.net>
2036
2037         Assign standardised keys for XML database lookup.
2038
2039         * src/pkgkeys.h: New file; provide public key declarations.
2040         * src/pkgkeys.c: New file; implement them.
2041
2042         * src/pkgbind.cpp: Use them; update copyright notice.
2043         * src/pkgexec.cpp, src/pkgfind.cpp, src/pkginet.cpp: Likewise.
2044         * src/pkgname.cpp, src/pkgspec.cpp: Likewise.
2045
2046         * Makfile.in (CORE_DLL_OBJECTS): Add pkgkeys.$(OBJEXT); update all
2047         dependencies accordingly.
2048
2049 2010-01-08  Keith Marshall  <keithmarshall@users.sourceforge.net>
2050
2051         Add CLI version reporting option.
2052
2053         * configure.ac: Update copyright notice for new year.
2054         (COPYRIGHT_HOLDER): New AC_SUBST variable; define it.
2055         (YEARS_OF_ISSUE): New AC_SUBST variable; define it.
2056         (AC_CONFIG_FILES): Add `version.c'; source it from...
2057
2058         * version.c.in: ...this new file.
2059
2060         * Makefile.in: Update copyright notice for new year.
2061         (mingw-get$(EXEEXT)): Add dependency on `version.$(OBJEXT)'.
2062         (distclean): Add `version.c'.
2063
2064         * configure: Regenerated.
2065
2066         * src/clistub.c: Update copyright notice for new year.
2067         (options): New array of `struct option'; define and use it as the
2068         reference for `argv' parsing with `getopt_long_only()'.
2069
2070 2009-12-17  Keith Marshall  <keithmarshall@users.sourceforge.net>
2071
2072         Add CLI support for "update" action.
2073
2074         * src/pkgtask.h (ACTION_UPDATE): Define it, derived from...
2075         (action_update): ...this new entry in anonymous enumeration.
2076         
2077         * src/pkgexec.cpp (action_name): Add "update" keyword identification.
2078
2079         * src/pkgbase.h: Typo in comment; s/xwXmlDocument/wxXmlDocument/.
2080         (pkgXmlDocument::BindRepositories): Add `force_update' parameter...
2081         * src/pkgbind.cpp (pkgXmlDocument::BindRepositories): Use it to...
2082         (pkgXmlDocument::SyncRepository): ...invoke this method when passed as
2083         a `true' flag, in addition to (as previously) first time reference.
2084
2085         * src/climain.cpp (climain): Interpret "update" keyword for...
2086         [ACTION_UPDATE]: ...passing state as `force_update' parameter to...
2087         (pkgXmlDocument::BindRepositories): ...this method, then...
2088         [!ACTION_UPDATE]: Follow with normal action processing.
2089
2090 2009-12-16  Keith Marshall  <keithmarshall@users.sourceforge.net>
2091
2092         Add status checking for Internet URL connections.
2093
2094         * src/pkginet.cpp (pkgInternetAgent::QueryStatus): New method.
2095         (pkgInternetStreamingAgent::Get): Use it; set `dl_status' as return
2096         value, deferring failure diagnostics to callers, i.e. to...
2097         (pkgXmlDocument::SyncRepositories): ...this, and to...
2098         (pkgActionItem::DownloadArchiveFiles): ...this.
2099
2100 2009-11-23  Keith Marshall  <keithmarshall@users.sourceforge.net>
2101
2102         Add package download and repository synchronisation machinery.
2103
2104         * src/pkgstrm.h: New header file.
2105
2106         * src/pkgbind.cpp, src/pkginet.cpp, src/pkgstrm.cpp,
2107         src/pkgfind.cpp, src/pkgname.cpp, src/keyword.c: New files.
2108         * Makefile.in (CORE_DLL_OBJECTS): Add build goals for them.
2109
2110         * xml: New directory.
2111
2112         * src/climain.cpp (climain): Establish repository bindings from...
2113         * xml/profile.xml: ...this new configuration file.
2114
2115 2009-11-16  Keith Marshall  <keithmarshall@users.sourceforge.net>
2116
2117         Add XML database bindings and preliminary action executive for CLI.
2118
2119         * src/pkgbase.h, src/pkgtask.h,
2120         src/mkpath.h, src/vercmp.h: New header files.
2121
2122         * src/climain.cpp, src/pkgexec.cpp, src/pkgspec.cpp,
2123         src/mkpath.c, src/vercmp.cpp, src/xmlfile.c: New files.
2124
2125         * Makefile.in (CORE_DLL_OBJECTS): Define initial set of files...
2126         (mingw-get-0.dll): ...build them into this new DLL target; add it...
2127         (all): ...as prerequisite for this primary build goal.
2128
2129 2009-11-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
2130
2131         Avoid some potential GCC warnings.
2132
2133         * src/clistub.c: Include process.h for `execv' prototype...
2134         (main): Cast `argv' to appropriately matched type when calling it.
2135
2136         * src/pkginfo/driver.c: Include stdlib.h for `free' prototype.
2137
2138 2009-11-11  Keith Marshall  <keithmarshall@users.sourceforge.net>
2139
2140         Create diagnostic message handler for CLI usage.
2141
2142         * src/dmh.h: New header file; it defines the public interface.
2143         * src/dmh.cpp: New file; it implements the message handler.
2144
2145 2009-11-05  Keith Marshall  <keithmarshall@users.sourceforge.net>
2146
2147         Correct some identified TinyXML issues.
2148
2149         * tinyxml/tinyxml.h (IsWhiteSpace): Add FIXME annotation to flag
2150         probable redundancy of checks for '\n' and '\r'.
2151         * tinyxml/tinyxmlparser.cpp: Revert John E's 2008-08-09 change; remove
2152         all such redundancies in IsWhiteSpace() calls throughout.
2153
2154         * tinyxml/tinyxml.cpp (TiXmlAttribute::SetDoubleValue): Correct format
2155         specification in sprintf()/snprintf() calls; "%lf" is invalid; replace
2156         with "%f".
2157
2158 2009-10-31  Keith Marshall  <keithmarshall@users.sourceforge.net>
2159
2160         Add CLI loader stub.
2161
2162         * src/clistub.c: New file.
2163         * Makefile.in: Add build rule for it; build as...
2164         (mingw-get.exe): ...this; also add to...
2165         (clean): ...this goal.
2166
2167 2009-10-31  Keith Marshall  <keithmarshall@users.sourceforge.net>
2168
2169         Set up build mechanism.
2170
2171         * configure.ac, Makefile.in: New files.
2172         * .cvsignore (configure, autom4te.cache): Add to ignored files.
2173
2174 2009-10-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
2175
2176         Add GPL-v3 licensing terms.
2177
2178         * COPYING: New file, sourced from gnu.org.
2179
2180 2009-10-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
2181
2182         Add pkginfo implementation.
2183
2184         * src, src/pkginfo: New directories.
2185         * src/pkginfo/pkginfo.h, src/pkginfo/pkginfo.l: New files.
2186         * src/pkginfo/driver.c: New file.
2187
2188 2009-10-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
2189
2190         Create tdm-branch.
2191
2192         * All files (tdm-branch): Assign new branch tag.
2193         * All top-level files: Remove from trunk.
2194         * ChangeLog: New file.