OSDN Git Service

97f7bf040028546eef688735c2f2ed58032b9bcf
[mingw/mingw-get.git] / ChangeLog
1 2020-06-23  Keith Marshall  <keith@users.osdn.me>
2
3         Delete an unnecessary duplicate function call.
4
5         * src/guiexec.cpp (PROGRESS_METER_CLASS): In constructor, call...
6         (SetValue): ...this only once; delete redundant second call.
7
8 2020-06-23  Keith Marshall  <keith@users.osdn.me>
9
10         Eliminate invalid comparisons of "this" with nullptr.
11
12         C++ forbids calling any non-static class member function through
13         a null pointer, but makes it impossible to verify, within any such
14         function; the result of comparing the "this" pointer with nullptr
15         is deemed to be undefined behaviour.
16
17         * src/climain.cpp (pkgActionItem::GetScheduledSourceArchives)
18         [this != NULL]: Do not test; execute dependent code unconditionally.
19
20         * src/dllhook.cpp (pkgXmlNodeStack::pop) [this == NULL]: Remove
21         invalid comparison; condition should never arise, at point of call.
22         (pkgSetupAction::UpdateDatabase) [this != NULL]: Relocate test...
23         (update_database) [setup == NULL]: ...to here; do not update.
24
25         * src/pkgbase.h (pkgXmlNode::GetName, pkgXmlNode::GetParent)
26         (pkgXmlNode::GetChildren, pkgXmlNode::GetNext, pkgXmlNode::GetPropVal)
27         (pkgXmlNode::GetDocumentRoot, pkgXmlNode::IsElementOfType)
28         (pkgXmlNode::AddChild, pkgXmlNode::DeleteChild): Do not implement...
29         [this ? result : fallback]: ...any such checks; the behaviour will be
30         undefined, and the "fallback" outcome can never be achieved; simply
31         return the "result" outcome unconditionally.
32         (pkgActionItem::HasAttribute, pkgActionItem::SelectPackage)
33         [this != NULL]: Cannot verify this; return result unconditionally.
34         (pkgActionItem::Selection) [this == NULL]: Test is invalid; remove it.
35         (pkgActionItem::CancelScheduledAction): Change return type to void.
36         (pkgXmlDocument::ExecuteActions) [actions == NULL]: Do not execute.
37
38         * src/pkgdata.cpp (pkgActionItem::EnumeratePendingActions)
39         [this != NULL]: Cannot verify; relocate test...
40         (AppWindowMaker::UpdatePackageMenuBindings): ...to here; verify...
41         [pkgData->Schedule() != NULL]: ...this, before attempting to invoke...
42         (pkgData->Schedule()->EnumeratePendingActions): ...this.
43         (AppWindowMaker::UnmarkSelectedPackage): Likewise, verify both...
44         [pkgData->Schedule() != NULL]: ...this, and then...
45         [pkgData->Schedule()->GetReference() != NULL]: ...this, before...
46         (pkgData->Schedule()->GetReference()->CancelScheduledAction): ...this.
47         (pkgActionItem::CancelScheduledAction) [this != NULL]: Remove test; it
48         results in undefined behaviour, and in any case, has become redundant.
49         Change return type to void; set flags, but otherwise return nothing.
50
51         * src/pkgdeps.cpp (pkgActionItem::GetReference) [this != NULL]: Remove
52         invalid test; it has been made redundant, by testing at point of call.
53         (pkgXmlDocument::Schedule) [this != NULL]: Likewise; additionally...
54         [component != NULL]: ...verify this, before attempting to test...
55         [component->FindNextAssociate() != NULL]: ...this.
56
57         * src/pkgexec.cpp (pkgActionItem::Execute) [this != NULL]
58         (pkgActionItem::Append, pkgActionItem::Insert) [this == NULL]: Remove
59         invalid tests; delegate onus for validation to respective call sites.
60         (pkgXmlDocument::Schedule): Validate referring pointers as required.
61
62         * src/guiexec.cpp (AppWindowMaker::LoadPackageData): Confirm that...
63         [pkgXmlDocument() != NULL]: ...is true, before evaluation of...
64         [pkgXmlDocument()->IsOK()]: ...this status check.
65         (AppWindowMaker::ConfirmActionRequest): Likewise, confirm that...
66         [pkgData->Schedule() != NULL]: ...is true, before evaluation of...
67         [pkgData->Schedule()->EnumeratePendingActions() > 0]: ...this.
68
69         * src/pkgunst.cpp (pkgManifest::GetSysRootReference) [this != NULL]
70         * src/pkginst.cpp (pkgManifest::AddEntry) [this != NULL]: Remove test;
71         assume that its outcome is always effectively true, requiring callers
72         to guarantee that this is so.
73
74         * src/setup.cpp (pkgSetupAction::HasAttribute) [this != NULL]: Remove
75         invalid test, assuming true; relocate inline implementation...
76         * src/setup.h: ...to here.
77
78 2020-06-22  Keith Marshall  <keith@users.osdn.me>
79
80         Do not dereference nullptr in package directory trees.
81
82         * src/pkglist.h (pkgDirectory::Insert, pkgDirectory::InOrder):
83         Delegate them to static class methods, with inline wrappers passing
84         "this" pointer explicitly, thus obviating any need for...
85         [this != NULL]: ...this invalid comparison.
86
87         * src/pkgshow.cpp (pkgDirectory::Insert, pkgDirectory::InOrder):
88         Modify them, reimplementing as the requisite static class methods.
89         (pkgDirectoryViewer::Dispatch): Reorganize process flow.
90
91 2020-06-22  Keith Marshall  <keith@users.osdn.me>
92
93         Ignore spin wait requests with no designated referrer.
94
95         * src/pkgstat.h (pkgSpinWait::UpdateIndex) [this]: Cannot test for
96         nullptr, since C++ specifies result as "undefined behaviour"; test...
97         [referrer]: ...this predesignated static class property instead.
98
99 2020-06-22  Keith Marshall  <keith@users.osdn.me>
100
101         Support options interpretation from an unborn options object.
102
103         * src/pkgopts.h (pkgOpts::Test, pkgOpts::IsSet, pkgOpts::GetValue)
104         (pkgOpts::GetString, pkgOpts::SetFlags): Delegate then to static class
105         methods, with inline wrappers passing "this" pointer explicitly.
106
107         * src/pkgopts.cpp (pkgOpts::Test, pkgOpts::IsSet, pkgOpts::GetValue)
108         (pkgOpts::GetString, pkgOpts::SetFlags): Implement the static methods.
109         (pkgPreferenceEvaluator::PresetScriptHook) [! pkgOptions()]: Do not
110         evaluate pkgOptions()->IsSet(); assume that it would implicitly return
111         false, thus suppressing all dependent processing, including subsequent
112         evaluation of pkgOptions()->GetString().
113
114 2020-06-21  Keith Marshall  <keith@users.osdn.me>
115
116         Declare functions as void when return value is immaterial.
117
118         * src/pkginet.h (pkgDownloadMeter::Update): Declare it as a pure
119         virtual void function, rather than as pure virtual int.
120
121         * src/pkginet.cpp (pkgDownloadMeterTTY::Update)
122         * src/pkgnget.cpp (pkgDownloadMeterGUI::Update): Amend derivative
123         implementations to match; do not return anything.
124
125 2020-06-21  Keith Marshall  <keith@users.osdn.me>
126
127         Ensure non-void functions always return explicit values.
128
129         * src/guimain.cpp (WinMain): Remove explicit EXIT_FAILURE returns from
130         individual exception handlers; relocate it to the default execution
131         path, to which all such handlers will fall through.
132
133         * src/dmhguix.cpp (dmhTypeGUI::notify) [DMH_COMPILE_DIGEST]: Return
134         number of bytes added to message queue; fall through, to return zero,
135         on failure to extend the queue.
136
137 2020-06-20  Keith Marshall  <keith@users.osdn.me>
138
139         Simplify numeric argument interpreter function.
140
141         * src/clistub.c (xatoi) [input != NULL]: Delegate to...
142         (strtol): ...this standard library function; hence delete redundant
143         local implementation, within the NULL pointer rejection guard.
144
145 2020-06-19  Keith Marshall  <keith@users.osdn.me>
146
147         Accommodate C++11 string constant conflation limitations.
148
149         * src/dllhook.cpp (MSG_INTERNAL_ERROR)
150         * src/pkgexec.cpp (LUA_LIBEXEC_PATH): Insert white space, to separate
151         adjacent string constants in conflated text.
152
153 2020-06-19  Keith Marshall  <keith@users.osdn.me>
154
155         Force "C" linkage for setup key definitions.
156
157         * src/setup.cpp (uri_key, mirror_key, value_none): Wrap them...
158         (BEGIN_C_DECLS, END_C_DECLS): ...between these.
159
160 2020-06-19  Keith Marshall  <keith@users.osdn.me>
161
162         Support all-static linking with recent GCC versions.
163
164         * Makefile.in (LDFLAGS): Add "-static" unconditionally.
165         (LIBS, SETUP_TOOL_LIBS): Remove all "-Wl,-Bstatic" and "-Wl,-Bdynamic"
166         references; the latter, in particular, appears to induce dynamic
167         linking of libstdc++-6.dll, overriding "--static-libstdc++".
168
169 2020-06-12  Keith Marshall  <keith@users.osdn.me>
170
171         Use XML templates to adapt to download host changes.
172
173         * configure.ac (MINGW_PACKAGE_DIST_URL): Update to OSDN host URL.
174
175         * xml/profile.xml: Rename it as...
176         * xml/profile.xml.in: ...this; replace hard-coded repository URL...
177         (%PACKAGE_LIST_URL%/%F.xml.lzma): ...this template.
178
179         * xml/setup.xml: Likewise, rename it as...
180         * xml/setup.xml.in: ...this, with corresponding URL update.
181
182         * Makefile.in (install-profile): Modify procedure, using...
183         (%.xml: %.xml.in): ...this new pattern rule, to generate installed XML
184         files, from source templates.
185
186         * src/setup.rc (STRINGTABLE) <ID_DOWNLOAD_HOST_URI>: Remove trailing
187         "?download" qualifier.
188
189 2020-06-11  Keith Marshall  <keith@users.osdn.me>
190
191         Discontinue formal use of the build-aux submodule.
192
193         * .gitmodules .hgsub: Files are obsolete; delete them.
194         * .gitignore .hgignore (build-aux): Add to SCM exclusion list.
195
196         * aclocal.m4 (build_aux_prefix): New macro; define it.  This provides
197         a mechanism for informally locating an external, separately maintained
198         implementation of the requisite "build-aux" module; use it in...
199         (aux_include): ...this new macro; define, and use it, to access those
200         "build-aux" M4 macros which are required at configure generation time.
201         (MINGW_AC_CONFIG_AUX_DIR, MINGW_AC_CONFIG_AUX_DIRS): New macros;
202         define them.  Together, they implement a replacement for the standard
203         AC_CONFIG_AUX_DIR macro, but offering extended path search capability,
204         at configure run time, in addition to defining...
205         (buildauxdir): ...this new AC_SUBST variable.
206
207         * configure.ac (build_alias): Define it using...
208         (ac_aux_dir): ...this autoconf path reference, defined by using...
209         (MINGW_AC_CONFIG_AUX_DIR): ...this, instead of...
210         (AC_CONFIG_AUX_DIR): ...this.
211
212         * Makefile.in (buildauxdir): Use it, for M4 file references.
213
214 2020-06-02  Keith Marshall  <keith@users.osdn.me>
215
216         Do not use .hgtags for repository tag tracking.
217
218         * .hgtags: Delete file; it serves no purpose within a git repository,
219         and may actually interfere with tag inheritance, when cloning from git
220         into hg.
221
222 2017-09-05  Keith Marshall  <keith@users.osdn.me>
223
224         mingw-get-0.6.3-mingw32-pre-20170905-1 posted on OSDN.net
225
226         * All files (r0-6-3-beta-20170905-1): Tag assigned.
227
228 2017-09-04  Keith Marshall  <keith@users.osdn.me>
229
230         Improve probability of establishing successful URL connections.
231
232         * src/pkginet.cpp (pkgInternetAgent::OpenURL): Add...
233         (INTERNET_FLAG_KEEP_CONNECTION, INTERNET_FLAG_IGNORE_CERT_CN_INVALID)
234         (INTERNET_FLAG_IGNORE_CERT_DATE_INVALID, INTERNET_FLAG_PRAGMA_NOCACHE)
235         (INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTPS)
236         (INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTP): ...these flags, when calling
237         the InternetOpenUrl() function.
238
239 2017-09-01  Keith Marshall  <keith@users.osdn.me>
240
241         Increment version for first OSDN hosted release.
242
243         * VERSION.m4 (VERSION_PATCH): Increment to 3; thus...
244         (__VERSION__): ...this is auto-incremented to 0.6.3
245
246 2013-11-26  Keith Marshall  <keithmarshall@users.sourceforge.net>
247
248         Conflate name and class columns in GUI package list.
249
250         * src/pkglist.cpp (AppWindowMaker::InitPackageListView): Remove...
251         <ID_PKGTYPE_COLUMN_HEADING>: ...column with this heading; add its width
252         allocation to the original pixel count alloted for the width of...
253         <ID_PKGNAME_COLUMN_HEADING>: ...this column.
254         (pkgListViewMaker::UpdateItem): Conflate content of original name and
255         class columns into first column; renumber successive columns.
256
257 2013-10-18  Keith Marshall  <keithmarshall@users.sourceforge.net>
258
259         Don't attempt to resolve dependencies for unidentified packages.
260
261         * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
262         [selected == NULL]: Current dependency is unresolved; do not make any
263         recursive call for this unidentified requirement.  This avoids posting
264         misleading "can't get 'tarname' for non-release element <<<unknown>>>"
265         diagnostic messages, where the subsequent "unresolved dependency"
266         message is sufficient; include dmhmsgs.h, and add...
267         (PKGMSG_SPECIFICATION_ERROR): ...this preamble instead.
268
269 2013-10-18  Keith Marshall  <keithmarshall@users.sourceforge.net>
270
271         Implement foundation for future NLS enabled diagnostics.
272
273         * src/dmhmsgs.h: New file; it declares the NLS capable DMH interface.
274         * src/dmhmsgs.c: New file; it implements rudimentary NLS hooks, (but
275         currently does not direct them to any NLS provider), together with an
276         initial subset of a default (compiled in) message catalogue.
277
278         * Makefile.in (CORE_DLL_OBJECTS): Add dmhmsgs.$OBJEXT
279
280         * src/pkgname.cpp (pkgArchiveName): Modify diagnostics, to use...
281         (PKGMSG_SPECIFICATION_ERROR): ...this dmhmsgs.h declared message.
282
283 2013-10-15  Keith Marshall  <keithmarshall@users.sourceforge.net>
284
285         Add automated build time configuration management.
286
287         * Makefile.in (Makefile): Add regeneration rules, depending on...
288         (VERSION.m4, configure.ac, aclocal.m4, missing.m4, makeopts.m4):
289         ...these, if modified by the package maintainer, directed via...
290         (config.status, configure): ...these, regenerated as required.
291
292 2013-10-04  Keith Marshall  <keithmarshall@users.sourceforge.net>
293
294         mingw-get-0.6.2-mingw32-beta-20131004-1 released.
295
296         * VERSION.m4 (VERSION_PATCH): Increment it.
297         * srcdist-doc/NEWS.in: Release notes updated.
298         * All files (r0-6-2-beta-20131004-1): Tag assigned.
299
300 2013-10-03  Keith Marshall  <keithmarshall@users.sourceforge.net>
301
302         Propagate RELEASE_CLASS setting from mingw-get-setup.
303
304         * configure.ac (CLI_RELEASE_CLASS, GUI_RELEASE_CLASS): Adopt...
305         (RELEASE_CLASS) [defined]: ...this as default value.
306
307 2013-10-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
308
309         Support group affiliation with component package granularity.
310
311         * src/pkglist.cpp (pkgXmlNode::IsVisibleClass): Make it synonymous
312         with IsVisibleGroupMember(); this is a temporary adjustment, pending
313         the planned implementation of component class visibility filtering.
314         (pkgListViewMaker::Dispatch): Defer consideration of visibility until
315         traversal of component package directories, except in the particular
316         case of packages which lack defined components.
317
318 2013-10-01  Keith Marshall  <keithmarshall@users.sourceforge.net>
319
320         Correct processing of package group associations.
321
322         * src/pkgtree.cpp (AppWindowMaker::IsPackageGroupAffiliate): Iterate
323         over "affiliate_key" elements in FindNextAssociate() calls; original
324         implementation was incorrectly iterating over "group_key" elements.
325
326 2013-09-21  Keith Marshall  <keithmarshall@users.sourceforge.net>
327
328         Reorder controls within "Apply Changes" dialogue.
329
330         * src/guimain.rc (IDD_APPLY_APPROVE): Move definition of the "Okay to
331         proceed?" GROUPBOX, and its contained PUSHBUTTONs, to the top; we want
332         it to get the default focus.
333
334 2013-09-21  Keith Marshall  <keithmarshall@users.sourceforge.net>
335
336         Reimplement wsh.lua in C/C++; (cf. MinGW-Bug #2057).
337
338         * src/pkgexec.cpp (LUA_INLINE): New function attribute definition.
339         (init_lua_path): Use it, reproducing the original function attributes.
340         (lua_isstringarg): New LUA_INLINE helper function; implement it.
341         (lua_wsh_libexec_path): New function; it implements wsh.libexec_path
342         (lua_wsh_execute): New function; it implements wsh.execute
343         (luaload_wsh): New function; it wraps references to lua_wsh_execute()
344         and lua_wsh_libexec_path() to provide the wsh module implementation.
345         (pkgXmlNode::DispatchScript): Preload it into the Lua interpreter.
346
347         * scripts/libexec/setup.lua (M.argwrap): New method; implement it.
348         (M.shlink, M.unlink): Use it to collect their arguments into a single
349         string, to be passed as the command to be invoked by wsh.execute
350
351         * scripts/libexec/wsh.lua: File is no longer required; delete it.
352         * Makefile.in (LIBEXEC_SCRIPTS): Remove reference to it.
353
354 2013-09-20  Keith Marshall  <keithmarshall@users.sourceforge.net>
355
356         Establish default preferences for GUI; (cf. MinGW-Feature #2036)
357
358         * src/pkgbase.h (pkgXmlDocument::EstablishPreferences): Adjust its
359         prototype; add argument identifying prospective client classification.
360
361         * src/pkgopts.cpp (client_key): New XML property keyword; define it.
362         (pkgXmlDocument::EstablishPreferences): Implement filter, based on new
363         client classification argument, to restrict preference selection to a
364         matching client class specification.
365
366         * src/climain.cpp (dbase.EstablishPreferences): Filter on class "cli".
367         * src/guiexec.cpp (pkgData->EstablishPreferences): Likewise, on "gui".
368
369         * xml/profile.xml (preferences): Add client="cli" attribute for the
370         existing specification; add another for client="gui".
371
372 2013-09-20  Keith Marshall  <keithmarshall@users.sourceforge.net>
373
374         Force canonical comparison of shell links; (cf. MinGW-Bug #2054)
375
376         * scripts/libexec/unlink.js [FileExists(filename) && (chklink != "")]:
377         The value of 'chklink' may not be canonical; instantiate an (unsaved)
378         link reference from it, then compare the canonicalized reference from
379         within it, to the reference within 'filename', thus avoiding possible
380         lexical mismatch between canonical and non-canonical forms.
381
382 2013-09-19  Keith Marshall  <keithmarshall@users.sourceforge.net>
383
384         Correct LUA_PATH assignment for GUI; (cf. MinGW-Bug #2052)
385
386         * src/pkgexec.cpp (LUA_LIBEXEC_PATH): New manifest string; define it.
387         (init_lua_path) <LUA_PATH>: Use it; add guimain.exe app directory.
388
389 2013-09-19  Keith Marshall  <keithmarshall@users.sourceforge.net>
390
391         Handle meta-package removal correctly; (cf. MinGW-Bug #2051)
392
393         * src/pkgunst.cpp (pkgRemove) [archive == none]: Ensure the pending
394         action flag is cleared; previously this was done during manifest clean
395         up, and since a meta-package has no manifest, it was overlooked.
396
397 2013-09-10  Keith Marshall  <keithmarshall@users.sourceforge.net>
398
399         mingw-get-0.6.1-mingw32-beta-20130910-1 released.
400
401         * srcdist-doc/NEWS.in: Release notes updated.
402         * All files (r0-6-1-beta-20130910-1): Tag assigned.
403
404 2013-09-10  Keith Marshall  <keithmarshall@users.sourceforge.net>
405
406         Fix MinGW-Bug #2026.
407
408         * src/dmhguix.cpp (DMH_PTY_GUARDBYTES): New manifest constant.
409         (dmhTypePTY::printf) [buffer full]: Use it; it defines a reserved byte
410         count, at end of buffer, where expansion or scroll out is triggered;
411         use memcpy() for scroll out, but avoid overlapping regions.
412         (dmhTypePTY::printf) [output == '\r']: Handle it.
413
414         * src/tarproc.cpp (create_output_stream): Improve diagnostic messages;
415         discriminate between file collision and other privilege violations.
416         (pkgArchiveProcessor::ExtractFile): Don't return a zero status code,
417         when the output stream could not be successfully opened, so that...
418         (pkgTarArchiveInstaller::ProcessDataStream): ...we may avoid writing a
419         spurious manifest entry here.
420
421 2013-09-06  Keith Marshall  <keithmarshall@users.sourceforge.net>
422
423         Update version, pre-empting subsequent release.
424
425         * VERSION.m4 (VERSION_PATCH): Bump from zero to 1.
426
427 2013-09-04  Keith Marshall  <keithmarshall@users.sourceforge.net>
428
429         mingw-get-0.6.0-mingw32-beta-20130904-1 released.
430
431         * srcdist-doc/NEWS.in srcdist-doc/README.in: Release notes updated.
432         * srcdist-doc/INSTALL.in: Installation instructions updated.
433         * All files (r0-6-0-beta-20130904-1): Tag assigned.
434
435 2013-08-26  Keith Marshall  <keithmarshall@users.sourceforge.net>
436
437         Implement retry throttling for failed internet connections.
438
439         * src/pkginet.h (INTERNET_RETRY_ATTEMPTS): New macro; define it.
440         (INTERNET_RETRY_INTERVAL, INTERNET_DELAY_FACTOR): Likewise.
441
442         * src/pkginet.cpp (INTERNET_RETRY_REQUESTER): New typedef.
443         (pkgInternetAgent::connection_delay, pkgInternetAgent::delay_factor):
444         (pkgInternetAgent::retries, pkgInternetAgent::retry_interval): New
445         private member variables; declare them.
446         (pkgInternetAgent::OpenURL): Use them; they must be initialised by...
447         (pkgInternetAgent::SetRetryOptions): ...this new method; implement it.
448         (pkgActionItem::DownloadSingleArchive): Invoke it.
449         (pkgXmlDocument::SyncRepository): Likewise.
450
451 2013-08-24  Keith Marshall  <keithmarshall@users.sourceforge.net>
452
453         Reassign default URL for download of setup tool components.
454
455         * aclocal.m4 (PACKAGE_DIST_DOMAIN, PACKAGE_DIST_DIR): New precious
456         variables; declare them as such, and assign default values by using...
457         (MINGW_AC_PACKAGE_DIST_URL): ...this new macro; implement it.
458
459         * configure.ac (MINGW_AC_PACKAGE_DIST_URL): Use it.
460         * Makefile.in (TAG_SCRIPT): Capture assigned URL; substitute it...
461         (PACKAGE_DIST_URL): ...for this replacement text marker...
462         * src/setup.rc (ID_DOWNLOAD_HOST_URI): ...here.
463
464 2013-08-21  Keith Marshall  <keithmarshall@users.sourceforge.net>
465
466         Simplify guimain.exe duplicate instance prevention.
467
468         * src/guimain.cpp (WinMain): Delegate requisite checking to...
469         (WTK::RaiseAppWindow): ...this external toolkit function.
470
471 2013-08-13  Keith Marshall  <keithmarshall@users.sourceforge.net>
472
473         Install licence as standard setup component.
474
475         * src/guimain.h src/setup.rc (ID_PACKAGE_GUI_DISTNAME): Macro
476         no longer required; delete definition.
477
478         * src/setup.cpp (pkgSetup::DoFirstTimeInstallation):
479         <pkgSetupAction> [ID_PACKAGE_GUI_DISTNAME]: Delete reference.
480         <pkgSetupAction> [ID_PACKAGE_BASE_DISTNAME]: Update reference; repeat
481         to explicitly address each of "bin", "gui", and "lic" components.
482
483         * Makefile.in (TAG_SCRIPT) [PACKAGE_GUI_DISTNAME]: Delete reference.
484         (TAG_SCRIPT) [PACKAGE_BASE_DISTNAME]: Redefine as template.
485
486 2013-08-13  Keith Marshall  <keithmarshall@users.sourceforge.net>
487
488         More dialogue box adjustments.
489
490         * src/guimain.rc: Generally clean up white-space distribution.
491         (All dialogue templates): Use WS_TABSTOP consistently.
492
493 2013-08-13  Keith Marshall  <keithmarshall@users.sourceforge.net>
494
495         Circumvent Windows-7 "Program Compatibility Assistant" misbehaviour.
496
497         * src/manifest.rc (assembly) <compatibility>: Add <supportedOS>
498         declarations for each of Vista, Win7, and (tentatively) Win8.
499
500 2013-07-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
501
502         Minor modification to "about" dialogue dismissal button.
503
504         * src/guimain.rc (IDD_HELP_ABOUT) <DEFPUSHBUTTON>: Change label text
505         to "Dismiss"; add WS_TABSTOP style.
506
507 2013-07-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
508
509         Match "about" dialogue caption to main window.
510
511         * src/guimain.rc (IDM_HELP_ABOUT) <MENUITEM>: Match it to...
512         (IDD_HELP_ABOUT) <CAPTION>: ...this; make it representative of...
513         (ID_MAIN_WINDOW_CAPTION): ...this.
514
515 2013-07-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
516
517         Implement "icon legend" display as "help" menu item.
518
519         * src/guimain.rc (IDM_HELP_LEGEND): Make menu item active; define
520         template for the dialogue box which it is to call out.
521
522         * src/guiexec.cpp (AppWindowMaker::OnCommand) [IDM_HELP_LEGEND]: New
523         case handler; implement dialogue box call out, as a variation on...
524         [IDM_HELP_ABOUT]: ...this; modify it accordingly.
525
526 2013-07-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
527
528         Avoid discarding pending changes when catalogue is updated.
529
530         * src/guimain.h (IDD_CONFIRMATION): New manifest constant; define it.
531         (AppWindowMaker::ConfirmActionDialogue): New static method; declare it.
532         (AppWindowMaker::ConfirmActionRequest): New method; declare it.
533
534         * src/guimain.rc (IDD_CONFIRMATION): Implement new dialogue template.
535
536         * src/guiexec.cpp (pkgConfirmAction, pkgConfirmActionClient): New
537         static variables; they are used as pseudo-arguments, together with...
538         (DIALOGUE_DISPATCH, DIALOGUE_RESPONSE, DIALOGUE_CHKSTATE): ...these
539         new macros; define them; they facilitate the implementation of...
540         (AppWindowMaker::ConfirmActionDialogue): ...this; implement it.
541         (AppWindowMaker::ConfirmActionRequest): Implement it; use it...
542         (AppWindowMaker::OnCommand) [IDM_REPO_UPDATE]: ...here, and...
543
544         * src/pkgdata.cpp (AppWindowMaker::OnClose): ...here.
545
546 2013-07-26  Keith Marshall  <keithmarshall@users.sourceforge.net>
547
548         Make a minor GUI layout adjustment.
549
550         * src/pkgview.cpp (VSASH_INIT_POS): Increment from 0.30 to 0.35; this
551         sets the initial height of the package list pane to be 35% of the main
552         window height, which, at the default initial window size, neatly fits
553         the entire "Basic Setup" package group, without scrolling, on my
554         1366x768 pixel Win7-VM display.
555
556 2013-07-25  Keith Marshall  <keithmarshall@users.sourceforge.net>
557
558         Implement setup tool installer "plugin".
559
560         * src/setup.h (SETUP_HOOK_RUN_INSTALLER): Define request code.
561
562         * src/dllhook.cpp (run_basic_system_installer): Implement handler...
563         (setup_hook) [SETUP_HOOK_RUN_INSTALLER]: ...and invoke it.
564         (setup_hook) [default]: Collect diagnostics in common message digest.
565         (AppWindowMaker::SetupHookInvoked): Define and initialise it; in this
566         context, which does not conflict with prior definition in guimain.exe,
567         it must always remain true.
568
569         * src/setup.cpp (SetupTool) [constructor]: Invoke...
570         (SetupTool::DispatchSetupHookRequest): ...this, on user's request...
571         (SETUP_HOOK_RUN_INSTALLER): ...with this action code; this replaces...
572         (SetupTool::RunInstalledProgram): ...one reference instance for this
573         external program fork, leaving only one such reference remaining;
574         declare it to be "inline".
575
576         * Makefile.in (GUIMAIN_LIB_OBJECTS): New macro; define it.  It
577         abstracts a subset of the object modules originally enumerated...
578         (GUIMAIN_OBJECTS): ...here, whence use it; also incorporate into...
579         (SETUP_DLL_OBJECTS): ...this.
580         (SETUP_DLL_LIBS): Make it equivalent to...
581         (GUIMAIN_LIBS): ...this.
582         (mingw-get-setup-0.dll): Use...
583         (GUI_LDFLAGS): ...this, to specify linking options, rather than...
584         (LDFLAGS): ...this.
585
586 2013-07-25  Keith Marshall  <keithmarshall@users.sourceforge.net>
587
588         Add "Basic Setup" as a built-in standard package group.
589
590         * src/guimain.h (AppWindowMaker::SetupToolInvoked): New private
591         static member variable; declare it.
592
593         * src/guimain.cpp (AppWindowMaker::SetupToolInvoked): Define and
594         initialise it; this instance is specific to guimain.exe, where it
595         must always remain false.
596
597         * src/pkgtree.cpp (PKG_AFFILIATE_ALL): New constant; define it.
598         (load_package_group_hierarchy): Use it to specify those groups which
599         have all packages as affiliates, rather than just first root group.
600         (group_attributes): New static inline function; implement it, then...
601         (is_affiliated) [PKG_AFFILIATE_ALL]: ...use it to identify groups
602         which are specified as having all packages as affiliates.
603         (AppWindowMaker::InitPackageTreeView): Construct a temporary XML
604         specification for the "Basic Setup" package group, thence add it to
605         the package tree view; mark it as default group selection when...
606         [AppWindowMaker::SetupToolInvoked]: ...this is true.
607
608 2013-07-14  Keith Marshall  <keithmarshall@users.sourceforge.net>
609
610         Implement GUI filtering of package list by group selection.
611
612         * src/pkgbase.h (pkgXmlNode::IsVisibleGroupMember):
613         (pkgXmlNode::IsVisibleClass): New inline methods; declare them.
614         (pkgXmlNode::MapPackageGroupHierarchy): New inline method; declare it.
615         (pkgXmlNode::SetPackageGroupHierarchyMapper): Likewise; it sets up...
616         (pkgXmlNode::PackageGroupHierarchyMapper): ...this new private static
617         function pointer; declare it as a function reference, in terms of...
618         (pkgXmlNode::GroupHierarchyMapper): ...this new typedef; define it.
619
620         * src/guimain.h (AppWindowMaker::PackageTreeView): Make it static.
621         (AppWindowMaker::IsPackageGroupAffiliate): Declare new static method.
622
623         * src/pkgbind.cpp (pkgRepository::GetPackageList): Make it invoke...
624         (pkgXmlNode::MapPackageGroupHierarchy): ...this; implement it.
625
626         * src/pkglist.cpp (pkgXmlNode::IsVisibleGroupMember): Implement it.
627         (pkgXmlNode::IsVisibleClass): Likewise; just provide a stub, for now.
628         (pkgListViewMaker::Dispatch): Use them to filter package list content.
629         (AppWindowMaker::UpdatePackageList): Redraw main window when done.
630
631         * src/pkgtree.cpp [_WIN32_IE >= 0x0400]: Require this.
632         (AppWindowMaker::PackageTreeView): Define and initialise it.
633         (AppWindowMaker::InitPackageTreeView): Extend implementation; use...
634         (map_package_group_hierarchy_recursive, load package_group_hierarchy):
635         (is_existing_group, map_package_group_hierarchy): ...these; implement
636         them locally, as file scoped static helper functions.
637         (select_key): New static local string constant; define it.
638         (pkgInitCategoryTreeGraft): Use it; also have it invoke...
639         (pkgXmlNode::SetPackageGroupHierarchyMapper): ...this; implement it.
640         (AppWindowMaker::IsPackageGroupAffiliate): Implement it; it uses...
641         (is_affiliated, is_child_affiliate): ...these helpers; provide them as
642         locally implemented, file scoped static functions.
643
644         * src/pkgdata.cpp (AppWindowMaker::OnNotify): Add handler for...
645         [ID_PACKAGE_TREEVIEW && TVN_SELCHANGED]: ...this notification.
646
647 2013-07-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
648
649         Correct a static string buffer aliasing issue.
650
651         * src/setup.cpp (SetupTool::setup_dll): New inline method; it ensures
652         that the buffer within approot_path() refers to the setup helper DLL.
653         (SetupTool::InitialiseSetupHookAPI): Use it, when loading the DLL.
654         (SetupTool::SetupTool): Use it again, when subsequently calling...
655         (_wunlink): ...this; it is now the preferred API, replacing...
656         (DeleteFileW): ...this; do not blindly assume that...
657         (SetupTool::dll_name): ...this remains unchanged between references;
658         it is an alias for the static buffer within approot_path().
659
660 2013-07-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
661
662         Add a custom profile for use by the setup tool.
663
664         * xml/setup.xml: New file.
665
666 2013-07-03  Keith Marshall  <keithmarshall@users.sourceforge.net>
667
668         Improve handling of workspace clean-up requests.
669
670         * Makefile.in (mostlyclean): New rule; it replaces...
671         (clean): ...original intent delegated to 'mostlyclean'; retained and
672         augmented to remove all content specified by 'mostlyclean', plus...
673         (version.c, verinfo.h): ...these additional generated files.
674         (distclean): Modified; 'version.c' now removed by 'clean'.
675
676 2013-07-03  Keith Marshall  <keithmarshall@users.sourceforge.net>
677
678         Correct an omission from the source code distribution.
679
680         * Makefile.in (BUILD_AUX_FILES): Add makeopts.m4; this was omitted
681         from the 2013-04-10 modification to fix MinGW-Bug #1601.
682
683 2013-07-03  Keith Marshall  <keithmarshall@users.sourceforge.net>
684
685         Incorporate foundation for setup tool implementation.
686
687         * src/setup.cpp: New file; it implements the setup program.
688         * src/setup.rc: New file; it implements setup program resources.
689         
690         * src/dllhook.cpp: New file; it implements a DLL bridging API to
691         facilitate invocation of mingw-get-0.dll functions from the setup
692         program, after both DLLs have been explicitly loaded at run time.
693
694         * src/setup.h: New file; it declares the interface between the
695         setup program and the preceding mingw-get bridging DLL.
696
697         * src/guimain.h: Add filter to exclude declarations specific to...
698         [IMPLEMENTATION_LEVEL == PACKAGE_BASE_COMPONENT]: ...this case, when
699         included by compilation units specific to the setup tool components.
700         (ID_MAIN_DIALOGUE_CAPTION, ID_DOWNLOAD_HOST_URI): New resource IDs.
701         (ID_PACKAGE_BASE_DISTNAME, ID_PACKAGE_DATA_DISTNAME): Likewise.
702         (ID_PACKAGE_GUI_DISTNAME): Likewise; define them.
703
704         * Makefile.in (all): Respecify it, in terms of...
705         (all-core, all-setup): ...these new rules; define them, and also...
706         (all-setup-exe, all-setup-dll): ...these, to force building of...
707         (mingw-get-setup.$EXEEXT, mingw-get-setup-0.dll): ...these binaries.
708         (setup.res.$OBJEXT): Specify prerequisites, as for guimain.res.$OBJEXT
709         (SETUP_TOOL_OBJECTS, SETUP_TOOL_LIBS): New macros; define them.
710         (SETUP_DLL_OBJECTS, SETUP_DLL_LIBS, SETUP_DISTNAME): Likewise.
711         (TAG_SCRIPT): Add resource script substitution definitions for...
712         (ID_PACKAGE_BASE_DISTNAME, ID_PACKAGE_DATA_DISTNAME): ...these...
713         (ID_PACKAGE_GUI_DISTNAME): ...and this.
714
715 2013-07-01  Keith Marshall  <keithmarshall@users.sourceforge.net>
716
717         Add subprocess argument vector construction helpers.
718
719         * src/argwrap.c src/argwrap.h: New files; they implement an API for
720         construction of argument vectors, with appropriate quoting, to be
721         passed to MS-Windows exec'd subprocesses.  Rewritten from scratch,
722         without reference to any prior GPL licensed implementation, with MIT
723         style licence, these provide the foundation for a possible future
724         libmingwex.a implementation; they are included here, since no such
725         implementation is currently available.
726
727 2013-06-28  Keith Marshall  <keithmarshall@users.sourceforge.net>
728
729         Avoid inadvertent overwrite of existing files.
730
731         * src/mkpath.c (_O_NEWFILE): Conditionally specify attributes...
732         [IMPLEMENTATION_LEVEL == SETUP_TOOL_COMPONENT]: ...as they were...
733         [IMPLEMENTATION_LEVEL != SETUP_TOOL_COMPONENT]: ...else, include
734         _O_EXCL in the specified set; exclude _O_TRUNC.
735
736         * src/tarproc.cpp (dmh_notify_extraction_failed): New static inline
737         function; it encapsulates the diagnostic message factored out from...
738         (pkgArchiveProcessor::ExtractFile): ...here, whence use it.
739         (create_output_stream): Also used in this new static inline function;
740         it adds an appropriate diagnostic wrapper around set_output_stream(),
741         when _O_EXCL prevents overwrite of an existing file.
742         (pkgArchiveProcessor::SetOutputStream): Use it.
743
744 2013-06-27  Keith Marshall  <keithmarshall@users.sourceforge.net>
745
746         Improve diagnostics for tar archive processing faults.
747
748         * src/pkgproc.h (TAR_ARCHIVE_FORMAT_ERROR): New constant; define it.
749         (TAR_ARCHIVE_DATA_READ_ERROR, TAR_ARCHIVE_DATA_WRITE_ERROR): Likewise.
750
751         * src/tarproc.cpp (dmh_notify_archive_data_exhausted): New static
752         inline function; implement it.
753         (pkgTarArchiveProcessor::GetArchiveEntry) [short header]: Use it.
754         (pkgArchiveProcessor::ExtractFile) [TAR_ARCHIVE_DATA_READ_ERROR]:
755         Likewise, use it here; also explicitlycheck for, and diagnose...
756         [TAR_ARCHIVE_DATA_WRITE_ERROR]: ...this; also add a further catch all
757         case, to diagnose any other unexpected condition.
758         (pkgTarArchiveProcessor::GetArchiveEntry) [bad checksum]: Diagnose it.
759         (pkgTarArchiveProcessor::Process): Return appropriate status codes.
760         (pkgTarArchiveProcessor::ProcessEntityData): Likewise.
761
762 2013-06-24  Keith Marshall  <keithmarshall@users.sourceforge.net>
763
764         Facilitate version synchronisation for mingw-get-setup.
765
766         * VERSION.m4: New file.
767         * configure.ac: Include it, and...
768         (AC_INIT): ...use it.
769
770 2013-06-21  Keith Marshall  <keithmarshall@users.sourceforge.net>
771
772         Keep version strings clean when release class is unspecified.
773
774         * Makefile.in (RC_SCRIPT, VERSION_SCRIPT): Simplify; assign specified
775         release class to local variable; delegate release tag generation to...
776         (TAG_SCRIPT): ...this; check release class variable is not an empty
777         string, before inserting it into the generated release tag.
778
779 2013-06-20  Keith Marshall  <keithmarshall@users.sourceforge.net>
780
781         Rework defective assignment of product version resources.
782
783         * Makefile.in (BUILD_TAG): Avoid creating an empty build.tag file.
784         (PACKAGE_VERINFO_SCRIPT): Ensure that the build tag is generated as a
785         string of non-zero length.  Do not assume that it comprises only two
786         elements; extract the final two, as the third and fourth elements
787         of the product version meta-data record.
788
789 2013-06-19  Keith Marshall  <keithmarshall@users.sourceforge.net>
790
791         Rework defective package build time-stamping logic.
792
793         * Makefile.in (%.time): Make it explicitly touch its target; the
794         2013-05-15 changes, to reduce redundancy, didn't work as expected.
795         (%.tag): Add a side effect; make it also explicitly touch %.time.
796         (%.tagged.time): This is now redundant; remove it.
797
798 2013-06-14  Keith Marshall  <keithmarshall@users.sourceforge.net>
799
800         Collect distributable package files in user specified directory.
801
802         * Makefile.in (distdir): New macro; define default as abs_builddir.
803         (srcdist, bindist, licdist): Use it; direct generated tarballs to it.
804         (%.txt.dist): New pattern rule; define, and use it to make a copy...
805         (readme.txt): ...of this, in distdir, when processing...
806         (dist): ...this build objective.
807
808 2013-06-14  Keith Marshall  <keithmarshall@users.sourceforge.net>
809
810         Handle Microsoft's 32-bit vs. 64-bit time_t ambiguity.
811
812         * src/apihook.c: New file; it provides...
813         (have_api): ...this helper; it checks for availability of any specific
814         API function, within a specific system DLL, (MSVCRT.DLL by default).
815
816         * src/tarproc.cpp (have_utime64_api): New inline function; it wraps...
817         (have_api): ...this, to check whether MSVCRT.DLL provides...
818         (commit_saved_entity) [_utime64]: ...this; use if available, else...
819         (commit_saved_entity) [!_utime64]: ...fall back to using...
820         (utime): ...this.
821
822         * Makefile.in (CORE_DLL_OBJECTS): Add apihook.$OBJEXT
823
824 2013-06-13  Keith Marshall  <keithmarshall@users.sourceforge.net>
825
826         Facilitate package extraction and registration at setup time.
827
828         * src/pkgproc.h (IMPLEMENTATION_LEVEL): Add filters to facilitate
829         implementation of distinct setup time archive processing behaviour.
830         (pkgArchiveProcessor::save_on_extract): New property; declare it.
831         (pkgArchiveProcessor::SaveExtractedFiles): New method; implement it.
832         (pkgArchiveProcessor::SetOutputStream): New method; declare it.
833
834         * src/tarproc.cpp (IMPLEMENTATION_LEVEL): Add filters to implement
835         distinct setup time specific archive processing behaviour.
836         (pkgArchiveProcessor::SetOutputStream): Implement it.
837         (pkgTarArchiveExtractor::ProcessDataStream): Use it.
838         (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
839
840 2013-06-13  Keith Marshall  <keithmarshall@users.sourceforge.net>
841
842         Implement some GUI progress metering dialogue enhancements.
843
844         * src/pkgbase.h (pkgProgressMeter): Don't pre-empt private features
845         of derived progress metering classes; hence, we no longer need this...
846         (AppWindowMaker): ...as a forward class declaration; delete it.
847
848         * src/guimain.rc (IDD_REPO_UPDATE): Resize, and adjust layout.
849         (IDD_PROGRESS_VAL, IDD_PROGRESS_MAX, IDD_PROGRESS_PCT): Add these
850         dialogue box progress counter display elements.
851
852         * src/pkgbind.cpp (pkgRepository::GetPackageList): Adjust style of
853         progress status messages, to suit reporting via GUI dialogue box or
854         CLI console, as appropriate.
855
856         * src/guiexec.cpp (ProgressMeterMaker): Redefine class, in terms of...
857         (PROGRESS_METER_CLASS): ...this new generic class name macro.
858         Reimplement private members, previously inherited from base class;
859         adjust class constructor to ensure that they are initialised.
860         Delete explicit destructor; a default destructor is now sufficient.
861         (ProgressMeterMaker::SetRange, ProgressMeterMaker::SetValue):
862         (ProgressMeterMaker::Annotate): Factor out; reimplement them...
863
864         * src/pmihook.cpp: ...in this new file, as generalised methods of...
865         (PROGRESS_METER_CLASS): ...the class named by this macro.
866         (PROGRESS_METER_CLASS::PutVal): New private method; implement it.
867
868 2013-05-31  Keith Marshall  <keithmarshall@users.sourceforge.net>
869
870         Avoid a potential macro definition conflict.
871
872         * src/pkgbase.h (strcasecmp) [__MINGW32__]: Use string.h definition.
873
874 2013-05-15  Keith Marshall  <keithmarshall@users.sourceforge.net>
875
876         Streamline build-time dependency tracking procedures.
877
878         * Makefile.in (DEPFLAGS): Adjust for simultaneous .o/.d generation.
879         (RC_DEPFLAGS): New macro; define dependency generation flags for the
880         resource compiler, which can't handle the new DEPFLAGS methodology.
881         (%.c, %.cpp, %.rc): Simplify $OBJEXT generation procedures.
882         (%.time): Remove redundantly replicated build-time procedure from...
883         (%.tagged.time): ...this; just make it a prerequisite.
884
885 2013-05-15  Keith Marshall  <keithmarshall@users.sourceforge.net>
886
887         Add resources for specification of product version.
888
889         * src/verinfo.rc src/verinfo.h.in: New files; included by...
890         * src/guimain.rc: ...this, whence also specify version information...
891         (VERINFO_FILE_NAME, VERINFO_INTERNAL_NAME, VERINFO_FILE_DESCRIPTION):
892         (VERINFO_FILE_VERSION, VERINFO_FILE_VERSION_STRING): ...per these new
893         manifest constant macros; define them, with propagation to...
894         (ID_MAIN_WINDOW_CAPTION): ...this; keep it consistent.
895
896         * Makefile.in (TAG_SCRIPT): Include invocation for...
897         (PACKAGE_VERINFO_SCRIPT): ...this new macro; defined to interpret...
898         (PACKAGE_VERINFO_PRODUCT_VERSION): ...this new substitution template;
899         it is used in src/verinfo.h.in, whence verinfo.h is generated.
900         (RC_INCLUDES): Add current working directory, for...
901         (verinfo.h): ...this; add rule and dependencies to generate it.
902
903 2013-05-14  Keith Marshall  <keithmarshall@users.sourceforge.net>
904
905         Make application manifest resource definition reusable.
906
907         * src/manifest.rc: New file; factor content from...
908         * src/guimain.rc: ...here, whence include it.
909
910 2013-05-08  Keith Marshall  <keithmarshall@users.sourceforge.net>
911
912         Extend DMH services to delay-loaded DLL clients.
913
914         * src/dmhcore.h (dmh_bind): New function; declare it.
915         * src/dmhcore.cpp (dmh_bind): Implement it; it provides an API through
916         which the setup tool makes its existing DMH services available to post
917         install hooks in mingw-get-0.dll, which cannot be loaded until after
918         the providing package has been downloaded and unpacked.
919
920 2013-05-08  Keith Marshall  <keithmarshall@users.sourceforge.net>
921
922         Avoid unnecessary command line globbing in GUI applications.
923
924         * src/guimain.cpp src/guistub.cpp (_CRT_glob): Declare as extern "C";
925         initialise to zero, so overriding the runtime start-up default.
926
927         * src/rites.c [! IMPLEMENT_INITIATION_RITES] (_CRT_glob): Initialise
928         to zero here too; lastrites.exe doesn't need globbing either.
929
930 2013-05-04  Keith Marshall  <keithmarshall@users.sourceforge.net>
931
932         Address some GCC-4.7 string initialisation warnings.
933
934         * src/pkglist.cpp (AppWindowMaker::InitPackageListView): Declare all
935         headings[].text initialisers as 'const'; cast to 'char *' as required.
936         (pkgListViewMaker::Dispatch): Ditto, when inserting the 'const' empty
937         string into the list, as a component class value.
938
939         * src/pkgdata.cpp (AppWindowMaker::InitPackageTabControl): Declare all
940         TabLegend[] initialisers as 'const'; cast to 'char *' as required.
941
942 2013-05-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
943
944         Correct a spin wait thread synchronisation issue.
945
946         * src/pkgnget.cpp (pkgDownloadMeterGUI::SpinWait): Handle stop
947         requests explicitly; acknowledge when waiting thread has stopped.
948         (pkgDownloadMeterGUI::SpinWaitAction): Raise explicit stop requests;
949         wait for acknowledgement that waiting thread has stopped.
950
951 2013-04-23  Keith Marshall  <keithmarshall@users.sourceforge.net>
952
953         Select compressed data streaming filters for use by setup tool.
954
955         * src/pkgstrm.cpp [IMPLEMENTATION_LEVEL != PACKAGE_BASE_COMPONENT]:
956         Exclude the implementations of all decompression filters, except...
957         (pkgXzArchiveStream): ...this, together with its requisite methods...
958         (pkgArchiveStream, pkgLzmaArchiveStream): ...from these.
959
960 2013-04-23  Keith Marshall  <keithmarshall@users.sourceforge.net>
961
962         Adapt internet download agent for use by setup tool.
963
964         * src/pkgbase.h: More code rearrangement, exposing...
965         (safe_strcmp): ...this in any implementation context, controlled...
966         [USES_SAFE_STRCMP && ! HAVE_SAFE_STRCMP]: ...by this; when true...
967         (HAVE_SAFE_STRCMP): ...define this to 1, (must be non-zero).
968         [IMPLEMENTATION_LEVEL == PACKAGE_BASE_COMPONENT]: Ensure that...
969         (USES_SAFE_STRCMP): ...this is defined to 1, (i.e. non-zero).
970         (EXTERN_C): Relocate macro definition...
971         * src/pkgimpl.h: ...to here; add complementary implementation of...
972         (BEGIN_C_DECLS, END_C_DECLS): ...these new macros; define them.
973
974         * src/pkginet.h (pkgDownloadMeter::SpinWait): New static method;
975         declare it as inline, to be implemented elsewhere, delegating to...
976         (pkgDownloadMeter::SpinWaitAction): ...this new protected virtual
977         method; declare and implement it inline, as a "do nothing" base
978         class method, to be optionally overridden in a derived class.
979
980         * src/pkginet.cpp (pkgDownloadMeter::SpinWait): Implement it.
981         (pkgInternetAgent::OpenURL): Use it to invoke SpinWaitAction().
982         (USES_SAFE_STRCMP): Define as 1; (safe_strcmp() is required).
983         [IMPLEMENTATION_LEVEL != PACKAGE_BASE_COMPONENT]: Filter out code
984         which may not be required in more specialised contexts, then...
985         [IMPLEMENTATION_LEVEL == SETUP_TOOL_COMPONENT]: ...add specialised
986         variants specific to this.
987
988         * src/pkgnget.cpp [IMPLEMENTATION_LEVEL != PACKAGE_BASE_COMPONENT]:
989         Filter out code which may not be required in more specialised context.
990         (dmh_setpty): Provide locally declared prototype for external function.
991         (pkgDownloadMeterGUI): Add pseudo-terminal diagnostic message window.
992         (pkgDownloadMeterGUI::SpinWaitAction): Declare and implement GUI
993         specific method specialisation; it invokes a thread, running...
994         (pkgDownloadMeterGUI::SpinWait): ...this new static method overload.
995
996 2013-04-19  Keith Marshall  <keithmarshall@users.sourceforge.net>
997
998         Implement pre-emptive update issue number identification.
999
1000         * src/pkgkeys.h (serial_number): Declare function prototype.
1001         * src/pkginet.cpp (serial_number): Implementation remains here;
1002         promote from static to extern "C".
1003
1004         * src/pkgbind.cpp (value_assumed_new): New char constant; define it.
1005         (pkgRepository::expected_issue): New private member var; declare and...
1006         (pkgRepository::pkgRepository): ...initialise it, assuming new.
1007         (pkgRepository::GetPackageList): Assign pre-emptively declared issue
1008         number, (from package-list references), to 'expected_issue'; compare it
1009         with 'current_issue' number recorded within locally stored catalogue.
1010         [current_issue >= expected_issue]: Suppress redundant download; adjust
1011         diagnostic messages as appropriate.
1012
1013 2013-04-10  Keith Marshall  <keithmarshall@users.sourceforge.net>
1014
1015         Fix MinGW-Bug #1601 (on new issues tracker).
1016
1017         * aclocal.m4 (makeopts.m4): New build-aux module; include it.
1018         (MINGW_AC_PROG_LEX): New macro; implement it.
1019         
1020         * configure.ac (AC_INIT): Make version number tripartite.
1021         (MINGW_AC_MAKE_NO_PRINT_DIRECTORY): Use this new makeopts.m4 macro.
1022         (MINGW_AC_PROG_LEX): Use it, in place of...
1023         (AC_PROG_LEX): ...this.
1024
1025         * Makefile.in (MAKE): New macro; assign using autoconf's SET_MAKE.
1026         (QUIET_MAKE): New macro; derive it from $(MAKE) --no-print-directory.
1027         (LEX_COMMAND, LEX_COMMAND_ABORT): New macros; define them.
1028         (LEX_MISSING, LEX_MISSING_MESSAGE, LEX_OUTPUT): Likewise.
1029         (FORMAT_MESSAGE, MESSAGE_FOLD_WIDTH): Likewise; implemented from...
1030         (AWK_CLEAR_LINE_BUFFER, AWK_FLUSH_BUFFER, AWK_PRINT_AND_CLEAR_BUFFER):
1031         (AWK_COLLECT_MESSAGE, AWK_COLLECT_BLANK_LINE, AWK_PRINT_LINE_BUFFER):
1032         ...this collection of internal helper macros; define them.
1033         (%.c: %.l): Replacement for built-in rule; it handles "missing lex" in
1034         a manner consistent with expectations of autoconf's AC_PROG_LEX.
1035         (execute-command): New phoney build goal; it is used with...
1036         (WITH_REQUEST): ...this new macro, to invoke commands recursively.
1037
1038 2013-03-25  Keith Marshall  <keithmarshall@users.sourceforge.net>
1039
1040         Adapt DMH for use in setup tool.
1041
1042         * src/dmh.cpp: File renamed to...
1043         * src/dmhcore.cpp: ...this; some code rearranged, to facilitate...
1044         [IMPLEMENTATION_LEVEL == PACKAGE_BASE_COMPONENT]: ...marking of code
1045         sections which are required in the base package build, but which may
1046         be filtered out of the build context for the setup tool.
1047         
1048         * src/guidmh.cpp: File renamed to this...
1049         * src/dmhguix.cpp: ...this; also add marking for...
1050         [IMPLEMENTATION_LEVEL == PACKAGE_BASE_COMPONENT]: ...sections which
1051         may be filtered out of the build context for the setup tool.
1052         (dmhTypePTY::printf): Improve stratagem for output.
1053
1054         * Makefile.in (CORE_DLL_OBJECTS, GUIMAIN_OBJECTS): Adjust references
1055         to renamed source files.
1056
1057 2013-03-22  Keith Marshall  <keithmarshall@users.sourceforge.net>
1058
1059         Enable context hooks for build time code filtering.
1060
1061         * src/pkgimpl.h: New file; it defines...
1062         (PACKAGE_BASE_COMPONENT, SETUP_TOOL_COMPONENT): ...these contexts;
1063         either of these may be selected, by defining as manifest value for...
1064         (IMPLEMENTATION_LEVEL): ...this; default is PACKAGE_BASE_COMPONENT.
1065
1066         * src/pkgbase.h: Include pkgimpl.h
1067         [IMPLEMENTATION_LEVEL != PACKAGE_BASE_COMPONENT]: Occlude content.
1068
1069 2013-03-21  Keith Marshall  <keithmarshall@users.sourceforge.net>
1070
1071         Specify additional files for clean-up.
1072
1073         * Makefile.in (distclean): Additionally specify...
1074         (build.tag, build.time): ...these, as removable files.
1075
1076 2013-03-21  Keith Marshall  <keithmarshall@users.sourceforge.net>
1077
1078         Add a missing distribution dependency.
1079
1080         * Makefile.in (srcdist): Explicitly require...
1081         (pkginfo.c): ...this; previously, it was only an implicit build time
1082         requirement, and may not have persisted until distribution time.
1083
1084 2013-03-21  Keith Marshall  <keithmarshall@users.sourceforge.net>
1085
1086         Implement by-name association of resource scripts with programs.
1087
1088         * src/guidata.rc: Renamed as...
1089         * src/guimain.rc: ...this, reflecting its association with...
1090         * src/guimain.cpp: ...this program source.
1091
1092         * Makefile.in (GUIMAIN_OBJECTS): Update dependency...
1093         (%.$OBJEXT:%.rc): ...replacing use of this pattern rule...
1094         (%.res.$OBJEXT:%.rc): ...with this.
1095
1096 2013-01-18  Keith Marshall  <keithmarshall@users.sourceforge.net>
1097
1098         Make GUI support visual styles in current Windows versions.
1099
1100         * src/guidata.rc: Add an appropriate inline manifest resource.
1101
1102         * src/guiexec.cpp (AppWindowMaker::Invoked): Ensure UpdateWindow() is
1103         called after the initial call to AdjustLayout(); this is required to
1104         ensure that all child windows are properly displayed from the outset.
1105
1106         * src/pkgview.cpp (AppWindowMaker::LayoutEngine):
1107         [ID_PACKAGE_DATASHEET]: Adjust the top position of the frame, to make
1108         the border coincide with the bottom border of the tab strip above.
1109
1110 2013-01-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
1111
1112         Merge gui-dev branch head to master; close gui-dev branch.
1113
1114         * configure.ac (AC_INIT): Reset version to 0.6; reset all package
1115         files to state prevailing at gui-dev branch head.
1116
1117 2013-01-11  Keith Marshall  <keithmarshall@users.sourceforge.net>
1118
1119         Create release branch for further r0.5 development.
1120
1121         * configure.ac (AC_INIT): Bump version number to 0.5.1; assign branch
1122         label (mercurial bookmark) as "r0-5-1" for all files; (this is not to
1123         be released, at this time).
1124
1125 2013-01-10  Keith Marshall  <keithmarshall@users.sourceforge.net>
1126
1127         Implement data sheet compiler for list of installed files.
1128
1129         * src/pkgdata.cpp: #include pkgproc.h; it furnishes...
1130         (pkgManifest): ...this class declaration, which is required by...
1131         (DataSheetMaker::DisplayFilesManifest): ...this new private inline
1132         method; declare and implement it; subsequently, invoke it...
1133         (DataSheetMaker::OnPaint) [PKG_DATASHEET_INSTALLED_FILES]: ...here.
1134         (pkgTroffLayoutEngine::WriteLn): Correct a defect in handling of
1135         excess-length unbreakable "words" outside the viewport; previously
1136         they were not dropped from the input queue, resulting in repeated
1137         reprocessing in an infinite loop.
1138
1139 2013-01-09  Keith Marshall  <keithmarshall@users.sourceforge.net>
1140
1141         Include release tags in GUI displayed package versions.
1142
1143         * src/pkglist.cpp (pkgVersionString) [ReleaseStatus != NULL]:
1144         Append ReleaseStatus and ReleaseIndex to generated version string.
1145
1146 2013-01-08  Keith Marshall  <keithmarshall@users.sourceforge.net>
1147
1148         Fix enumeration of pending install actions for scheduled upgrades.
1149
1150         * src/pkgdata.cpp (pkgActionItem::EnumeratePendingActions):
1151         [action == ACTION_UPGRADE && classified == ACTION_INSTALL]: Enumerate
1152         upgrade as a special case of the install classification.
1153
1154 2013-01-08  Keith Marshall  <keithmarshall@users.sourceforge.net>
1155
1156         Implement "Mark All Upgrades" GUI capability.
1157
1158         * src/guimain.h (IDM_REPO_APPLY): Renumbered; make room for...
1159         (IDM_REPO_MARK_UPGRADES): ...this new constant; define it.
1160
1161         * src/guidata.rc (IDM_REPO_MARK_UPGRADES): New option; add it...
1162         (ID_MAIN_WINDOW_WINDOW) [Installation]: ...to this drop-down menu.
1163
1164         * src/pkgbase.h (pkgActionItem::SuppressRedundantUpgrades): New
1165         public inline method; declare it.
1166
1167         * src/guiexec.cpp (AppWindowMaker::OnCommand):
1168         [IDM_REPO_MARK_UPGRADES]: Add case handler for this menu selection.
1169         (pkgActionItem::SuppressRedundantUpgrades): New method; implement it.
1170
1171 2013-01-08  Keith Marshall  <keithmarshall@users.sourceforge.net>
1172
1173         Avoid unnecessary reloading of package list.
1174
1175         * src/guiexec.cpp (AppWindowMaker::OnCommand) [IDM_REPO_APPLY]:
1176         Do not reload package list after processing; update it in place.
1177
1178 2013-01-08  Keith Marshall  <keithmarshall@users.sourceforge.net>
1179
1180         Avoid potential heap corruption in action scheduler.
1181
1182         * src/guiexec.cpp (pkgActionItem::Clear): Factor out; relocate to...
1183         * src/pkgexec.cpp (pkgActionItem::Clear): ...here; this keeps all use
1184         of new and delete operators on the same side of the EXE/DLL boundary
1185         as the constructor and destructor for pkgActionItem objects.
1186         (pkgActionItem::Schedule): Ensure that all min_wanted and max_wanted
1187         references are unique to each allocated pkgActionItem object, so that
1188         the destructor may safely release their associated heap memory blocks.
1189
1190 2013-01-07  Keith Marshall  <keithmarshall@users.sourceforge.net>
1191
1192         Update copyright notification for development in new year.
1193
1194         * configure.ac (YEARS_OF_ISSUE): Add year 2013.
1195
1196         * Makefile.in (version.c, guidata.$OBJEXT): Make them depend on...
1197         (Makefile): ...this, so YEARS_OF_ISSUE propagates to built objects.
1198
1199 2012-12-24  Keith Marshall  <keithmarshall@users.sourceforge.net>
1200
1201         Work around a GUI action scheduling instability.
1202
1203         * src/guimain.h (AppWindowMaker::UpdateDataSheet): Declare new method.
1204         * src/pkgdata.cpp (AppWindowMaker::UpdateDataSheet): Implement it.
1205         (AppWindowMaker::OnNotify): Use it.
1206
1207         * src/guiexec.cpp (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]:
1208         Don't refresh package list view in-place; clear and reload it instead.
1209
1210 2012-12-21  Keith Marshall  <keithmarshall@users.sourceforge.net>
1211
1212         Update distribution build rules.
1213
1214         * Makefile.in (SRCDIST_FILES): Remove version.c.in; this was moved
1215         to src/version.c.in, and is now automatically included via...
1216         (SRCDIST_SUBDIRS): ...this; remove build-aux and build-aux/m4; we want
1217         only selected files from these, as filtered by specification in...
1218         (BUILD_AUX_DIRS, BUILD_AUX_FILES): ...these new macros; define them.
1219         (BLDTAG, SCMTAG, GCMTAG): New release class macros; define them.
1220         (bindist, licdist, srcdist): Use them.
1221
1222 2012-12-21  Keith Marshall  <keithmarshall@users.sourceforge.net>
1223
1224         Update CLI implementation hooks for GUI integration.
1225
1226         * Makefile.in (LIBEXEC_PROGRAMS): Replace gui$EXEEXT with
1227         guistub$EXEEXT; update make goal references accordingly.
1228
1229         * src/rites.c (MINGW_GET_GUI): Redefine to be guimain$EXEEXT.
1230         (MINGW_GET_GFB): Define new fall-back; let it be guistub$EXEEXT.
1231         (RITES_IMPLEMENTATION): Perform rites for MINGW_GET_GUI.
1232
1233         * src/clistub.c (main) [cannot exec MINGW_GET_GUI]: Try
1234         MINGW_GET_GFB instead.
1235
1236 2012-12-21  Keith Marshall  <keithmarshall@users.sourceforge.net>
1237
1238         Rename executive core file for GUI implementation.
1239
1240         * src/guixmld.cpp: File renamed...
1241         * src/guiexec.cpp: ...to this; its function exceeds original intent.
1242         * Makefile.in (GUIMAIN_OBJECTS): Update reference accordingly.
1243
1244 2012-12-20  Keith Marshall  <keithmarshall@users.sourceforge.net>
1245
1246         Create foundation for implementation of package category tree view.
1247
1248         * Makefile.in (GUIMAIN_OBJECTS): Add pkgtree.$OBJEXT reference to...
1249         * src/pkgtree.cpp: ...incorporate this new file; it implements...
1250         (AppWindowMaker::InitPackageTreeView): ...this new class method...
1251         (pkgInitCategoryTreeGraft): ...and this new extern "C" function.
1252
1253         * src/guimain.h (pkgInitCategoryTreeGraft): Declare prototype.
1254         (AppWindowMaker::InitPackageTreeView): New private method; declare it.
1255         (AppWindowMaker::PackageTreeView): New member variable; declare it.
1256
1257         * src/guixmld.cpp (AppWindowMaker::LoadPackageData): Call
1258         pkgInitCategoryTreeGraft(), after loading profile.xml
1259         (AppWindowMaker::Invoked): Call InitPackageTreeView()
1260
1261         * src/pkgview.cpp (AppWindowMaker::LayoutEngine):
1262         [ID_PACKAGE_TREEVIEW]: Handle it.
1263
1264 2012-12-19  Keith Marshall  <keithmarshall@users.sourceforge.net>
1265
1266         Make the "Apply Changes" dialogue "failure-aware".
1267
1268         * src/pkgtask.h (ACTION_APPLY_FAILED): Redefine, in terms of...
1269         (ACTION_INSTALL_FAILED, ACTION_REMOVE_FAILED): New manifest defines.
1270         (ACTION_UNSUCCESSFUL): New manifest constant; define it.
1271
1272         * src/pkgdata.cpp (pkgActionItem::EnumeratePendingActions):
1273         [ACTION_UNSUCCESSFUL]: Make it a special case for enumeration.
1274
1275         * src/guixmld.cpp (pkgApplyChanges): Enumerate...
1276         [ACTION_UNSUCCESSFUL > 0]: ...all such cases; when true...
1277         [IDD_AUTO_CLOSE_OPTION]: ...this; select alternative close-out
1278         messages, as appropriate.
1279         (pkgActionItem::Assert): Factor out; relocate to...
1280         * src/pkgexec.cpp (pkgActionItem::Assert): ...here; this moves its
1281         object code into the mingw-get DLL.
1282
1283         * src/pkgunst.cpp (pkgRemove) [ACTION_REMOVE_FAILED]:
1284         * src/pkginst.cpp (pkgInstall) [ACTION_INSTALL_FAILED]:
1285         Assert as appropriate.
1286
1287 2012-12-19  Keith Marshall  <keithmarshall@users.sourceforge.net>
1288
1289         Improve progress reporting in "Apply Changes" dialogue.
1290
1291         * src/pkgstat.h: New header file; it declares...
1292         (pkgSpinWait): ...this new pure abstract base class; it specifies an
1293         infrastructure for posting arbitrary text to dialogue controls.
1294
1295         * src/pkgexec.cpp (pkgSpinWait): Implement its static elements.
1296         (pkgActionItem::Execute): Dispatch progress reports, handled by...
1297         (pkgSpinWait::Report, pkgSpinWait::Indicator): ...these.
1298
1299         * src/guixmld.cpp (pkgDialogueSpinWait): New class; declare it and
1300         implement locally.  It is derived from, and provides a listener for...
1301         (pkgSpinWait): ...this abstract class.
1302         (pkgApplyChanges): Use it.
1303
1304         * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDataStream): Call...
1305         (pkgSpinWait::Report): ...this, to report extracted files.
1306
1307         * src/pkgunst.cpp (pkg_unst): Call...
1308         (pkgSpinWait::Report): ...this, to report deleted files.
1309
1310         * src/sysroot.cpp (pkgXmlDocument::UpdateSystemMap): Call...
1311         (pkgSpinWait::Report, pkgSpinWait::Indicator): ...these, to confirm
1312         continuing database update activity.
1313
1314 2012-12-18  Keith Marshall  <keithmarshall@users.sourceforge.net>
1315
1316         Update tab display on right-click in package list view.
1317
1318         * src/pkgdata.cpp (AppWindowMaker::OnNotify) [NM_RCLICK]:
1319         Call DataSheetMaker::DisplayData(), before invoking pop-up menu.
1320
1321 2012-12-17  Keith Marshall  <keithmarshall@users.sourceforge.net>
1322
1323         Add more protection against NULL pointer abuse.
1324
1325         * src/pkgbase.h (pkgActionItem::Reset): Method renamed to...
1326         * src/guixmld.cpp (pkgActionItem::Assert): ...this; also renamed here.
1327         (AppWindowMaker::OnCommand): When calling...
1328         (pkgListViewMaker::MarkScheduledActions): ...this, pass argument as...
1329         (pkgXmlDocument::ClearScheduledActions): ...pointer returned by this.
1330
1331         * src/pkgdata.cpp (AppWindowMaker::MarkSchedule):
1332         [pending_actions == NULL]: Do not propagate invocation request to...
1333         (pkgListViewMaker::MarkScheduledActions): ...this.
1334
1335         * src/pkglist.cpp (pkgListViewMaker::MarkScheduledActions):
1336         [schedule == NULL]: Do nothing.
1337
1338 2012-12-14  Keith Marshall  <keithmarshall@users.sourceforge.net>
1339
1340         Implement some additional permanent debugging support.
1341
1342         * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
1343         [DEBUG_TRACE_DEPENDENCIES]: Enable DMH digest mode for messages.
1344
1345         * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDataStream):
1346         [DEBUG_TRACE_TRANSACTIONS]: Add logging of installed file path names.
1347
1348 2012-12-14  Keith Marshall  <keithmarshall@users.sourceforge.net>
1349
1350         Insert a missing snprintf format effector.
1351
1352         * src/pkgnget.cpp (pkgDownloadMeterGUI::Update): Add omitted '%'
1353         format specifier, in "%%", for formatting percentage-complete value.
1354         Rename "size_buf" automatic variable as "buf"; this results in shorter
1355         source lines, and consequently a tidier source code layout.
1356         (pkgDownloadMeterGUI::ResetGUI): Likewise s/size_buf/buf/
1357
1358 2012-12-14  Keith Marshall  <keithmarshall@users.sourceforge.net>
1359
1360         Add a missing header reference.
1361
1362         * src/approot.h: Include stdint.h; this ensures that wchar_t is
1363         properly typedef'd, before attempting to use it.
1364
1365 2012-12-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
1366
1367         Make a clone of the package menu available as a pop-up.
1368
1369         * src/guimain.h (AppWindowMaker::SelectPackageAction): New private
1370         method; declare it.
1371
1372         * src/pkgdata.cpp (AppWindowMaker::SelectPackageAction): Implement it.
1373         (AppWindowMaker::OnNotify) [ID_PACKAGE_LISTVIEW]: Use it.
1374
1375 2012-12-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
1376
1377         Improve conditionally enabled state manipulation for menu items.
1378
1379         * src/guidata.rc (IDM_REPO_APPLY): Set its initial state as GRAYED.
1380
1381         * src/pkgdata.cpp (AppWindowMaker::UpdatePackageMenuBindings):
1382         [IDM_PACKAGE_REINSTALL]: Always leave it GRAYED; this is a temporary
1383         provision, until the GUI is updated to support "reinstall" capability.
1384         [IDM_REPO_APPLY && !(EnumeratePendingActions > 0)]: Make it GRAYED.
1385         [IDM_REPO_APPLY && (EnumeratePendingActions > 0)]: Enable it.
1386
1387 2012-12-11  Keith Marshall  <keithmarshall@users.sourceforge.net>
1388
1389         Implement GUI bindings for processing a schedule of actions.
1390
1391         * src/guimain.h (IDD_DMH_CONSOLE): New resource ID; define it.
1392         (IDD_APPLY_EXECUTE): New dialogue template resource ID; define it.
1393         (AppWindowMaker::ExecuteScheduledActions): New method; declare it.
1394
1395         * src/guidata.rc (IDD_APPLY_EXECUTE): Implement dialogue template.
1396
1397         * src/guixmld.cpp (pkgApplyChanges): New thread function; implement it.
1398         (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]: Use it; it is invoked...
1399         (IDD_APPLY_EXECUTE): ...via this dialogue box, subsequently calling...
1400         (AppWindowMaker::ExecuteScheduledActions): ...this; implement it.
1401
1402         * src/pkgexec.cpp (pkgActionItem::Execute): Add argument; use it.
1403         (pkgActionItem::~pkgActionItem): Unlink chained references.
1404
1405         * src/pkgbase.h (pkgActionItem::Execute): Adjust prototype.
1406
1407 2012-12-11  Keith Marshall  <keithmarshall@users.sourceforge.net>
1408
1409         Do not preserve unnecessary download requests.
1410
1411         * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles):
1412         [(flags & ACTION_INSTALL) != ACTION_INSTALL]: Actions having no
1413         "install" effect do not require a download; cancel any associated
1414         download request.
1415
1416 2012-12-10  Keith Marshall  <keithmarshall@users.sourceforge.net>
1417
1418         Implement GUI bindings for package download agent.
1419
1420         * src/guimain.h (IDD_PROGRESS_VAL, IDD_PROGRESS_MAX):
1421         (IDD_PROGRESS_PCT): New manifest resource IDs; define them.  They will
1422         be used to identify dialogue controls, to be associated with...
1423         (IDD_APPLY_DOWNLOAD): ...this new dialogue template ID; define it.
1424         (AppWindowMaker::DownloadArchiveFiles): New inline method; declare it.
1425
1426         * src/guidata.rc (IDD_APPLY_DOWNLOAD): Implement dialogue template.
1427
1428         * src/pkgbase.h (pkgActionItem::DownloadArchiveFiles): New public
1429         inline method; declare it.  It overloads an existing private method of
1430         the same name, which it subsequently invokes.
1431
1432         * src/pkginet.h: New header file; it declares...
1433         (pkgInvokeDownload): ...this new extern "C" function prototype, and...
1434         (pkgDownloadMeter): ...this abstract class; it is factored from its
1435         original implementation in pkginet.cpp, augmented by addition of...
1436         (pkgDownloadMeter::primary): New static member variable; declare it.
1437         (pkgDownloadMeter::UseGUI): New public method; implement it inline.
1438         (pkgDownloadMeter::ResetGUI): New public method; declare it, providing
1439         a do-nothing inline default implementation.  Any derived class, which
1440         supports GUI capability, should override this.
1441
1442         * src/pkgnget.cpp: New file; it implements...
1443         (pkgDownloadMeterGUI): New class, derived from pkgDownloadMeter.
1444         (pkgActionItem::DownloadArchiveFiles): New overloaded inline method.
1445         (AppWindowMaker::DownloadArchiveFiles): New inline method.
1446         (pkgInvokeDownload): New dialogue box worker thread handler.
1447
1448         * src/pkginet.cpp: Include pkginet.h; hence...
1449         (pkgDownloadMeter): ...remove redundant class declaration.
1450         (pkgDownloadMeter::primary): Define and initialise it.
1451         (pkgInternetStreamingAgent::Get) [pkgDownloadMeter::UseGUI]: Delegate
1452         progress metering to referenced pkgDownloadMeterGUI class instance.
1453         [! pkgDownloadMeter::UseGUI]: Continue to use the existing built-in
1454         pkgDownloadMeterTTY mechanism.
1455         (pkgActionItem::DownloadSingleArchive) [ACTION_DOWLOAD_FAILED]: Assert
1456         this initially; subsequently clear it on successful completion.
1457         (pkgActionItem::DownloadArchiveFiles): Collect diagnostic messages
1458         into a single DMH_BEGIN_DIGEST ... DMH_END_DIGEST group.
1459
1460         * src/guixmld.cpp: Include pkginet.h; it is required by...
1461         (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]: Use pkgInvokeDownload.
1462
1463         * Makefile.in (GUIMAIN_OBJECTS): Include pkgnget.$OBJEXT
1464
1465 2012-12-08  Keith Marshall  <keithmarshall@users.sourceforge.net>
1466
1467         Implement "Discard" handler for GUI "Apply Changes" dialogue.
1468
1469         * src/pkgbase.h (pkgActionItem::Reset): New public method; declare it.
1470         (pkgActionItem::Clear): New public method; declare two overloaded
1471         variants, of which implement one inline.
1472         (pkgXmlDocument::ClearScheduledActions): New public method; declare
1473         and implement it inline.
1474
1475         * src/pkgtask.h (ACTION_DOWNLOAD_FAILED, ACTION_APPLY_FAILED): New
1476         manifest bit-flag constants; define them.  They provide a mechanism
1477         for blocking the discard event in respect of failed actions.
1478
1479         * src/guixmld.cpp (pkgActionItem::Reset): Implement it.
1480         (pkgActionItem::Clear): Implement second, out-of-line variant.
1481         (ACTION_PRESERVE_FAILED): New local manifest bit-flag constant; define
1482         it as an aggregate of ACTION_DOWNLOAD_FAILED and ACTION_APPLY_FAILED.
1483         (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]: Use them.
1484
1485 2012-12-07  Keith Marshall  <keithmarshall@users.sourceforge.net>
1486
1487         Implement GUI dialogue for "Apply Changes" action approval.
1488
1489         * src/guidata.rc (ID_MAIN_WINDOW_MENU): Rename...
1490         ("&Repository"): ...this drop-down menu entry...
1491         ("&Installation"): ...this; add...
1492         ("&Apply Changes"): ...this new selection.
1493         (IDD_APPLY_APPROVE): New dialogue box resource template; define it.
1494         (SS_CTEXTBOX): New aggregate style convenience macro; define it.
1495         (ES_VT100): Likewise.
1496
1497         * src/guimain.h (IDM_REPO_APPLY): New resource ID; define it.
1498         (IDM_REPO_QUIT): Redefined resource ID; was 302; changed to 312.
1499         (IDD_APPLY_APPROVE, IDD_PROGRESS_TXT): New resource IDs; define them.
1500         (IDD_APPLY_REMOVES_PACKAGES, IDD_APPLY_REMOVES_SUMMARY): Likewise.
1501         (IDD_APPLY_INSTALLS_PACKAGES, IDD_APPLY_INSTALLS_SUMMARY): Likewise.
1502         (IDD_APPLY_UPGRADES_PACKAGES, IDD_APPLY_UPGRADES_SUMMARY): Likewise.
1503         (ID_APPLY, ID_DISCARD, ID_DEFER): New response IDs; define them.
1504         (AppWindowMaker::EnumerateActions): New inline method; declare it.
1505         (AppWindowMaker::DialogueResponse): New inline method; declare and
1506         implement it.
1507
1508         * src/guixmld.cpp (pkglist.h): #included.
1509         (dmh_setpty): Add locally declared prototype.
1510         (AppWindowMaker::EnumerateActions): Implement it.
1511         (pkgActionCount): New static helper function; implement it.
1512         (ACTION_APPLY, APPLIES_TO): New macros; define them.
1513         (FMT_APPLY_REMOVES, FMT_APPLY_INSTALLS, FMT_APPLY_UPGRADES): New
1514         manifest string constants; define them.
1515         (pkgApplyApproved): New static call-back function; implement...
1516         (AppWindowMaker::OnCommand) [IDM_REPO_APPLY]: ...and use it.
1517
1518 2012-12-06  Keith Marshall  <keithmarshall@users.sourceforge.net>
1519
1520         Implement enhanced action item enumeration capability.
1521
1522         * src/pkgbase.h (pkgActionItem::EnumeratePendingActions): New public
1523         method; declare it.  It provides the capability to enumerate scheduled
1524         actions, filtered by action classification; when invoked such that it
1525         selects all actions, it may be used as a replacement for...
1526         (pkgActionItem::Unapplied): ...this; delete declaration.
1527
1528         * src/pkgdata.cpp (pkgActionItem::EnumeratePendingActions): Implement
1529         it; it is derived, with enhancement, from original implementation...
1530         (pkgActionItem::Unapplied): ...of this; delete it, and...
1531         (AppWindowMaker::OnClose): ...update calling reference accordingly.
1532
1533 2012-12-05  Keith Marshall  <keithmarshall@users.sourceforge.net>
1534
1535         Implement PTY display emulation for GUI mode DMH.
1536
1537         * src/dmhcore.h (dmhTypeGeneric::set_console_hook): New public virtual
1538         method; declare it, providing inline default do-nothing implementation.
1539         (dmhTypeGeneric::severity_tag): New protected static method; declare it.
1540         (dmhTypeGeneric::notification_format): New protected static property;
1541         declare it.
1542
1543         * src/dmh.cpp (dmhTypeGeneric::severity_tag): Implement it.
1544         (dmhTypeGeneric::notification_format): Define and initialise it.
1545         (dmhTypeTTY::notify): Use them.
1546         (dmh_setpty): New function; declare prototype and implement it.
1547
1548         * src/guidmh.cpp (dmhTypePTY): New locally implemented class.
1549         (dmhTypeGUI::set_console_hook): New virtual method; declare and
1550         implement it; it stores a dmhTypePTY reference pointer into...
1551         (dmhTypeGUI::console_hook): ...this new private member variable.
1552         (dmhTypeGUI::dmhTypeGUI): Initialise it.
1553         (dmhTypeGUI::notify) [console_hook != NULL]: Delegate to it.
1554         (dmhTypeGUI::printf) [console_hook != NULL]: Likewise.
1555
1556 2012-12-03  Keith Marshall  <keithmarshall@users.sourceforge.net>
1557
1558         Implement generalised API for dialogue boxes with worker threads.
1559
1560         * src/guimain.h (pkgDialogueThread): New typedef; declare it.
1561         (AppWindowMaker::DialogueThread): New static property; declare it.
1562         (AppWindowMaker::DispatchDialogueThread): New method; declare it.
1563
1564         * src/guixmld.cpp: Formatting of several comments adjusted.
1565         (pkgUpdate, pkgInitDataLoad): Defunct functions; replaced by...
1566         (pkgDialogue): ...this new static call-back function; implement it.
1567         (AppWindowMaker::DialogueThread): Instantiate and initialise it.
1568         (AppWindowMaker::DispatchDialogueThread): Implement it.
1569         (AppWindowMaker::Invoked): Use it to invoke pkgInvokeInitDataLoad()...
1570         (AppWindowMaker::OnCommand): ...and pkgInvokeUpdate().
1571
1572 2012-12-03  Keith Marshall  <keithmarshall@users.sourceforge.net>
1573
1574         Consolidate GUI implementation for package list view management.
1575
1576         * src/pkglist.h (pkgListViewMaker::GetTitle): Disused overloaded
1577         method; remove all declarations.
1578         (pkgListViewMaker::GetVersionString): Disused method; remove
1579         declaration.
1580         (pkgListViewMaker::GetItem): New private inline method; declare it.
1581         (pkgListViewMaker::UpdateItem): New private method; declare it.
1582         (pkgListViewMaker::UpdateListView): New public method; declare it.
1583         (pkgListViewMaker::MarkScheduledActions): Likewise.
1584
1585         * src/guimain.h (AppWindowMaker::MarkSchedule): New public inline
1586         method; declare it, but defer implementation to...
1587
1588         * src/pkgdata.cpp (AppWindowMaker::MarkSchedule): ...here; not used
1589         elsewhere, it is derived from, and replaces...
1590         (pkgMarkSchedule): ...this function; factor out redundant code, in
1591         favour of delegation to pkgListViewMaker::MarkScheduledActions(), with
1592         following call to AppWindowMaker::UpdatePackageMenuBindings(); update
1593         calling function references...
1594         (AppWindowMaker::UnmarkSelectedPackage): ...here, and...
1595         (AppWindowMaker::Schedule): ...here.
1596
1597         * src/pkglist.cpp (pkgVersionString): New static function; implement
1598         it as a local replacement for...
1599         (pkgListViewMaker::GetVersionString): ...this defunct class method.
1600         (pkgGetTitle): New overloaded static function; implement two variants,
1601         as local replacements for...
1602         (pkgListViewMaker::GetTitle): ...this defunct overloaded class method.
1603         (pkgListViewMaker::UpdateItem): Implement it; factor code from...
1604         (pkgListViewMaker::InsertItem): ...here, whence use it.
1605         (pkgListViewMaker::MarkScheduledActions): Implement it.
1606         (pkgListViewMaker::UpdateListView): Implement it.
1607         (pkgListViewMaker::pkgListViewMaker): Remove references to...
1608         (LVIF_TEXT): ...this.
1609
1610 2012-11-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
1611
1612         Increase width of window sash bars by 50%.
1613
1614         * src/guimain.h (SASH_BAR_THICKNESS): Increase from 4 to 6; this makes
1615         it easier to grab the sash bars, so they may be dragged; IMO, it also
1616         results in a better appearance.
1617
1618 2012-11-29  Keith Marshall  <keithmarshall@users.sourceforge.net>
1619
1620         Maintain consistent internal vs. external installation records.
1621
1622         * src/pkginst.cpp (pkgInstall): Set "installed" attribute on internal
1623         package reference, to "yes", after installation; CLI didn't need this,
1624         but GUI will do so, for any package revisited in a single session.
1625
1626         * src/pkgunst.cpp (pkgRemove): Similarly, negate "installed" attribute
1627         after package removal.
1628
1629 2012-11-17  Keith Marshall  <keithmarshall@users.sourceforge.net>
1630
1631         Refactor to consolidate three instances of duplicate code.
1632
1633         * src/pkglist.h (pkgGetStatus): New function; declare it.
1634         * src/pkglist.cpp (pkgGetStatus): Implement it; factor out from...
1635         (pkgListViewMaker::InsertItem): ...here, whence use it.
1636         * src/pkgdata.cpp (pkgMarkSchedule): Likewise here...
1637         (DataSheetMaker::DisplayGeneralData): ...and here.
1638
1639 2012-11-16  Keith Marshall  <keithmarshall@users.sourceforge.net>
1640
1641         Add GUI support for install, upgrade, and remove action scheduling.
1642
1643         * src/guimain.h (EXTERN_C): Ensure it is defined.
1644         (pkgActionItem): Add forward declaration of class name.
1645         (pkgMarkSchedule): New EXTERN_C function; declare and prototype it.
1646         (AppWindowMaker::OnClose): New virtual method; declare it.
1647         (AppWindowMaker::Schedule): New public method; declare it.
1648         (AppWindowMaker::UnmarkSelectedPackage): Likewise.
1649
1650         * src/pkgbase.h (pkgActionItem::HasAttribute) [this == NULL]: Add
1651         protective logic; ignore attempts to access non-existent objects.
1652         (pkgActionItem::SelectPackage) [this == NULL]: Likewise.
1653         (pkgActionItem::Selection) [this == NULL]: Likewise.
1654         (pkgActionItem::GetReference): New overloaded public method; declare
1655         prototype variant with argument type of pkgXmlNode*.
1656         (pkgActionItem::Unapplied): New public method; declare it.
1657         (pkgActionItem::CancelScheduledAction): Likewise.
1658         (pkgXmlDocument::Schedule): Change return type from void to
1659         pkgActionItem*; add default argument values.
1660
1661         * src/guixmld.cpp (AppWindowMaker::OnCommand): Add menu case hooks...
1662         [IDM_PACKAGE_INSTALL]: ...to schedule package 'install' action...
1663         [IDM_PACKAGE_UPGRADE]: ...package 'upgrade' action...
1664         [IDM_PACKAGE_REMOVE]: ...package 'remove' action, or...
1665         [IDM_PACKAGE_UNMARK]: ...to cancel any of these scheduling requests.
1666         [IDM_REPO_QUIT]: Correct typo; s/WM_QUIT/WM_CLOSE/ in comment.
1667
1668         * src/pkgdata.cpp (pkgMarkSchedule): Implement it.
1669         (pkgActionItem::CancelScheduledAction): Implement it.
1670         (pkgActionItem::Unapplied): Implement it.
1671         (AppWindowMaker::UpdatePackageMenuBindings): Improve comments.
1672         (AppWindowMaker::UnmarkSelectedPackage): Implement it.
1673         (AppWindowMaker::Schedule): Implement it.
1674         (AppWindowMaker::OnClose): Implement it.
1675
1676         * src/pkgdeps.cpp (pkgActionItem::GetReference): Implement overload.
1677         (pkgXmlDocument::Schedule): Change return type, and return value.
1678         [this == NULL]: Add protective logic; ignore non-existent objects.
1679         [name == NULL]: Do not schedule; just return existing action list.
1680
1681 2012-11-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
1682
1683         Add dynamically enabled state control for package menu items.
1684
1685         * src/guimain.h (AppWindowMaker::UpdatePackageMenuBindings): New
1686         private method; declare it.
1687
1688         * src/pkgdata.cpp (AppWindowMaker::UpdatePackageMenuBindings):
1689         Implement it, and...
1690         (AppWindowMaker::OnNotify): ...use it.
1691
1692 2012-11-01  Keith Marshall  <keithmarshall@users.sourceforge.net>
1693
1694         Avoid excessive inter-word spaces in adjusted text.
1695
1696         * src/pkgdata.cpp (pkgTroffLayoutEngine::WriteLn): Check extent of
1697         padding to be added at each inter-word space, when adjusting text; do
1698         not adjust, if it exceeds 5% of available display pane width.
1699
1700 2012-11-01  Keith Marshall  <keithmarshall@users.sourceforge.net>
1701
1702         Elide unbreakable text which will not fit within display width.
1703
1704         * src/pkgdata.cpp (pkgTroffLayoutEngine::WriteLn): Add logic to detect
1705         over-width unbreakable text; elide characters from the right, to make
1706         it fit within the display width, with trailing ellipsis.
1707
1708 2012-11-01  Keith Marshall  <keithmarshall@users.sourceforge.net>
1709
1710         Add content compiler for package data sheet "general" tab.
1711
1712         * src/pkgbase.h (pkgActionItem::PrintURI): Make it public.  Add a
1713         call-back reference argument, for output function; assign puts() as
1714         default, where previously had hard coded printf() emulating puts()
1715
1716         * src/pkginet.cpp (pkgActionItem::PrintURI): Use call-back hook.
1717
1718         * src/pkgdata.cpp (DataSheetMaker::Display): New static property; it
1719         stores a reference to the active class instance, so static call-back
1720         methods may delegate processing requests to non-static methods.
1721         (DataSheetMaker::Advance): New static property; it is used to instruct
1722         call-back methods to interpose paragraph leading it the output stream.
1723         (DataSheetMaker::FormatRecord): New private method; implement it.
1724         (DataSheetMaker::FormatText): Don't pass "canvas" as an argument; we
1725         can access it directly as a class property.  Update all callers as
1726         necessary, to conform to modified function prototype.
1727         (pkgListSelection): New static function; implement it, and...
1728         (DataSheetMaker::OnPaint): ...use it in switch cases, when calling...
1729         [PKG_DATASHEET_GENERAL]: DataSheetMaker::DisplayGeneralData(), and...
1730         [PKG_DATASHEET_DESCRIPTION]: DataSheetMaker::DisplayDescription().
1731         (DataSheetMaker::DisplayGeneralData): New public method; implement it.
1732         (DataSheetMaker::DisplayPackageURL): New static method; implement it.
1733         (DataSheetMaker::DisplayLicenceURL): Likewise.
1734         (DataSheetMaker::DisplaySourceURL): Likewise.
1735
1736 2012-10-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
1737
1738         Fix error in counting of catalogue files during loading.
1739
1740         * src/pkgbind.cpp (pkgRepository::GetPackageList): Increment count
1741         variable once only, at start of each cycle of the catalogue loading
1742         loop; previous strategy of counting in discrete logic paths could
1743         miss several required increments, particularly in CLI mode.
1744
1745 2012-10-27  Keith Marshall  <keithmarshall@users.sourceforge.net>
1746
1747         Avoid DMH message digest fragmentation when downloading.
1748
1749         * src/dmh.h (DMH_GET_CONTROL_STATE): New macro; define it.
1750         * src/pkginet.cpp (pkgInternetAgent::OpenURL): Use it; do not close
1751         locally opened message digest, when called with one already open.
1752
1753 2012-10-27  Keith Marshall  <keithmarshall@users.sourceforge.net>
1754
1755         Initiate progress metering for catalogue load and update operations.
1756
1757         * src/guidata.rc (IDD_REPO_UPDATE): New dialogue template; define it.
1758         (IDM_REPO_UPDATE): Enable selection from "Repository" drop-down menu.
1759
1760         * src/guimain.h (IDD_REPO_UPDATE, IDD_CLOSE_OPTIONS):
1761         (IDD_AUTO_CLOSE_OPTION, IDD_PROGRESS_BAR, IDD_PROGRESS_MSG): New
1762         resource identification manifest constants; define them.
1763         (pkgXmlNode, pkgProgressMeter): Add forward class declarations.
1764         (AppWindowMaker::AttachedProgressMeter): New private data; define...
1765         (AppWindowMaker::AppWindowMaker): ...and initialise it.
1766         (AppWindowMaker::AttachProgressMeter): New public method; declare it.
1767         (AppWindowMaker::DetachProgressMeter): Likewise.
1768         (AppWindowMaker::LoadPackageData, AppWindowMaker::ClearPackageList):
1769         (AppWindowMaker::UpdatePackageList): Make them public.
1770
1771         * src/pkgbase.h (pkgProgressMeter): New abstract class; declare it.
1772         (AppWindowMaker) [GUIMAIN_H undefined]: Add forward class declaration.
1773         (pkgXmlDocument::progress_meter): New private data member; declare...
1774         (pkgXmlDocument::pkgXmlDocument): ...and initialise it.
1775         (pkgXmlDocument::ProgressMeter, pkgXmlDocument::AttachProgressMeter):
1776         (pkgXmlDocument::DetachProgressMeter): New public inline methods;
1777         implement them.
1778
1779         * src/pkgview.cpp (WTK::GenericDialogue): Delete disused reference.
1780         (AppWindowMaker::OnCommand): Factor out implementation; relocate it...
1781         * src/guixmld.cpp: ...to here; thus it may utilise dependants of...
1782         (ProgressMeterMaker): ...this new locally implemented class.
1783         (AppWindowMaker::AttachProgressMeter): Implement it.
1784         (AppWindowMaker::AttachProgressMeter): Likewise.
1785         (pkgProgressMeter::~pkgProgressMeter): Likewise.
1786         (pkgUpdate, pkgInvokeUpdate): New static functions; implement them.
1787         (AppWindowMaker::Invoked): Replace direct call to LoadPackageData by
1788         an indirect invocation, via a progress metering dialogue box using...
1789         (pkgInitDataLoad): ...this new static callback function, invoking...
1790         (pkgInvokeInitDataLoad): ...this new static thread function, whence...
1791         (AppWindowMaker::LoadPackageData): ...this; add hook-up call to...
1792         (pkgXmlDocument::AttachProgressMeter): ...incorporate this.
1793
1794         * src/pkgbind.cpp (pkgRepository::total, pkgRepository::count): New
1795         private static properties; declare and instantiate them; provide...
1796         (pkgRepository::Reset, pkgRepository::IncrementTotal): ...new public
1797         static methods to manipulate them; declare and implement them inline.
1798         (pkgRepository::GetPackageList): Use them to manage updates to the
1799         pkgProgressMeter class instance, if any, which has been bound to
1800         the controlling pkgXmlDocument class instance, when invoking...
1801         (pkgXmlXmlDocument::BindRepositories): ...this.
1802
1803 2012-10-18  Keith Marshall  <keithmarshall@users.sourceforge.net>
1804
1805         Associate DMH message boxes with active dialogues.
1806
1807         * src/guidmh.cpp (last_active_popup): New static inline function.
1808         (dmhTypeGUI::dispatch_message): Use it.
1809
1810 2012-10-18  Keith Marshall  <keithmarshall@users.sourceforge.net>
1811
1812         Fix Diagnostic Message Handler initialisation logic.
1813
1814         * src/dmh.cpp (dmh_init) [DMH_SUBSYSTEM_GUI]: Correct a logic error;
1815         it previously fell through after any successful initialisation of the
1816         DMH_SUBSYSTEM_GUI handler, replacing it with a DMH_SUBSYSTEM_TTY type
1817         handler.  Also, assign a heap copy of the passed "progname" string
1818         resource, which is volatile, to ensure that the handler retains a
1819         valid reference.
1820
1821 2012-10-11  Keith Marshall  <keithmarshall@users.sourceforge.net>
1822
1823         Implement preliminary GUI mode data sheet compiler.
1824
1825         * src/guimain.h (DataSheetMaker): New class; forward declare it.
1826         (AppWindowMaker::InitPackageTabControl): New private method; declare it.
1827         (AppWindowMaker::DataSheet, AppWindowMaker::PackageTabControl):
1828         (AppWindowMaker::TabDataPane, AppWindowMaker::PackageTabPane): New
1829         private data members; declare them.
1830         (ID_SASH_WINDOW_PANE_CLASS): New string resource identifier; define it.
1831         (ID_PACKAGE_DATASHEET, ID_PACKAGE_TABPANE): New window identifiers;
1832         define them.
1833
1834         * src/guidata.rc (ID_SASH_WINDOW_PANE_CLASS): Specify string resource.
1835
1836         * src/pkgview.cpp (AppWindowMaker::OnSize): Add handler for...
1837         (ID_PACKAGE_TABPANE, ID_PACKAGE_TABCONTROL, ID_PACKAGE_DATASHHET):
1838         ...this group of sash pane child window entities.
1839         (AppWindowMaker::OnNotify): Comment out disused stub implementation.
1840
1841         * src/pkgshow.cpp (pkgUTF8Parser): Factor out class declaration...
1842         (UTF32_MAX, UTF32_OVERFLOW, UTF32_INVALID): ...these definitions...
1843         (utf32_t): ...and this typedef; relocate to, and #include...
1844         * src/pkgdata.h: ...this new header file.
1845
1846         * src/pkgdata.cpp (DataSheetMaker): New class; declare and implement it.
1847         (AppWindowMaker::InitPackageTabControl): Implement it.
1848         (AppWindowMaker::OnNotify): Reimplement it.
1849
1850         * Makefile.in (GUIMAIN_OBJECTS): Add pkgdata.OBJEXT
1851
1852         * src/guixmld.cpp (AppWindowMaker::Invoked): Add call to invoke
1853         AppWindowMaker::InitPackageTabControl()
1854
1855 2012-10-09  Keith Marshall  <keithmarshall@users.sourceforge.net>
1856
1857         Remove a grossly heuristic list view hack.
1858
1859         * src/pkglist.cpp (pkgListViewMaker::GetTitle): Remove code for the
1860         heuristic deletion of any redundant package name prefixes from package
1861         title attributes; by now, all such prefixes should have been removed
1862         from the catalogue, explicitly, at source.
1863
1864 2012-10-08  Keith Marshall  <keithmarshall@users.sourceforge.net>
1865
1866         Implement GUI list view compiler for XML catalogue.
1867
1868         * src/pkgview.cpp (AppWindowMaker::LayoutEngine): Add case handler...
1869         [pane_id == ID_PACKAGE_LISTVIEW]: ...for this window pane class.
1870
1871         * src/guimain.h (ID_PKGLIST_TABLE_HEADINGS):
1872         (ID_PKGNAME_COLUMN_HEADING, ID_PKGTYPE_COLUMN_HEADING):
1873         (ID_INSTVER_COLUMN_HEADING, ID_REPOVER_COLUMN_HEADING):
1874         (ID_PKGDESC_COLUMN_HEADING): New resource identifiers; define them.
1875         (ID_PKGSTATE_AVAILABLE, ID_PKGSTATE_AVAILABLE_NEW):
1876         (ID_PKGSTATE_AVAILABLE_LOCKED, ID_PKGSTATE_AVAILABLE_INSTALL):
1877         (ID_PKGSTATE_INSTALLED_CURRENT, ID_PKGSTATE_INSTALLED_LOCKED):
1878         (ID_PKGSTATE_INSTALLED_OLD, ID_PKGSTATE_UPGRADE, ID_PKGSTATE_REMOVE):
1879         (ID_PKGSTATE_REINSTALL, ID_PKGSTATE_DOWNGRADE, ID_PKGSTATE_BROKEN):
1880         (ID_PKGSTATE_PURGE): New icon resource identifiers; define them.
1881         (AppWindowMaker::InitPackageListView): New private method; declare it.
1882         (AppWindowMaker::UpdatePackageList): New private method; declare it.
1883         (AppWindowMaker::ClearPackageList): New private method; declare and
1884         implement it inline.
1885
1886         * src/guidata.rc (ID_PKGSTATE_AVAILABLE, ID_PKGSTATE_AVAILABLE_NEW):
1887         (ID_PKGSTATE_AVAILABLE_LOCKED, ID_PKGSTATE_AVAILABLE_INSTALL):
1888         (ID_PKGSTATE_INSTALLED_CURRENT, ID_PKGSTATE_INSTALLED_LOCKED):
1889         (ID_PKGSTATE_INSTALLED_OLD, ID_PKGSTATE_UPGRADE, ID_PKGSTATE_REMOVE):
1890         (ID_PKGSTATE_REINSTALL, ID_PKGSTATE_DOWNGRADE, ID_PKGSTATE_BROKEN):
1891         (ID_PKGSTATE_PURGE): New icon resources; implement them.
1892
1893         * icons/state01.ico icons/state02.ico icons/state03.ico:
1894         * icons/state04.ico icons/state05.ico icons/state06.ico:
1895         * icons/state07.ico icons/state08.ico icons/state09.ico:
1896         * icons/state10.ico icons/state11.ico icons/state12.ico:
1897         * icons/state13.ico: New files.  All are cloned from synaptic icons;
1898         see src/guimain.rc for symbolic/functional reference names.
1899
1900         * src/pkglist.h [GUIMAIN_H defined] (pkgListViewMaker): New class;
1901         declare it for use in modules which #include guimain.h
1902
1903         * src/pkglist.cpp: New file; it implements...
1904         (pkgListViewMaker): ...this new class, and its clients...
1905         (AppWindowMaker::InitPackageListView): New method.
1906         (AppWindowMaker::UpdatePackageList): Likewise.
1907
1908         * Makefile.in (GUIMAIN_OBJECTS): Add pkglist.OBJEXT
1909
1910         * src/guixmld.cpp (AppWindowMaker::Invoke): Call InitCommonControls(),
1911         as prerequisite to AppWindowMaker::InitPackageListView(); follow up by
1912         calling AppWindowMaker::AdjustLayout().
1913
1914 2012-10-07  Keith Marshall  <keithmarshall@users.sourceforge.net>
1915
1916         Add GUI initialiser hook for XML catalogue interface.
1917
1918         * src/guimain.h (AppWindowMaker::Invoke): New public method; declare
1919         it; it overrides the generic WTK::MainWindowMaker::Invoke() method, so
1920         providing the initialiser hook which will invoke this...
1921         (AppWindowMaker::LoadPackageData): ...new private method; declare it.
1922
1923         * src/guixmld.cpp: New file.
1924         (AppWindowMaker::Invoke): Implement it.
1925         (AppWindowMaker::LoadPackageData): Likewise.
1926
1927         * Makefile.in (GUIMAIN_OBJECTS): Add guixmld.OBJEXT
1928
1929 2012-09-29  Keith Marshall  <keithmarshall@users.sourceforge.net>
1930
1931         Add initial working GUI mode DMH class implementation.
1932
1933         * src/dmh.h (DMH_SEVERITY_MASK): New manifest constant; define it.
1934         (DMH_DIGEST_MASK, DMH_COMPILE_DIGEST, DMH_DISPATCH_DIGEST): Likewise.
1935         (DMH_BEGIN_DIGEST, DMH_END_DIGEST): Redefine in terms of above.
1936
1937         * src/dmhcore.h: New header file; it declares...
1938         (dmhTypeGeneric): ...this abstract base class, factored from...
1939
1940         * src/dmh.cpp (dmhTypeGeneric): ...here, whence remove it; it is
1941         still required, thus include dmhcore.h so that it remains visible.
1942         (dmh_exception): Remove errant namespace qualifier from constructor.
1943         (dmhTypeGUI): Delete class declaration and original constructor.
1944         (dmh_init): Delete reference to dmhTypeGUI; replace by call to...
1945         (dmh_init_gui): ...this new static function; it is a stub which
1946         invokes a DLL import of the same name, to instantiate a dmhTypeGUI.
1947         (dmhTypeGUI::control, dmhTypeGUI::notify, dmhTypeGUI::printf): Delete
1948         original method stubs.
1949
1950         * src/guidmh.cpp: New file; it reimplements...
1951         (dmhTypeGUI): ...this class; declare it and implement its constructor.
1952         (dmh_init_gui): Provide its DLL exported implementation.
1953         (dmhTypeGUI::dispatch_message): New private method; add it to the
1954         class declaration and implement it; it is a helper method for...
1955         (dmhTypeGUI::control, dmhTypeGUI::notify): ...these; implement them.
1956         (dmhTypeGUI::printf): Provide a replacement stub.
1957
1958         * Makefile.in (GUIMAIN_OBJECTS): Add guidmh.OBJEXT
1959
1960         * src/guimain.h (AppWindowMaker::Create): New method; add it to the
1961         class declaration; it overrides the default Create() method inherited
1962         from WTK::MainWindowMaker
1963
1964         * src/pkgview.cpp (AppWindowMaker::Create): Implement it; it handles
1965         window class registration and dmhTypeGUI initialisation, in addition
1966         to the inherited CreateWindow() behaviour.
1967
1968         * src/guimain.cpp: Include dmh.h
1969         (WinMain): Add catch block for dmh_exception.  Remove window class
1970         registration request; it is now delegated to AppWindowMaker::Create()
1971
1972 2012-09-26  Keith Marshall  <keithmarshall@users.sourceforge.net>
1973
1974         Add .hgignore as tracked file.
1975
1976         * .hgignore: New file.
1977
1978 2012-09-25  Keith Marshall  <keithmarshall@users.sourceforge.net>
1979
1980         Defer generation of version.c until "make" time.
1981
1982         * version.c.in: Move it...
1983         * src/version.c.in: ...to here.
1984         (PACKAGE_NAME, PACKAGE_VERSION, COPYRIGHT_HOLDER, YEARS_OF_ISSUE):
1985         Change substitution field marker character from "@" to "%".
1986
1987         * configure.ac (AC_CONFIG_FILES): Remove version.c
1988
1989         * Makefile.in (TAG_SCRIPT): New macro, factored out from...
1990         (RC_SCRIPT): ...here, whence use it; also use it to implement...
1991         (VERSION_SCRIPT): ...this further new macro; use it in...
1992         (%.c): ...this generic template rule for version.c
1993         (time-stamp, %.time, %.tagged.time, %.tag): New generic build
1994         goals; use them to track package release progression via...
1995         (build.tag): ...this new intermediate; make it a pre-requisite...
1996         (guidata.OBJEXT, version.c): ...of these.
1997
1998 2012-09-21  Keith Marshall  <keithmarshall@users.sourceforge.net>
1999
2000         Implement framework for GUI sash window layout controller.
2001
2002         * configure.ac (AC_INIT): Bump version number to 0.6
2003         (CLI_RELEASE_CLASS): New AC_SUBST variable; default to "beta".
2004         (GUI_RELEASE_CLASS): New AC_SUBST variable; default to "alpha".
2005         (SNAPSHOT_CLASS): Recognise as user specified environent variable
2006         override for both CLI_RELEASE_CLASS and GUI_RELEASE_CLASS.
2007         (RC): New AC_CHECK_TOOL substitution variable name; it replaces...
2008         (WINDRES): ...this, as reference name for the resource compiler.
2009         (MINGW_AC_ASSERT_MISSING): Add AC_CHECK_HEADER traps for missing
2010         "lua-dev" and "wtklite-dev" support.
2011
2012         * Makefile.in (CLI_RELEASE_CLASS, GUI_RELEASE_CLASS): Use them.
2013         (BUILD_TAG, RC_SCRIPT, RC_INCLUDES): New macros; define and use...
2014         (RC): ...with this, to implement new target rule for compiling...
2015         (%.rc): ...resource definition files to %.OBJEXT objects.
2016         (GUIMAIN_OBJECTS, GUIMAIN_LIBS): New macros; define and use...
2017         (guimain.EXEEXT): ...to implement build rule for this.
2018         (LIBEXEC_PROGRAMS): Add guimain.EXEEXT
2019         (lastrites.EXEEXT): Use GUI_LDFLAGS.
2020         
2021         * src/guimain.h src/guimain.cpp src/guidata.rc: New files.
2022         * src/pkgview.cpp: New file.
2023
2024 2012-09-20  Keith Marshall  <keithmarshall@users.sourceforge.net>
2025
2026         Adjust incorrectly resolved 2012-09-14 merge from master.
2027
2028         * src/Makefile.in: Restore lost reference to guistub.cpp
2029
2030 2012-09-14  Keith Marshall  <keithmarshall@users.sourceforge.net>
2031
2032         Implement GUI hooks in "rites of passage" internal API.
2033
2034         * src/pkglock.h: New file; it adds the pkgLock() and pkgRelease()
2035         inline wrapper functions, through which the GUI application acquires
2036         and manages an exclusive access lock for the XML catalogue.
2037
2038         * src/rites.c (lockfile_name): Explicitly cast memory allocated for
2039         the returned name to (char *), so this may be embedded in C++ code.
2040         (pkgInitRites): Factor out lock acquisition failure diagnostics...
2041         (pkgLockFail): ...to this inline helper function; conditionally...
2042         [ifdef GUIMAIN_H]: ...provide one implementation for GUI use...
2043         [ifndef GUIMAIN_H]: ...and an alternative for CLI use.
2044
2045 2012-09-14  Keith Marshall  <keithmarshall@users.sourceforge.net>
2046
2047         Be case agnostic when matching shortcut targets.
2048
2049         * scripts/libexec/unlink.js [ref.TargetPath == chklink]: Apply
2050         toLowerCase() on both sides of the comparison.
2051
2052 2012-09-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
2053
2054         Note relocation of m4 when packaging source distribution.
2055
2056         * Makefile.in (SRCDIST_SUBDIRS): Refer to build-aux/m4, not m4.
2057
2058 2012-09-10  Keith Marshall  <keithmarshall@users.sourceforge.net>
2059
2060         Move guimain.cpp out of the way.
2061
2062         * src/guimain.cpp: Rename file as...
2063         * src/guistub.cpp: ...this; we want to keep current features for now,
2064         but to use the guimain.cpp name for main GUI application development.
2065         * Makefile.in: Adjust references accordingly.
2066
2067 2012-09-09  Keith Marshall  <keithmarshall@users.sourceforge.net>
2068
2069         Fix typo, and update licensing terms for embedded getopt.c
2070
2071         * src/getopt.c: Incorporate MIT/X style licence; update copyright
2072         notice, to reflect chronology of publication; correct degenerate RCS
2073         keyword usage in EOF marker comment.
2074
2075 2012-09-03  Keith Marshall  <keithmarshall@users.sourceforge.net>
2076
2077         Correct omission from copyright notice.
2078
2079         * src/pkgkeys.c: Add year 2012, to reflect 2012-09-02 update.
2080
2081 2012-09-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
2082
2083         Redefine paragraph_key with project global scope.
2084
2085         * src/pkgkeys.h (paragraph_key): Declare it.
2086         * src/pkgkeys.c (paragraph_key): Define it.
2087
2088         * src/pkgshow.cpp (pkgDirectoryViewer::EmitDescription): Delete
2089         function local definition; use global definition instead.
2090
2091 2012-09-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
2092
2093         Correct defect introduced by 2012-08-03 commit.
2094
2095         * src/approot.c (AppPathNameW): Add omitted 'else', so that tail
2096         pointer isn't moved after the APPROOT prefix is truncated.
2097
2098 2012-09-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
2099
2100         Remap Mercurial subrepository reference via local hg-git clone.
2101
2102         * .hgsub (build-aux): Point to ../build-aux; this must be a locally
2103         hosted hg clone of the git origin repository, and it must pre-exist as
2104         a sibling of any created hg clone of the mingw-get repository.
2105
2106         * .hgsubstate: New file, automatically generated by Mercurial.
2107
2108 2012-08-31  Keith Marshall  <keithmarshall@users.sourceforge.net>
2109
2110         Add Mercurial subrepository reference for build-aux.
2111
2112         * .hgsub: New file.
2113
2114 2012-08-03  Keith Marshall  <keithmarshall@users.sourceforge.net>
2115
2116         More code refactoring, to facilitate GUI implementation.
2117
2118         * src/clistub.c (AppPathNameW): Factor out; relocate to...
2119         * src/approot.c: ...this new file; it reproduces the original
2120         implementation, modified to also consider any "libexec" directory in
2121         the executable path as the first child of the APPROOT prefix.  Note
2122         also, that no longer terminates APPROOT with a trailing backslash.
2123
2124         * src/approot.h: New file; it trivially declares the prototype for...
2125         (AppPathNameW): ...this relocated extern "C" function.
2126
2127         * src/clistub.c (main): Adapt usage of AppPathNameW(), to reinstate
2128         trailing backslash on assignment to APPROOT environment variable.
2129
2130         * Makefile.in (CLI_EXE_OBJECTS): New macro; define it as the original
2131         set of prerequisites, with the addition of approot.OBJEXT, for...
2132         (mingw-get.EXEEXT): ...this; use it.
2133
2134         * src/rites.c: Add comment regarding APPROOT usage.
2135
2136 2012-08-02  Earnie Boyd  <earnie@users.sourceforge.net>
2137
2138         Find missing.m4 in build-aux/m4 directory.
2139
2140         * aclocal.m4: Change path  m4/missing.m4 to build-aux/m4/missing.m4.
2141
2142 2012-07-31  Earnie Boyd  <earnie@users.sourceforge.net>
2143
2144         Add build-aux as a submodule.
2145         Move .cvsignore to .gitignore.
2146
2147         * .gitmodules: New file.
2148         * build-aux: New submodule directory.
2149         * .cvsignore: Remove.
2150         * .gitignore: New file.
2151
2152 2012-07-13  Keith Marshall  <keithmarshall@users.sourceforge.net>
2153
2154         Disable globbing of command line arguments.
2155
2156         * src/clistub.c (_CRT_glob): Define and initialise to zero; we don't
2157         need globbing, and it may cause case transliteration of case-sensitive
2158         action keywords, when a file system entity with a case-insensitively
2159         matching name exists.
2160
2161 2012-06-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
2162
2163         Refactor API to facilitate implementation of GUI ListView hooks.
2164
2165         * src/pkgkeys.h (title_key, description_key): Declare them.
2166         * src/pkgkeys.c (title_key, description_key): Define them; relocate...
2167         * src/pkgshow.cpp (pkgDirectoryViewer::EmitDescription): ...from here.
2168         (pkgXmlDocument::CalalogueAllPackages): New public method; factor...
2169         (pkgXmlDocument::DisplayPackageInfo): ...from here, whence use it.
2170         (pkgDirectoryViewerEngine::EnumerateComponents): New private method;
2171         implement as a concrete method of this abstract base class; factor...
2172         (pkgDirectoryViewer::Dispatch): ...from original inline implementation
2173         within this method of the concrete derived class, whence use it.
2174         (pkgDirectoryViewerEngine, pkgDirectory): Factor class declarations...
2175         * src/pkglist.h: ...into this new header file; include it.
2176
2177         * src/pkgbase.h (pkgDirectory): Add forward class declaration.
2178         (pkgXmlDocument::CatalogueAllPackages): Declare it.
2179
2180 2012-05-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
2181
2182         Update help text to document package version selection capability.
2183
2184         * src/clistub.c (help_text): Add description of command line syntax
2185         which may be used to specify an alternative to the default package
2186         version selection, for install and upgrade actions.
2187
2188 2012-05-01  Keith Marshall  <keithmarshall@users.sourceforge.net>
2189
2190         Support options set by preferences assigned within profile.xml
2191
2192         * xml/profile.xml (preferences): New element; add defaults.
2193
2194         * src/pkgopts.h (OPTION_ASSIGNED_FLAGS, OPTION_DESKTOP_ARGS):
2195         (OPTION_START_MENU_ARGS): New enumerated constants; define them.
2196         (OPTION_DESKTOP, OPTION_START_MENU): New manifest constants.
2197         (OPTION_ASSIGNED, mark_option_as_set): New macros; define them.
2198         (pkgOpts::GetValue, pkgOpts::GetString): Restrict look-up index to
2199         least significant 12-bits of full-range index value.
2200         (pkgOpts::IsSet): New inline method; implement it.
2201
2202         * src/clistub.c (main): Reimplement --desktop and --start-menu
2203         options; each now becomes an OPTION_GENERIC optarg string store.
2204         (set_script_hook): Function no longer used; delete it; delegate to...
2205         * src/pkgbase.h (pkgXmlDocument::EstablishPreferences): ...this new
2206         method; declare it, providing its implementation in...
2207         * src/pkgopts.cpp: ...this new file; invoke it...
2208         * src/climain.cpp (climain): ...here.
2209
2210         * Makefile.in (CORE_DLL_OBJECTS): Add pkgopts.$OBJEXT
2211
2212 2012-04-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
2213
2214         Correct sequence of installation/removal progress reporting.
2215
2216         * src/pkgunst.cpp (pkgRemove): Delay output of "removing package ..."
2217         message, until after pre-remove hooks have run; this ensures that any
2218         output from the pre-remove hook scripts appears in correct sequence.
2219
2220         * src/pkginst.cpp (pkgInstall): Likewise, for "installing package ..."
2221         message, in relation to pre-install hooks.
2222
2223 2012-04-26  Keith Marshall  <keithmarshall@users.sourceforge.net>
2224
2225         mingw-get-0.5-beta-20120426-1 released.
2226
2227         * configure.ac (AC_INIT): Version number updated.
2228         * srcdist-doc/NEWS.in: Updated; bug-fix notifications added.
2229         * All files (r0-5-beta-20120426-1): Tag assigned.
2230
2231 2012-04-25  Keith Marshall  <keithmarshall@users.sourceforge.net>
2232
2233         Interim work-around for MinGW-Bug #3520864.
2234
2235         * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
2236         [DEBUG_TRACE_DEPENDENCIES]: Add request flags to messages reporting
2237         the scheduling of installation activities.
2238
2239         * src/pkgexec.cpp (pkgXmlDocument::Schedule): Add temporary diagnostic
2240         hooks to confirm request flags; bracket them with #if 0 ... #endif.
2241         [ACTION_PRIMARY && pre-scheduled request]: Don't trash request flags
2242         when updating the pre-existing action item data.
2243
2244 2012-04-23  Keith Marshall  <keithmarshall@users.sourceforge.net>
2245
2246         Fix MinGW-Bug #3520488
2247
2248         * src/pkgexec.cpp (action_code): Check for, and reject NULL pointer
2249         passed as action request string; also reject ambiguous abbreviations.
2250
2251         * src/climain.cpp (climain): Discriminate between NULL pointer and
2252         other forms of invalid action keyword matching failures.
2253
2254 2012-04-16  Keith Marshall  <keithmarshall@users.sourceforge.net>
2255
2256         mingw-get-0.5-beta-20120416-1 released.
2257
2258         * configure.ac (AC_INIT): Version number updated.
2259         (YEARS_OF_ISSUE): 2012 added.
2260
2261         * srcdist-doc/NEWS.in: Updated; release notes added.
2262         * All files (r0-5-beta-20120416-1): Tag assigned.
2263
2264 2012-04-16  Keith Marshall  <keithmarshall@users.sourceforge.net>
2265
2266         Assign icon to temporary GUI executable file.
2267
2268         * icons/pkgicon.ico: New file, shamelessly copied from synaptic.
2269
2270         * configure.ac: Add identification for windres; propagate it to...
2271         * Makefile.in: ...here; use it to compile object from icon files...
2272         (srcdir/icons) [%.ico]: ...from this new vpath location.
2273         (gui.exe): Link to compiled icon's object file.
2274         (SRCDIST_SUBDIRS): Add icons directory.
2275
2276 2012-04-15  Keith Marshall  <keithmarshall@users.sourceforge.net>
2277
2278         Ensure that package removal requests are correctly scheduled.
2279
2280         * src/pkgdeps.cpp (pkgXmlDocument::Schedule) [ACTION_REMOVE]: Schedule
2281         as a distinct case, when the installed version is not the most recent
2282         available release; consideration of this distinct case was previously
2283         erroneously overlooked.
2284
2285 2012-04-15  Keith Marshall  <keithmarshall@users.sourceforge.net>
2286
2287         Correct scheduling of new prerequisites when upgrading.
2288
2289         * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
2290         [ACTION_UPGRADE && ACTION_PRIMARY]: Don't exclude scheduling for this
2291         case of a prerequisite with no previously installed version; it may be
2292         a delegated primary requirement of a meta-package.
2293
2294 2012-04-15  Keith Marshall  <keithmarshall@users.sourceforge.net>
2295
2296         Don't require subsystem within user specified version bounds.
2297
2298         * src/pkgdeps.cpp (pkgActionItem::ApplyBounds): Automatically consider
2299         "*" wild-card matches for subsystem, if user doesn't specify it.
2300
2301 2012-04-09  Charles Wilson  <mingw@cwilson.fastmail.fm>
2302
2303         Fix missing include.
2304
2305         * src/pkgdeps.cpp (pkgopts.h): Include unconditionally; do not rely...
2306         (debug.h) [DEBUG_TRACE_DYNAMIC]: ...on this, for indirect inclusion.
2307
2308 2012-04-07  Keith Marshall  <keithmarshall@users.sourceforge.net>
2309
2310         Correct a srcdist package construction defect.
2311
2312         * Makefile.in (srcdist) [for SRCDIST_SUBDIRS]: Use...
2313         (mkinstalldirs): ...this, to create package image directories.
2314
2315 2012-04-06  Keith Marshall  <keithmarshall@users.sourceforge.net>
2316
2317         Add scripting hooks to support creation of MS-Windows shortcuts.
2318
2319         * src/clistub.c (progname): New static variable with file scope; it
2320         replaces former automatic variable, of same name, in main() function.
2321         (set_script_hook): New static function; implement it, and call it...
2322         (main) [--desktop, --start-menu]: ...from here, to interpret these new
2323         command line options; they are propagated to scripts via...
2324         (MINGW_GET_DESKTOP_HOOK, MINGW_GET_START_MENU_HOOK): ...these new
2325         internally assigned environment variables.
2326         (help_text): Document --desktop and --start-menu.
2327
2328         * scripts/libexec/setup.lua scripts/libexec/wsh.lua: New lua module
2329         files; they implement a lua scripting API; they delegate requests to
2330         the Windows Scripting Host, via either of this pair of...
2331         * scripts/libexec/shlink.js: ...new script to create shortcuts, or...
2332         * scripts/libexec/unlink.js: ...its complement, to remove them.
2333         * Makefile.in (SRCDIST_SUBDIRS): Integrate them; enumerate them in...
2334         (scripts_srcdir, LIBEXEC_SCRIPTS): ...these new macros; use to...
2335         (install): ...install them.
2336
2337 2012-04-06  Keith Marshall  <keithmarshall@users.sourceforge.net>
2338
2339         Initialise $LUA_PATH to locate mingw-get specific scripts.
2340
2341         * src/pkgexec.cpp (lua_path_init): New static inline function.
2342         (pkgXmlNode::DispatchScript): Call it on first time invocation, per...
2343         [lua_path_setup == false]: ...this static function local variable.
2344
2345 2012-04-01  Keith Marshall  <keithmarshall@users.sourceforge.net>
2346
2347         Support installation of releases other than latest available.
2348
2349         * src/pkgbase.h (pkgActionItem::ApplyBounds): New method; declare it.
2350
2351         * src/pkgdeps.cpp (pkgActionItem::ApplyBounds): Implement it.
2352         (pkgXmlDocument::Schedule): Use it to interpret user specified version
2353         bounds, and apply them to scheduled action items.  Having used...
2354         (get_version_bounds): ...this new static inline function...
2355         ...to acquire any user specified version bounds, check that they can
2356         be honoured, before scheduling any action; delegate diagnostics to...
2357         (dmh_notify_no_match): ...this new local helper function, to report
2358         when they can't, and to indicate viable alternatives.
2359
2360 2012-03-26  Keith Marshall  <keithmarshall@users.sourceforge.net>
2361
2362         Rework previously inadequate solution for MinGW-Bug #3424406
2363
2364         * src/pkgtask.h: Update copyright notice for current year.
2365         (ACTION_MAY_SELECT): New manifest constant for use as flag; define it.
2366         * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit): Assign it.
2367
2368         * src/pkgdeps.cpp (STATIC_INLINE): New macro; define it.
2369         (ACTION_RECURSIVE_REINSTALL, ACTION_RECURSIVE_UPGRADE):
2370         (ACTION_RECURSIVE_REPLACE): New action code constants; define them.
2371         (with_flags): Original macro deleted; replace it with...
2372         (with_request_flags): ...this new static inline function.
2373         (if_noref, if_match, if_alias, with_download, promote): New static
2374         inline functions; they replace original macros of the same names.
2375         (is_recursive_action): Function no longer used; delete it.
2376         (action_class): New static inline function; implement and use it...
2377         (pkgXmlDocument::ResolveDependencies): ...here, to identify scheduling
2378         requirements for packages which are already installed; depends on...
2379         (request_mode): ...this new automatic variable; it augments and...
2380         (recursive_mode): ...replaces this one; rename it accordingly.
2381         (viable): Automatic variable no longer used; delete it.
2382         [DEBUG_REQUEST & DEBUG_TRACE_DEPENDENCIES]: Emit notification for
2383         scheduled installation.
2384         (pkgXmlDocument::Schedule): Add an implied...
2385         (ACTION_REMOVE): ...when scheduling a reinstallation.
2386
2387 2012-03-13  Keith Marshall  <keithmarshall@users.sourceforge.net>
2388
2389         Address reinstallation issues per MinGW-Bugs #3416013 and #3424406
2390
2391         * src/pkgexec.cpp (reinstall_action_scheduled): New inline function.
2392         (pkgActionItem::Execute): Use it to identify cases where...
2393         [--reinstall]: ...implicit package removal is required, and also to
2394         facilitate improved progress reporting in such cases.
2395
2396         * src/pkgdeps.cpp (is_recursive_action): New inline function.
2397         (pkgXmlDocument::ResolveDependencies): Use it in tandem with...
2398         (recursive_mode): ...this new automatic variable, so as to handle...
2399         [meta-package dependency]: ...implicit recursion, to extend the scope
2400         of the current action to the first level of non-meta dependency.
2401         [install --reinstall]: ...reinstall original version of nominated
2402         package, ignoring any available upgrade; extend scope of operation...
2403         [install --reinstall --recursive]: ...to all prerequisite packages.
2404         [upgrade --reinstall]: ...upgrade nominated package if possible; if no
2405         upgrade available, reinstall current version; extend scope...
2406         [upgrade --reinstall --recursive]: ...to all prerequisites.
2407         (pkgXmlDocument::Schedule): Partially revert 2012-03-05 change;
2408         reimplement selectively; never promote...
2409         [install, install --reinstall]: ...these operations to become...
2410         [upgrade]: ...this, even if available; issue diagnostic instead.
2411
2412 2012-03-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
2413
2414         Rationalise implementation and usage of --all-related option.
2415
2416         * src/pkgopts.h: Update copyright notice; add year 2012.
2417         (OPTION_RECURSIVE, OPTION_ALL_RELATED): New constants; define them.
2418         (pkgOpts::SetFlags): New method; declare and implement it inline.
2419
2420         * src/clistub.c: Update copyright notice; add year 2012.
2421         (options) [recursive, all-related]: Redefine in terms of...
2422         (OPTION_RECURSIVE, OPTION_ALL_RELATED): ...these.
2423         (help_text): Update appropriately.
2424
2425         * src/climain.cpp: Update copyright notice; add year 2012.
2426         (climain) [all-related]: Associate its use exclusively with...
2427         (source, licence): ...these package processing operations; use...
2428         (pkgOptions::SetFlags): ...this, to propagate its effect.
2429
2430 2012-03-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
2431
2432         Don't report failed downloads in respect of virtual packages.
2433
2434         * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): Clear...
2435         [ACTION_DOWNLOAD]: ...this status flag for any package identified as
2436         a meta-package; this corrects a further regression introduced with the
2437         2011-11-09 update, whereby pending download requests for such virtual
2438         packages were not cancelled, resulting in failure to install due to
2439         failed downloads, when no download is actually required.
2440
2441 2012-03-05  Keith Marshall  <keithmarshall@users.sourceforge.net>
2442
2443         Don't suppress implied downloads for top-level actions.
2444
2445         * src/pkgdeps.cpp: Update copyright notice for new year.
2446         (pkgXmlDocument::Schedule) [!OPTION_PRINT_URIS]: Ensure that...
2447         [ACTION_DOWNLOAD]: ...this is enabled, when scheduling an install or
2448         an upgrade action for a package specified as a command line argument;
2449         this corrects a regression introduced on 2011-11-09, which resulted in
2450         ACTION_DOWNLOAD being enabled only for second tier dependent actions.
2451
2452 2012-02-20  Keith Marshall  <keithmarshall@users.sourceforge.net>
2453
2454         Copyright notice updates.
2455
2456         * Makefile.in: Add 2012 as year of republication.
2457         * src/pkgbase.h src/sysroot.cpp src/pkgexec.cpp: Likewise.
2458         * src/rites.c src/pkginst.cpp src/pkgunst.cpp: Likewise.
2459
2460 2012-02-20  Keith Marshall  <keithmarshall@users.sourceforge.net>
2461
2462         Fix ill-advised optimisation in $APPROOT environment lookup.
2463
2464         * src/rites.c (approot_path): Don't save result of getenv() lookup
2465         across calls; the environment may have been moved in the interim,
2466         making the original result invalid on any subsequent call.  Also,
2467         prefer MS-Windows style (with backslashes) for default.
2468         (pkgLastRites): Report full path name for lastrites.exe, on execl()
2469         failure, rather than only the path relative to $APPROOT.
2470
2471 2012-02-20  Keith Marshall  <keithmarshall@users.sourceforge.net>
2472
2473         Propagate sysroot path settings to scripts via the environment.
2474
2475         * src/pkgbase.h (PKG_PUTENV_FLAGS_MASK): New constant; it maps...
2476         (PKG_PUTENV_DIRSEP_MSW, PKG_PUTENV_DIRSEP_POSIX): ...these flags...
2477         (PKG_PUTENV_SCAN_VARNAME, PKG_PUTENV_NAME_TOUPPER): ...and these;
2478         they are used to specify optional behavioural choices for...
2479         (pkgPutEnv): ...this new function; declare it.
2480
2481         * src/sysroot.cpp (pkgPutEnv): Implement it.
2482         (pkgXmlDocument::LoadSystemMap): Use it to add $SUBSYSTEM_SYSROOT path
2483         specifications to the environment, for each named subsystem associated
2484         with the active system map.
2485
2486         * src/pkgexec.cpp (pkgActionItem::Execute): Invoke pkgPutEnv() prior
2487         to processing of each package install, upgrade, or remove action, so
2488         as to update environment variable $SYSROOT to represent the sysroot
2489         path for each package processed, during execution of script hooks.
2490
2491 2012-02-17  Keith Marshall  <keithmarshall@users.sourceforge.net>
2492
2493         Implement hooks to support lua scripting interface.
2494
2495         * Makefile.in (LIBS): Add -llua.
2496
2497         * src/pkgbase.h (pkgXmlNode::InvokeScript): New method; declare it
2498         as private, and provide overloaded public inline API implementation.
2499         (pkgXmlNode::DispatchScript): New private method; declare it.
2500
2501         * src/pkgexec.cpp (pkgXmlNode::InvokeScript): Implement it.
2502         (pkgXmlNode::DispatchScript): Likewise; it directs InvokeScript to...
2503         (pkgInvokeScript): ...this new static function; implement it.
2504
2505         * src/pkginst.cpp (pkgInstall): Call InvokeScript as appropriate.
2506         * src/pkgunst.cpp (pkgRemove): Likewise.
2507
2508 2011-11-24  Keith Marshall  <keithmarshall@users.sourceforge.net>
2509
2510         Avoid implicit cast warnings; reported by Robert Hartmann.
2511
2512         * src/dmh.h (DMH_BEGIN_DIGEST): Explicitly cast to uint16_t.
2513         (DMH_END_DIGEST): Likewise.
2514
2515 2011-11-09  Keith Marshall  <keithmarshall@users.sourceforge.net>
2516
2517         Avoid unnecessary downloads for already installed packages.
2518
2519         * src/pkginet.cpp (pkgActionItem::DownloadSingleArchive): Require
2520         external scheduling of ACTION_DOWNLOAD; cancel the scheduled request
2521         on completion, or when not required due to pre-existing local copy.
2522
2523         * src/climain.cpp (pkgActionItem::GetSourceArchive): Must always be
2524         prepared to download the associated archive; enable ACTION_DOWNLOAD.
2525
2526         * src/pkgexec.cpp (pkgActionItem::Schedule) [OPTION_REINSTALL]:
2527         May need to download the archive, even when the requested package was
2528         previously installed; schedule ACTION_DOWNLOAD to enable this.
2529
2530         * src/pkgdeps.cpp (promote): Macro redefined in terms of...
2531         (with_flags, with_download): ...these new macros; implement and...
2532         (pkgXmlDocument::ResolveDependencies): ...use them to enable/schedule
2533         ACTION_DOWNLOAD only when expected that it may be necessary.
2534
2535 2011-11-06  Keith Marshall  <keithmarshall@users.sourceforge.net>
2536
2537         Fix packaging anomalies for source and licence distributions.
2538
2539         * Makefile.in (licdist): Link README from ${CURDIR}, not from '..'.
2540         (srcdist): Explicitly link pkginfo.c from ${CURDIR} to src/pkginfo,
2541         rather than as implied prerequisite; this avoids a bogus attempt to
2542         link srcdist-doc into src/pkginfo.
2543
2544 2011-11-06  Keith Marshall  <keithmarshall@users.sourceforge.net>
2545
2546         Bump version number for subsequent CVS snapshots.
2547
2548         * configure.ac (AC_INIT): Set version to 0.4-alpha-1.1cvs
2549
2550 2011-11-06  Keith Marshall  <keithmarshall@users.sourceforge.net>
2551
2552         mingw-get-0.4-mingw32-alpha-1 released.
2553
2554         * configure.ac (AC_INIT): Adjust version number.
2555         * srcdist-doc/NEWS.in: Updated; document new features and bugs fixed.
2556         * All files (r0-4-alpha-1): Tag assigned.
2557
2558 2011-11-04  Keith Marshall  <keithmarshall@users.sourceforge.net>
2559
2560         Don't upgrade installed DLL components to incompatible version.
2561         Provide clearer diagnostics for failed requests on implied packages.
2562
2563         * src/pkgdeps.cpp (is_abi_compatible): New static inline function.
2564         (pkgXmlDocument::ResolveDependencies) [is_installed]: Use it.
2565         (pkgXmlDocument::ResolveDependencies) [DEBUG_TRACE_DEPENDENCIES]:
2566         Clean up and improve diagnostic message content and formatting.
2567         (pkgXmlDocument::Schedule) [(upgrade || remove) && ! installed]:
2568         Downgrade diagnostic to WARNING, for implicitly specified component
2569         packages; provide additional explanatory diagnostics.
2570
2571         * src/pkgspec.cpp (pkgSpecs::VersionComparator):
2572         * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit):
2573         [DEBUG_TRACE_DEPENDENCIES]: Eliminate diagnostic noise.
2574
2575 2011-10-11  Keith Marshall  <keithmarshall@users.sourceforge.net>
2576
2577         Fix --download-only vs. --reinstall conflict.
2578
2579         * src/pkgexec.cpp (pkgActionItem::Execute) [OPTION_DOWNLOAD_ONLY]:
2580         Test for explicit inequality, rather than equality to zero; since the
2581         2011-08-30 update, which made --download-only also imply --reinstall,
2582         it will test as non-zero when --reinstall is specified, even though
2583         --download-only is not.
2584
2585 2011-10-07  Keith Marshall  <keithmarshall@users.sourceforge.net>
2586
2587         Add support for non-specific upgrade of all installed packages.
2588
2589         * src/pkgbase.h (pkgXmlDocument::RescheduleInstalledPackages):
2590         New public method; declare it.
2591
2592         * src/pkgdeps.cpp (pkgXmlDocument::RescheduleInstalledPackages):
2593         Implement it.
2594
2595         * src/climain.cpp (climain) [ACTION_UPGRADE && argc < 2]: Invoke
2596         pkgXmlDocument::RescheduleInstalledPackages() to schedule the upgrade
2597         request for all packages currently registered as installed.
2598
2599 2011-10-06  Keith Marshall  <keithmarshall@users.sourceforge.net>
2600
2601         Implement "source" and "licence" operations.
2602
2603         * src/pkgopts.h (OPTION_ALL_DEPS): New option code; define it.
2604         * src/clistub.c (main): Associate it with...
2605         (all-related, recursive): ...these synonymous option names...
2606         (options): ...defined within this local structured array.
2607         (help_text): Document them; also document "source" and "licence" as
2608         new operations which may be specified on the command line.
2609
2610         * src/pkgtask.h (action_source, action_licence): Enumerate them.
2611         (ACTION_SOURCE, ACTION_LICENCE): Define their manifest values, and...
2612         * src/pkgexec.cpp (action_name): ...associate with operation names.
2613
2614         * src/pkgbase.h (pkgActionItem::GetScheduledSourceArchives):
2615         (pkgActionItem::GetSourceArchive, pkgXmlDocument::GetSourceArchive):
2616         New public methods; declare them for external implementation.
2617         (pkgXmlDocument::GetScheduledSourceArchives): New public method;
2618         implement it as inline.
2619
2620         * src/climain.cpp (pkgProcessedArchives): New pointer to stack of...
2621         (pkgArchiveNameList): ...this new locally defined class; implement it.
2622         (pkgActionItem::GetSourceArchive, pkgXmlDocument::GetSourceArchive):
2623         (pkgActionItem::GetScheduledSourceArchives): Implement them.
2624         (climain): Add invocation hooks.
2625
2626 2011-10-04  Keith Marshall  <keithmarshall@users.sourceforge.net>
2627
2628         Establish mapping from release tarname to source tarname.
2629
2630         * src/pkgreqs.cpp (inherited_requirement): New inline function.
2631         (requirement): Use it; adapt to propagate release archive format and
2632         compression type fields, in addition to version fields, when resolving
2633         "%" wildcard matches within the template for the resultant tarname.
2634         (pkgAssociateName): New public function; implement it for use by...
2635         * src/pkgname.cpp (pkgResolvedName): ...this new inline function.
2636         (pkgXmlNode::SourceArchiveName): Use it; adapt to accept a category
2637         selector, so it may resolve source or licence tarnames on demand.
2638
2639         * src/pkgbase.h (pkgXmlNode::SourceArchiveName): Modify declaration;
2640         add category selector argument to support source/licence choice.
2641
2642 2011-10-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
2643
2644         Facilitate downloads using diverse cache directories.
2645
2646         * src/pkgbase.h (pkgActionItem::DownloadSingleArchive): New private
2647         method; declare it; it handles the download for a single named archive
2648         file, and stores it in a specifed cache directory.
2649
2650         * src/pkginet.cpp (pkgActionItem::DownloadSingleArchive): Implement
2651         it; factor its code from the original implementation within...
2652         (pkgActionItem::DownloadArchiveFiles): ...this; adapt to use it.
2653
2654 2011-10-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
2655
2656         Establish cache directory for source archive downloads.
2657
2658         * src/mkpath.h (pkgSourceArchivePath): New function; declare it.
2659         * src/mkpath.c (pkgSourceArchivePath): Implement it.
2660
2661 2011-08-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
2662
2663         Support archive extraction to arbitrary destination without install.
2664
2665         * src/pkgproc.h (pkgArchiveProcessor::ExtractFile): New virtual
2666         helper method for use, as core helper, by derived classes; declare it.
2667         (pkgArchiveProcessor::CreateExtractionDirectory): Likewise.
2668         (pkgTarArchiveProcessor): Declare overloaded default constructor.
2669         (pkgTarArchiveExtractor): New class definition; it is derived from
2670         pkgTarArchiveProcessor.
2671
2672         * src/tarproc.cpp (pkgArchiveProcessor::ExtractFile): Implement it.
2673         (pkgArchiveProcessor::CreateExtractionDirectory): Likewise.
2674         (pkgTarArchiveExtractor): Implement constructor, together with...
2675         (pkgTarArchiveExtractor::ProcessDirectory): ...this method, and also...
2676         (pkgTarArchiveExtractor::ProcessDataStream): ...this one; these are
2677         declared as abstract, in the pkgTarArchiveProcessor base class.
2678         (pkgTarArchiveInstaller::ProcessDirectory): Simplify; it now delegates
2679         directory creation to pkgArchiveProcessor::CreateExtractionDirectory.
2680         (pkgTarArchiveInstaller::ProcessDataStream): Simplify; delegate file
2681         handling to pkgArchiveProcessor::ExtractFile, as appropriate.
2682
2683 2011-08-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
2684
2685         Make --download-only and --print-uris imply --reinstall.
2686
2687         * src/pkgopts.h (OPTION_PRINT_URIS): Adjust definition.
2688         (OPTION_DNLOAD_ONLY, OPTION_DOWNLOAD_ONLY): Likewise.
2689
2690 2011-08-07  Keith Marshall  <keithmarshall@users.sourceforge.net>
2691
2692         Implement --download-only and --print-uris options.
2693
2694         * src/pkgopts.h (OPTION_DOWNLOAD_ONLY, OPTION_PRINT_URIS):
2695         New manifest constants, identifying flag bits; define them.
2696         (OPTION_DNLOAD_ONLY): Likewise; an alias for OPTION_DOWNLOAD_ONLY.
2697
2698         * src/pkgbase.h (pkgActionItem::PrintURI): New private method.
2699         * src/pkginet.cpp: Implement it.
2700
2701         * src/clistub.c (options): Add "download-only" and "print-uris".
2702         (help_text): Document them.
2703         * src/pkgexec.cpp (pkgActionItem::Execute): Process them.
2704
2705 2011-07-29  Keith Marshall  <keithmarshall@users.sourceforge.net>
2706
2707         mingw-get-0.3-mingw32-alpha-2.1 released.
2708
2709         * configure.ac (AC_INIT): Adjust version number.
2710         * srcdist-doc/NEWS.in: Updated; document bugs fixed.
2711         * All files (r0-3-alpha-2-1): Tag assigned.
2712
2713 2011-07-29  Keith Marshall  <keithmarshall@users.sourceforge.net>
2714
2715         Adopt tar.xz as default package archive format.
2716
2717         * Makefile.in (TARZIP, TAREXT): New macros; define them.
2718         (bindist, licdist, srcdist): Use them in place of hardcoded tar.gz
2719         (maintainer-clean): Expunge tar files of any compression format.
2720
2721 2011-07-27  Keith Marshall  <keithmarshall@users.sourceforge.net>
2722
2723         Correct handling of release status in requirements specifications.
2724
2725         * src/debug.h (DEBUG_TRACE_DEPENDENCIES): New tracing hook; define it.
2726         * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit): Use it; add
2727         function entry/exit tracing report hooks.
2728         * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): Likewise;
2729         also add internal trace point reporting, which may also require...
2730         (show_required): ...this new static inline DEBUG_INVOKED function.
2731
2732         * src/pkgreqs.cpp (requirement): Propagate release status and release
2733         reference index fields from requirer, when package version requirement
2734         is specified by a '%' token, and no explicit release status override
2735         is included in the requirement specification.
2736
2737         * src/pkgspec.cpp (is_wildcard_spec): New static inline helper.
2738         (pkgSpecs::VersionComparator): Use it to identify any package version
2739         specification which may require the extension of a wildcard match, to
2740         span the package version and release status fields; also add tracing
2741         hooks, triggered on DEBUG_TRACE_DEPENDENCIES, to facilitate debugging.
2742
2743 2011-06-18  Keith Marshall  <keithmarshall@users.sourceforge.net>
2744
2745         Avoid accidental RCS keyword substitutions.
2746
2747         * Makefile.in (DOLLAR): New macro; define it.
2748         (readme.txt, readme.txt.in): Use it, where unexpanded RCS Id keyword
2749         matching is intended.
2750
2751 2011-06-18  Keith Marshall  <keithmarshall@users.sourceforge.net>
2752
2753         Mercurial support revisited.
2754
2755         * .cvsignore (.hgtags): Add to CVS untracked list.
2756
2757 2011-06-18  Keith Marshall  <keithmarshall@users.sourceforge.net>
2758
2759         Update readme.txt ID tag-line to track NEWS rather than README.
2760
2761         * Makefile.in (readme.txt.in): New rule; implement it.
2762         (readme.txt.tag): Likewise; this implements the tag-line tracking.
2763         (readme.txt): Rule redefined in terms of the preceding pair.
2764
2765 2011-06-17  Keith Marshall  <keithmarshall@users.sourceforge.net>
2766
2767         mingw-get-0.3-mingw32-alpha-2 released.
2768
2769         * configure.ac (AC_INIT): Adjust version number.
2770         * srcdist-doc/NEWS.in: Updated; document new features and bugs fixed.
2771         * All files (r0-3-alpha-2): Tag assigned.
2772
2773 2011-06-15  Keith Marshall  <keithmarshall@users.sourceforge.net>
2774
2775         Add internal documentation for --reinstall option.
2776
2777         * src/clistub.c (help_text): Add description for "--reinstall".
2778
2779 2011-06-14  Keith Marshall  <keithmarshall@users.sourceforge.net>
2780
2781         Support use of Mercurial within a CVS working copy.
2782
2783         * .cvsignore (.hg, .hgignore): Don't have CVS track these.
2784
2785 2011-06-13  Keith Marshall  <keithmarshall@users.sourceforge.net>
2786
2787         Implement --reinstall option.
2788
2789         * src/pkgopts.h (OPTION_REINSTALL): New macro; define it.
2790         (OPTION_GENERIC, OPTION_SHIFT_MASK): Likewise.
2791         (OPTION_EXTRA_FLAGS): New field; declare it.
2792
2793         * src/clistub.c (options): Add "reinstall".
2794         (OPTION_GENERIC): Use it where appropriate; within its scope...
2795         (OPTION_STORAGE_CLASS): Improve descriptive comments; add handling for
2796         default case of flag type options requiring an alignment shift.
2797
2798         * src/pkgexec.cpp: Remove previous "always reinstall" kludge.
2799         (pkgOptionSelected, PKG_OPTION_REINSTALL): Remove obsolete macros.
2800         (pkgActionItem::Execute): Check for "upgrade" request on any package
2801         which is already up to date; report this state, otherwise...
2802         [OPTION_REINSTALL || ACTION_UPGRADE]: Mark package as "removed", to
2803         avoid bail-out on "package already installed", when calling...
2804         (pkgInstall): ...this.
2805
2806 2011-06-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
2807
2808         Don't require -vv to report progress of update operation.
2809
2810         * src/pkgbind.cpp (pkgRepository::GetPackageList): Eliminate all
2811         basename() calls; `dname' already tells us what it should return.
2812         [update]: Report progress, irrespective of verbosity setting.
2813
2814 2011-06-11  Keith Marshall  <keithmarshall@users.sourceforge.net>
2815
2816         Fix MinGW-Bug #3313806.
2817
2818         * src/pkginfo/pkginfo.l (CMS_KEYWORDS): Do not match them within the
2819         PACKAGE_NAME field; this avoids misinterpretation as a release status
2820         qualifier when intended as part of the package name, as in msys-cvs.
2821
2822 2011-06-07  Keith Marshall  <keithmarshall@users.sourceforge.net>
2823
2824         Provisional correction for MinGW-Bug #3309438.
2825
2826         * src/debug.h [DEBUGLEVEL == 0]: Provide defaults for...
2827         (DEBUG_ENABLED, DEBUG_REQUEST): ...these macros.
2828
2829         * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDirectory):
2830         (pkgTarArchiveInstaller::ProcessDataStream): Use DEBUG_REQUEST to
2831         enable runtime trace activation for previous compile time choices.
2832
2833 2011-05-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
2834
2835         mingw-get-0.3-mingw32-alpha-1 released.
2836
2837         * configure.ac (AC_INIT): Adjust version number.
2838         * srcdist-doc/NEWS.in: Updated; document new features.
2839         * All files (r0-3-alpha-1): Tag assigned.
2840
2841 2011-05-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
2842
2843         Support assignment of DEBUGLEVEL at configure time.
2844
2845         * configure.ac (DEBUGLEVEL): Declare as a precious variable, using
2846         AC_ARG_VAR; also declare with AC_SUBST, to ensure it is initialised.
2847
2848         * Makefile.in (DEBUGLEVEL): Let AC_SUBST assign it.
2849
2850 2011-05-29  Keith Marshall  <keithmarshall@users.sourceforge.net>
2851
2852         Work around bugs in MinGW and GNU getopt_long_only() implementations.
2853
2854         * src/getopt.c: New file; this is a free-standing replacement for any
2855         implementation provided by system libraries.  We will always use this
2856         to ensure correct operation irrespective of system bugs; (different
2857         bug manifestations have been identified in the stock MinGW and GNU
2858         implementations).
2859
2860         * Makefile.in (mingw-get.EXEEXT): Use it.
2861
2862         * src/clistub.c (options): Remove redundant declaration of `-v' as a
2863         long form option.
2864
2865 2011-05-29  Keith Marshall  <keithmarshall@users.sourceforge.net>
2866
2867         Implement user selection of traceable features at run-time.
2868
2869         * src.pkgopts.h (OPTION_VERBOSE_MAX): New macro; define it.
2870
2871         * src/debug.h (DEBUG_ENABLED): New macro; define it.
2872         (DEBUG_REQUEST, DEBUG_REQUEST_FLAGS, DEBUG_TRACE_DYNAMIC): Likewise.
2873
2874         * src/clistub.c (main) [--trace]: Don't make it available unless...
2875         [DEBUG_ENABLED(DEBUG_TRACE_DYNAMIC)]: ...this is set (at compile-time).
2876         [--verbose]: Limit to OPTION_VERBOSE_MAX, using...
2877         (atmost): ...this new macro; define it.
2878         (options): Declare `-v' as both long and short form, pending bug fix
2879         in MinGW's getopt_long_only() implementation.
2880
2881         * src/pkginet.cpp (pkgInternetAgent::OpenURL): Use DEBUG_REQUEST.
2882         (pkgInternetLzmaStreamingAgent::TransferData): Likewise.
2883         (pkgInternetStreamingAgent::TransferData): Likewise.
2884         (pkgInternetStreamingAgent::Get): Likewise.
2885
2886         * src/pkgunst.cpp (pkgActionItem::SetAuthorities): Use DEBUG_REQUEST.
2887         (pkg_rmdir, pkg_unlink): Likewise.
2888
2889         * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Use DEBUG_REQUEST.
2890
2891 2011-05-21  Keith Marshall  <keithmarshall@users.sourceforge.net>
2892
2893         Implement protocol for processing global program options.
2894
2895         * src/pkgopts.h: New file.
2896
2897         * src/climain.cpp (cli_setopts): New function; implement it.
2898         (pkgOptions): Likewise.
2899
2900         * src/clistub.c (xatoi): New function; implement it.
2901         (cli_setargv): New inline helper function; implement it.
2902         (main): Use it.  Also incorporate implementation of...
2903         (parsed_options): New structure; it accommodates...
2904         (verbose, trace): New options; interpret them, and...
2905         (help_text): ...document them.
2906
2907         * src/pkgbind.cpp (pkgRepository::GetPackageList): Make catalogue
2908         loading notifications and progress reports conditional on...
2909         [OPTION_VERBOSE > 1]: ...this.
2910
2911 2011-05-18  Keith Marshall  <keithmarshall@users.sourceforge.net>
2912
2913         Augment known development status keywords and accept CMS labels.
2914
2915         * src/pkginfo/pkginfo.l (CMS_KEYWORDS): Define new provisional list;
2916         add transitional state scanner rule and code to interpret them.
2917         (STATUS_KEYWORDS): Add "pre" and "rc" to existing list; modify scanner
2918         code to maintain consistency with CMS_KEYWORDS processing; also extend
2919         this coding strategy to other rules.
2920
2921         * src/pkginfo/driver.c (spec): Strip initial '$' token from displayed
2922         field values; (we expect it only for a CMS_KEYWORDS field value).
2923
2924         * src/pkgreqs.cpp (pkgSpecs::GetTarName): Remove any initial '$' token
2925         from PACKAGE_RELEASE_STATUS field, when performing reverse of tarname
2926         decomposition transformation.
2927
2928 2011-05-18  Keith Marshall  <keithmarshall@users.sourceforge.net>
2929
2930         Correct omission from 2011-02-18 commit.
2931
2932         * src/tarproc.cpp (Copyright Notice): Add 2011 as year of release.
2933
2934 2011-05-14  Keith Marshall  <keithmarshall@users.sourceforge.net>
2935
2936         mingw-get-0.2-mingw32-alpha-4 released.
2937
2938         * configure.ac (AC_INIT): Adjust version number.
2939         * srcdist-doc/NEWS.in: Updated; add bug-fix/feature descriptions.
2940         * All files (r0-2-alpha-4): Tag assigned.
2941
2942 2011-05-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
2943
2944         Fix MinGW-Bug #3297660 (reported by Chris Sutcliffe).
2945
2946         * src/pkgbase.h (pkgActionItem::SetAuthorities): Return unsigned long.
2947         (pkgActionItem::HasAttribute): New inline method; implement it.
2948
2949         * src/pkgtask.h (ACTION_DOWNLOAD, ACTION_DOWNLOAD_OK): New macros.
2950
2951         * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles):
2952         [ACTION_DOWNLOAD]: Assert it at commencement of each package download;
2953         clear it again, on successful download completion.
2954
2955         * src/pkginst.cpp (pkgtask.h): #include it.
2956         (pkgInstall) [ACTION_DOWNLOAD]: Don't proceed with installation when
2957         set; this indicates failed download; diagnose it.
2958
2959         * src/pkgunst.cpp (pkgRemove) [ACTION_DOWNLOAD && ACTION_UPGRADE]:
2960         Don't proceed with pre-emptive removal when both set; this indicates
2961         failed download of replacement package; diagnose it.
2962
2963 2011-05-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
2964
2965         Fix MinGW-Bug #3295526 (reported by Charles Wilson).
2966
2967         * src/pkgunst.cpp (sys/stat.h): #include it; we need it for...
2968         (pkg_unlink): ...chmod( file, S_IWRITE ), emulating `rm -f' semantics.
2969
2970 2011-05-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
2971
2972         Diagnose and aggressively retry failed download connections.
2973
2974         * src/debug.h (DEBUG_TRACE_INTERNET_REQUESTS): New macro; define it.
2975
2976         * src/pkginet.cpp (debug.h): #include it.
2977         (pkgDownloadMeter): New abstract class; declare it and implement its
2978         default (non-abstract) data and methods; derive...
2979         (pkgDownloadMeterTTY): ...this new class from it; implement it...
2980         (pkgInternetStreamingAgent::Get): ...and instantiate it (naively for
2981         now), as associated pkgDownloadMeter object; add tracing diagnostic.
2982         (pkgInternetAgent::OpenURL): Don't inline it; move implementation out
2983         of line; add retry loops to aggressively retry failed connections.
2984         (pkgInternetAgent::QueryContentLength): New method; implement it.
2985         (pkgInternetStreamingAgent::TransferData): Avoid Microsoft specific
2986         data type `DWORD'; prefer equivalent standard `unsigned long'.  Add
2987         tracing diagnostic.  Remove progress diagnostic; replace it with an
2988         `Update' request to associated pkgDownloadMeter.
2989         (pkgInternetLzmaStreamingAgent::GetRawData): Avoid `DWORD' data type.
2990         (pkgInternetLzmaStreamingAgent::TransferData): Likewise; add tracing
2991         diagnostic on failure.
2992
2993 2011-03-31  Keith Marshall  <keithmarshall@users.sourceforge.net>
2994
2995         mingw-get-0.2-mingw32-alpha-3 released.
2996
2997         * configure.ac (AC_INIT): Adjust version number.
2998         * srcdist-doc/NEWS.in: Updated; add bug-fix description.
2999         * All files (r0-2-alpha-3): Tag assigned.
3000
3001 2011-03-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
3002
3003         Provisional handling for http proxy authentication.
3004         (Adapted from patch by Scott Michel <pingbak@users.sourceforge.net>)
3005         (ref: MinGW-Patch #3158453)
3006
3007         * src/pkginet.cpp: Several format/layout adjustments; add comments.
3008         Eliminate several instances of Microsoft specific typedef nastiness.
3009         (dmh_dialogue_context): New macro; kludge definition to support...
3010         (pkgInternetAgent::OpenURL) [HTTP_STATUS_PROXY_AUTH_REQ]: Detect
3011         and handle it.
3012
3013 2011-03-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
3014
3015         Expand macros in path names for files and directories to be removed.
3016
3017         * src/pkgunst.cpp (pkgRemove): Format sysroot as a template, so...
3018         (pkg_rmdir, pkg_unlink): ...are able to use mkpath() to construct the
3019         full path name for each file or directory to be removed.
3020
3021 2011-03-29  Keith Marshall  <keithmarshall@users.sourceforge.net>
3022
3023         Correct defective activation logic for some debugging hooks.
3024
3025         * src/pkgunst.cpp (pkg_rmdir, pkg_unlink) [DEBUG_INVOKE_IF]:
3026         (pkgActionItem::SetAuthorities) [DEBUG_INVOKE_IF]: Use bit-wise `&'
3027         operator, not `&&', to evaluate DEBUGLEVEL state.
3028
3029 2011-03-22  Keith Marshall  <keithmarshall@users.sourceforge.net>
3030
3031         Avoid Unicode hyphens in generated ASCII document files.
3032
3033         * Makefile.in (NROFF): New macro; define it to invoke `nroff -Tascii'.
3034         (%.dist, readme.txt): Use it to ensure that output is pure ASCII.
3035
3036 2011-03-15  Keith Marshall  <keithmarshall@users.sourceforge.net>
3037
3038         mingw-get-0.2-mingw32-alpha-2 released.
3039
3040         * configure.ac (AC_INIT): Adjust version number.
3041         * srcdist-doc/NEWS.in: Updated; add bug-fix description.
3042         * All files (r0-2-alpha-2): Tag assigned.
3043
3044 2011-03-15  Keith Marshall  <keithmarshall@users.sourceforge.net>
3045
3046         Fix MinGW-Bug 3212246.
3047
3048         * src/keyword.c (has_keyword): Avoid incrementing the comparison
3049         pointers when a significant character in one string is not matched in
3050         the other; previously the pointers were left pointing one character to
3051         the right of the mismatch, and this was overlooked if the mismatch
3052         occurred at the rightmost character in both strings.
3053
3054 2011-03-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
3055
3056         mingw-get-0.2-mingw32-alpha-1 released.
3057
3058         * configure.ac (AC_INIT): Set version number; correct capitalisation
3059         in URI reference to bug reporting instructions.
3060
3061         * srcdist-doc/NEWS.in: Confirm release date.
3062         [bug reporting]: Remove redundant paragraph; the information is
3063         provided, via reference to mingw.org. in the README and INSTALL files.
3064
3065         * All files (r0-2-alpha-1): Tag assigned.
3066
3067 2011-03-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
3068
3069         * srcdist-doc/INSTALL.in [building]: Qualify liblzma.a requirement;
3070         add earliest acceptable snapshot release date.
3071
3072 2011-03-11  Keith Marshall  <keithmarshall@users.sourceforge.net>
3073
3074         Remove unused 7zip and boost source code from CVS trunk.
3075
3076         * 7z: Directory and all content removed.
3077         * boost: Likewise.
3078
3079 2011-03-11  Keith Marshall  <keithmarshall@users.sourceforge.net>
3080
3081         Refactor and update existing installation and usage instructions.
3082
3083         * src/clistub.c (help_text): Updated.
3084
3085         * srcdist-doc: New directory.
3086
3087         * README: Deleted; its content refactored into...
3088         * srcdist-doc/README.in srcdist-doc/INSTALL.in srcdist-doc/NEWS.in:
3089         ...these new template files, updated for current development state.
3090
3091         * srcdist-doc/gendoc.sed.in: New sed script; it directs formatting of
3092         generated text files derived from the srcdist-doc templates.
3093
3094         * Makefile.in (SRCDIST_SUBDIRS): Add srcdist-doc.
3095         (SRCDIST_FILES): Add NEWS and INSTALL.
3096         (srcdist-doc): New build rule to generate README, NEWS and INSTALL.
3097         (srcdist, licdist): Adjust path to locate them.
3098         (readme.txt): New build rule to generate on-line package description.
3099         (dist): Require it.
3100         (distclean): Don't remove Makefile...
3101         (maintainer-clean): ...but do it here instead.  Also remove generated
3102         README, NEWS and INSTALL, the autom4te cache, and all distributable
3103         zip files, in addition to tarballs, for the current version.
3104
3105 2011-02-27  Keith Marshall  <keithmarshall@users.sourceforge.net>
3106
3107         Initial implementation for "remove" feature.
3108
3109         * src/pkgbase.h: Update copyright notice; add current year.
3110         (pkgActionItem::SetPrimary): New inline public method; declare it.
3111         (pkgActionItem::SetAuthorities): New public method; declare it.
3112
3113         * src/pkgtask.h (ACTION_PREFLIGHT, ACTION_REMOVE_OK): New defines.
3114
3115         * src/pkgproc.h: Update copyright notice; add current year.
3116         (pkgManifest::GetSysRootReference): New public method; declare it.
3117         (pkgManifest::GetRoot): New inline method; declare and implement it.
3118         (pkgManifest::DetachSysRoot): Argument type changed to const char*.
3119         (pkgRemove): New extern "C" function; declare it.
3120
3121         * src/pkgexec.cpp (pkgActionItem::SetPrimary): Implement it, and...
3122         (pkgXmlDocument::Schedule): ...use it to promote actions on all user
3123         specified packages, as listed on the command line, to primary status.
3124         (pkgActionItem::Execute): Repeatedly invoke...
3125         (pkgActionItem::SetAuthorities): ...this; incorporate call of...
3126         (pkgActionItem::DownloadArchiveFiles): ...this, within the loop, so
3127         that we retry failed downloads at least a second time.
3128         [ACTION_REMOVE]: Delete stub; invoke pkgRemove().
3129
3130         * src/pkgunst.cpp: New file.
3131         (pkgActionItem::SetAuthorities): Implement it.
3132         (pkgManifest::GetSysRootReference): Implement it.
3133         (pkgManifest::DetachSysRoot): Implement it per new declaration.
3134         (pkgRemove): Implement it.
3135
3136         * Makefile.in (CORE_DLL_OBJECTS): Add pkgunst.OBJEXT
3137
3138 2011-02-26  Keith Marshall  <keithmarshall@users.sourceforge.net>
3139
3140         Work-around for improper stderr buffering in MSYS mintty and rxvt.
3141         (Merged from r0-1-alpha-5 branch).
3142
3143         * src/dmh.cpp (dmhTypeTTY::emit_and_flush): New private method.
3144         (dmhTypeTTY::printf, dmhTypeTTY::notify): Use it to force an fflush()
3145         after each output record is written to stderr.
3146
3147         * README: Update as appropriate.
3148
3149 2011-02-18  Keith Marshall  <keithmarshall@users.sourceforge.net>
3150
3151         Tidy up some debugging hooks.
3152
3153         * src/debug.h (DEBUG_INVOKED): New macro; define it.
3154         (DEBUG_INVOKE_IF): Likewise; this takes arguments providing for
3155         conditional invocation of code when DEBUGLEVEL is non-zero; make it
3156         expand to nothing, when DEBUGLEVEL is zero.
3157         (DEBUG_TRACE_INIT): Redefined macro; value changed to 0x0010.
3158         (DEBUG_TRACE_TRANSACTIONS, DEBUG_SUPPRESS_INSTALLATION):
3159         (DEBUG_UPDATE_INVENTORY): New macros; define them.
3160
3161         * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDirectory):
3162         (pkgTarArchiveInstaller::ProcessDataStream): Refactor debugging hooks;
3163         implement them in terms of DEBUGLEVEL, with reference to...
3164         (DEBUG_SUPPRESS_INSTALLATION, DEBUG_UPDATE_INVENTORY): ...these.
3165
3166 2011-02-15  Keith Marshall  <keithmarshall@users.sourceforge.net>
3167
3168         Make package version comparisons more robust.
3169
3170         Fixes an issue reported by Chris Sutcliffe: previously, version
3171         comparisons were evaluated solely on the basis of differences in the
3172         package version field itself.  Henceforth, if this field compares as
3173         equal, then the comparison is extended to also consider differences
3174         between development phase qualifiers, and, if these too compare as
3175         equal, to differences in the target subsystem version fields.
3176
3177         * src/pkginfo/pkginfo.h (pkgSpecs::VersionComparator): New private
3178         method; declare it.
3179
3180         * src/pkgspec.cpp (pkgSpecs::VersionComparator): Implement it.
3181         (pkgSpecs::operator<, pkgSpecs::operator<=, pkgSpecs::operator>=):
3182         (pkgSpecs::operator>): Use it, replacing...
3183         (version): ...this static function; now unreferenced; delete it.
3184
3185         * src/vercmp.h (pkgVersionInfo::pkgVersionInfo): Make it inline; it
3186         now delegates the entire class construction operation to...
3187         (pkgVersionInfo::Parse): ...this new private method; declare it.  This
3188         is also used to facilitate implementation of...
3189         (pkgVersionInfo::Reset): ...this new inline method, also requiring...
3190         (pkgVersionInfo::FreeAll): ...this new inline method; also now used by
3191         the class destructor, it encapsulates separate calls to...
3192         (pkgVersionInfo::Free): ...this original inline method, renamed...
3193         (pkgVersionInfo::FreeEntry): ...as this.
3194
3195         * src/vercmp.cpp (pkgVersionInfo::Parse): Implement it.
3196
3197 2011-02-13  Keith Marshall  <keithmarshall@users.sourceforge.net>
3198
3199         Merge from mingw-get-0.1-mingw32-alpha-5 bug-fix branch.
3200
3201         * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): Promote
3202         "install" action on new prerequisites, where a previously uninstalled
3203         package is required to satisfy any "upgrade" dependency.
3204
3205         * src/pkgexec.cpp (pkgActionList::Execute): Don't make misleading
3206         claims concerning package removal.
3207
3208         * src/pkgtask.h (STRICTLY_GT, STRICTLY_LT, ACTION_PRIMARY): Add one
3209         level of parentheses around defining expressions.
3210
3211 2011-02-10  Keith Marshall  <keithmarshall@users.sourceforge.net>
3212
3213         Publish mingw-get-0.0-mingw32-alpha-5.1 bug-fix release.
3214
3215         * README: Updated to reflect changes.
3216
3217 2011-02-08  Keith Marshall  <keithmarshall@users.sourceforge.net>
3218
3219         Improve diagnostics for failed GUI invocation.
3220
3221         * src/guimain.cpp: New file; currently delivers only a diagnostic
3222         stub, provided by Sze Howe Koh <axfangli@users.sourceforge.net>, to
3223         pop-up a message block explaining why GUI mode cannot be invoked.
3224
3225         * Makefile.in (GUI_LDFLAGS): New macro; it is required by...
3226         (gui$EXEEXT): ...this new build rule; add to prerequisites of...
3227         (all): ...this [default] build rule; redefine this in terms of...
3228         (BIN_PROGRAMS, LIBEXEC_PROGRAMS, LIBEXEC_DATA): ...these new macros;
3229         define them, and also use them as loop iterator objectives for...
3230         (install, install_strip): ...these; also schedule them...
3231         (clean): ...for removal by this.
3232
3233         * src/clistub.c (Copyright): Add new year.
3234         (main): Amend error message, if gui$EXEEXT doesn't start; make it
3235         more intelligible to normal users.
3236
3237 2011-02-07  Keith Marshall  <keithmarshall@users.sourceforge.net>
3238
3239         Correct omissions from packaged source tarball.
3240
3241         * Makefile.in (Copyright): Add new year.
3242         (SRCDIST_FILES): Add aclocal.m4
3243         (SRCDIST_SUBDIRS): Add m4
3244
3245 2011-01-05  Keith Marshall  <keithmarshall@users.sourceforge.net>
3246
3247         Reduce path names to base names, in some diagnostic message contexts.
3248
3249         * src/climain.cpp: Update copyright notice for new year.
3250         (climain): Extract base name from argv[0], to pass as program name tag
3251         in initialisation of diagnostic message handler.
3252
3253         * src/dmh.h, src/dmh.cpp: Update copyright notices; make some layout
3254         adjustments, for more consistent formatting style.
3255
3256         * src/pkgbind.cpp: Update copyright notice.
3257         (pkgRepository::GetPackageList): Reduce path names for catalogue files
3258         to their base names, when reporting them in diagnostic messages.
3259
3260 2011-01-05  Keith Marshall  <keithmarshall@users.sourceforge.net>
3261
3262         Avoid a potential out-of-range action name look-up.
3263
3264         * src/pkgdeps.cpp: Update copyright notice for new year.
3265         (pkgXmlDocument::Schedule): Mask action code with ACTION_MASK, to
3266         determine correct action name when diagnosing uninstalled package.
3267
3268 2011-01-03  Keith Marshall  <keithmarshall@users.sourceforge.net>
3269
3270         Make "install" and "remove" notifications symmetric.
3271
3272         * configure.ac (AC_INIT): Bump version to "0.1-alpha-6cvs".
3273         (YEARS_OF_ISSUE): Add new year.
3274         
3275         * src/pkginst.cpp: Update copyright notice for new year.
3276         (pkgInstall): Add notification for package being installed.
3277
3278 2010-12-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
3279
3280         Add preliminary CLI support for "list" and "show" actions.
3281
3282         * src/pkgtask.h (ACTION_PRIMARY): New manifest constant; define it.
3283         (ACTION_LIST, ACTION_SHOW): Likewise; cast to enumerated values for...
3284         (action_list, action_show): ...these; define them.
3285
3286         * src/pkgexec.cpp (action_name): Add defining text for...
3287         (action_list, action_show): ...these.
3288
3289         * src/climain.cpp: Partially revert 2010-11-01 change...
3290         (climain) [! ACTION_UPDATE]: Reinstate original "if" block, moving
3291         the "switch" block within it, but without the ACTION_UPDATE case.
3292         [ACTION_LIST, ACTION_SHOW]: New "switch" cases; they invoke...
3293         (pkgXmlDocument::DisplayPackageInfo): ...this new method.
3294
3295         * src/pkgbase.h (pkgXmlDocument::DisplayPackageInfo): Declare it.
3296         (pkgActionItem::ConfirmInstallationStatus): New method; declare it.
3297         (pkgXmlNode::GetSysRoot): Make declaration style consistent with
3298         others in the class; do not name arguments in the declaration.
3299         (pkgXmlNode::FindFirstAssociate): Likewise.
3300         (pkgXmlNode::FindNextAssociate): Likewise.
3301
3302         * src/pkgshow.cpp: New file.
3303         (pkgXmlDocument::DisplayPackageInfo): Implement it.
3304
3305         * src/pkgdeps.cpp (pkgMsgUnknownPackage): New extern "C" function;
3306         implement it temporarily, pending a future i18n reimplementation.
3307         (assert_installed): Drop "inline" attribute; leave it as "static".
3308         Set "tarname" correctly, to match the installed package version; (it
3309         previously incorrectly returned the latest available version).
3310         (pkgActionItem::ConfirmInstallationStatus): Implement it.
3311         (pkgXmlDocument::Schedule) [ACTION_PRIMARY]: Set as appropriate.
3312         (pkgXmlDocument::Schedule) [ACTION_REMOVE || ACTION_UPGRADE]: Complain
3313         if requested package is not recorded as having been installed.
3314         (pkgXmlDocument::ResolveDependencies) [! ACTION_INSTALL]: Do not
3315         invoke it recursively.
3316
3317         * Makefile.in (pkgshow.$OBJEXT): Add reference.
3318
3319 2010-11-01  Keith Marshall  <keithmarshall@users.sourceforge.net>
3320
3321         Lay groundwork for implentation of additional actions.
3322
3323         * src/climain.cpp (climain): Adjust indentation; replace `if' block...
3324         [action != ACTION_UPDATE]: ...with this default `switch' case, and...
3325         [action == ACTION_UPDATE]: ...this as explicit "do nothing" case.
3326
3327 2010-10-29  Keith Marshall  <keithmarshall@users.sourceforge.net>
3328
3329         mingw-get-0.1-mingw32-alpha-5 released.
3330
3331         * configure.ac (AC_INIT): Bump version to 0.1-alpha-5.
3332         * README: Update release notes accordingly.
3333         * All files (r0-1-alpha-5): Tag assigned.
3334
3335 2010-10-22  Keith Marshall  <keithmarshall@users.sourceforge.net>
3336
3337         Make pkgInitRites/pkgLastRites processing more robust;
3338         avoid a potential race condition in mingw-get-inst.
3339
3340         * src/rites.c: Refactor conditional code to segregate execution of...
3341         [defined IMPLEMENT_INITIATION_RITES]: ...this into distinct phases.
3342         (PHASE_ONE_RITES, PHASE_TWO_RITES): Define constants to identify them.
3343         (do_init_rites): Renamed to...
3344         (invoke_rites): ...this; inline it.
3345         (pkgLastRites): Invoke it, to pre-empt rename action of...
3346         (lastrites.exe): ...this, subsequently exec()ed process.
3347         (perror): Issue more informative diagnostic on exec() failure.
3348
3349         * src/clistub.c (IMPLEMENT_INITIATION_RITES): Stipulate as...
3350         (PHASE_ONE_RITES): ...this phase of implementation only.
3351
3352         * src/pkgexec.cpp (IMPLEMENT_INITIATION_RITES): Define to provide...
3353         (PHASE_TWO_RITES): ...this phase of implementation, facilitated by...
3354         (self_upgrade_rites): ...this locally defined RITES_INLINE function.
3355         (pkgActionItem::Execute): Invoke it, in remove/install loop, while...
3356         [init_rites_pending]: ...new loop local variable remains true.
3357
3358 2010-09-10  Charles Wilson  <mingw@cwilson.fastmail.fm>
3359
3360         Fix packaging bug in -lic package.
3361
3362         * Makefile.in (licdist): Use directory named
3363         "share", not "shared".
3364
3365 2010-09-10  Charles Wilson  <mingw@cwilson.fastmail.fm>
3366
3367         mingw-get-0.1-mingw32-alpha-4 released.
3368
3369         * All files (r0-1-alpha-4): Tag assigned.
3370
3371 2010-09-10  Charles Wilson  <mingw@cwilson.fastmail.fm>
3372
3373         Add rudimentary help option.
3374
3375         * README: Update release notes.
3376
3377         * src/clistub.c: Add --help option.
3378
3379 2010-09-10  Charles Wilson  <mingw@cwilson.fastmail.fm>
3380
3381         Fix "mingw-get deletes itself" bug in last rites handling.
3382
3383         * README: Add new release notes.
3384
3385         * configure.ac: Bump version to 0.1-alpha-4.
3386
3387         * src/dmh.h: If __cplusplus, include <exception> and
3388         declare dmh_exception class.
3389
3390         * src/dmh.cpp (class dmh_exception): Implement.
3391         (abort_if_fatal): If DMH_FATAL, throw dmh_exception rather
3392         than calling exit().
3393
3394         * src/climain.cpp (climain): Wrap entire function body in try/
3395         catch block. If dmh_exception is caught, return EXIT_FAILURE.
3396
3397         * src/clistub.c (main): Capture return value of climain(). If
3398         non-zero, perform last rites and return EXIT_FAILURE.
3399
3400 2010-08-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
3401
3402         mingw-get-0.1-mingw32-alpha-3 released.
3403
3404         * README: Add new release notes.
3405
3406         * All files (r0-1-alpha-3): Tag assigned.
3407
3408 2010-08-27  Keith Marshall  <keithmarshall@users.sourceforge.net>
3409
3410         Add runtime hooks to support self-upgrade for future releases.
3411
3412         * src/rites.c: New file; compile it free-standing, to provide...
3413         (lastrites.exe): ...this helper application for context clean-up;
3414         alternatively, use it as an include file, with pre-definition of...
3415         (IMPLEMENT_INITIATION_RITES): ...this, to implement...
3416         (pkgInitRites, pkgLastRites): ...these inline functions.
3417
3418         * src/clistub.c (main) [argc > 1]: Use them.
3419         (progname): New local variable within `main'; set it once, then use it
3420         instead of repeated references to `basename(*argv)' in diagnostics.
3421         (MINGW_GET_DLL, MINGW_GET_GUI): Relocate to `src/rites.c'.
3422
3423         * src/debug.h (DEBUG_INHIBIT_RITES_OF_PASSAGE):
3424         (DEBUG_FAIL_FILE_RENAME_RITE, DEBUG_FAIL_FILE_UNLINK_RITE): New
3425         defines; they facilitate debugging of the src/rites.c code.
3426
3427         * Makefile.in (lastrites$EXEEXT): New target; build as prerequisite...
3428         (all): ...of this primary target.
3429         (install, install-strip): Install it.
3430         (SRCDIST_FILES): Remove install-sh; it is now included in...
3431         (build-aux): ...this directory; add it to...
3432         (SRCDIST_SUBDIRS): ...this.
3433
3434 2010-08-24  Keith Marshall  <keithmarshall@users.sourceforge.net>
3435
3436         Set default sysroots relative to mingw-get installation directory.
3437
3438         * xml/profile.xml (system-map) [name == default]: For each of...
3439         [subsystem == mingw32]: ...set sysroot path to value of %R macro...
3440         [subsystem == msys]: ...and to its %R/msys/1.0 subdirectory.
3441
3442 2010-08-19  Keith Marshall  <keithmarshall@users.sourceforge.net>
3443
3444         Some dependency resolver enhancements and bug fixes.
3445
3446         * src/pkgbase.h (pkgXmlNode::GetContainerAttribute): New method;
3447         declare it.
3448
3449         * src/pkgdeps.cpp (pkgXmlNode::GetContainerAttribute): Implement it;
3450         it is used to retrieve package name attributes from the containing
3451         'package' element, when given a pointer to a 'release' element by...
3452         (assert_unmatched, assert_installed): ...these new static functions.
3453         (pkgXmlDocument::Schedule): Use them to reconstruct and register
3454         dependency reference data for previously installed packages which are
3455         no longer included in the distribution manifest.
3456         (pkgXmlDocument::ResolveDependencies): Fix a block nesting error;
3457         catch and diagnose unresolved dependencies; don't look beyond the XML
3458         document root node, (tinyxml error not caught?), when searching for
3459         requirements specified on container nodes.
3460
3461 2010-08-17  Keith Marshall  <keithmarshall@users.sourceforge.net>
3462
3463         Improve scheduling of package processing requests.
3464
3465         * src/pkgexec.cpp (pkgXmlDocument::Schedule): Inspect entire `actions'
3466         list, when checking for duplicate package processing requests; decline
3467         to schedule any such duplicate, or any request which lacks a package
3468         association.
3469
3470 2010-08-15  Keith Marshall  <keithmarshall@users.sourceforge.net>
3471
3472         Lay foundation for selective compilation of debugging code.
3473
3474         * src/debug.h: New file...
3475         * src/sysroot.cpp: Include it.
3476         (pkgXmlDocument::LoadSystemMap): Make debugging output conditional...
3477         [DEBUGLEVEL & DEBUG_TRACE_INIT]: ...on this new debugging state.
3478
3479 2010-08-15  Keith Marshall  <keithmarshall@users.sourceforge.net>
3480
3481         * src/pkgkeys.h: Typo in comment: file was previously identified as
3482         pkgkeys.c; corrected.
3483
3484 2010-08-13  Keith Marshall  <keithmarshall@users.sourceforge.net>
3485
3486         Improve diagnostics for invalid references to non-release XML nodes.
3487
3488         * src/pkgkeys.h (value_unknown): New global string; declare it.
3489         * src/pkgkeys.c (value_unknown): Implement it.
3490
3491         * src/pkgname.cpp (pkgArchiveName): Identify XML element type when
3492         diagnosing references to elements of types other than release; use...
3493         (value_unknown): ...this, as appropriate.
3494
3495 2010-08-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
3496
3497         Guard against a potential buffer overrun.
3498
3499         * src/pkgreqs.cpp (pkgSpecs::SetProperty): Allocate an additional
3500         byte to accommodate an extra field separator, when inserting a new
3501         data value into a previously empty field.
3502
3503 2010-07-27  Cesar Strauss  <cestrauss@gmail.com>
3504
3505         Handle the GNU long name tar header format.
3506
3507         * src/pkgproc.h (TAR_ENTITY_TYPE_GNU_LONGNAME): New manifest constant;
3508         define it.
3509         (pkgTarArchiveProcessor::EntityDataAsString): New protected method;
3510         declare and...
3511         * src/tarproc.cpp: ...implement it.
3512         (pkgTarArchiveProcessor::Process): Before building the entry pathname,
3513         check for a GNU long name type header; when found, read pathname from
3514         the entry data area, before fetching the following header, from which
3515         to retrieve the associated entity data.
3516
3517 2010-06-24  Keith Marshall  <keithmarshall@users.sourceforge.net>
3518
3519         Work around an autoconf bug (reported by Stefano Sabatini).
3520
3521         * Makefile.in (VPATH): Use @top_srcdir@ instead of ${srcdir}; current
3522         autoconf incorrectly elides references to @srcdir@ and ${srcdir} when
3523         substituting within a VPATH specification for building `in-source'.
3524         Also, prefer colons to blanks as path name separators, for improved
3525         portability to non-GNU implementations of make; (recommendation by
3526         Ralf Wildenhues).
3527
3528 2010-06-24  Keith Marshall  <keithmarshall@users.sourceforge.net>
3529
3530         Include alias search, when matching component package name.
3531
3532         * src/keyword.c (has_keyword): Rearrange argument declarations for
3533         more natural order; update all callers accordingly.  Simplify; compare
3534         keyword to be matched with each successive candidate from match-list,
3535         character-by-character and in-place, so avoiding memory allocation
3536         for any local duplicate of the passed match-list; thus...
3537         (safe_strdup): ...this static function no longer required; delete it.
3538         (string.h): No references remain; do not include it.
3539
3540         * src/pkgfind.cpp (pkgXmlNode::FindPackageByName): Augment component
3541         package name matching to include potential matches of the look-up name
3542         with trailing component name stripped off, when that matches the class
3543         name of an identified component package, and the initial substring of
3544         the look-up name, after stripping, matches any specified alias name
3545         for the containing package.
3546
3547 2010-06-10  Keith Marshall  <keithmarshall@users.sourceforge.net>
3548
3549         Address FIXME relating to identification of distributable files.
3550
3551         * install-sh: Move to...
3552         * build-aux: ...this new directory.
3553
3554         * Makefile.in (PACKAGE_DISTVERSION): Modify `sed' edit sequence; make
3555         it depend on, and ensure that it incorporates the expansion of...
3556         (PACKAGE_SUBSYSTEM): ...this new macro; defined as substitution of...
3557         (host_os): ...this autoconf variable, set by...
3558
3559         * configure.ac (AC_CANONICAL_HOST): ...this; add it, requiring...
3560         (AC_CONFIG_AUX_DIR): ...`build-aux' directory reference, providing...
3561
3562         * build-aux/config.guess, build-aux/config.sub: ...these new standard
3563         files; import them from the standard `build-aux' repository.
3564
3565 2010-05-17  Keith Marshall  <keithmarshall@users.sourceforge.net>
3566
3567         Bump version for next release cycle.
3568
3569         * configure.ac (AC_INIT): Bump version suffix to alpha-3.
3570
3571 2010-05-17  Keith Marshall  <keithmarshall@users.sourceforge.net>
3572
3573         mingw-get-0.1-mingw32-alpha-2 released.
3574
3575         * README: Add new release notes.
3576
3577         * xml/profile.xml: Update to use default referencing for...
3578         (package-list.xml.lzma): ...this repository master catalogue.
3579
3580         * All files (r0-1-alpha-2): Tag assigned.
3581
3582 2010-05-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
3583
3584         Make provision to protect user's profile settings during upgrade.
3585
3586         * Makefile.in (install): Remove `profile.xml'; replace it with...
3587         (install-profile): ...this new prerequisite installation goal; it
3588         renames the installed copy of `profile.xml' as `defaults.xml', within
3589         the installed package image.
3590
3591         * src/pkgkeys.h (defaults_key): New key; declare it.
3592         * src/pkgkeys.c: Some cosmetic formatting (tabulation) adjustments.
3593         (defaults_key): Implement it; it refers to the `defaults.xml' file.
3594
3595         * src/climain.cpp (climain): Check `profile_key' for accessibility of
3596         the `profile.xml' file; if [! R_OK] emit a diagnostic warning, fall
3597         back on `defaults_key', and attempt to load configuration from the
3598         distributed `defaults.xml' file.
3599
3600 2010-05-11  Keith Marshall  <keithmarshall@users.sourceforge.net>
3601
3602         Add preliminary support for future `-reinstall' option.
3603
3604         * src/pkgexec.cpp (pkgActionItem::Execute) [ACTION_INSTALL]: Force
3605         installation if `-reinstall' option is selected, overriding state of
3606         any prior installation; temporarily assume that this option is always
3607         selected, to permit proper `upgrade' operation in the absence of any
3608         functional `uninstall' capability, and pending implementation of a
3609         mechanism for interpreting user specified options.
3610
3611 2010-05-11  Keith Marshall  <keithmarshall@users.sourceforge.net>
3612
3613         Correct handling for "%R" macro in relative sysroot path specs.
3614
3615         * src/tarproc.cpp (pkgTarArchiveProcessor): In constructor, expand the
3616         sysroot path specification a second time, to capture the effect of any
3617         embedded macros, before computing the recorded `sysroot_len' value.
3618
3619 2010-05-05  Keith Marshall  <keithmarshall@users.sourceforge.net>
3620
3621         Handle "%" wildcard matches in package and subsystem version strings.
3622
3623         * src/pkgbase.h (pkgSpecs): Forward declare it.
3624         (pkgActionItem::~pkgActionItem): Declare explicit destructor.
3625         (pkgActionItem::SetRequirements): Add extra `pkgSpecs*' argument;
3626         update references, passing additional argument in...
3627
3628         * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): ...this.
3629
3630         * src/pkgexec.cpp (pkgActionItem::~pkgActionItem): Implement it.
3631         (pkgActionItem::SetRequirements): Delete obsolete implementation.
3632
3633         * src/pkginfo/pkginfo.h: Update copyright notice; add year 2010.
3634         (pkgSpecs::GetTarName): New public method; declare it.
3635         (pkgSpecs::SetProperty): New private method; declare it.
3636         (pkgSpecs::SetPackageName): New inline method; implement it.
3637         (pkgSpecs::SetPackageVersion, pkgSpecs::SetPackageBuild): Likewise.
3638         (pkgSpecs::SetSubSystemName, pkgSpecs::SetSubSystemVersion): Likewise.
3639         (pkgSpecs::SetSubSystemBuild, pkgSpecs::SetReleaseStatus): Likewise.
3640         (pkgSpecs::SetReleaseIndex, pkgSpecs::SetComponentClass): Likewise.
3641         (pkgSpecs::SetComponentVersion, pkgSpecs::SetPackageFormat): Likewise.
3642         (pkgSpecs::SetCompressionType): Likewise.
3643
3644         * src/pkginfo/pkginfo.l: Update copyright notice; add year 2010.
3645         (TRANS): Interpret "%" as wildcard in version string matches.
3646
3647         * src/pkgreqs.cpp: New file.
3648         (pkgActionItem::SetRequirements): Reimplement per new declaration;
3649         it now always allocates heap memory for requirements specifications.
3650         (pkgSpecs::GetTarName, pkgSpecs::SetProperty): Implement them.
3651
3652         * Makefile.in (CORE_DLL_OBJECTS): Add `pkgreqs.$(OBJEXT)'.
3653
3654 2010-04-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
3655
3656         Revert 2010-04-04 refactoring of tarproc.cpp and tarinst.cpp
3657
3658         * src/tarinst.cpp: File removed; its content merged into...
3659         * src/tarproc.cpp: ...this; it cannot be cleanly separated out.
3660
3661         * Makefile.in (tarinst.$OBJEXT): Remove reference.
3662
3663 2010-04-29  Keith Marshall  <keithmarshall@users.sourceforge.net>
3664
3665         Handle "*" wildcard matches in package and subsystem version strings.
3666
3667         * src/vercmp.h (pkgVersionInfo::version_string): New private member
3668         variable; it stores a pointer to a dynamically allocated local copy of
3669         the invariant `version' argument, to facilitate correct parsing.
3670         (pkgVersionInfo::build_string): Likewise; it provides similar handling
3671         for the invariant `build' argument.
3672         (pkgVersionInfo::Free): New private inline method; it provides a NULL
3673         pointer safe wrapper, calling the C library `free()' function, (since
3674         some implementations are believed to be unsafe); it is used by...
3675         (pkgVersionInfo::~pkgVersionInfo): ...this new inline destructor, to
3676         release the memory allocated by the constructor, for `version_string'
3677         and `build_string'.
3678
3679         * src/vercmp.cpp (pkgVersionInfo::pkgVersionInfo): Allocate memory for
3680         `version_string' and `build_string', as required; populate it.
3681         Explicitly handle "*" as a `match anything' wildcard...
3682         (pkgVersionInfo::Compare): ...matching it as `equal' to everything.
3683
3684 2010-04-18  Keith Marshall  <keithmarshall@users.sourceforge.net>
3685
3686         Correct omission from configure script prerequisite checks.
3687
3688         * aclocal.m4 (MINGW_AC_OUTPUT): New macro; it wraps AC_OUTPUT itself,
3689         adding a trap to force an abort if any preceding prerequisite check
3690         was handled by MINGW_AC_ASSERT_MISSING.
3691
3692         * configure.ac: Qualify package component types, in prerequisite
3693         checks handled by MINGW_AC_ASSERT_MISSING; invoke MINGW_AC_OUTPUT
3694         in place of AC_OUTPUT.
3695
3696 2010-04-17  Keith Marshall  <keithmarshall@users.sourceforge.net>
3697
3698         Add configure script checks for prerequisite library headers.
3699         (Thanks to Cesar Strauss for proposing a rudimentary implementation).
3700
3701         * aclocal.m4: New file; it does no more than include...
3702         * m4/missing.m4: ...this; new file incorporated from build-aux module.
3703
3704         * configure.ac: Add AC_CHECK_HEADER assertions for...
3705         (zlib.h, bzlib.h, lzma.h): ...these; invoke MINGW_AC_ASSERT_MISSING in
3706         respect of each failing assertion.
3707
3708 2010-04-17  Keith Marshall  <keithmarshall@users.sourceforge.net>
3709
3710         Case-insensitive subsystem name matching revisited.
3711
3712         * src/pkgfind.cpp (pkgXmlDocument::FindPackageByName): Use...
3713         (subsystem_strcmp): ...this to match subsystem names, instead of...
3714         (match_if_explicit): ...this.
3715
3716 2010-04-15  Keith Marshall  <keithmarshall@users.sourceforge.net>
3717
3718         Enable recursive processing of repository package lists.
3719
3720         * src/pkgbase.h (pkgXmlDocument::SyncRepository): Make it public.
3721
3722         * src/pkgbind.cpp (pkgRepository): New locally defined and implemented
3723         class; it facilitates recursive loading and parsing of package lists,
3724         replacing much of the original non-recursive functionality within...
3725         (pkgXmlDocument::BindRepositories): ...this; use it.
3726
3727 2010-04-04  Keith Marshall  <keithmarshall@users.sourceforge.net>
3728
3729         Implement installer function; use per-package file manifests.
3730
3731         * src/pkgproc.h (pkgManifest): New class; declare it.
3732         (pkgArchiveProcessor::origin): New protected member variable.
3733         (pkgArchiveProcessor::sysroot_len): New protected member variable.
3734         (pkgArchiveProcessor::installed): Type changed to `pkgManifest *'.
3735         (pkgTarArchiveInstaller::Process): Declare specialisation hook.
3736         (pkgTarArchiveInstaller::UpdateInstallationManifest): Disused member
3737         function; remove redundant declaration from class definition.
3738         (pkgInstall): New generalised installation function; declare it.
3739         (pkgRegister): New function; declare it.
3740
3741         * src/pkginst.cpp: New file.
3742         (pkgManifest, pkgInstall, pkgRegister): Implement them.
3743
3744         * src/pkgexec.cpp (pkgActionItem::Execute): Use `pkgInstall' in place
3745         of stub formerly provided here.
3746
3747         * src/pkgkeys.h (manifest_key, reference_key): New keys; declare them.
3748         * src/pkgkeys.c (manifest_key, reference_key): Implement them.
3749
3750         * src/tarproc.cpp: Code refactored.
3751         (pkgTarArchiveProcessor::sysroot_len): Initialise it.
3752         (pkgTarArchiveProcessor::origin): Initialise it.
3753         (pkgTarArchiveProcessor::installed): Initialise; associate it with a
3754         pkgManifest class entity, and populate this as appropriate.
3755         (pkgTarArchiveProcessor::~pkgTarArchiveProcessor): Add explicit clean
3756         up of linked `pkgManifest *' entity referenced by `installed'.
3757         (pkgTarArchiveProcessor::Process) [TAR_ENTITY_TYPE_DIRECTORY]: Add
3758         braces to demarcate localised inner scope of string scan for removal
3759         of trailing directory name separators; (thanks to Cesar Strauss for
3760         reporting invalid local pointer declaration error in GCC >= 4.4).
3761         (pkgTarArchiveInstaller::UpdateInstallationManifest): Deleted.
3762         (pkgTarArchiveInstaller::pkgTarArchiveInstaller): Factor out.
3763         (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
3764         (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
3765         (commit_saved_entity): Likewise.
3766
3767         * src/tarinst.cpp: New file; it implements...
3768         (pkgTarArchiveInstaller::Process): ...this new specialisation
3769         of the original pkgTarArchiveProcessor::Process method...
3770         (pkgTarArchiveInstaller::pkgTarArchiveInstaller): ...and this
3771         refactored code, abstracted from src/tarproc.cpp and modified to
3772         use the pkgManifest class for installation tracking.
3773         (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
3774         (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
3775         (commit_saved_entity): Relocated from src/tarproc.cpp.
3776
3777         * Makefile.in (CORE_DLL_OBJECTS): Add...
3778         (pkginst.OBJEXT, tarinst.OBJEXT): ...these new object files.
3779
3780 2010-03-31  Keith Marshall  <keithmarshall@users.sourceforge.net>
3781
3782         Guard against NULL pointer dereferences in tinyxml code.
3783
3784         * src/pkgbase.h (pkgXmlNode::GetName): Verify `this' pointer is
3785         non-NULL, before invoking the underlying tinyxml method.
3786         (pkgXmlNode::GetParent, pkgXmlNode::GetChildren): Likewise.
3787         (pkgXmlNode::GetNext, pkgXmlNode::GetPropVal): Likewise.
3788         (pkgXmlNode::AddChild, pkgXmlNode::DeleteChild): Likewise.
3789         (pkgXmlNode::GetDocumentRoot): Likewise.
3790         (pkgXmlNode::IsElementOfType): Likewise.
3791
3792 2010-03-28  Cesar Strauss  <cestrauss@gmail.com>
3793
3794         Avoid running InternetAttemptConnect in pkgInternetAgent
3795         constructor, since it is called during DLL initialisation.
3796
3797         * src/pkginet.cpp (pkgInternetAgent::pkgInternetAgent): Move the
3798         InternetAttemptConnect call from constructor...
3799         (pkgInternetAgent::OpenURL): ...to here.
3800
3801 2010-03-23  Keith Marshall  <keithmarshall@users.sourceforge.net>
3802
3803         Automate object code dependency tracking.
3804
3805         * Makefile.in (DEPFLAGS): New macro; define it.
3806         (%.OBJEXT: %.c, %.OBJEXT: %.cpp): Add dependency generator commands...
3807         (%.d): ...to create these dependency maps; `sinclude' them, and...
3808         (clean): ...remove them.
3809         
3810         * .cvsignore (*.d): Add wild card template to match them.
3811
3812 2010-03-22  Keith Marshall  <keithmarshall@users.sourceforge.net>
3813
3814         Support case insensitive matching for file and subsystem names.
3815
3816         * src/pkgbase.h (safe_strcmp): New inline function; it provides NULL
3817         argument safe comparison of strings, returning the boolean inverse of
3818         the `strcmp' result, using either case-sensitive or case-insensitive
3819         semantics; derive it from...
3820         (match_if_explicit): ...this; redefine as macro; invoke `safe_strcmp'
3821         using explicitly case-sensitive semantics.
3822         (subsystem_strcmp): New macro; it invokes `safe_strcmp' with either
3823         case-sensitive or case-insensitive semantics, depending on...
3824         (CASE_INSENSITIVE_SUBSYSTEMS): ...this new context selection macro; it
3825         fixes the choice between case-sensitive and case-insensitive matching
3826         semantics for any given implementation, at compile time.
3827         (pkg_strcmp): New macro; it invokes `safe_strcmp' with either
3828         case-sensitive or case-insensitive semantics, depending on...
3829         (CASE_INSENSITIVE_FILESYSTEM): ...this new context selection macro; it
3830         fixes the choice between case-sensitive and case-insensitive matching
3831         semantics for any given implementation, at compile time.
3832
3833         * src/sysroot.cpp (pkgXmlNode::GetSysRoot): Use `subsystem_strcmp'.
3834
3835 2010-03-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
3836
3837         Add preliminary support for virtual packages.
3838
3839         * src/pkgkeys.h (yes_value, no_value): Redefine as aliases...
3840         (value_yes, value_no): ...for these new global strings; declare them.
3841         (value_none, value_virtual): New global strings; declare them.
3842
3843         * src/pkgkeys.c (yes_value, no_value): Rename...
3844         (value_yes, value_no): ...to implement these, respectively.
3845         (value_none, value_virtual): Implement them.
3846
3847         * src/pkgname.cpp (pkgXmlNode::ArchiveName): Check containing package
3848         node for `class' attribute set to `value_virtual'; if present, always
3849         return the effective `tarname' property as `value_none'.
3850
3851         * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): For packages
3852         with an effective `tarname' of `value_none', do not download anything.
3853
3854         * src/pkgexec.cpp (pkgActionItem::Execute): For packages with an
3855         effective `tarname' of `value_none', do not invoke any tar archive
3856         processing function.
3857
3858 2010-03-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
3859
3860         Don't write installation records for unavailable packages.
3861
3862         * src/tarproc.cpp (pkgTarArchiveInstaller): In constructor, ensure
3863         archive is ready for processing, before initialising an installation
3864         manifest record.
3865
3866 2010-03-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
3867
3868         Rationalise path identification for XML file locations.
3869
3870         * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Use `xmlfile()'
3871         function to locate `sysroot' map file; free memory when done.
3872         (pkgXmlDocument::UpdateSystemMap): Likewise.
3873         (sigpath): Static global variable disused; delete it.
3874
3875 2010-03-01  Keith Marshall  <keithmarshall@users.sourceforge.net>
3876
3877         Extend package name search to include component packages.
3878
3879         * src/pkgfind.cpp (pkgHasMatchingName): Remove; fold it into...
3880         (pkgXmlNode::FindPackageByName): ...this; augment to extend search
3881         within package definition elements, seeking a potential match on an
3882         included component package name or component class-implied name.
3883
3884         * src/pkgkeys.h (class_key): New global string constant; declare it.
3885         * src/pkgkeys.c (class_key): Implement it.
3886
3887 2010-02-16  Keith Marshall  <keithmarshall@users.sourceforge.net>
3888
3889         Bump version for next release cycle.
3890
3891         * configure.ac (AC_INIT): Bump version suffix to alpha-2.
3892
3893 2010-02-16  Keith Marshall  <keithmarshall@users.sourceforge.net>
3894
3895         mingw-get-0.1-mingw32-alpha-1 released.
3896
3897 2010-02-16  Keith Marshall  <keithmarshall@users.sourceforge.net>
3898
3899         Prepare initial package release.
3900
3901         * README: New file; use it to source release notes.
3902
3903         * Makefile.in (SRCDIST_FILES): Use ...
3904         (LICENCE_FILES): ...this new macro; define it.
3905         (licdist): New build goal; implement it.
3906         (bindist): Require it; add alternative `zip' format package.
3907
3908         * xml/profile.xml (repository): Set default `package-index' name.
3909         (system-map): Normalise spelling for default `sysroot' path names.
3910
3911 2010-02-10  Keith Marshall  <keithmarshall@users.sourceforge.net>
3912
3913         Add directory/file records in installation manifests.
3914
3915         * src/pkgkeys.h (dirname_key, filename_key): New strings; declare...
3916         * src/pkgkeys.c (dirname_key, filename_key): ...and implement them.
3917
3918         * src/pkgproc.h (pkgArchiveProcessor::installed): New class member
3919         variable; declare it.
3920         (pkgTarArchiveInstaller::UpdateInstallationManifest): New method;
3921         declare it.
3922
3923         * src/tarproc.cpp: Miscellaneous comment updates.
3924         (pkgTarArchiveInstaller): In constructor...
3925         (pkgTarArchiveInstaller::installed): ...use new member variable...
3926         (pkgArchiveProcessor::installed): ...inherited from this.
3927         (pkgTarArchiveInstaller::UpdateInstallationManifest): Implement and...
3928         (pkgTarArchiveInstaller::ProcessDataStream): ...use it.
3929         (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
3930
3931 2010-02-06  Keith Marshall  <keithmarshall@users.sourceforge.net>
3932
3933         Work around a deficiency in Microsoft's stat() implementation.
3934
3935         * src/tarproc.cpp (pkgTarArchiveProcessor::ProcessDirectory): Don't
3936         pass a `pathname' argument with trailing slashes; strip them off.
3937
3938 2010-02-06  Keith Marshall  <keithmarshall@users.sourceforge.net>
3939
3940         Add machinery for installation and packaging for distribution.
3941
3942         * install-sh: New file; source it from autoconf distribution.
3943
3944         * configure.ac (AC_PREFIX_DEFAULT): Assign it as `C:/MinGW'.
3945         (AC_PROG_MKDIR_P, AC_PROG_INSTALL, AC_PROG_LN_S): Invoke these.
3946         (STRIP): New output variable; use AC_CHECK_TOOL to define it.
3947
3948         * Makefile.in (abs_top_srcdir): Define to AC_SUBST value.
3949         (PACKAGE_TARNAME, PACKAGE_VERSION): Define to AC_SUBST values.
3950         (prefix, exec_prefix, bindir, libexecdir, localstatedir): Likewise.
3951         (INSTALL, INSTALL_PROGRAM, INSTALL_SCRIPT, INSTALL_DATA): Likewise.
3952         (STRIP): New macro; define it using AC_CHECK_TOOL substitution.
3953         (mkinstalldirs): New macro; define it as AC_PROG_MKDIR_P result.
3954         (LN_S): New macro; define it as AC_PROG_LN_S result.
3955         (dist, srcdist, bindist): New build objectives; implement them.
3956         (install, installdirs, install-strip, maintainer-clean): Likewise.
3957         (SRCDIST_FILES, SRCDIST_SUBDIRS): New macros; define them.
3958         (PACKAGE_DISTNAME, PACKAGE_DISTVERSION): Likewise.
3959         (PACKAGE_DISTROOT, PACKAGE_ROOTVERSION): Likewise.
3960         (PACKAGE_CONFIG_DIR): Likewise.
3961
3962 2010-02-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
3963
3964         Implement package installer for tar archives.
3965
3966         * src/pkgexec.cpp (pkgXmlDocument::Execute): Replace existing
3967         stub implementation of installer, using methods provided by...
3968         * src/pkgproc.h, src/tarproc.cpp: ...these new files, with trap...
3969         * src/pkgdeps.cpp (pkgXmlDocument::Schedule) [installed]: Add entry...
3970         (pkgActionItem::Selection) [to_remove]: ...for this; use it to detect
3971         `install' requests for packages which are aleady installed.
3972
3973         * Makefile.in (CORE_DLL_OBJECTS): Add tarproc.$(OBJEXT); specify
3974         dependencies as appropriate.
3975
3976         * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Don't commit
3977         newly created `sysroot' mapping records to disk; defer to...
3978         (pkgXmlDocument::UpdateSystemMap): ...this new method.
3979         (sigpath): Make it a global variable, with file (static) scope.
3980
3981         * src/climain.cpp (pkgXmlDocument::UpdateSystemMap): Invoke it.
3982
3983         * src/pkgkeys.h (download_key, modified_key, source_key): New global
3984         string variables; declare them, providing their implementations...
3985         * src/pkgkeys.c (download_key, modified_key, source_key): ...here.
3986         * src/pkgname.cpp (download_key, source_key): Use them.
3987
3988         * src/pkginet.cpp (pkgActionItem::ArchivePath): Delete; replace...
3989         * src/mkpath.c (pkgArchivePath): ...with this free standing function.
3990         * src/mkpath.h (pkgArchivePath): Declare its prototype.
3991
3992         * src/pkgbase.h (pkgActionItem::ArchivePath): Delete declaration.
3993         (pkgXmlDocument): Add a default constructor; implement as `inline'.
3994         (pkgXmlDocument::AddDeclaration): Use heap memory to allocate the new
3995         declaration object, instead of `auto' variable, to avoid scope error.
3996         (pkgXmlDocument::UpdateSystemMap): Declare it.
3997
3998 2010-01-26  Keith Marshall  <keithmarshall@users.sourceforge.net>
3999
4000         Implement rudimentary dependency resolver.
4001
4002         * src/pkgdeps.cpp: New file.
4003
4004         * Makefile.in (CORE_DLL_OBJECTS): Add pkgdeps.$(OBJEXT) reference;
4005         establish header file dependencies.
4006
4007         * src/pkgbase.h (to_remove, to_install, selection_types): New enum.
4008         (pkgActionItem::selection): Extend it to store as enumerated pair...
4009         (pkgActionItem::SelectPackage): New inline method; assign them.
4010         (pkgActionItem::Selection): New inline method; retrieve them.
4011         (pkgXmlNode::GetInstallationRecord): New method; declare it.
4012
4013         * src/pkgexec.cpp (pkgActionItem): In constructor...
4014         (selection): ...initialise both references in enumerated pair.
4015         (pkgActionItem::GetReference): Use `Selection()' method.
4016         (pkgActionItem::SelectIfMostRecent): Ditto; also correct logic for
4017         making selection, and assign to `to_install' element.
4018         (pkgXmlDocument::Schedule): Don't update `request'.
4019         (pkgActionItem::Execute): Implement as stub.
4020
4021         * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): Use new
4022         `Selection()' method.
4023
4024         * src/pkgkeys.h (yes_value, no_value): Declare new string constants.
4025         * src/pkgkeys.c (yes_value, no_value): Implement them.
4026
4027         * src/vercmp.cpp: Update copyright notice.
4028         (pkgVersionInfo::operator<=): Bug fix; must test for `<', but had `>'.
4029
4030 2010-01-23  Keith Marshall  <keithmarshall@users.sourceforge.net>
4031
4032         Avoid segmentation faults when processing invalid data streams.
4033
4034         * src/pkgstrm.h: Update copyright notice.
4035         (pkgArchiveStream::IsReady): New pure virtual method.
4036         (pkgRawArchiveStream::IsReady): Provide inline implementation.
4037         (pkgGzipArchiveStream::IsReady): Likewise.
4038         (pkgBzipArchiveStream::IsReady): Likewise.
4039         (pkgLzmaArchiveStream::IsReady): Likewise.
4040         (pkgXzArchiveStream::IsReady): Likewise.
4041
4042         * src/pkgstrm.cpp: Update copyright notice.
4043         (pkgLzmaArchiveStream, pkgXzArchiveStream) [fd == -1]: Decline to
4044         perform any form of read or decode processing.
4045
4046         * src/pkginet.cpp (pkgInternetLzmaStreamingAgent): Use `fd = -2' as
4047         pseudo-descriptor for the pkgLzmaArchiveStream derived component of
4048         this internet data streaming class.
4049
4050 2010-01-23  Keith Marshall  <keithmarshall@users.sourceforge.net>
4051
4052         Require liblzma >= liblzma-4.999.9beta_20091209-3-mingw32-dev
4053
4054         * src/pkgstrm.h (LZMA_API_STATIC): Remove definition and associated
4055         comment; it was required to permit, (but not to enforce), linking to
4056         the static liblzma.a library, with earlier beta releases, but this
4057         anomaly has now been corrected.
4058
4059 2010-01-22  Keith Marshall  <keithmarshall@users.sourceforge.net>
4060
4061         Remove zlib sources from trunk.
4062         (Application builders should use free standing implementation of
4063          zlib, from MinGW's package distribution page on SourceForge).
4064
4065 2010-01-22  Keith Marshall  <keithmarshall@users.sourceforge.net>
4066
4067         Remove bzip2 sources from trunk.
4068         (Application builders should use free standing implementation of
4069          bzip2, from MinGW's package distribution page on SourceForge).
4070
4071 2010-01-22  Keith Marshall  <keithmarshall@users.sourceforge.net>
4072
4073         Add subsystem specific sysroot mapping facility.
4074
4075         * src/pkghash.c: New file; required by...
4076         * src/sysroot.cpp: New file; it implements...
4077         (pkgXmlDocument::LoadSystemMap, pkgXmlNode::GetSysRoot): New methods.
4078
4079         * src/pkgbase.h: Update copyright notice.
4080         (pkgXmlDocument::LoadSystemMap): Declare it.
4081         (pkgXmlDocument::AddDeclaration): New inline method.
4082         (pkgXmlDocument::SetRoot, pkgXmlDocument::Save): Likewise.
4083         (pkgXmlNode::GetSysRoot): Declare it.
4084         (pkgXmlNode::GetDocumentRoot): New inline method.
4085         (pkgXmlNode::AddChild, pkgXmlNode::DeleteChild): Likewise.
4086
4087         * src/climain.cpp: Update copyright notice.
4088         (climain): Invoke pkgXmlDocument::LoadSystemMap() as required.
4089
4090         * Makefile.in (CORE_DLL_OBJECTS): Add ...
4091         (pkghash.$(OBJEXT), sysroot.$(OBJEXT)): ...these; upate dependencies.
4092         (DEBUGLEVEL): New macro; define it.
4093         (CPPFLAGS): Use it.
4094
4095 2010-01-16  Keith Marshall  <keithmarshall@users.sourceforge.net>
4096
4097         Assign standardised keys for XML database lookup.
4098
4099         * src/pkgkeys.h: New file; provide public key declarations.
4100         * src/pkgkeys.c: New file; implement them.
4101
4102         * src/pkgbind.cpp: Use them; update copyright notice.
4103         * src/pkgexec.cpp, src/pkgfind.cpp, src/pkginet.cpp: Likewise.
4104         * src/pkgname.cpp, src/pkgspec.cpp: Likewise.
4105
4106         * Makfile.in (CORE_DLL_OBJECTS): Add pkgkeys.$(OBJEXT); update all
4107         dependencies accordingly.
4108
4109 2010-01-08  Keith Marshall  <keithmarshall@users.sourceforge.net>
4110
4111         Add CLI version reporting option.
4112
4113         * configure.ac: Update copyright notice for new year.
4114         (COPYRIGHT_HOLDER): New AC_SUBST variable; define it.
4115         (YEARS_OF_ISSUE): New AC_SUBST variable; define it.
4116         (AC_CONFIG_FILES): Add `version.c'; source it from...
4117
4118         * version.c.in: ...this new file.
4119
4120         * Makefile.in: Update copyright notice for new year.
4121         (mingw-get$(EXEEXT)): Add dependency on `version.$(OBJEXT)'.
4122         (distclean): Add `version.c'.
4123
4124         * configure: Regenerated.
4125
4126         * src/clistub.c: Update copyright notice for new year.
4127         (options): New array of `struct option'; define and use it as the
4128         reference for `argv' parsing with `getopt_long_only()'.
4129
4130 2009-12-17  Keith Marshall  <keithmarshall@users.sourceforge.net>
4131
4132         Add CLI support for "update" action.
4133
4134         * src/pkgtask.h (ACTION_UPDATE): Define it, derived from...
4135         (action_update): ...this new entry in anonymous enumeration.
4136         
4137         * src/pkgexec.cpp (action_name): Add "update" keyword identification.
4138
4139         * src/pkgbase.h: Typo in comment; s/xwXmlDocument/wxXmlDocument/.
4140         (pkgXmlDocument::BindRepositories): Add `force_update' parameter...
4141         * src/pkgbind.cpp (pkgXmlDocument::BindRepositories): Use it to...
4142         (pkgXmlDocument::SyncRepository): ...invoke this method when passed as
4143         a `true' flag, in addition to (as previously) first time reference.
4144
4145         * src/climain.cpp (climain): Interpret "update" keyword for...
4146         [ACTION_UPDATE]: ...passing state as `force_update' parameter to...
4147         (pkgXmlDocument::BindRepositories): ...this method, then...
4148         [!ACTION_UPDATE]: Follow with normal action processing.
4149
4150 2009-12-16  Keith Marshall  <keithmarshall@users.sourceforge.net>
4151
4152         Add status checking for Internet URL connections.
4153
4154         * src/pkginet.cpp (pkgInternetAgent::QueryStatus): New method.
4155         (pkgInternetStreamingAgent::Get): Use it; set `dl_status' as return
4156         value, deferring failure diagnostics to callers, i.e. to...
4157         (pkgXmlDocument::SyncRepositories): ...this, and to...
4158         (pkgActionItem::DownloadArchiveFiles): ...this.
4159
4160 2009-11-23  Keith Marshall  <keithmarshall@users.sourceforge.net>
4161
4162         Add package download and repository synchronisation machinery.
4163
4164         * src/pkgstrm.h: New header file.
4165
4166         * src/pkgbind.cpp, src/pkginet.cpp, src/pkgstrm.cpp,
4167         src/pkgfind.cpp, src/pkgname.cpp, src/keyword.c: New files.
4168         * Makefile.in (CORE_DLL_OBJECTS): Add build goals for them.
4169
4170         * xml: New directory.
4171
4172         * src/climain.cpp (climain): Establish repository bindings from...
4173         * xml/profile.xml: ...this new configuration file.
4174
4175 2009-11-16  Keith Marshall  <keithmarshall@users.sourceforge.net>
4176
4177         Add XML database bindings and preliminary action executive for CLI.
4178
4179         * src/pkgbase.h, src/pkgtask.h,
4180         src/mkpath.h, src/vercmp.h: New header files.
4181
4182         * src/climain.cpp, src/pkgexec.cpp, src/pkgspec.cpp,
4183         src/mkpath.c, src/vercmp.cpp, src/xmlfile.c: New files.
4184
4185         * Makefile.in (CORE_DLL_OBJECTS): Define initial set of files...
4186         (mingw-get-0.dll): ...build them into this new DLL target; add it...
4187         (all): ...as prerequisite for this primary build goal.
4188
4189 2009-11-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
4190
4191         Avoid some potential GCC warnings.
4192
4193         * src/clistub.c: Include process.h for `execv' prototype...
4194         (main): Cast `argv' to appropriately matched type when calling it.
4195
4196         * src/pkginfo/driver.c: Include stdlib.h for `free' prototype.
4197
4198 2009-11-11  Keith Marshall  <keithmarshall@users.sourceforge.net>
4199
4200         Create diagnostic message handler for CLI usage.
4201
4202         * src/dmh.h: New header file; it defines the public interface.
4203         * src/dmh.cpp: New file; it implements the message handler.
4204
4205 2009-11-05  Keith Marshall  <keithmarshall@users.sourceforge.net>
4206
4207         Correct some identified TinyXML issues.
4208
4209         * tinyxml/tinyxml.h (IsWhiteSpace): Add FIXME annotation to flag
4210         probable redundancy of checks for '\n' and '\r'.
4211         * tinyxml/tinyxmlparser.cpp: Revert John E's 2008-08-09 change; remove
4212         all such redundancies in IsWhiteSpace() calls throughout.
4213
4214         * tinyxml/tinyxml.cpp (TiXmlAttribute::SetDoubleValue): Correct format
4215         specification in sprintf()/snprintf() calls; "%lf" is invalid; replace
4216         with "%f".
4217
4218 2009-10-31  Keith Marshall  <keithmarshall@users.sourceforge.net>
4219
4220         Add CLI loader stub.
4221
4222         * src/clistub.c: New file.
4223         * Makefile.in: Add build rule for it; build as...
4224         (mingw-get.exe): ...this; also add to...
4225         (clean): ...this goal.
4226
4227 2009-10-31  Keith Marshall  <keithmarshall@users.sourceforge.net>
4228
4229         Set up build mechanism.
4230
4231         * configure.ac, Makefile.in: New files.
4232         * .cvsignore (configure, autom4te.cache): Add to ignored files.
4233
4234 2009-10-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
4235
4236         Add GPL-v3 licensing terms.
4237
4238         * COPYING: New file, sourced from gnu.org.
4239
4240 2009-10-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
4241
4242         Add pkginfo implementation.
4243
4244         * src, src/pkginfo: New directories.
4245         * src/pkginfo/pkginfo.h, src/pkginfo/pkginfo.l: New files.
4246         * src/pkginfo/driver.c: New file.
4247
4248 2009-10-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
4249
4250         Create tdm-branch.
4251
4252         * All files (tdm-branch): Assign new branch tag.
4253         * All top-level files: Remove from trunk.
4254         * ChangeLog: New file.