OSDN Git Service

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