1 2013-01-12 Keith Marshall <keithmarshall@users.sourceforge.net>
3 Merge gui-dev branch head to master; close gui-dev branch.
5 * configure.ac (AC_INIT): Reset version to 0.6; reset all package
6 files to state prevailing at gui-dev branch head.
8 2013-01-11 Keith Marshall <keithmarshall@users.sourceforge.net>
10 Create release branch for further r0.5 development.
12 * configure.ac (AC_INIT): Bump version number to 0.5.1; assign branch
13 label (mercurial bookmark) as "r0-5-1" for all files; (this is not to
14 be released, at this time).
16 2013-01-10 Keith Marshall <keithmarshall@users.sourceforge.net>
18 Implement data sheet compiler for list of installed files.
20 * src/pkgdata.cpp: #include pkgproc.h; it furnishes...
21 (pkgManifest): ...this class declaration, which is required by...
22 (DataSheetMaker::DisplayFilesManifest): ...this new private inline
23 method; declare and implement it; subsequently, invoke it...
24 (DataSheetMaker::OnPaint) [PKG_DATASHEET_INSTALLED_FILES]: ...here.
25 (pkgTroffLayoutEngine::WriteLn): Correct a defect in handling of
26 excess-length unbreakable "words" outside the viewport; previously
27 they were not dropped from the input queue, resulting in repeated
28 reprocessing in an infinite loop.
30 2013-01-09 Keith Marshall <keithmarshall@users.sourceforge.net>
32 Include release tags in GUI displayed package versions.
34 * src/pkglist.cpp (pkgVersionString) [ReleaseStatus != NULL]:
35 Append ReleaseStatus and ReleaseIndex to generated version string.
37 2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
39 Fix enumeration of pending install actions for scheduled upgrades.
41 * src/pkgdata.cpp (pkgActionItem::EnumeratePendingActions):
42 [action == ACTION_UPGRADE && classified == ACTION_INSTALL]: Enumerate
43 upgrade as a special case of the install classification.
45 2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
47 Implement "Mark All Upgrades" GUI capability.
49 * src/guimain.h (IDM_REPO_APPLY): Renumbered; make room for...
50 (IDM_REPO_MARK_UPGRADES): ...this new constant; define it.
52 * src/guidata.rc (IDM_REPO_MARK_UPGRADES): New option; add it...
53 (ID_MAIN_WINDOW_WINDOW) [Installation]: ...to this drop-down menu.
55 * src/pkgbase.h (pkgActionItem::SuppressRedundantUpgrades): New
56 public inline method; declare it.
58 * src/guiexec.cpp (AppWindowMaker::OnCommand):
59 [IDM_REPO_MARK_UPGRADES]: Add case handler for this menu selection.
60 (pkgActionItem::SuppressRedundantUpgrades): New method; implement it.
62 2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
64 Avoid unnecessary reloading of package list.
66 * src/guiexec.cpp (AppWindowMaker::OnCommand) [IDM_REPO_APPLY]:
67 Do not reload package list after processing; update it in place.
69 2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
71 Avoid potential heap corruption in action scheduler.
73 * src/guiexec.cpp (pkgActionItem::Clear): Factor out; relocate to...
74 * src/pkgexec.cpp (pkgActionItem::Clear): ...here; this keeps all use
75 of new and delete operators on the same side of the EXE/DLL boundary
76 as the constructor and destructor for pkgActionItem objects.
77 (pkgActionItem::Schedule): Ensure that all min_wanted and max_wanted
78 references are unique to each allocated pkgActionItem object, so that
79 the destructor may safely release their associated heap memory blocks.
81 2013-01-07 Keith Marshall <keithmarshall@users.sourceforge.net>
83 Update copyright notification for development in new year.
85 * configure.ac (YEARS_OF_ISSUE): Add year 2013.
87 * Makefile.in (version.c, guidata.$OBJEXT): Make them depend on...
88 (Makefile): ...this, so YEARS_OF_ISSUE propagates to built objects.
90 2012-12-24 Keith Marshall <keithmarshall@users.sourceforge.net>
92 Work around a GUI action scheduling instability.
94 * src/guimain.h (AppWindowMaker::UpdateDataSheet): Declare new method.
95 * src/pkgdata.cpp (AppWindowMaker::UpdateDataSheet): Implement it.
96 (AppWindowMaker::OnNotify): Use it.
98 * src/guiexec.cpp (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]:
99 Don't refresh package list view in-place; clear and reload it instead.
101 2012-12-21 Keith Marshall <keithmarshall@users.sourceforge.net>
103 Update distribution build rules.
105 * Makefile.in (SRCDIST_FILES): Remove version.c.in; this was moved
106 to src/version.c.in, and is now automatically included via...
107 (SRCDIST_SUBDIRS): ...this; remove build-aux and build-aux/m4; we want
108 only selected files from these, as filtered by specification in...
109 (BUILD_AUX_DIRS, BUILD_AUX_FILES): ...these new macros; define them.
110 (BLDTAG, SCMTAG, GCMTAG): New release class macros; define them.
111 (bindist, licdist, srcdist): Use them.
113 2012-12-21 Keith Marshall <keithmarshall@users.sourceforge.net>
115 Update CLI implementation hooks for GUI integration.
117 * Makefile.in (LIBEXEC_PROGRAMS): Replace gui$EXEEXT with
118 guistub$EXEEXT; update make goal references accordingly.
120 * src/rites.c (MINGW_GET_GUI): Redefine to be guimain$EXEEXT.
121 (MINGW_GET_GFB): Define new fall-back; let it be guistub$EXEEXT.
122 (RITES_IMPLEMENTATION): Perform rites for MINGW_GET_GUI.
124 * src/clistub.c (main) [cannot exec MINGW_GET_GUI]: Try
125 MINGW_GET_GFB instead.
127 2012-12-21 Keith Marshall <keithmarshall@users.sourceforge.net>
129 Rename executive core file for GUI implementation.
131 * src/guixmld.cpp: File renamed...
132 * src/guiexec.cpp: ...to this; its function exceeds original intent.
133 * Makefile.in (GUIMAIN_OBJECTS): Update reference accordingly.
135 2012-12-20 Keith Marshall <keithmarshall@users.sourceforge.net>
137 Create foundation for implementation of package category tree view.
139 * Makefile.in (GUIMAIN_OBJECTS): Add pkgtree.$OBJEXT reference to...
140 * src/pkgtree.cpp: ...incorporate this new file; it implements...
141 (AppWindowMaker::InitPackageTreeView): ...this new class method...
142 (pkgInitCategoryTreeGraft): ...and this new extern "C" function.
144 * src/guimain.h (pkgInitCategoryTreeGraft): Declare prototype.
145 (AppWindowMaker::InitPackageTreeView): New private method; declare it.
146 (AppWindowMaker::PackageTreeView): New member variable; declare it.
148 * src/guixmld.cpp (AppWindowMaker::LoadPackageData): Call
149 pkgInitCategoryTreeGraft(), after loading profile.xml
150 (AppWindowMaker::Invoked): Call InitPackageTreeView()
152 * src/pkgview.cpp (AppWindowMaker::LayoutEngine):
153 [ID_PACKAGE_TREEVIEW]: Handle it.
155 2012-12-19 Keith Marshall <keithmarshall@users.sourceforge.net>
157 Make the "Apply Changes" dialogue "failure-aware".
159 * src/pkgtask.h (ACTION_APPLY_FAILED): Redefine, in terms of...
160 (ACTION_INSTALL_FAILED, ACTION_REMOVE_FAILED): New manifest defines.
161 (ACTION_UNSUCCESSFUL): New manifest constant; define it.
163 * src/pkgdata.cpp (pkgActionItem::EnumeratePendingActions):
164 [ACTION_UNSUCCESSFUL]: Make it a special case for enumeration.
166 * src/guixmld.cpp (pkgApplyChanges): Enumerate...
167 [ACTION_UNSUCCESSFUL > 0]: ...all such cases; when true...
168 [IDD_AUTO_CLOSE_OPTION]: ...this; select alternative close-out
169 messages, as appropriate.
170 (pkgActionItem::Assert): Factor out; relocate to...
171 * src/pkgexec.cpp (pkgActionItem::Assert): ...here; this moves its
172 object code into the mingw-get DLL.
174 * src/pkgunst.cpp (pkgRemove) [ACTION_REMOVE_FAILED]:
175 * src/pkginst.cpp (pkgInstall) [ACTION_INSTALL_FAILED]:
176 Assert as appropriate.
178 2012-12-19 Keith Marshall <keithmarshall@users.sourceforge.net>
180 Improve progress reporting in "Apply Changes" dialogue.
182 * src/pkgstat.h: New header file; it declares...
183 (pkgSpinWait): ...this new pure abstract base class; it specifies an
184 infrastructure for posting arbitrary text to dialogue controls.
186 * src/pkgexec.cpp (pkgSpinWait): Implement its static elements.
187 (pkgActionItem::Execute): Dispatch progress reports, handled by...
188 (pkgSpinWait::Report, pkgSpinWait::Indicator): ...these.
190 * src/guixmld.cpp (pkgDialogueSpinWait): New class; declare it and
191 implement locally. It is derived from, and provides a listener for...
192 (pkgSpinWait): ...this abstract class.
193 (pkgApplyChanges): Use it.
195 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDataStream): Call...
196 (pkgSpinWait::Report): ...this, to report extracted files.
198 * src/pkgunst.cpp (pkg_unst): Call...
199 (pkgSpinWait::Report): ...this, to report deleted files.
201 * src/sysroot.cpp (pkgXmlDocument::UpdateSystemMap): Call...
202 (pkgSpinWait::Report, pkgSpinWait::Indicator): ...these, to confirm
203 continuing database update activity.
205 2012-12-18 Keith Marshall <keithmarshall@users.sourceforge.net>
207 Update tab display on right-click in package list view.
209 * src/pkgdata.cpp (AppWindowMaker::OnNotify) [NM_RCLICK]:
210 Call DataSheetMaker::DisplayData(), before invoking pop-up menu.
212 2012-12-17 Keith Marshall <keithmarshall@users.sourceforge.net>
214 Add more protection against NULL pointer abuse.
216 * src/pkgbase.h (pkgActionItem::Reset): Method renamed to...
217 * src/guixmld.cpp (pkgActionItem::Assert): ...this; also renamed here.
218 (AppWindowMaker::OnCommand): When calling...
219 (pkgListViewMaker::MarkScheduledActions): ...this, pass argument as...
220 (pkgXmlDocument::ClearScheduledActions): ...pointer returned by this.
222 * src/pkgdata.cpp (AppWindowMaker::MarkSchedule):
223 [pending_actions == NULL]: Do not propagate invocation request to...
224 (pkgListViewMaker::MarkScheduledActions): ...this.
226 * src/pkglist.cpp (pkgListViewMaker::MarkScheduledActions):
227 [schedule == NULL]: Do nothing.
229 2012-12-14 Keith Marshall <keithmarshall@users.sourceforge.net>
231 Implement some additional permanent debugging support.
233 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
234 [DEBUG_TRACE_DEPENDENCIES]: Enable DMH digest mode for messages.
236 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDataStream):
237 [DEBUG_TRACE_TRANSACTIONS]: Add logging of installed file path names.
239 2012-12-14 Keith Marshall <keithmarshall@users.sourceforge.net>
241 Insert a missing snprintf format effector.
243 * src/pkgnget.cpp (pkgDownloadMeterGUI::Update): Add omitted '%'
244 format specifier, in "%%", for formatting percentage-complete value.
245 Rename "size_buf" automatic variable as "buf"; this results in shorter
246 source lines, and consequently a tidier source code layout.
247 (pkgDownloadMeterGUI::ResetGUI): Likewise s/size_buf/buf/
249 2012-12-14 Keith Marshall <keithmarshall@users.sourceforge.net>
251 Add a missing header reference.
253 * src/approot.h: Include stdint.h; this ensures that wchar_t is
254 properly typedef'd, before attempting to use it.
256 2012-12-12 Keith Marshall <keithmarshall@users.sourceforge.net>
258 Make a clone of the package menu available as a pop-up.
260 * src/guimain.h (AppWindowMaker::SelectPackageAction): New private
263 * src/pkgdata.cpp (AppWindowMaker::SelectPackageAction): Implement it.
264 (AppWindowMaker::OnNotify) [ID_PACKAGE_LISTVIEW]: Use it.
266 2012-12-12 Keith Marshall <keithmarshall@users.sourceforge.net>
268 Improve conditionally enabled state manipulation for menu items.
270 * src/guidata.rc (IDM_REPO_APPLY): Set its initial state as GRAYED.
272 * src/pkgdata.cpp (AppWindowMaker::UpdatePackageMenuBindings):
273 [IDM_PACKAGE_REINSTALL]: Always leave it GRAYED; this is a temporary
274 provision, until the GUI is updated to support "reinstall" capability.
275 [IDM_REPO_APPLY && !(EnumeratePendingActions > 0)]: Make it GRAYED.
276 [IDM_REPO_APPLY && (EnumeratePendingActions > 0)]: Enable it.
278 2012-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
280 Implement GUI bindings for processing a schedule of actions.
282 * src/guimain.h (IDD_DMH_CONSOLE): New resource ID; define it.
283 (IDD_APPLY_EXECUTE): New dialogue template resource ID; define it.
284 (AppWindowMaker::ExecuteScheduledActions): New method; declare it.
286 * src/guidata.rc (IDD_APPLY_EXECUTE): Implement dialogue template.
288 * src/guixmld.cpp (pkgApplyChanges): New thread function; implement it.
289 (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]: Use it; it is invoked...
290 (IDD_APPLY_EXECUTE): ...via this dialogue box, subsequently calling...
291 (AppWindowMaker::ExecuteScheduledActions): ...this; implement it.
293 * src/pkgexec.cpp (pkgActionItem::Execute): Add argument; use it.
294 (pkgActionItem::~pkgActionItem): Unlink chained references.
296 * src/pkgbase.h (pkgActionItem::Execute): Adjust prototype.
298 2012-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
300 Do not preserve unnecessary download requests.
302 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles):
303 [(flags & ACTION_INSTALL) != ACTION_INSTALL]: Actions having no
304 "install" effect do not require a download; cancel any associated
307 2012-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
309 Implement GUI bindings for package download agent.
311 * src/guimain.h (IDD_PROGRESS_VAL, IDD_PROGRESS_MAX):
312 (IDD_PROGRESS_PCT): New manifest resource IDs; define them. They will
313 be used to identify dialogue controls, to be associated with...
314 (IDD_APPLY_DOWNLOAD): ...this new dialogue template ID; define it.
315 (AppWindowMaker::DownloadArchiveFiles): New inline method; declare it.
317 * src/guidata.rc (IDD_APPLY_DOWNLOAD): Implement dialogue template.
319 * src/pkgbase.h (pkgActionItem::DownloadArchiveFiles): New public
320 inline method; declare it. It overloads an existing private method of
321 the same name, which it subsequently invokes.
323 * src/pkginet.h: New header file; it declares...
324 (pkgInvokeDownload): ...this new extern "C" function prototype, and...
325 (pkgDownloadMeter): ...this abstract class; it is factored from its
326 original implementation in pkginet.cpp, augmented by addition of...
327 (pkgDownloadMeter::primary): New static member variable; declare it.
328 (pkgDownloadMeter::UseGUI): New public method; implement it inline.
329 (pkgDownloadMeter::ResetGUI): New public method; declare it, providing
330 a do-nothing inline default implementation. Any derived class, which
331 supports GUI capability, should override this.
333 * src/pkgnget.cpp: New file; it implements...
334 (pkgDownloadMeterGUI): New class, derived from pkgDownloadMeter.
335 (pkgActionItem::DownloadArchiveFiles): New overloaded inline method.
336 (AppWindowMaker::DownloadArchiveFiles): New inline method.
337 (pkgInvokeDownload): New dialogue box worker thread handler.
339 * src/pkginet.cpp: Include pkginet.h; hence...
340 (pkgDownloadMeter): ...remove redundant class declaration.
341 (pkgDownloadMeter::primary): Define and initialise it.
342 (pkgInternetStreamingAgent::Get) [pkgDownloadMeter::UseGUI]: Delegate
343 progress metering to referenced pkgDownloadMeterGUI class instance.
344 [! pkgDownloadMeter::UseGUI]: Continue to use the existing built-in
345 pkgDownloadMeterTTY mechanism.
346 (pkgActionItem::DownloadSingleArchive) [ACTION_DOWLOAD_FAILED]: Assert
347 this initially; subsequently clear it on successful completion.
348 (pkgActionItem::DownloadArchiveFiles): Collect diagnostic messages
349 into a single DMH_BEGIN_DIGEST ... DMH_END_DIGEST group.
351 * src/guixmld.cpp: Include pkginet.h; it is required by...
352 (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]: Use pkgInvokeDownload.
354 * Makefile.in (GUIMAIN_OBJECTS): Include pkgnget.$OBJEXT
356 2012-12-08 Keith Marshall <keithmarshall@users.sourceforge.net>
358 Implement "Discard" handler for GUI "Apply Changes" dialogue.
360 * src/pkgbase.h (pkgActionItem::Reset): New public method; declare it.
361 (pkgActionItem::Clear): New public method; declare two overloaded
362 variants, of which implement one inline.
363 (pkgXmlDocument::ClearScheduledActions): New public method; declare
364 and implement it inline.
366 * src/pkgtask.h (ACTION_DOWNLOAD_FAILED, ACTION_APPLY_FAILED): New
367 manifest bit-flag constants; define them. They provide a mechanism
368 for blocking the discard event in respect of failed actions.
370 * src/guixmld.cpp (pkgActionItem::Reset): Implement it.
371 (pkgActionItem::Clear): Implement second, out-of-line variant.
372 (ACTION_PRESERVE_FAILED): New local manifest bit-flag constant; define
373 it as an aggregate of ACTION_DOWNLOAD_FAILED and ACTION_APPLY_FAILED.
374 (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]: Use them.
376 2012-12-07 Keith Marshall <keithmarshall@users.sourceforge.net>
378 Implement GUI dialogue for "Apply Changes" action approval.
380 * src/guidata.rc (ID_MAIN_WINDOW_MENU): Rename...
381 ("&Repository"): ...this drop-down menu entry...
382 ("&Installation"): ...this; add...
383 ("&Apply Changes"): ...this new selection.
384 (IDD_APPLY_APPROVE): New dialogue box resource template; define it.
385 (SS_CTEXTBOX): New aggregate style convenience macro; define it.
386 (ES_VT100): Likewise.
388 * src/guimain.h (IDM_REPO_APPLY): New resource ID; define it.
389 (IDM_REPO_QUIT): Redefined resource ID; was 302; changed to 312.
390 (IDD_APPLY_APPROVE, IDD_PROGRESS_TXT): New resource IDs; define them.
391 (IDD_APPLY_REMOVES_PACKAGES, IDD_APPLY_REMOVES_SUMMARY): Likewise.
392 (IDD_APPLY_INSTALLS_PACKAGES, IDD_APPLY_INSTALLS_SUMMARY): Likewise.
393 (IDD_APPLY_UPGRADES_PACKAGES, IDD_APPLY_UPGRADES_SUMMARY): Likewise.
394 (ID_APPLY, ID_DISCARD, ID_DEFER): New response IDs; define them.
395 (AppWindowMaker::EnumerateActions): New inline method; declare it.
396 (AppWindowMaker::DialogueResponse): New inline method; declare and
399 * src/guixmld.cpp (pkglist.h): #included.
400 (dmh_setpty): Add locally declared prototype.
401 (AppWindowMaker::EnumerateActions): Implement it.
402 (pkgActionCount): New static helper function; implement it.
403 (ACTION_APPLY, APPLIES_TO): New macros; define them.
404 (FMT_APPLY_REMOVES, FMT_APPLY_INSTALLS, FMT_APPLY_UPGRADES): New
405 manifest string constants; define them.
406 (pkgApplyApproved): New static call-back function; implement...
407 (AppWindowMaker::OnCommand) [IDM_REPO_APPLY]: ...and use it.
409 2012-12-06 Keith Marshall <keithmarshall@users.sourceforge.net>
411 Implement enhanced action item enumeration capability.
413 * src/pkgbase.h (pkgActionItem::EnumeratePendingActions): New public
414 method; declare it. It provides the capability to enumerate scheduled
415 actions, filtered by action classification; when invoked such that it
416 selects all actions, it may be used as a replacement for...
417 (pkgActionItem::Unapplied): ...this; delete declaration.
419 * src/pkgdata.cpp (pkgActionItem::EnumeratePendingActions): Implement
420 it; it is derived, with enhancement, from original implementation...
421 (pkgActionItem::Unapplied): ...of this; delete it, and...
422 (AppWindowMaker::OnClose): ...update calling reference accordingly.
424 2012-12-05 Keith Marshall <keithmarshall@users.sourceforge.net>
426 Implement PTY display emulation for GUI mode DMH.
428 * src/dmhcore.h (dmhTypeGeneric::set_console_hook): New public virtual
429 method; declare it, providing inline default do-nothing implementation.
430 (dmhTypeGeneric::severity_tag): New protected static method; declare it.
431 (dmhTypeGeneric::notification_format): New protected static property;
434 * src/dmh.cpp (dmhTypeGeneric::severity_tag): Implement it.
435 (dmhTypeGeneric::notification_format): Define and initialise it.
436 (dmhTypeTTY::notify): Use them.
437 (dmh_setpty): New function; declare prototype and implement it.
439 * src/guidmh.cpp (dmhTypePTY): New locally implemented class.
440 (dmhTypeGUI::set_console_hook): New virtual method; declare and
441 implement it; it stores a dmhTypePTY reference pointer into...
442 (dmhTypeGUI::console_hook): ...this new private member variable.
443 (dmhTypeGUI::dmhTypeGUI): Initialise it.
444 (dmhTypeGUI::notify) [console_hook != NULL]: Delegate to it.
445 (dmhTypeGUI::printf) [console_hook != NULL]: Likewise.
447 2012-12-03 Keith Marshall <keithmarshall@users.sourceforge.net>
449 Implement generalised API for dialogue boxes with worker threads.
451 * src/guimain.h (pkgDialogueThread): New typedef; declare it.
452 (AppWindowMaker::DialogueThread): New static property; declare it.
453 (AppWindowMaker::DispatchDialogueThread): New method; declare it.
455 * src/guixmld.cpp: Formatting of several comments adjusted.
456 (pkgUpdate, pkgInitDataLoad): Defunct functions; replaced by...
457 (pkgDialogue): ...this new static call-back function; implement it.
458 (AppWindowMaker::DialogueThread): Instantiate and initialise it.
459 (AppWindowMaker::DispatchDialogueThread): Implement it.
460 (AppWindowMaker::Invoked): Use it to invoke pkgInvokeInitDataLoad()...
461 (AppWindowMaker::OnCommand): ...and pkgInvokeUpdate().
463 2012-12-03 Keith Marshall <keithmarshall@users.sourceforge.net>
465 Consolidate GUI implementation for package list view management.
467 * src/pkglist.h (pkgListViewMaker::GetTitle): Disused overloaded
468 method; remove all declarations.
469 (pkgListViewMaker::GetVersionString): Disused method; remove
471 (pkgListViewMaker::GetItem): New private inline method; declare it.
472 (pkgListViewMaker::UpdateItem): New private method; declare it.
473 (pkgListViewMaker::UpdateListView): New public method; declare it.
474 (pkgListViewMaker::MarkScheduledActions): Likewise.
476 * src/guimain.h (AppWindowMaker::MarkSchedule): New public inline
477 method; declare it, but defer implementation to...
479 * src/pkgdata.cpp (AppWindowMaker::MarkSchedule): ...here; not used
480 elsewhere, it is derived from, and replaces...
481 (pkgMarkSchedule): ...this function; factor out redundant code, in
482 favour of delegation to pkgListViewMaker::MarkScheduledActions(), with
483 following call to AppWindowMaker::UpdatePackageMenuBindings(); update
484 calling function references...
485 (AppWindowMaker::UnmarkSelectedPackage): ...here, and...
486 (AppWindowMaker::Schedule): ...here.
488 * src/pkglist.cpp (pkgVersionString): New static function; implement
489 it as a local replacement for...
490 (pkgListViewMaker::GetVersionString): ...this defunct class method.
491 (pkgGetTitle): New overloaded static function; implement two variants,
492 as local replacements for...
493 (pkgListViewMaker::GetTitle): ...this defunct overloaded class method.
494 (pkgListViewMaker::UpdateItem): Implement it; factor code from...
495 (pkgListViewMaker::InsertItem): ...here, whence use it.
496 (pkgListViewMaker::MarkScheduledActions): Implement it.
497 (pkgListViewMaker::UpdateListView): Implement it.
498 (pkgListViewMaker::pkgListViewMaker): Remove references to...
499 (LVIF_TEXT): ...this.
501 2012-11-30 Keith Marshall <keithmarshall@users.sourceforge.net>
503 Increase width of window sash bars by 50%.
505 * src/guimain.h (SASH_BAR_THICKNESS): Increase from 4 to 6; this makes
506 it easier to grab the sash bars, so they may be dragged; IMO, it also
507 results in a better appearance.
509 2012-11-29 Keith Marshall <keithmarshall@users.sourceforge.net>
511 Maintain consistent internal vs. external installation records.
513 * src/pkginst.cpp (pkgInstall): Set "installed" attribute on internal
514 package reference, to "yes", after installation; CLI didn't need this,
515 but GUI will do so, for any package revisited in a single session.
517 * src/pkgunst.cpp (pkgRemove): Similarly, negate "installed" attribute
518 after package removal.
520 2012-11-17 Keith Marshall <keithmarshall@users.sourceforge.net>
522 Refactor to consolidate three instances of duplicate code.
524 * src/pkglist.h (pkgGetStatus): New function; declare it.
525 * src/pkglist.cpp (pkgGetStatus): Implement it; factor out from...
526 (pkgListViewMaker::InsertItem): ...here, whence use it.
527 * src/pkgdata.cpp (pkgMarkSchedule): Likewise here...
528 (DataSheetMaker::DisplayGeneralData): ...and here.
530 2012-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
532 Add GUI support for install, upgrade, and remove action scheduling.
534 * src/guimain.h (EXTERN_C): Ensure it is defined.
535 (pkgActionItem): Add forward declaration of class name.
536 (pkgMarkSchedule): New EXTERN_C function; declare and prototype it.
537 (AppWindowMaker::OnClose): New virtual method; declare it.
538 (AppWindowMaker::Schedule): New public method; declare it.
539 (AppWindowMaker::UnmarkSelectedPackage): Likewise.
541 * src/pkgbase.h (pkgActionItem::HasAttribute) [this == NULL]: Add
542 protective logic; ignore attempts to access non-existent objects.
543 (pkgActionItem::SelectPackage) [this == NULL]: Likewise.
544 (pkgActionItem::Selection) [this == NULL]: Likewise.
545 (pkgActionItem::GetReference): New overloaded public method; declare
546 prototype variant with argument type of pkgXmlNode*.
547 (pkgActionItem::Unapplied): New public method; declare it.
548 (pkgActionItem::CancelScheduledAction): Likewise.
549 (pkgXmlDocument::Schedule): Change return type from void to
550 pkgActionItem*; add default argument values.
552 * src/guixmld.cpp (AppWindowMaker::OnCommand): Add menu case hooks...
553 [IDM_PACKAGE_INSTALL]: ...to schedule package 'install' action...
554 [IDM_PACKAGE_UPGRADE]: ...package 'upgrade' action...
555 [IDM_PACKAGE_REMOVE]: ...package 'remove' action, or...
556 [IDM_PACKAGE_UNMARK]: ...to cancel any of these scheduling requests.
557 [IDM_REPO_QUIT]: Correct typo; s/WM_QUIT/WM_CLOSE/ in comment.
559 * src/pkgdata.cpp (pkgMarkSchedule): Implement it.
560 (pkgActionItem::CancelScheduledAction): Implement it.
561 (pkgActionItem::Unapplied): Implement it.
562 (AppWindowMaker::UpdatePackageMenuBindings): Improve comments.
563 (AppWindowMaker::UnmarkSelectedPackage): Implement it.
564 (AppWindowMaker::Schedule): Implement it.
565 (AppWindowMaker::OnClose): Implement it.
567 * src/pkgdeps.cpp (pkgActionItem::GetReference): Implement overload.
568 (pkgXmlDocument::Schedule): Change return type, and return value.
569 [this == NULL]: Add protective logic; ignore non-existent objects.
570 [name == NULL]: Do not schedule; just return existing action list.
572 2012-11-02 Keith Marshall <keithmarshall@users.sourceforge.net>
574 Add dynamically enabled state control for package menu items.
576 * src/guimain.h (AppWindowMaker::UpdatePackageMenuBindings): New
577 private method; declare it.
579 * src/pkgdata.cpp (AppWindowMaker::UpdatePackageMenuBindings):
581 (AppWindowMaker::OnNotify): ...use it.
583 2012-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
585 Avoid excessive inter-word spaces in adjusted text.
587 * src/pkgdata.cpp (pkgTroffLayoutEngine::WriteLn): Check extent of
588 padding to be added at each inter-word space, when adjusting text; do
589 not adjust, if it exceeds 5% of available display pane width.
591 2012-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
593 Elide unbreakable text which will not fit within display width.
595 * src/pkgdata.cpp (pkgTroffLayoutEngine::WriteLn): Add logic to detect
596 over-width unbreakable text; elide characters from the right, to make
597 it fit within the display width, with trailing ellipsis.
599 2012-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
601 Add content compiler for package data sheet "general" tab.
603 * src/pkgbase.h (pkgActionItem::PrintURI): Make it public. Add a
604 call-back reference argument, for output function; assign puts() as
605 default, where previously had hard coded printf() emulating puts()
607 * src/pkginet.cpp (pkgActionItem::PrintURI): Use call-back hook.
609 * src/pkgdata.cpp (DataSheetMaker::Display): New static property; it
610 stores a reference to the active class instance, so static call-back
611 methods may delegate processing requests to non-static methods.
612 (DataSheetMaker::Advance): New static property; it is used to instruct
613 call-back methods to interpose paragraph leading it the output stream.
614 (DataSheetMaker::FormatRecord): New private method; implement it.
615 (DataSheetMaker::FormatText): Don't pass "canvas" as an argument; we
616 can access it directly as a class property. Update all callers as
617 necessary, to conform to modified function prototype.
618 (pkgListSelection): New static function; implement it, and...
619 (DataSheetMaker::OnPaint): ...use it in switch cases, when calling...
620 [PKG_DATASHEET_GENERAL]: DataSheetMaker::DisplayGeneralData(), and...
621 [PKG_DATASHEET_DESCRIPTION]: DataSheetMaker::DisplayDescription().
622 (DataSheetMaker::DisplayGeneralData): New public method; implement it.
623 (DataSheetMaker::DisplayPackageURL): New static method; implement it.
624 (DataSheetMaker::DisplayLicenceURL): Likewise.
625 (DataSheetMaker::DisplaySourceURL): Likewise.
627 2012-10-30 Keith Marshall <keithmarshall@users.sourceforge.net>
629 Fix error in counting of catalogue files during loading.
631 * src/pkgbind.cpp (pkgRepository::GetPackageList): Increment count
632 variable once only, at start of each cycle of the catalogue loading
633 loop; previous strategy of counting in discrete logic paths could
634 miss several required increments, particularly in CLI mode.
636 2012-10-27 Keith Marshall <keithmarshall@users.sourceforge.net>
638 Avoid DMH message digest fragmentation when downloading.
640 * src/dmh.h (DMH_GET_CONTROL_STATE): New macro; define it.
641 * src/pkginet.cpp (pkgInternetAgent::OpenURL): Use it; do not close
642 locally opened message digest, when called with one already open.
644 2012-10-27 Keith Marshall <keithmarshall@users.sourceforge.net>
646 Initiate progress metering for catalogue load and update operations.
648 * src/guidata.rc (IDD_REPO_UPDATE): New dialogue template; define it.
649 (IDM_REPO_UPDATE): Enable selection from "Repository" drop-down menu.
651 * src/guimain.h (IDD_REPO_UPDATE, IDD_CLOSE_OPTIONS):
652 (IDD_AUTO_CLOSE_OPTION, IDD_PROGRESS_BAR, IDD_PROGRESS_MSG): New
653 resource identification manifest constants; define them.
654 (pkgXmlNode, pkgProgressMeter): Add forward class declarations.
655 (AppWindowMaker::AttachedProgressMeter): New private data; define...
656 (AppWindowMaker::AppWindowMaker): ...and initialise it.
657 (AppWindowMaker::AttachProgressMeter): New public method; declare it.
658 (AppWindowMaker::DetachProgressMeter): Likewise.
659 (AppWindowMaker::LoadPackageData, AppWindowMaker::ClearPackageList):
660 (AppWindowMaker::UpdatePackageList): Make them public.
662 * src/pkgbase.h (pkgProgressMeter): New abstract class; declare it.
663 (AppWindowMaker) [GUIMAIN_H undefined]: Add forward class declaration.
664 (pkgXmlDocument::progress_meter): New private data member; declare...
665 (pkgXmlDocument::pkgXmlDocument): ...and initialise it.
666 (pkgXmlDocument::ProgressMeter, pkgXmlDocument::AttachProgressMeter):
667 (pkgXmlDocument::DetachProgressMeter): New public inline methods;
670 * src/pkgview.cpp (WTK::GenericDialogue): Delete disused reference.
671 (AppWindowMaker::OnCommand): Factor out implementation; relocate it...
672 * src/guixmld.cpp: ...to here; thus it may utilise dependants of...
673 (ProgressMeterMaker): ...this new locally implemented class.
674 (AppWindowMaker::AttachProgressMeter): Implement it.
675 (AppWindowMaker::AttachProgressMeter): Likewise.
676 (pkgProgressMeter::~pkgProgressMeter): Likewise.
677 (pkgUpdate, pkgInvokeUpdate): New static functions; implement them.
678 (AppWindowMaker::Invoked): Replace direct call to LoadPackageData by
679 an indirect invocation, via a progress metering dialogue box using...
680 (pkgInitDataLoad): ...this new static callback function, invoking...
681 (pkgInvokeInitDataLoad): ...this new static thread function, whence...
682 (AppWindowMaker::LoadPackageData): ...this; add hook-up call to...
683 (pkgXmlDocument::AttachProgressMeter): ...incorporate this.
685 * src/pkgbind.cpp (pkgRepository::total, pkgRepository::count): New
686 private static properties; declare and instantiate them; provide...
687 (pkgRepository::Reset, pkgRepository::IncrementTotal): ...new public
688 static methods to manipulate them; declare and implement them inline.
689 (pkgRepository::GetPackageList): Use them to manage updates to the
690 pkgProgressMeter class instance, if any, which has been bound to
691 the controlling pkgXmlDocument class instance, when invoking...
692 (pkgXmlXmlDocument::BindRepositories): ...this.
694 2012-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
696 Associate DMH message boxes with active dialogues.
698 * src/guidmh.cpp (last_active_popup): New static inline function.
699 (dmhTypeGUI::dispatch_message): Use it.
701 2012-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
703 Fix Diagnostic Message Handler initialisation logic.
705 * src/dmh.cpp (dmh_init) [DMH_SUBSYSTEM_GUI]: Correct a logic error;
706 it previously fell through after any successful initialisation of the
707 DMH_SUBSYSTEM_GUI handler, replacing it with a DMH_SUBSYSTEM_TTY type
708 handler. Also, assign a heap copy of the passed "progname" string
709 resource, which is volatile, to ensure that the handler retains a
712 2012-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
714 Implement preliminary GUI mode data sheet compiler.
716 * src/guimain.h (DataSheetMaker): New class; forward declare it.
717 (AppWindowMaker::InitPackageTabControl): New private method; declare it.
718 (AppWindowMaker::DataSheet, AppWindowMaker::PackageTabControl):
719 (AppWindowMaker::TabDataPane, AppWindowMaker::PackageTabPane): New
720 private data members; declare them.
721 (ID_SASH_WINDOW_PANE_CLASS): New string resource identifier; define it.
722 (ID_PACKAGE_DATASHEET, ID_PACKAGE_TABPANE): New window identifiers;
725 * src/guidata.rc (ID_SASH_WINDOW_PANE_CLASS): Specify string resource.
727 * src/pkgview.cpp (AppWindowMaker::OnSize): Add handler for...
728 (ID_PACKAGE_TABPANE, ID_PACKAGE_TABCONTROL, ID_PACKAGE_DATASHHET):
729 ...this group of sash pane child window entities.
730 (AppWindowMaker::OnNotify): Comment out disused stub implementation.
732 * src/pkgshow.cpp (pkgUTF8Parser): Factor out class declaration...
733 (UTF32_MAX, UTF32_OVERFLOW, UTF32_INVALID): ...these definitions...
734 (utf32_t): ...and this typedef; relocate to, and #include...
735 * src/pkgdata.h: ...this new header file.
737 * src/pkgdata.cpp (DataSheetMaker): New class; declare and implement it.
738 (AppWindowMaker::InitPackageTabControl): Implement it.
739 (AppWindowMaker::OnNotify): Reimplement it.
741 * Makefile.in (GUIMAIN_OBJECTS): Add pkgdata.OBJEXT
743 * src/guixmld.cpp (AppWindowMaker::Invoked): Add call to invoke
744 AppWindowMaker::InitPackageTabControl()
746 2012-10-09 Keith Marshall <keithmarshall@users.sourceforge.net>
748 Remove a grossly heuristic list view hack.
750 * src/pkglist.cpp (pkgListViewMaker::GetTitle): Remove code for the
751 heuristic deletion of any redundant package name prefixes from package
752 title attributes; by now, all such prefixes should have been removed
753 from the catalogue, explicitly, at source.
755 2012-10-08 Keith Marshall <keithmarshall@users.sourceforge.net>
757 Implement GUI list view compiler for XML catalogue.
759 * src/pkgview.cpp (AppWindowMaker::LayoutEngine): Add case handler...
760 [pane_id == ID_PACKAGE_LISTVIEW]: ...for this window pane class.
762 * src/guimain.h (ID_PKGLIST_TABLE_HEADINGS):
763 (ID_PKGNAME_COLUMN_HEADING, ID_PKGTYPE_COLUMN_HEADING):
764 (ID_INSTVER_COLUMN_HEADING, ID_REPOVER_COLUMN_HEADING):
765 (ID_PKGDESC_COLUMN_HEADING): New resource identifiers; define them.
766 (ID_PKGSTATE_AVAILABLE, ID_PKGSTATE_AVAILABLE_NEW):
767 (ID_PKGSTATE_AVAILABLE_LOCKED, ID_PKGSTATE_AVAILABLE_INSTALL):
768 (ID_PKGSTATE_INSTALLED_CURRENT, ID_PKGSTATE_INSTALLED_LOCKED):
769 (ID_PKGSTATE_INSTALLED_OLD, ID_PKGSTATE_UPGRADE, ID_PKGSTATE_REMOVE):
770 (ID_PKGSTATE_REINSTALL, ID_PKGSTATE_DOWNGRADE, ID_PKGSTATE_BROKEN):
771 (ID_PKGSTATE_PURGE): New icon resource identifiers; define them.
772 (AppWindowMaker::InitPackageListView): New private method; declare it.
773 (AppWindowMaker::UpdatePackageList): New private method; declare it.
774 (AppWindowMaker::ClearPackageList): New private method; declare and
777 * src/guidata.rc (ID_PKGSTATE_AVAILABLE, ID_PKGSTATE_AVAILABLE_NEW):
778 (ID_PKGSTATE_AVAILABLE_LOCKED, ID_PKGSTATE_AVAILABLE_INSTALL):
779 (ID_PKGSTATE_INSTALLED_CURRENT, ID_PKGSTATE_INSTALLED_LOCKED):
780 (ID_PKGSTATE_INSTALLED_OLD, ID_PKGSTATE_UPGRADE, ID_PKGSTATE_REMOVE):
781 (ID_PKGSTATE_REINSTALL, ID_PKGSTATE_DOWNGRADE, ID_PKGSTATE_BROKEN):
782 (ID_PKGSTATE_PURGE): New icon resources; implement them.
784 * icons/state01.ico icons/state02.ico icons/state03.ico:
785 * icons/state04.ico icons/state05.ico icons/state06.ico:
786 * icons/state07.ico icons/state08.ico icons/state09.ico:
787 * icons/state10.ico icons/state11.ico icons/state12.ico:
788 * icons/state13.ico: New files. All are cloned from synaptic icons;
789 see src/guimain.rc for symbolic/functional reference names.
791 * src/pkglist.h [GUIMAIN_H defined] (pkgListViewMaker): New class;
792 declare it for use in modules which #include guimain.h
794 * src/pkglist.cpp: New file; it implements...
795 (pkgListViewMaker): ...this new class, and its clients...
796 (AppWindowMaker::InitPackageListView): New method.
797 (AppWindowMaker::UpdatePackageList): Likewise.
799 * Makefile.in (GUIMAIN_OBJECTS): Add pkglist.OBJEXT
801 * src/guixmld.cpp (AppWindowMaker::Invoke): Call InitCommonControls(),
802 as prerequisite to AppWindowMaker::InitPackageListView(); follow up by
803 calling AppWindowMaker::AdjustLayout().
805 2012-10-07 Keith Marshall <keithmarshall@users.sourceforge.net>
807 Add GUI initialiser hook for XML catalogue interface.
809 * src/guimain.h (AppWindowMaker::Invoke): New public method; declare
810 it; it overrides the generic WTK::MainWindowMaker::Invoke() method, so
811 providing the initialiser hook which will invoke this...
812 (AppWindowMaker::LoadPackageData): ...new private method; declare it.
814 * src/guixmld.cpp: New file.
815 (AppWindowMaker::Invoke): Implement it.
816 (AppWindowMaker::LoadPackageData): Likewise.
818 * Makefile.in (GUIMAIN_OBJECTS): Add guixmld.OBJEXT
820 2012-09-29 Keith Marshall <keithmarshall@users.sourceforge.net>
822 Add initial working GUI mode DMH class implementation.
824 * src/dmh.h (DMH_SEVERITY_MASK): New manifest constant; define it.
825 (DMH_DIGEST_MASK, DMH_COMPILE_DIGEST, DMH_DISPATCH_DIGEST): Likewise.
826 (DMH_BEGIN_DIGEST, DMH_END_DIGEST): Redefine in terms of above.
828 * src/dmhcore.h: New header file; it declares...
829 (dmhTypeGeneric): ...this abstract base class, factored from...
831 * src/dmh.cpp (dmhTypeGeneric): ...here, whence remove it; it is
832 still required, thus include dmhcore.h so that it remains visible.
833 (dmh_exception): Remove errant namespace qualifier from constructor.
834 (dmhTypeGUI): Delete class declaration and original constructor.
835 (dmh_init): Delete reference to dmhTypeGUI; replace by call to...
836 (dmh_init_gui): ...this new static function; it is a stub which
837 invokes a DLL import of the same name, to instantiate a dmhTypeGUI.
838 (dmhTypeGUI::control, dmhTypeGUI::notify, dmhTypeGUI::printf): Delete
839 original method stubs.
841 * src/guidmh.cpp: New file; it reimplements...
842 (dmhTypeGUI): ...this class; declare it and implement its constructor.
843 (dmh_init_gui): Provide its DLL exported implementation.
844 (dmhTypeGUI::dispatch_message): New private method; add it to the
845 class declaration and implement it; it is a helper method for...
846 (dmhTypeGUI::control, dmhTypeGUI::notify): ...these; implement them.
847 (dmhTypeGUI::printf): Provide a replacement stub.
849 * Makefile.in (GUIMAIN_OBJECTS): Add guidmh.OBJEXT
851 * src/guimain.h (AppWindowMaker::Create): New method; add it to the
852 class declaration; it overrides the default Create() method inherited
853 from WTK::MainWindowMaker
855 * src/pkgview.cpp (AppWindowMaker::Create): Implement it; it handles
856 window class registration and dmhTypeGUI initialisation, in addition
857 to the inherited CreateWindow() behaviour.
859 * src/guimain.cpp: Include dmh.h
860 (WinMain): Add catch block for dmh_exception. Remove window class
861 registration request; it is now delegated to AppWindowMaker::Create()
863 2012-09-26 Keith Marshall <keithmarshall@users.sourceforge.net>
865 Add .hgignore as tracked file.
867 * .hgignore: New file.
869 2012-09-25 Keith Marshall <keithmarshall@users.sourceforge.net>
871 Defer generation of version.c until "make" time.
873 * version.c.in: Move it...
874 * src/version.c.in: ...to here.
875 (PACKAGE_NAME, PACKAGE_VERSION, COPYRIGHT_HOLDER, YEARS_OF_ISSUE):
876 Change substitution field marker character from "@" to "%".
878 * configure.ac (AC_CONFIG_FILES): Remove version.c
880 * Makefile.in (TAG_SCRIPT): New macro, factored out from...
881 (RC_SCRIPT): ...here, whence use it; also use it to implement...
882 (VERSION_SCRIPT): ...this further new macro; use it in...
883 (%.c): ...this generic template rule for version.c
884 (time-stamp, %.time, %.tagged.time, %.tag): New generic build
885 goals; use them to track package release progression via...
886 (build.tag): ...this new intermediate; make it a pre-requisite...
887 (guidata.OBJEXT, version.c): ...of these.
889 2012-09-21 Keith Marshall <keithmarshall@users.sourceforge.net>
891 Implement framework for GUI sash window layout controller.
893 * configure.ac (AC_INIT): Bump version number to 0.6
894 (CLI_RELEASE_CLASS): New AC_SUBST variable; default to "beta".
895 (GUI_RELEASE_CLASS): New AC_SUBST variable; default to "alpha".
896 (SNAPSHOT_CLASS): Recognise as user specified environent variable
897 override for both CLI_RELEASE_CLASS and GUI_RELEASE_CLASS.
898 (RC): New AC_CHECK_TOOL substitution variable name; it replaces...
899 (WINDRES): ...this, as reference name for the resource compiler.
900 (MINGW_AC_ASSERT_MISSING): Add AC_CHECK_HEADER traps for missing
901 "lua-dev" and "wtklite-dev" support.
903 * Makefile.in (CLI_RELEASE_CLASS, GUI_RELEASE_CLASS): Use them.
904 (BUILD_TAG, RC_SCRIPT, RC_INCLUDES): New macros; define and use...
905 (RC): ...with this, to implement new target rule for compiling...
906 (%.rc): ...resource definition files to %.OBJEXT objects.
907 (GUIMAIN_OBJECTS, GUIMAIN_LIBS): New macros; define and use...
908 (guimain.EXEEXT): ...to implement build rule for this.
909 (LIBEXEC_PROGRAMS): Add guimain.EXEEXT
910 (lastrites.EXEEXT): Use GUI_LDFLAGS.
912 * src/guimain.h src/guimain.cpp src/guidata.rc: New files.
913 * src/pkgview.cpp: New file.
915 2012-09-20 Keith Marshall <keithmarshall@users.sourceforge.net>
917 Adjust incorrectly resolved 2012-09-14 merge from master.
919 * src/Makefile.in: Restore lost reference to guistub.cpp
921 2012-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
923 Implement GUI hooks in "rites of passage" internal API.
925 * src/pkglock.h: New file; it adds the pkgLock() and pkgRelease()
926 inline wrapper functions, through which the GUI application acquires
927 and manages an exclusive access lock for the XML catalogue.
929 * src/rites.c (lockfile_name): Explicitly cast memory allocated for
930 the returned name to (char *), so this may be embedded in C++ code.
931 (pkgInitRites): Factor out lock acquisition failure diagnostics...
932 (pkgLockFail): ...to this inline helper function; conditionally...
933 [ifdef GUIMAIN_H]: ...provide one implementation for GUI use...
934 [ifndef GUIMAIN_H]: ...and an alternative for CLI use.
936 2012-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
938 Be case agnostic when matching shortcut targets.
940 * scripts/libexec/unlink.js [ref.TargetPath == chklink]: Apply
941 toLowerCase() on both sides of the comparison.
943 2012-09-12 Keith Marshall <keithmarshall@users.sourceforge.net>
945 Note relocation of m4 when packaging source distribution.
947 * Makefile.in (SRCDIST_SUBDIRS): Refer to build-aux/m4, not m4.
949 2012-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
951 Move guimain.cpp out of the way.
953 * src/guimain.cpp: Rename file as...
954 * src/guistub.cpp: ...this; we want to keep current features for now,
955 but to use the guimain.cpp name for main GUI application development.
956 * Makefile.in: Adjust references accordingly.
958 2012-09-09 Keith Marshall <keithmarshall@users.sourceforge.net>
960 Fix typo, and update licensing terms for embedded getopt.c
962 * src/getopt.c: Incorporate MIT/X style licence; update copyright
963 notice, to reflect chronology of publication; correct degenerate RCS
964 keyword usage in EOF marker comment.
966 2012-09-03 Keith Marshall <keithmarshall@users.sourceforge.net>
968 Correct omission from copyright notice.
970 * src/pkgkeys.c: Add year 2012, to reflect 2012-09-02 update.
972 2012-09-02 Keith Marshall <keithmarshall@users.sourceforge.net>
974 Redefine paragraph_key with project global scope.
976 * src/pkgkeys.h (paragraph_key): Declare it.
977 * src/pkgkeys.c (paragraph_key): Define it.
979 * src/pkgshow.cpp (pkgDirectoryViewer::EmitDescription): Delete
980 function local definition; use global definition instead.
982 2012-09-02 Keith Marshall <keithmarshall@users.sourceforge.net>
984 Correct defect introduced by 2012-08-03 commit.
986 * src/approot.c (AppPathNameW): Add omitted 'else', so that tail
987 pointer isn't moved after the APPROOT prefix is truncated.
989 2012-09-02 Keith Marshall <keithmarshall@users.sourceforge.net>
991 Remap Mercurial subrepository reference via local hg-git clone.
993 * .hgsub (build-aux): Point to ../build-aux; this must be a locally
994 hosted hg clone of the git origin repository, and it must pre-exist as
995 a sibling of any created hg clone of the mingw-get repository.
997 * .hgsubstate: New file, automatically generated by Mercurial.
999 2012-08-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1001 Add Mercurial subrepository reference for build-aux.
1005 2012-08-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1007 More code refactoring, to facilitate GUI implementation.
1009 * src/clistub.c (AppPathNameW): Factor out; relocate to...
1010 * src/approot.c: ...this new file; it reproduces the original
1011 implementation, modified to also consider any "libexec" directory in
1012 the executable path as the first child of the APPROOT prefix. Note
1013 also, that no longer terminates APPROOT with a trailing backslash.
1015 * src/approot.h: New file; it trivially declares the prototype for...
1016 (AppPathNameW): ...this relocated extern "C" function.
1018 * src/clistub.c (main): Adapt usage of AppPathNameW(), to reinstate
1019 trailing backslash on assignment to APPROOT environment variable.
1021 * Makefile.in (CLI_EXE_OBJECTS): New macro; define it as the original
1022 set of prerequisites, with the addition of approot.OBJEXT, for...
1023 (mingw-get.EXEEXT): ...this; use it.
1025 * src/rites.c: Add comment regarding APPROOT usage.
1027 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
1029 Find missing.m4 in build-aux/m4 directory.
1031 * aclocal.m4: Change path m4/missing.m4 to build-aux/m4/missing.m4.
1033 2012-07-31 Earnie Boyd <earnie@users.sourceforge.net>
1035 Add build-aux as a submodule.
1036 Move .cvsignore to .gitignore.
1038 * .gitmodules: New file.
1039 * build-aux: New submodule directory.
1040 * .cvsignore: Remove.
1041 * .gitignore: New file.
1043 2012-07-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1045 Disable globbing of command line arguments.
1047 * src/clistub.c (_CRT_glob): Define and initialise to zero; we don't
1048 need globbing, and it may cause case transliteration of case-sensitive
1049 action keywords, when a file system entity with a case-insensitively
1050 matching name exists.
1052 2012-06-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1054 Refactor API to facilitate implementation of GUI ListView hooks.
1056 * src/pkgkeys.h (title_key, description_key): Declare them.
1057 * src/pkgkeys.c (title_key, description_key): Define them; relocate...
1058 * src/pkgshow.cpp (pkgDirectoryViewer::EmitDescription): ...from here.
1059 (pkgXmlDocument::CalalogueAllPackages): New public method; factor...
1060 (pkgXmlDocument::DisplayPackageInfo): ...from here, whence use it.
1061 (pkgDirectoryViewerEngine::EnumerateComponents): New private method;
1062 implement as a concrete method of this abstract base class; factor...
1063 (pkgDirectoryViewer::Dispatch): ...from original inline implementation
1064 within this method of the concrete derived class, whence use it.
1065 (pkgDirectoryViewerEngine, pkgDirectory): Factor class declarations...
1066 * src/pkglist.h: ...into this new header file; include it.
1068 * src/pkgbase.h (pkgDirectory): Add forward class declaration.
1069 (pkgXmlDocument::CatalogueAllPackages): Declare it.
1071 2012-05-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1073 Update help text to document package version selection capability.
1075 * src/clistub.c (help_text): Add description of command line syntax
1076 which may be used to specify an alternative to the default package
1077 version selection, for install and upgrade actions.
1079 2012-05-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1081 Support options set by preferences assigned within profile.xml
1083 * xml/profile.xml (preferences): New element; add defaults.
1085 * src/pkgopts.h (OPTION_ASSIGNED_FLAGS, OPTION_DESKTOP_ARGS):
1086 (OPTION_START_MENU_ARGS): New enumerated constants; define them.
1087 (OPTION_DESKTOP, OPTION_START_MENU): New manifest constants.
1088 (OPTION_ASSIGNED, mark_option_as_set): New macros; define them.
1089 (pkgOpts::GetValue, pkgOpts::GetString): Restrict look-up index to
1090 least significant 12-bits of full-range index value.
1091 (pkgOpts::IsSet): New inline method; implement it.
1093 * src/clistub.c (main): Reimplement --desktop and --start-menu
1094 options; each now becomes an OPTION_GENERIC optarg string store.
1095 (set_script_hook): Function no longer used; delete it; delegate to...
1096 * src/pkgbase.h (pkgXmlDocument::EstablishPreferences): ...this new
1097 method; declare it, providing its implementation in...
1098 * src/pkgopts.cpp: ...this new file; invoke it...
1099 * src/climain.cpp (climain): ...here.
1101 * Makefile.in (CORE_DLL_OBJECTS): Add pkgopts.$OBJEXT
1103 2012-04-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1105 Correct sequence of installation/removal progress reporting.
1107 * src/pkgunst.cpp (pkgRemove): Delay output of "removing package ..."
1108 message, until after pre-remove hooks have run; this ensures that any
1109 output from the pre-remove hook scripts appears in correct sequence.
1111 * src/pkginst.cpp (pkgInstall): Likewise, for "installing package ..."
1112 message, in relation to pre-install hooks.
1114 2012-04-26 Keith Marshall <keithmarshall@users.sourceforge.net>
1116 mingw-get-0.5-beta-20120426-1 released.
1118 * configure.ac (AC_INIT): Version number updated.
1119 * srcdist-doc/NEWS.in: Updated; bug-fix notifications added.
1120 * All files (r0-5-beta-20120426-1): Tag assigned.
1122 2012-04-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1124 Interim work-around for MinGW-Bug #3520864.
1126 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
1127 [DEBUG_TRACE_DEPENDENCIES]: Add request flags to messages reporting
1128 the scheduling of installation activities.
1130 * src/pkgexec.cpp (pkgXmlDocument::Schedule): Add temporary diagnostic
1131 hooks to confirm request flags; bracket them with #if 0 ... #endif.
1132 [ACTION_PRIMARY && pre-scheduled request]: Don't trash request flags
1133 when updating the pre-existing action item data.
1135 2012-04-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1137 Fix MinGW-Bug #3520488
1139 * src/pkgexec.cpp (action_code): Check for, and reject NULL pointer
1140 passed as action request string; also reject ambiguous abbreviations.
1142 * src/climain.cpp (climain): Discriminate between NULL pointer and
1143 other forms of invalid action keyword matching failures.
1145 2012-04-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1147 mingw-get-0.5-beta-20120416-1 released.
1149 * configure.ac (AC_INIT): Version number updated.
1150 (YEARS_OF_ISSUE): 2012 added.
1152 * srcdist-doc/NEWS.in: Updated; release notes added.
1153 * All files (r0-5-beta-20120416-1): Tag assigned.
1155 2012-04-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1157 Assign icon to temporary GUI executable file.
1159 * icons/pkgicon.ico: New file, shamelessly copied from synaptic.
1161 * configure.ac: Add identification for windres; propagate it to...
1162 * Makefile.in: ...here; use it to compile object from icon files...
1163 (srcdir/icons) [%.ico]: ...from this new vpath location.
1164 (gui.exe): Link to compiled icon's object file.
1165 (SRCDIST_SUBDIRS): Add icons directory.
1167 2012-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
1169 Ensure that package removal requests are correctly scheduled.
1171 * src/pkgdeps.cpp (pkgXmlDocument::Schedule) [ACTION_REMOVE]: Schedule
1172 as a distinct case, when the installed version is not the most recent
1173 available release; consideration of this distinct case was previously
1174 erroneously overlooked.
1176 2012-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
1178 Correct scheduling of new prerequisites when upgrading.
1180 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
1181 [ACTION_UPGRADE && ACTION_PRIMARY]: Don't exclude scheduling for this
1182 case of a prerequisite with no previously installed version; it may be
1183 a delegated primary requirement of a meta-package.
1185 2012-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
1187 Don't require subsystem within user specified version bounds.
1189 * src/pkgdeps.cpp (pkgActionItem::ApplyBounds): Automatically consider
1190 "*" wild-card matches for subsystem, if user doesn't specify it.
1192 2012-04-09 Charles Wilson <mingw@cwilson.fastmail.fm>
1194 Fix missing include.
1196 * src/pkgdeps.cpp (pkgopts.h): Include unconditionally; do not rely...
1197 (debug.h) [DEBUG_TRACE_DYNAMIC]: ...on this, for indirect inclusion.
1199 2012-04-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1201 Correct a srcdist package construction defect.
1203 * Makefile.in (srcdist) [for SRCDIST_SUBDIRS]: Use...
1204 (mkinstalldirs): ...this, to create package image directories.
1206 2012-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
1208 Add scripting hooks to support creation of MS-Windows shortcuts.
1210 * src/clistub.c (progname): New static variable with file scope; it
1211 replaces former automatic variable, of same name, in main() function.
1212 (set_script_hook): New static function; implement it, and call it...
1213 (main) [--desktop, --start-menu]: ...from here, to interpret these new
1214 command line options; they are propagated to scripts via...
1215 (MINGW_GET_DESKTOP_HOOK, MINGW_GET_START_MENU_HOOK): ...these new
1216 internally assigned environment variables.
1217 (help_text): Document --desktop and --start-menu.
1219 * scripts/libexec/setup.lua scripts/libexec/wsh.lua: New lua module
1220 files; they implement a lua scripting API; they delegate requests to
1221 the Windows Scripting Host, via either of this pair of...
1222 * scripts/libexec/shlink.js: ...new script to create shortcuts, or...
1223 * scripts/libexec/unlink.js: ...its complement, to remove them.
1224 * Makefile.in (SRCDIST_SUBDIRS): Integrate them; enumerate them in...
1225 (scripts_srcdir, LIBEXEC_SCRIPTS): ...these new macros; use to...
1226 (install): ...install them.
1228 2012-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
1230 Initialise $LUA_PATH to locate mingw-get specific scripts.
1232 * src/pkgexec.cpp (lua_path_init): New static inline function.
1233 (pkgXmlNode::DispatchScript): Call it on first time invocation, per...
1234 [lua_path_setup == false]: ...this static function local variable.
1236 2012-04-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1238 Support installation of releases other than latest available.
1240 * src/pkgbase.h (pkgActionItem::ApplyBounds): New method; declare it.
1242 * src/pkgdeps.cpp (pkgActionItem::ApplyBounds): Implement it.
1243 (pkgXmlDocument::Schedule): Use it to interpret user specified version
1244 bounds, and apply them to scheduled action items. Having used...
1245 (get_version_bounds): ...this new static inline function...
1246 ...to acquire any user specified version bounds, check that they can
1247 be honoured, before scheduling any action; delegate diagnostics to...
1248 (dmh_notify_no_match): ...this new local helper function, to report
1249 when they can't, and to indicate viable alternatives.
1251 2012-03-26 Keith Marshall <keithmarshall@users.sourceforge.net>
1253 Rework previously inadequate solution for MinGW-Bug #3424406
1255 * src/pkgtask.h: Update copyright notice for current year.
1256 (ACTION_MAY_SELECT): New manifest constant for use as flag; define it.
1257 * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit): Assign it.
1259 * src/pkgdeps.cpp (STATIC_INLINE): New macro; define it.
1260 (ACTION_RECURSIVE_REINSTALL, ACTION_RECURSIVE_UPGRADE):
1261 (ACTION_RECURSIVE_REPLACE): New action code constants; define them.
1262 (with_flags): Original macro deleted; replace it with...
1263 (with_request_flags): ...this new static inline function.
1264 (if_noref, if_match, if_alias, with_download, promote): New static
1265 inline functions; they replace original macros of the same names.
1266 (is_recursive_action): Function no longer used; delete it.
1267 (action_class): New static inline function; implement and use it...
1268 (pkgXmlDocument::ResolveDependencies): ...here, to identify scheduling
1269 requirements for packages which are already installed; depends on...
1270 (request_mode): ...this new automatic variable; it augments and...
1271 (recursive_mode): ...replaces this one; rename it accordingly.
1272 (viable): Automatic variable no longer used; delete it.
1273 [DEBUG_REQUEST & DEBUG_TRACE_DEPENDENCIES]: Emit notification for
1274 scheduled installation.
1275 (pkgXmlDocument::Schedule): Add an implied...
1276 (ACTION_REMOVE): ...when scheduling a reinstallation.
1278 2012-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1280 Address reinstallation issues per MinGW-Bugs #3416013 and #3424406
1282 * src/pkgexec.cpp (reinstall_action_scheduled): New inline function.
1283 (pkgActionItem::Execute): Use it to identify cases where...
1284 [--reinstall]: ...implicit package removal is required, and also to
1285 facilitate improved progress reporting in such cases.
1287 * src/pkgdeps.cpp (is_recursive_action): New inline function.
1288 (pkgXmlDocument::ResolveDependencies): Use it in tandem with...
1289 (recursive_mode): ...this new automatic variable, so as to handle...
1290 [meta-package dependency]: ...implicit recursion, to extend the scope
1291 of the current action to the first level of non-meta dependency.
1292 [install --reinstall]: ...reinstall original version of nominated
1293 package, ignoring any available upgrade; extend scope of operation...
1294 [install --reinstall --recursive]: ...to all prerequisite packages.
1295 [upgrade --reinstall]: ...upgrade nominated package if possible; if no
1296 upgrade available, reinstall current version; extend scope...
1297 [upgrade --reinstall --recursive]: ...to all prerequisites.
1298 (pkgXmlDocument::Schedule): Partially revert 2012-03-05 change;
1299 reimplement selectively; never promote...
1300 [install, install --reinstall]: ...these operations to become...
1301 [upgrade]: ...this, even if available; issue diagnostic instead.
1303 2012-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1305 Rationalise implementation and usage of --all-related option.
1307 * src/pkgopts.h: Update copyright notice; add year 2012.
1308 (OPTION_RECURSIVE, OPTION_ALL_RELATED): New constants; define them.
1309 (pkgOpts::SetFlags): New method; declare and implement it inline.
1311 * src/clistub.c: Update copyright notice; add year 2012.
1312 (options) [recursive, all-related]: Redefine in terms of...
1313 (OPTION_RECURSIVE, OPTION_ALL_RELATED): ...these.
1314 (help_text): Update appropriately.
1316 * src/climain.cpp: Update copyright notice; add year 2012.
1317 (climain) [all-related]: Associate its use exclusively with...
1318 (source, licence): ...these package processing operations; use...
1319 (pkgOptions::SetFlags): ...this, to propagate its effect.
1321 2012-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1323 Don't report failed downloads in respect of virtual packages.
1325 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): Clear...
1326 [ACTION_DOWNLOAD]: ...this status flag for any package identified as
1327 a meta-package; this corrects a further regression introduced with the
1328 2011-11-09 update, whereby pending download requests for such virtual
1329 packages were not cancelled, resulting in failure to install due to
1330 failed downloads, when no download is actually required.
1332 2012-03-05 Keith Marshall <keithmarshall@users.sourceforge.net>
1334 Don't suppress implied downloads for top-level actions.
1336 * src/pkgdeps.cpp: Update copyright notice for new year.
1337 (pkgXmlDocument::Schedule) [!OPTION_PRINT_URIS]: Ensure that...
1338 [ACTION_DOWNLOAD]: ...this is enabled, when scheduling an install or
1339 an upgrade action for a package specified as a command line argument;
1340 this corrects a regression introduced on 2011-11-09, which resulted in
1341 ACTION_DOWNLOAD being enabled only for second tier dependent actions.
1343 2012-02-20 Keith Marshall <keithmarshall@users.sourceforge.net>
1345 Copyright notice updates.
1347 * Makefile.in: Add 2012 as year of republication.
1348 * src/pkgbase.h src/sysroot.cpp src/pkgexec.cpp: Likewise.
1349 * src/rites.c src/pkginst.cpp src/pkgunst.cpp: Likewise.
1351 2012-02-20 Keith Marshall <keithmarshall@users.sourceforge.net>
1353 Fix ill-advised optimisation in $APPROOT environment lookup.
1355 * src/rites.c (approot_path): Don't save result of getenv() lookup
1356 across calls; the environment may have been moved in the interim,
1357 making the original result invalid on any subsequent call. Also,
1358 prefer MS-Windows style (with backslashes) for default.
1359 (pkgLastRites): Report full path name for lastrites.exe, on execl()
1360 failure, rather than only the path relative to $APPROOT.
1362 2012-02-20 Keith Marshall <keithmarshall@users.sourceforge.net>
1364 Propagate sysroot path settings to scripts via the environment.
1366 * src/pkgbase.h (PKG_PUTENV_FLAGS_MASK): New constant; it maps...
1367 (PKG_PUTENV_DIRSEP_MSW, PKG_PUTENV_DIRSEP_POSIX): ...these flags...
1368 (PKG_PUTENV_SCAN_VARNAME, PKG_PUTENV_NAME_TOUPPER): ...and these;
1369 they are used to specify optional behavioural choices for...
1370 (pkgPutEnv): ...this new function; declare it.
1372 * src/sysroot.cpp (pkgPutEnv): Implement it.
1373 (pkgXmlDocument::LoadSystemMap): Use it to add $SUBSYSTEM_SYSROOT path
1374 specifications to the environment, for each named subsystem associated
1375 with the active system map.
1377 * src/pkgexec.cpp (pkgActionItem::Execute): Invoke pkgPutEnv() prior
1378 to processing of each package install, upgrade, or remove action, so
1379 as to update environment variable $SYSROOT to represent the sysroot
1380 path for each package processed, during execution of script hooks.
1382 2012-02-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1384 Implement hooks to support lua scripting interface.
1386 * Makefile.in (LIBS): Add -llua.
1388 * src/pkgbase.h (pkgXmlNode::InvokeScript): New method; declare it
1389 as private, and provide overloaded public inline API implementation.
1390 (pkgXmlNode::DispatchScript): New private method; declare it.
1392 * src/pkgexec.cpp (pkgXmlNode::InvokeScript): Implement it.
1393 (pkgXmlNode::DispatchScript): Likewise; it directs InvokeScript to...
1394 (pkgInvokeScript): ...this new static function; implement it.
1396 * src/pkginst.cpp (pkgInstall): Call InvokeScript as appropriate.
1397 * src/pkgunst.cpp (pkgRemove): Likewise.
1399 2011-11-24 Keith Marshall <keithmarshall@users.sourceforge.net>
1401 Avoid implicit cast warnings; reported by Robert Hartmann.
1403 * src/dmh.h (DMH_BEGIN_DIGEST): Explicitly cast to uint16_t.
1404 (DMH_END_DIGEST): Likewise.
1406 2011-11-09 Keith Marshall <keithmarshall@users.sourceforge.net>
1408 Avoid unnecessary downloads for already installed packages.
1410 * src/pkginet.cpp (pkgActionItem::DownloadSingleArchive): Require
1411 external scheduling of ACTION_DOWNLOAD; cancel the scheduled request
1412 on completion, or when not required due to pre-existing local copy.
1414 * src/climain.cpp (pkgActionItem::GetSourceArchive): Must always be
1415 prepared to download the associated archive; enable ACTION_DOWNLOAD.
1417 * src/pkgexec.cpp (pkgActionItem::Schedule) [OPTION_REINSTALL]:
1418 May need to download the archive, even when the requested package was
1419 previously installed; schedule ACTION_DOWNLOAD to enable this.
1421 * src/pkgdeps.cpp (promote): Macro redefined in terms of...
1422 (with_flags, with_download): ...these new macros; implement and...
1423 (pkgXmlDocument::ResolveDependencies): ...use them to enable/schedule
1424 ACTION_DOWNLOAD only when expected that it may be necessary.
1426 2011-11-06 Keith Marshall <keithmarshall@users.sourceforge.net>
1428 Fix packaging anomalies for source and licence distributions.
1430 * Makefile.in (licdist): Link README from ${CURDIR}, not from '..'.
1431 (srcdist): Explicitly link pkginfo.c from ${CURDIR} to src/pkginfo,
1432 rather than as implied prerequisite; this avoids a bogus attempt to
1433 link srcdist-doc into src/pkginfo.
1435 2011-11-06 Keith Marshall <keithmarshall@users.sourceforge.net>
1437 Bump version number for subsequent CVS snapshots.
1439 * configure.ac (AC_INIT): Set version to 0.4-alpha-1.1cvs
1441 2011-11-06 Keith Marshall <keithmarshall@users.sourceforge.net>
1443 mingw-get-0.4-mingw32-alpha-1 released.
1445 * configure.ac (AC_INIT): Adjust version number.
1446 * srcdist-doc/NEWS.in: Updated; document new features and bugs fixed.
1447 * All files (r0-4-alpha-1): Tag assigned.
1449 2011-11-04 Keith Marshall <keithmarshall@users.sourceforge.net>
1451 Don't upgrade installed DLL components to incompatible version.
1452 Provide clearer diagnostics for failed requests on implied packages.
1454 * src/pkgdeps.cpp (is_abi_compatible): New static inline function.
1455 (pkgXmlDocument::ResolveDependencies) [is_installed]: Use it.
1456 (pkgXmlDocument::ResolveDependencies) [DEBUG_TRACE_DEPENDENCIES]:
1457 Clean up and improve diagnostic message content and formatting.
1458 (pkgXmlDocument::Schedule) [(upgrade || remove) && ! installed]:
1459 Downgrade diagnostic to WARNING, for implicitly specified component
1460 packages; provide additional explanatory diagnostics.
1462 * src/pkgspec.cpp (pkgSpecs::VersionComparator):
1463 * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit):
1464 [DEBUG_TRACE_DEPENDENCIES]: Eliminate diagnostic noise.
1466 2011-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1468 Fix --download-only vs. --reinstall conflict.
1470 * src/pkgexec.cpp (pkgActionItem::Execute) [OPTION_DOWNLOAD_ONLY]:
1471 Test for explicit inequality, rather than equality to zero; since the
1472 2011-08-30 update, which made --download-only also imply --reinstall,
1473 it will test as non-zero when --reinstall is specified, even though
1474 --download-only is not.
1476 2011-10-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1478 Add support for non-specific upgrade of all installed packages.
1480 * src/pkgbase.h (pkgXmlDocument::RescheduleInstalledPackages):
1481 New public method; declare it.
1483 * src/pkgdeps.cpp (pkgXmlDocument::RescheduleInstalledPackages):
1486 * src/climain.cpp (climain) [ACTION_UPGRADE && argc < 2]: Invoke
1487 pkgXmlDocument::RescheduleInstalledPackages() to schedule the upgrade
1488 request for all packages currently registered as installed.
1490 2011-10-06 Keith Marshall <keithmarshall@users.sourceforge.net>
1492 Implement "source" and "licence" operations.
1494 * src/pkgopts.h (OPTION_ALL_DEPS): New option code; define it.
1495 * src/clistub.c (main): Associate it with...
1496 (all-related, recursive): ...these synonymous option names...
1497 (options): ...defined within this local structured array.
1498 (help_text): Document them; also document "source" and "licence" as
1499 new operations which may be specified on the command line.
1501 * src/pkgtask.h (action_source, action_licence): Enumerate them.
1502 (ACTION_SOURCE, ACTION_LICENCE): Define their manifest values, and...
1503 * src/pkgexec.cpp (action_name): ...associate with operation names.
1505 * src/pkgbase.h (pkgActionItem::GetScheduledSourceArchives):
1506 (pkgActionItem::GetSourceArchive, pkgXmlDocument::GetSourceArchive):
1507 New public methods; declare them for external implementation.
1508 (pkgXmlDocument::GetScheduledSourceArchives): New public method;
1509 implement it as inline.
1511 * src/climain.cpp (pkgProcessedArchives): New pointer to stack of...
1512 (pkgArchiveNameList): ...this new locally defined class; implement it.
1513 (pkgActionItem::GetSourceArchive, pkgXmlDocument::GetSourceArchive):
1514 (pkgActionItem::GetScheduledSourceArchives): Implement them.
1515 (climain): Add invocation hooks.
1517 2011-10-04 Keith Marshall <keithmarshall@users.sourceforge.net>
1519 Establish mapping from release tarname to source tarname.
1521 * src/pkgreqs.cpp (inherited_requirement): New inline function.
1522 (requirement): Use it; adapt to propagate release archive format and
1523 compression type fields, in addition to version fields, when resolving
1524 "%" wildcard matches within the template for the resultant tarname.
1525 (pkgAssociateName): New public function; implement it for use by...
1526 * src/pkgname.cpp (pkgResolvedName): ...this new inline function.
1527 (pkgXmlNode::SourceArchiveName): Use it; adapt to accept a category
1528 selector, so it may resolve source or licence tarnames on demand.
1530 * src/pkgbase.h (pkgXmlNode::SourceArchiveName): Modify declaration;
1531 add category selector argument to support source/licence choice.
1533 2011-10-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1535 Facilitate downloads using diverse cache directories.
1537 * src/pkgbase.h (pkgActionItem::DownloadSingleArchive): New private
1538 method; declare it; it handles the download for a single named archive
1539 file, and stores it in a specifed cache directory.
1541 * src/pkginet.cpp (pkgActionItem::DownloadSingleArchive): Implement
1542 it; factor its code from the original implementation within...
1543 (pkgActionItem::DownloadArchiveFiles): ...this; adapt to use it.
1545 2011-10-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1547 Establish cache directory for source archive downloads.
1549 * src/mkpath.h (pkgSourceArchivePath): New function; declare it.
1550 * src/mkpath.c (pkgSourceArchivePath): Implement it.
1552 2011-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1554 Support archive extraction to arbitrary destination without install.
1556 * src/pkgproc.h (pkgArchiveProcessor::ExtractFile): New virtual
1557 helper method for use, as core helper, by derived classes; declare it.
1558 (pkgArchiveProcessor::CreateExtractionDirectory): Likewise.
1559 (pkgTarArchiveProcessor): Declare overloaded default constructor.
1560 (pkgTarArchiveExtractor): New class definition; it is derived from
1561 pkgTarArchiveProcessor.
1563 * src/tarproc.cpp (pkgArchiveProcessor::ExtractFile): Implement it.
1564 (pkgArchiveProcessor::CreateExtractionDirectory): Likewise.
1565 (pkgTarArchiveExtractor): Implement constructor, together with...
1566 (pkgTarArchiveExtractor::ProcessDirectory): ...this method, and also...
1567 (pkgTarArchiveExtractor::ProcessDataStream): ...this one; these are
1568 declared as abstract, in the pkgTarArchiveProcessor base class.
1569 (pkgTarArchiveInstaller::ProcessDirectory): Simplify; it now delegates
1570 directory creation to pkgArchiveProcessor::CreateExtractionDirectory.
1571 (pkgTarArchiveInstaller::ProcessDataStream): Simplify; delegate file
1572 handling to pkgArchiveProcessor::ExtractFile, as appropriate.
1574 2011-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1576 Make --download-only and --print-uris imply --reinstall.
1578 * src/pkgopts.h (OPTION_PRINT_URIS): Adjust definition.
1579 (OPTION_DNLOAD_ONLY, OPTION_DOWNLOAD_ONLY): Likewise.
1581 2011-08-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1583 Implement --download-only and --print-uris options.
1585 * src/pkgopts.h (OPTION_DOWNLOAD_ONLY, OPTION_PRINT_URIS):
1586 New manifest constants, identifying flag bits; define them.
1587 (OPTION_DNLOAD_ONLY): Likewise; an alias for OPTION_DOWNLOAD_ONLY.
1589 * src/pkgbase.h (pkgActionItem::PrintURI): New private method.
1590 * src/pkginet.cpp: Implement it.
1592 * src/clistub.c (options): Add "download-only" and "print-uris".
1593 (help_text): Document them.
1594 * src/pkgexec.cpp (pkgActionItem::Execute): Process them.
1596 2011-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1598 mingw-get-0.3-mingw32-alpha-2.1 released.
1600 * configure.ac (AC_INIT): Adjust version number.
1601 * srcdist-doc/NEWS.in: Updated; document bugs fixed.
1602 * All files (r0-3-alpha-2-1): Tag assigned.
1604 2011-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1606 Adopt tar.xz as default package archive format.
1608 * Makefile.in (TARZIP, TAREXT): New macros; define them.
1609 (bindist, licdist, srcdist): Use them in place of hardcoded tar.gz
1610 (maintainer-clean): Expunge tar files of any compression format.
1612 2011-07-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1614 Correct handling of release status in requirements specifications.
1616 * src/debug.h (DEBUG_TRACE_DEPENDENCIES): New tracing hook; define it.
1617 * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit): Use it; add
1618 function entry/exit tracing report hooks.
1619 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): Likewise;
1620 also add internal trace point reporting, which may also require...
1621 (show_required): ...this new static inline DEBUG_INVOKED function.
1623 * src/pkgreqs.cpp (requirement): Propagate release status and release
1624 reference index fields from requirer, when package version requirement
1625 is specified by a '%' token, and no explicit release status override
1626 is included in the requirement specification.
1628 * src/pkgspec.cpp (is_wildcard_spec): New static inline helper.
1629 (pkgSpecs::VersionComparator): Use it to identify any package version
1630 specification which may require the extension of a wildcard match, to
1631 span the package version and release status fields; also add tracing
1632 hooks, triggered on DEBUG_TRACE_DEPENDENCIES, to facilitate debugging.
1634 2011-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1636 Avoid accidental RCS keyword substitutions.
1638 * Makefile.in (DOLLAR): New macro; define it.
1639 (readme.txt, readme.txt.in): Use it, where unexpanded RCS Id keyword
1640 matching is intended.
1642 2011-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1644 Mercurial support revisited.
1646 * .cvsignore (.hgtags): Add to CVS untracked list.
1648 2011-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1650 Update readme.txt ID tag-line to track NEWS rather than README.
1652 * Makefile.in (readme.txt.in): New rule; implement it.
1653 (readme.txt.tag): Likewise; this implements the tag-line tracking.
1654 (readme.txt): Rule redefined in terms of the preceding pair.
1656 2011-06-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1658 mingw-get-0.3-mingw32-alpha-2 released.
1660 * configure.ac (AC_INIT): Adjust version number.
1661 * srcdist-doc/NEWS.in: Updated; document new features and bugs fixed.
1662 * All files (r0-3-alpha-2): Tag assigned.
1664 2011-06-15 Keith Marshall <keithmarshall@users.sourceforge.net>
1666 Add internal documentation for --reinstall option.
1668 * src/clistub.c (help_text): Add description for "--reinstall".
1670 2011-06-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1672 Support use of Mercurial within a CVS working copy.
1674 * .cvsignore (.hg, .hgignore): Don't have CVS track these.
1676 2011-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1678 Implement --reinstall option.
1680 * src/pkgopts.h (OPTION_REINSTALL): New macro; define it.
1681 (OPTION_GENERIC, OPTION_SHIFT_MASK): Likewise.
1682 (OPTION_EXTRA_FLAGS): New field; declare it.
1684 * src/clistub.c (options): Add "reinstall".
1685 (OPTION_GENERIC): Use it where appropriate; within its scope...
1686 (OPTION_STORAGE_CLASS): Improve descriptive comments; add handling for
1687 default case of flag type options requiring an alignment shift.
1689 * src/pkgexec.cpp: Remove previous "always reinstall" kludge.
1690 (pkgOptionSelected, PKG_OPTION_REINSTALL): Remove obsolete macros.
1691 (pkgActionItem::Execute): Check for "upgrade" request on any package
1692 which is already up to date; report this state, otherwise...
1693 [OPTION_REINSTALL || ACTION_UPGRADE]: Mark package as "removed", to
1694 avoid bail-out on "package already installed", when calling...
1695 (pkgInstall): ...this.
1697 2011-06-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1699 Don't require -vv to report progress of update operation.
1701 * src/pkgbind.cpp (pkgRepository::GetPackageList): Eliminate all
1702 basename() calls; `dname' already tells us what it should return.
1703 [update]: Report progress, irrespective of verbosity setting.
1705 2011-06-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1707 Fix MinGW-Bug #3313806.
1709 * src/pkginfo/pkginfo.l (CMS_KEYWORDS): Do not match them within the
1710 PACKAGE_NAME field; this avoids misinterpretation as a release status
1711 qualifier when intended as part of the package name, as in msys-cvs.
1713 2011-06-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1715 Provisional correction for MinGW-Bug #3309438.
1717 * src/debug.h [DEBUGLEVEL == 0]: Provide defaults for...
1718 (DEBUG_ENABLED, DEBUG_REQUEST): ...these macros.
1720 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDirectory):
1721 (pkgTarArchiveInstaller::ProcessDataStream): Use DEBUG_REQUEST to
1722 enable runtime trace activation for previous compile time choices.
1724 2011-05-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1726 mingw-get-0.3-mingw32-alpha-1 released.
1728 * configure.ac (AC_INIT): Adjust version number.
1729 * srcdist-doc/NEWS.in: Updated; document new features.
1730 * All files (r0-3-alpha-1): Tag assigned.
1732 2011-05-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1734 Support assignment of DEBUGLEVEL at configure time.
1736 * configure.ac (DEBUGLEVEL): Declare as a precious variable, using
1737 AC_ARG_VAR; also declare with AC_SUBST, to ensure it is initialised.
1739 * Makefile.in (DEBUGLEVEL): Let AC_SUBST assign it.
1741 2011-05-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1743 Work around bugs in MinGW and GNU getopt_long_only() implementations.
1745 * src/getopt.c: New file; this is a free-standing replacement for any
1746 implementation provided by system libraries. We will always use this
1747 to ensure correct operation irrespective of system bugs; (different
1748 bug manifestations have been identified in the stock MinGW and GNU
1751 * Makefile.in (mingw-get.EXEEXT): Use it.
1753 * src/clistub.c (options): Remove redundant declaration of `-v' as a
1756 2011-05-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1758 Implement user selection of traceable features at run-time.
1760 * src.pkgopts.h (OPTION_VERBOSE_MAX): New macro; define it.
1762 * src/debug.h (DEBUG_ENABLED): New macro; define it.
1763 (DEBUG_REQUEST, DEBUG_REQUEST_FLAGS, DEBUG_TRACE_DYNAMIC): Likewise.
1765 * src/clistub.c (main) [--trace]: Don't make it available unless...
1766 [DEBUG_ENABLED(DEBUG_TRACE_DYNAMIC)]: ...this is set (at compile-time).
1767 [--verbose]: Limit to OPTION_VERBOSE_MAX, using...
1768 (atmost): ...this new macro; define it.
1769 (options): Declare `-v' as both long and short form, pending bug fix
1770 in MinGW's getopt_long_only() implementation.
1772 * src/pkginet.cpp (pkgInternetAgent::OpenURL): Use DEBUG_REQUEST.
1773 (pkgInternetLzmaStreamingAgent::TransferData): Likewise.
1774 (pkgInternetStreamingAgent::TransferData): Likewise.
1775 (pkgInternetStreamingAgent::Get): Likewise.
1777 * src/pkgunst.cpp (pkgActionItem::SetAuthorities): Use DEBUG_REQUEST.
1778 (pkg_rmdir, pkg_unlink): Likewise.
1780 * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Use DEBUG_REQUEST.
1782 2011-05-21 Keith Marshall <keithmarshall@users.sourceforge.net>
1784 Implement protocol for processing global program options.
1786 * src/pkgopts.h: New file.
1788 * src/climain.cpp (cli_setopts): New function; implement it.
1789 (pkgOptions): Likewise.
1791 * src/clistub.c (xatoi): New function; implement it.
1792 (cli_setargv): New inline helper function; implement it.
1793 (main): Use it. Also incorporate implementation of...
1794 (parsed_options): New structure; it accommodates...
1795 (verbose, trace): New options; interpret them, and...
1796 (help_text): ...document them.
1798 * src/pkgbind.cpp (pkgRepository::GetPackageList): Make catalogue
1799 loading notifications and progress reports conditional on...
1800 [OPTION_VERBOSE > 1]: ...this.
1802 2011-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1804 Augment known development status keywords and accept CMS labels.
1806 * src/pkginfo/pkginfo.l (CMS_KEYWORDS): Define new provisional list;
1807 add transitional state scanner rule and code to interpret them.
1808 (STATUS_KEYWORDS): Add "pre" and "rc" to existing list; modify scanner
1809 code to maintain consistency with CMS_KEYWORDS processing; also extend
1810 this coding strategy to other rules.
1812 * src/pkginfo/driver.c (spec): Strip initial '$' token from displayed
1813 field values; (we expect it only for a CMS_KEYWORDS field value).
1815 * src/pkgreqs.cpp (pkgSpecs::GetTarName): Remove any initial '$' token
1816 from PACKAGE_RELEASE_STATUS field, when performing reverse of tarname
1817 decomposition transformation.
1819 2011-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1821 Correct omission from 2011-02-18 commit.
1823 * src/tarproc.cpp (Copyright Notice): Add 2011 as year of release.
1825 2011-05-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1827 mingw-get-0.2-mingw32-alpha-4 released.
1829 * configure.ac (AC_INIT): Adjust version number.
1830 * srcdist-doc/NEWS.in: Updated; add bug-fix/feature descriptions.
1831 * All files (r0-2-alpha-4): Tag assigned.
1833 2011-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1835 Fix MinGW-Bug #3297660 (reported by Chris Sutcliffe).
1837 * src/pkgbase.h (pkgActionItem::SetAuthorities): Return unsigned long.
1838 (pkgActionItem::HasAttribute): New inline method; implement it.
1840 * src/pkgtask.h (ACTION_DOWNLOAD, ACTION_DOWNLOAD_OK): New macros.
1842 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles):
1843 [ACTION_DOWNLOAD]: Assert it at commencement of each package download;
1844 clear it again, on successful download completion.
1846 * src/pkginst.cpp (pkgtask.h): #include it.
1847 (pkgInstall) [ACTION_DOWNLOAD]: Don't proceed with installation when
1848 set; this indicates failed download; diagnose it.
1850 * src/pkgunst.cpp (pkgRemove) [ACTION_DOWNLOAD && ACTION_UPGRADE]:
1851 Don't proceed with pre-emptive removal when both set; this indicates
1852 failed download of replacement package; diagnose it.
1854 2011-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1856 Fix MinGW-Bug #3295526 (reported by Charles Wilson).
1858 * src/pkgunst.cpp (sys/stat.h): #include it; we need it for...
1859 (pkg_unlink): ...chmod( file, S_IWRITE ), emulating `rm -f' semantics.
1861 2011-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1863 Diagnose and aggressively retry failed download connections.
1865 * src/debug.h (DEBUG_TRACE_INTERNET_REQUESTS): New macro; define it.
1867 * src/pkginet.cpp (debug.h): #include it.
1868 (pkgDownloadMeter): New abstract class; declare it and implement its
1869 default (non-abstract) data and methods; derive...
1870 (pkgDownloadMeterTTY): ...this new class from it; implement it...
1871 (pkgInternetStreamingAgent::Get): ...and instantiate it (naively for
1872 now), as associated pkgDownloadMeter object; add tracing diagnostic.
1873 (pkgInternetAgent::OpenURL): Don't inline it; move implementation out
1874 of line; add retry loops to aggressively retry failed connections.
1875 (pkgInternetAgent::QueryContentLength): New method; implement it.
1876 (pkgInternetStreamingAgent::TransferData): Avoid Microsoft specific
1877 data type `DWORD'; prefer equivalent standard `unsigned long'. Add
1878 tracing diagnostic. Remove progress diagnostic; replace it with an
1879 `Update' request to associated pkgDownloadMeter.
1880 (pkgInternetLzmaStreamingAgent::GetRawData): Avoid `DWORD' data type.
1881 (pkgInternetLzmaStreamingAgent::TransferData): Likewise; add tracing
1882 diagnostic on failure.
1884 2011-03-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1886 mingw-get-0.2-mingw32-alpha-3 released.
1888 * configure.ac (AC_INIT): Adjust version number.
1889 * srcdist-doc/NEWS.in: Updated; add bug-fix description.
1890 * All files (r0-2-alpha-3): Tag assigned.
1892 2011-03-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1894 Provisional handling for http proxy authentication.
1895 (Adapted from patch by Scott Michel <pingbak@users.sourceforge.net>)
1896 (ref: MinGW-Patch #3158453)
1898 * src/pkginet.cpp: Several format/layout adjustments; add comments.
1899 Eliminate several instances of Microsoft specific typedef nastiness.
1900 (dmh_dialogue_context): New macro; kludge definition to support...
1901 (pkgInternetAgent::OpenURL) [HTTP_STATUS_PROXY_AUTH_REQ]: Detect
1904 2011-03-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1906 Expand macros in path names for files and directories to be removed.
1908 * src/pkgunst.cpp (pkgRemove): Format sysroot as a template, so...
1909 (pkg_rmdir, pkg_unlink): ...are able to use mkpath() to construct the
1910 full path name for each file or directory to be removed.
1912 2011-03-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1914 Correct defective activation logic for some debugging hooks.
1916 * src/pkgunst.cpp (pkg_rmdir, pkg_unlink) [DEBUG_INVOKE_IF]:
1917 (pkgActionItem::SetAuthorities) [DEBUG_INVOKE_IF]: Use bit-wise `&'
1918 operator, not `&&', to evaluate DEBUGLEVEL state.
1920 2011-03-22 Keith Marshall <keithmarshall@users.sourceforge.net>
1922 Avoid Unicode hyphens in generated ASCII document files.
1924 * Makefile.in (NROFF): New macro; define it to invoke `nroff -Tascii'.
1925 (%.dist, readme.txt): Use it to ensure that output is pure ASCII.
1927 2011-03-15 Keith Marshall <keithmarshall@users.sourceforge.net>
1929 mingw-get-0.2-mingw32-alpha-2 released.
1931 * configure.ac (AC_INIT): Adjust version number.
1932 * srcdist-doc/NEWS.in: Updated; add bug-fix description.
1933 * All files (r0-2-alpha-2): Tag assigned.
1935 2011-03-15 Keith Marshall <keithmarshall@users.sourceforge.net>
1937 Fix MinGW-Bug 3212246.
1939 * src/keyword.c (has_keyword): Avoid incrementing the comparison
1940 pointers when a significant character in one string is not matched in
1941 the other; previously the pointers were left pointing one character to
1942 the right of the mismatch, and this was overlooked if the mismatch
1943 occurred at the rightmost character in both strings.
1945 2011-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1947 mingw-get-0.2-mingw32-alpha-1 released.
1949 * configure.ac (AC_INIT): Set version number; correct capitalisation
1950 in URI reference to bug reporting instructions.
1952 * srcdist-doc/NEWS.in: Confirm release date.
1953 [bug reporting]: Remove redundant paragraph; the information is
1954 provided, via reference to mingw.org. in the README and INSTALL files.
1956 * All files (r0-2-alpha-1): Tag assigned.
1958 2011-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1960 * srcdist-doc/INSTALL.in [building]: Qualify liblzma.a requirement;
1961 add earliest acceptable snapshot release date.
1963 2011-03-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1965 Remove unused 7zip and boost source code from CVS trunk.
1967 * 7z: Directory and all content removed.
1970 2011-03-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1972 Refactor and update existing installation and usage instructions.
1974 * src/clistub.c (help_text): Updated.
1976 * srcdist-doc: New directory.
1978 * README: Deleted; its content refactored into...
1979 * srcdist-doc/README.in srcdist-doc/INSTALL.in srcdist-doc/NEWS.in:
1980 ...these new template files, updated for current development state.
1982 * srcdist-doc/gendoc.sed.in: New sed script; it directs formatting of
1983 generated text files derived from the srcdist-doc templates.
1985 * Makefile.in (SRCDIST_SUBDIRS): Add srcdist-doc.
1986 (SRCDIST_FILES): Add NEWS and INSTALL.
1987 (srcdist-doc): New build rule to generate README, NEWS and INSTALL.
1988 (srcdist, licdist): Adjust path to locate them.
1989 (readme.txt): New build rule to generate on-line package description.
1991 (distclean): Don't remove Makefile...
1992 (maintainer-clean): ...but do it here instead. Also remove generated
1993 README, NEWS and INSTALL, the autom4te cache, and all distributable
1994 zip files, in addition to tarballs, for the current version.
1996 2011-02-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1998 Initial implementation for "remove" feature.
2000 * src/pkgbase.h: Update copyright notice; add current year.
2001 (pkgActionItem::SetPrimary): New inline public method; declare it.
2002 (pkgActionItem::SetAuthorities): New public method; declare it.
2004 * src/pkgtask.h (ACTION_PREFLIGHT, ACTION_REMOVE_OK): New defines.
2006 * src/pkgproc.h: Update copyright notice; add current year.
2007 (pkgManifest::GetSysRootReference): New public method; declare it.
2008 (pkgManifest::GetRoot): New inline method; declare and implement it.
2009 (pkgManifest::DetachSysRoot): Argument type changed to const char*.
2010 (pkgRemove): New extern "C" function; declare it.
2012 * src/pkgexec.cpp (pkgActionItem::SetPrimary): Implement it, and...
2013 (pkgXmlDocument::Schedule): ...use it to promote actions on all user
2014 specified packages, as listed on the command line, to primary status.
2015 (pkgActionItem::Execute): Repeatedly invoke...
2016 (pkgActionItem::SetAuthorities): ...this; incorporate call of...
2017 (pkgActionItem::DownloadArchiveFiles): ...this, within the loop, so
2018 that we retry failed downloads at least a second time.
2019 [ACTION_REMOVE]: Delete stub; invoke pkgRemove().
2021 * src/pkgunst.cpp: New file.
2022 (pkgActionItem::SetAuthorities): Implement it.
2023 (pkgManifest::GetSysRootReference): Implement it.
2024 (pkgManifest::DetachSysRoot): Implement it per new declaration.
2025 (pkgRemove): Implement it.
2027 * Makefile.in (CORE_DLL_OBJECTS): Add pkgunst.OBJEXT
2029 2011-02-26 Keith Marshall <keithmarshall@users.sourceforge.net>
2031 Work-around for improper stderr buffering in MSYS mintty and rxvt.
2032 (Merged from r0-1-alpha-5 branch).
2034 * src/dmh.cpp (dmhTypeTTY::emit_and_flush): New private method.
2035 (dmhTypeTTY::printf, dmhTypeTTY::notify): Use it to force an fflush()
2036 after each output record is written to stderr.
2038 * README: Update as appropriate.
2040 2011-02-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2042 Tidy up some debugging hooks.
2044 * src/debug.h (DEBUG_INVOKED): New macro; define it.
2045 (DEBUG_INVOKE_IF): Likewise; this takes arguments providing for
2046 conditional invocation of code when DEBUGLEVEL is non-zero; make it
2047 expand to nothing, when DEBUGLEVEL is zero.
2048 (DEBUG_TRACE_INIT): Redefined macro; value changed to 0x0010.
2049 (DEBUG_TRACE_TRANSACTIONS, DEBUG_SUPPRESS_INSTALLATION):
2050 (DEBUG_UPDATE_INVENTORY): New macros; define them.
2052 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDirectory):
2053 (pkgTarArchiveInstaller::ProcessDataStream): Refactor debugging hooks;
2054 implement them in terms of DEBUGLEVEL, with reference to...
2055 (DEBUG_SUPPRESS_INSTALLATION, DEBUG_UPDATE_INVENTORY): ...these.
2057 2011-02-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2059 Make package version comparisons more robust.
2061 Fixes an issue reported by Chris Sutcliffe: previously, version
2062 comparisons were evaluated solely on the basis of differences in the
2063 package version field itself. Henceforth, if this field compares as
2064 equal, then the comparison is extended to also consider differences
2065 between development phase qualifiers, and, if these too compare as
2066 equal, to differences in the target subsystem version fields.
2068 * src/pkginfo/pkginfo.h (pkgSpecs::VersionComparator): New private
2071 * src/pkgspec.cpp (pkgSpecs::VersionComparator): Implement it.
2072 (pkgSpecs::operator<, pkgSpecs::operator<=, pkgSpecs::operator>=):
2073 (pkgSpecs::operator>): Use it, replacing...
2074 (version): ...this static function; now unreferenced; delete it.
2076 * src/vercmp.h (pkgVersionInfo::pkgVersionInfo): Make it inline; it
2077 now delegates the entire class construction operation to...
2078 (pkgVersionInfo::Parse): ...this new private method; declare it. This
2079 is also used to facilitate implementation of...
2080 (pkgVersionInfo::Reset): ...this new inline method, also requiring...
2081 (pkgVersionInfo::FreeAll): ...this new inline method; also now used by
2082 the class destructor, it encapsulates separate calls to...
2083 (pkgVersionInfo::Free): ...this original inline method, renamed...
2084 (pkgVersionInfo::FreeEntry): ...as this.
2086 * src/vercmp.cpp (pkgVersionInfo::Parse): Implement it.
2088 2011-02-13 Keith Marshall <keithmarshall@users.sourceforge.net>
2090 Merge from mingw-get-0.1-mingw32-alpha-5 bug-fix branch.
2092 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): Promote
2093 "install" action on new prerequisites, where a previously uninstalled
2094 package is required to satisfy any "upgrade" dependency.
2096 * src/pkgexec.cpp (pkgActionList::Execute): Don't make misleading
2097 claims concerning package removal.
2099 * src/pkgtask.h (STRICTLY_GT, STRICTLY_LT, ACTION_PRIMARY): Add one
2100 level of parentheses around defining expressions.
2102 2011-02-10 Keith Marshall <keithmarshall@users.sourceforge.net>
2104 Publish mingw-get-0.0-mingw32-alpha-5.1 bug-fix release.
2106 * README: Updated to reflect changes.
2108 2011-02-08 Keith Marshall <keithmarshall@users.sourceforge.net>
2110 Improve diagnostics for failed GUI invocation.
2112 * src/guimain.cpp: New file; currently delivers only a diagnostic
2113 stub, provided by Sze Howe Koh <axfangli@users.sourceforge.net>, to
2114 pop-up a message block explaining why GUI mode cannot be invoked.
2116 * Makefile.in (GUI_LDFLAGS): New macro; it is required by...
2117 (gui$EXEEXT): ...this new build rule; add to prerequisites of...
2118 (all): ...this [default] build rule; redefine this in terms of...
2119 (BIN_PROGRAMS, LIBEXEC_PROGRAMS, LIBEXEC_DATA): ...these new macros;
2120 define them, and also use them as loop iterator objectives for...
2121 (install, install_strip): ...these; also schedule them...
2122 (clean): ...for removal by this.
2124 * src/clistub.c (Copyright): Add new year.
2125 (main): Amend error message, if gui$EXEEXT doesn't start; make it
2126 more intelligible to normal users.
2128 2011-02-07 Keith Marshall <keithmarshall@users.sourceforge.net>
2130 Correct omissions from packaged source tarball.
2132 * Makefile.in (Copyright): Add new year.
2133 (SRCDIST_FILES): Add aclocal.m4
2134 (SRCDIST_SUBDIRS): Add m4
2136 2011-01-05 Keith Marshall <keithmarshall@users.sourceforge.net>
2138 Reduce path names to base names, in some diagnostic message contexts.
2140 * src/climain.cpp: Update copyright notice for new year.
2141 (climain): Extract base name from argv[0], to pass as program name tag
2142 in initialisation of diagnostic message handler.
2144 * src/dmh.h, src/dmh.cpp: Update copyright notices; make some layout
2145 adjustments, for more consistent formatting style.
2147 * src/pkgbind.cpp: Update copyright notice.
2148 (pkgRepository::GetPackageList): Reduce path names for catalogue files
2149 to their base names, when reporting them in diagnostic messages.
2151 2011-01-05 Keith Marshall <keithmarshall@users.sourceforge.net>
2153 Avoid a potential out-of-range action name look-up.
2155 * src/pkgdeps.cpp: Update copyright notice for new year.
2156 (pkgXmlDocument::Schedule): Mask action code with ACTION_MASK, to
2157 determine correct action name when diagnosing uninstalled package.
2159 2011-01-03 Keith Marshall <keithmarshall@users.sourceforge.net>
2161 Make "install" and "remove" notifications symmetric.
2163 * configure.ac (AC_INIT): Bump version to "0.1-alpha-6cvs".
2164 (YEARS_OF_ISSUE): Add new year.
2166 * src/pkginst.cpp: Update copyright notice for new year.
2167 (pkgInstall): Add notification for package being installed.
2169 2010-12-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2171 Add preliminary CLI support for "list" and "show" actions.
2173 * src/pkgtask.h (ACTION_PRIMARY): New manifest constant; define it.
2174 (ACTION_LIST, ACTION_SHOW): Likewise; cast to enumerated values for...
2175 (action_list, action_show): ...these; define them.
2177 * src/pkgexec.cpp (action_name): Add defining text for...
2178 (action_list, action_show): ...these.
2180 * src/climain.cpp: Partially revert 2010-11-01 change...
2181 (climain) [! ACTION_UPDATE]: Reinstate original "if" block, moving
2182 the "switch" block within it, but without the ACTION_UPDATE case.
2183 [ACTION_LIST, ACTION_SHOW]: New "switch" cases; they invoke...
2184 (pkgXmlDocument::DisplayPackageInfo): ...this new method.
2186 * src/pkgbase.h (pkgXmlDocument::DisplayPackageInfo): Declare it.
2187 (pkgActionItem::ConfirmInstallationStatus): New method; declare it.
2188 (pkgXmlNode::GetSysRoot): Make declaration style consistent with
2189 others in the class; do not name arguments in the declaration.
2190 (pkgXmlNode::FindFirstAssociate): Likewise.
2191 (pkgXmlNode::FindNextAssociate): Likewise.
2193 * src/pkgshow.cpp: New file.
2194 (pkgXmlDocument::DisplayPackageInfo): Implement it.
2196 * src/pkgdeps.cpp (pkgMsgUnknownPackage): New extern "C" function;
2197 implement it temporarily, pending a future i18n reimplementation.
2198 (assert_installed): Drop "inline" attribute; leave it as "static".
2199 Set "tarname" correctly, to match the installed package version; (it
2200 previously incorrectly returned the latest available version).
2201 (pkgActionItem::ConfirmInstallationStatus): Implement it.
2202 (pkgXmlDocument::Schedule) [ACTION_PRIMARY]: Set as appropriate.
2203 (pkgXmlDocument::Schedule) [ACTION_REMOVE || ACTION_UPGRADE]: Complain
2204 if requested package is not recorded as having been installed.
2205 (pkgXmlDocument::ResolveDependencies) [! ACTION_INSTALL]: Do not
2206 invoke it recursively.
2208 * Makefile.in (pkgshow.$OBJEXT): Add reference.
2210 2010-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
2212 Lay groundwork for implentation of additional actions.
2214 * src/climain.cpp (climain): Adjust indentation; replace `if' block...
2215 [action != ACTION_UPDATE]: ...with this default `switch' case, and...
2216 [action == ACTION_UPDATE]: ...this as explicit "do nothing" case.
2218 2010-10-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2220 mingw-get-0.1-mingw32-alpha-5 released.
2222 * configure.ac (AC_INIT): Bump version to 0.1-alpha-5.
2223 * README: Update release notes accordingly.
2224 * All files (r0-1-alpha-5): Tag assigned.
2226 2010-10-22 Keith Marshall <keithmarshall@users.sourceforge.net>
2228 Make pkgInitRites/pkgLastRites processing more robust;
2229 avoid a potential race condition in mingw-get-inst.
2231 * src/rites.c: Refactor conditional code to segregate execution of...
2232 [defined IMPLEMENT_INITIATION_RITES]: ...this into distinct phases.
2233 (PHASE_ONE_RITES, PHASE_TWO_RITES): Define constants to identify them.
2234 (do_init_rites): Renamed to...
2235 (invoke_rites): ...this; inline it.
2236 (pkgLastRites): Invoke it, to pre-empt rename action of...
2237 (lastrites.exe): ...this, subsequently exec()ed process.
2238 (perror): Issue more informative diagnostic on exec() failure.
2240 * src/clistub.c (IMPLEMENT_INITIATION_RITES): Stipulate as...
2241 (PHASE_ONE_RITES): ...this phase of implementation only.
2243 * src/pkgexec.cpp (IMPLEMENT_INITIATION_RITES): Define to provide...
2244 (PHASE_TWO_RITES): ...this phase of implementation, facilitated by...
2245 (self_upgrade_rites): ...this locally defined RITES_INLINE function.
2246 (pkgActionItem::Execute): Invoke it, in remove/install loop, while...
2247 [init_rites_pending]: ...new loop local variable remains true.
2249 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
2251 Fix packaging bug in -lic package.
2253 * Makefile.in (licdist): Use directory named
2254 "share", not "shared".
2256 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
2258 mingw-get-0.1-mingw32-alpha-4 released.
2260 * All files (r0-1-alpha-4): Tag assigned.
2262 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
2264 Add rudimentary help option.
2266 * README: Update release notes.
2268 * src/clistub.c: Add --help option.
2270 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
2272 Fix "mingw-get deletes itself" bug in last rites handling.
2274 * README: Add new release notes.
2276 * configure.ac: Bump version to 0.1-alpha-4.
2278 * src/dmh.h: If __cplusplus, include <exception> and
2279 declare dmh_exception class.
2281 * src/dmh.cpp (class dmh_exception): Implement.
2282 (abort_if_fatal): If DMH_FATAL, throw dmh_exception rather
2283 than calling exit().
2285 * src/climain.cpp (climain): Wrap entire function body in try/
2286 catch block. If dmh_exception is caught, return EXIT_FAILURE.
2288 * src/clistub.c (main): Capture return value of climain(). If
2289 non-zero, perform last rites and return EXIT_FAILURE.
2291 2010-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2293 mingw-get-0.1-mingw32-alpha-3 released.
2295 * README: Add new release notes.
2297 * All files (r0-1-alpha-3): Tag assigned.
2299 2010-08-27 Keith Marshall <keithmarshall@users.sourceforge.net>
2301 Add runtime hooks to support self-upgrade for future releases.
2303 * src/rites.c: New file; compile it free-standing, to provide...
2304 (lastrites.exe): ...this helper application for context clean-up;
2305 alternatively, use it as an include file, with pre-definition of...
2306 (IMPLEMENT_INITIATION_RITES): ...this, to implement...
2307 (pkgInitRites, pkgLastRites): ...these inline functions.
2309 * src/clistub.c (main) [argc > 1]: Use them.
2310 (progname): New local variable within `main'; set it once, then use it
2311 instead of repeated references to `basename(*argv)' in diagnostics.
2312 (MINGW_GET_DLL, MINGW_GET_GUI): Relocate to `src/rites.c'.
2314 * src/debug.h (DEBUG_INHIBIT_RITES_OF_PASSAGE):
2315 (DEBUG_FAIL_FILE_RENAME_RITE, DEBUG_FAIL_FILE_UNLINK_RITE): New
2316 defines; they facilitate debugging of the src/rites.c code.
2318 * Makefile.in (lastrites$EXEEXT): New target; build as prerequisite...
2319 (all): ...of this primary target.
2320 (install, install-strip): Install it.
2321 (SRCDIST_FILES): Remove install-sh; it is now included in...
2322 (build-aux): ...this directory; add it to...
2323 (SRCDIST_SUBDIRS): ...this.
2325 2010-08-24 Keith Marshall <keithmarshall@users.sourceforge.net>
2327 Set default sysroots relative to mingw-get installation directory.
2329 * xml/profile.xml (system-map) [name == default]: For each of...
2330 [subsystem == mingw32]: ...set sysroot path to value of %R macro...
2331 [subsystem == msys]: ...and to its %R/msys/1.0 subdirectory.
2333 2010-08-19 Keith Marshall <keithmarshall@users.sourceforge.net>
2335 Some dependency resolver enhancements and bug fixes.
2337 * src/pkgbase.h (pkgXmlNode::GetContainerAttribute): New method;
2340 * src/pkgdeps.cpp (pkgXmlNode::GetContainerAttribute): Implement it;
2341 it is used to retrieve package name attributes from the containing
2342 'package' element, when given a pointer to a 'release' element by...
2343 (assert_unmatched, assert_installed): ...these new static functions.
2344 (pkgXmlDocument::Schedule): Use them to reconstruct and register
2345 dependency reference data for previously installed packages which are
2346 no longer included in the distribution manifest.
2347 (pkgXmlDocument::ResolveDependencies): Fix a block nesting error;
2348 catch and diagnose unresolved dependencies; don't look beyond the XML
2349 document root node, (tinyxml error not caught?), when searching for
2350 requirements specified on container nodes.
2352 2010-08-17 Keith Marshall <keithmarshall@users.sourceforge.net>
2354 Improve scheduling of package processing requests.
2356 * src/pkgexec.cpp (pkgXmlDocument::Schedule): Inspect entire `actions'
2357 list, when checking for duplicate package processing requests; decline
2358 to schedule any such duplicate, or any request which lacks a package
2361 2010-08-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2363 Lay foundation for selective compilation of debugging code.
2365 * src/debug.h: New file...
2366 * src/sysroot.cpp: Include it.
2367 (pkgXmlDocument::LoadSystemMap): Make debugging output conditional...
2368 [DEBUGLEVEL & DEBUG_TRACE_INIT]: ...on this new debugging state.
2370 2010-08-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2372 * src/pkgkeys.h: Typo in comment: file was previously identified as
2373 pkgkeys.c; corrected.
2375 2010-08-13 Keith Marshall <keithmarshall@users.sourceforge.net>
2377 Improve diagnostics for invalid references to non-release XML nodes.
2379 * src/pkgkeys.h (value_unknown): New global string; declare it.
2380 * src/pkgkeys.c (value_unknown): Implement it.
2382 * src/pkgname.cpp (pkgArchiveName): Identify XML element type when
2383 diagnosing references to elements of types other than release; use...
2384 (value_unknown): ...this, as appropriate.
2386 2010-08-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2388 Guard against a potential buffer overrun.
2390 * src/pkgreqs.cpp (pkgSpecs::SetProperty): Allocate an additional
2391 byte to accommodate an extra field separator, when inserting a new
2392 data value into a previously empty field.
2394 2010-07-27 Cesar Strauss <cestrauss@gmail.com>
2396 Handle the GNU long name tar header format.
2398 * src/pkgproc.h (TAR_ENTITY_TYPE_GNU_LONGNAME): New manifest constant;
2400 (pkgTarArchiveProcessor::EntityDataAsString): New protected method;
2402 * src/tarproc.cpp: ...implement it.
2403 (pkgTarArchiveProcessor::Process): Before building the entry pathname,
2404 check for a GNU long name type header; when found, read pathname from
2405 the entry data area, before fetching the following header, from which
2406 to retrieve the associated entity data.
2408 2010-06-24 Keith Marshall <keithmarshall@users.sourceforge.net>
2410 Work around an autoconf bug (reported by Stefano Sabatini).
2412 * Makefile.in (VPATH): Use @top_srcdir@ instead of ${srcdir}; current
2413 autoconf incorrectly elides references to @srcdir@ and ${srcdir} when
2414 substituting within a VPATH specification for building `in-source'.
2415 Also, prefer colons to blanks as path name separators, for improved
2416 portability to non-GNU implementations of make; (recommendation by
2419 2010-06-24 Keith Marshall <keithmarshall@users.sourceforge.net>
2421 Include alias search, when matching component package name.
2423 * src/keyword.c (has_keyword): Rearrange argument declarations for
2424 more natural order; update all callers accordingly. Simplify; compare
2425 keyword to be matched with each successive candidate from match-list,
2426 character-by-character and in-place, so avoiding memory allocation
2427 for any local duplicate of the passed match-list; thus...
2428 (safe_strdup): ...this static function no longer required; delete it.
2429 (string.h): No references remain; do not include it.
2431 * src/pkgfind.cpp (pkgXmlNode::FindPackageByName): Augment component
2432 package name matching to include potential matches of the look-up name
2433 with trailing component name stripped off, when that matches the class
2434 name of an identified component package, and the initial substring of
2435 the look-up name, after stripping, matches any specified alias name
2436 for the containing package.
2438 2010-06-10 Keith Marshall <keithmarshall@users.sourceforge.net>
2440 Address FIXME relating to identification of distributable files.
2442 * install-sh: Move to...
2443 * build-aux: ...this new directory.
2445 * Makefile.in (PACKAGE_DISTVERSION): Modify `sed' edit sequence; make
2446 it depend on, and ensure that it incorporates the expansion of...
2447 (PACKAGE_SUBSYSTEM): ...this new macro; defined as substitution of...
2448 (host_os): ...this autoconf variable, set by...
2450 * configure.ac (AC_CANONICAL_HOST): ...this; add it, requiring...
2451 (AC_CONFIG_AUX_DIR): ...`build-aux' directory reference, providing...
2453 * build-aux/config.guess, build-aux/config.sub: ...these new standard
2454 files; import them from the standard `build-aux' repository.
2456 2010-05-17 Keith Marshall <keithmarshall@users.sourceforge.net>
2458 Bump version for next release cycle.
2460 * configure.ac (AC_INIT): Bump version suffix to alpha-3.
2462 2010-05-17 Keith Marshall <keithmarshall@users.sourceforge.net>
2464 mingw-get-0.1-mingw32-alpha-2 released.
2466 * README: Add new release notes.
2468 * xml/profile.xml: Update to use default referencing for...
2469 (package-list.xml.lzma): ...this repository master catalogue.
2471 * All files (r0-1-alpha-2): Tag assigned.
2473 2010-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2475 Make provision to protect user's profile settings during upgrade.
2477 * Makefile.in (install): Remove `profile.xml'; replace it with...
2478 (install-profile): ...this new prerequisite installation goal; it
2479 renames the installed copy of `profile.xml' as `defaults.xml', within
2480 the installed package image.
2482 * src/pkgkeys.h (defaults_key): New key; declare it.
2483 * src/pkgkeys.c: Some cosmetic formatting (tabulation) adjustments.
2484 (defaults_key): Implement it; it refers to the `defaults.xml' file.
2486 * src/climain.cpp (climain): Check `profile_key' for accessibility of
2487 the `profile.xml' file; if [! R_OK] emit a diagnostic warning, fall
2488 back on `defaults_key', and attempt to load configuration from the
2489 distributed `defaults.xml' file.
2491 2010-05-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2493 Add preliminary support for future `-reinstall' option.
2495 * src/pkgexec.cpp (pkgActionItem::Execute) [ACTION_INSTALL]: Force
2496 installation if `-reinstall' option is selected, overriding state of
2497 any prior installation; temporarily assume that this option is always
2498 selected, to permit proper `upgrade' operation in the absence of any
2499 functional `uninstall' capability, and pending implementation of a
2500 mechanism for interpreting user specified options.
2502 2010-05-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2504 Correct handling for "%R" macro in relative sysroot path specs.
2506 * src/tarproc.cpp (pkgTarArchiveProcessor): In constructor, expand the
2507 sysroot path specification a second time, to capture the effect of any
2508 embedded macros, before computing the recorded `sysroot_len' value.
2510 2010-05-05 Keith Marshall <keithmarshall@users.sourceforge.net>
2512 Handle "%" wildcard matches in package and subsystem version strings.
2514 * src/pkgbase.h (pkgSpecs): Forward declare it.
2515 (pkgActionItem::~pkgActionItem): Declare explicit destructor.
2516 (pkgActionItem::SetRequirements): Add extra `pkgSpecs*' argument;
2517 update references, passing additional argument in...
2519 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): ...this.
2521 * src/pkgexec.cpp (pkgActionItem::~pkgActionItem): Implement it.
2522 (pkgActionItem::SetRequirements): Delete obsolete implementation.
2524 * src/pkginfo/pkginfo.h: Update copyright notice; add year 2010.
2525 (pkgSpecs::GetTarName): New public method; declare it.
2526 (pkgSpecs::SetProperty): New private method; declare it.
2527 (pkgSpecs::SetPackageName): New inline method; implement it.
2528 (pkgSpecs::SetPackageVersion, pkgSpecs::SetPackageBuild): Likewise.
2529 (pkgSpecs::SetSubSystemName, pkgSpecs::SetSubSystemVersion): Likewise.
2530 (pkgSpecs::SetSubSystemBuild, pkgSpecs::SetReleaseStatus): Likewise.
2531 (pkgSpecs::SetReleaseIndex, pkgSpecs::SetComponentClass): Likewise.
2532 (pkgSpecs::SetComponentVersion, pkgSpecs::SetPackageFormat): Likewise.
2533 (pkgSpecs::SetCompressionType): Likewise.
2535 * src/pkginfo/pkginfo.l: Update copyright notice; add year 2010.
2536 (TRANS): Interpret "%" as wildcard in version string matches.
2538 * src/pkgreqs.cpp: New file.
2539 (pkgActionItem::SetRequirements): Reimplement per new declaration;
2540 it now always allocates heap memory for requirements specifications.
2541 (pkgSpecs::GetTarName, pkgSpecs::SetProperty): Implement them.
2543 * Makefile.in (CORE_DLL_OBJECTS): Add `pkgreqs.$(OBJEXT)'.
2545 2010-04-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2547 Revert 2010-04-04 refactoring of tarproc.cpp and tarinst.cpp
2549 * src/tarinst.cpp: File removed; its content merged into...
2550 * src/tarproc.cpp: ...this; it cannot be cleanly separated out.
2552 * Makefile.in (tarinst.$OBJEXT): Remove reference.
2554 2010-04-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2556 Handle "*" wildcard matches in package and subsystem version strings.
2558 * src/vercmp.h (pkgVersionInfo::version_string): New private member
2559 variable; it stores a pointer to a dynamically allocated local copy of
2560 the invariant `version' argument, to facilitate correct parsing.
2561 (pkgVersionInfo::build_string): Likewise; it provides similar handling
2562 for the invariant `build' argument.
2563 (pkgVersionInfo::Free): New private inline method; it provides a NULL
2564 pointer safe wrapper, calling the C library `free()' function, (since
2565 some implementations are believed to be unsafe); it is used by...
2566 (pkgVersionInfo::~pkgVersionInfo): ...this new inline destructor, to
2567 release the memory allocated by the constructor, for `version_string'
2570 * src/vercmp.cpp (pkgVersionInfo::pkgVersionInfo): Allocate memory for
2571 `version_string' and `build_string', as required; populate it.
2572 Explicitly handle "*" as a `match anything' wildcard...
2573 (pkgVersionInfo::Compare): ...matching it as `equal' to everything.
2575 2010-04-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2577 Correct omission from configure script prerequisite checks.
2579 * aclocal.m4 (MINGW_AC_OUTPUT): New macro; it wraps AC_OUTPUT itself,
2580 adding a trap to force an abort if any preceding prerequisite check
2581 was handled by MINGW_AC_ASSERT_MISSING.
2583 * configure.ac: Qualify package component types, in prerequisite
2584 checks handled by MINGW_AC_ASSERT_MISSING; invoke MINGW_AC_OUTPUT
2585 in place of AC_OUTPUT.
2587 2010-04-17 Keith Marshall <keithmarshall@users.sourceforge.net>
2589 Add configure script checks for prerequisite library headers.
2590 (Thanks to Cesar Strauss for proposing a rudimentary implementation).
2592 * aclocal.m4: New file; it does no more than include...
2593 * m4/missing.m4: ...this; new file incorporated from build-aux module.
2595 * configure.ac: Add AC_CHECK_HEADER assertions for...
2596 (zlib.h, bzlib.h, lzma.h): ...these; invoke MINGW_AC_ASSERT_MISSING in
2597 respect of each failing assertion.
2599 2010-04-17 Keith Marshall <keithmarshall@users.sourceforge.net>
2601 Case-insensitive subsystem name matching revisited.
2603 * src/pkgfind.cpp (pkgXmlDocument::FindPackageByName): Use...
2604 (subsystem_strcmp): ...this to match subsystem names, instead of...
2605 (match_if_explicit): ...this.
2607 2010-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2609 Enable recursive processing of repository package lists.
2611 * src/pkgbase.h (pkgXmlDocument::SyncRepository): Make it public.
2613 * src/pkgbind.cpp (pkgRepository): New locally defined and implemented
2614 class; it facilitates recursive loading and parsing of package lists,
2615 replacing much of the original non-recursive functionality within...
2616 (pkgXmlDocument::BindRepositories): ...this; use it.
2618 2010-04-04 Keith Marshall <keithmarshall@users.sourceforge.net>
2620 Implement installer function; use per-package file manifests.
2622 * src/pkgproc.h (pkgManifest): New class; declare it.
2623 (pkgArchiveProcessor::origin): New protected member variable.
2624 (pkgArchiveProcessor::sysroot_len): New protected member variable.
2625 (pkgArchiveProcessor::installed): Type changed to `pkgManifest *'.
2626 (pkgTarArchiveInstaller::Process): Declare specialisation hook.
2627 (pkgTarArchiveInstaller::UpdateInstallationManifest): Disused member
2628 function; remove redundant declaration from class definition.
2629 (pkgInstall): New generalised installation function; declare it.
2630 (pkgRegister): New function; declare it.
2632 * src/pkginst.cpp: New file.
2633 (pkgManifest, pkgInstall, pkgRegister): Implement them.
2635 * src/pkgexec.cpp (pkgActionItem::Execute): Use `pkgInstall' in place
2636 of stub formerly provided here.
2638 * src/pkgkeys.h (manifest_key, reference_key): New keys; declare them.
2639 * src/pkgkeys.c (manifest_key, reference_key): Implement them.
2641 * src/tarproc.cpp: Code refactored.
2642 (pkgTarArchiveProcessor::sysroot_len): Initialise it.
2643 (pkgTarArchiveProcessor::origin): Initialise it.
2644 (pkgTarArchiveProcessor::installed): Initialise; associate it with a
2645 pkgManifest class entity, and populate this as appropriate.
2646 (pkgTarArchiveProcessor::~pkgTarArchiveProcessor): Add explicit clean
2647 up of linked `pkgManifest *' entity referenced by `installed'.
2648 (pkgTarArchiveProcessor::Process) [TAR_ENTITY_TYPE_DIRECTORY]: Add
2649 braces to demarcate localised inner scope of string scan for removal
2650 of trailing directory name separators; (thanks to Cesar Strauss for
2651 reporting invalid local pointer declaration error in GCC >= 4.4).
2652 (pkgTarArchiveInstaller::UpdateInstallationManifest): Deleted.
2653 (pkgTarArchiveInstaller::pkgTarArchiveInstaller): Factor out.
2654 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
2655 (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
2656 (commit_saved_entity): Likewise.
2658 * src/tarinst.cpp: New file; it implements...
2659 (pkgTarArchiveInstaller::Process): ...this new specialisation
2660 of the original pkgTarArchiveProcessor::Process method...
2661 (pkgTarArchiveInstaller::pkgTarArchiveInstaller): ...and this
2662 refactored code, abstracted from src/tarproc.cpp and modified to
2663 use the pkgManifest class for installation tracking.
2664 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
2665 (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
2666 (commit_saved_entity): Relocated from src/tarproc.cpp.
2668 * Makefile.in (CORE_DLL_OBJECTS): Add...
2669 (pkginst.OBJEXT, tarinst.OBJEXT): ...these new object files.
2671 2010-03-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2673 Guard against NULL pointer dereferences in tinyxml code.
2675 * src/pkgbase.h (pkgXmlNode::GetName): Verify `this' pointer is
2676 non-NULL, before invoking the underlying tinyxml method.
2677 (pkgXmlNode::GetParent, pkgXmlNode::GetChildren): Likewise.
2678 (pkgXmlNode::GetNext, pkgXmlNode::GetPropVal): Likewise.
2679 (pkgXmlNode::AddChild, pkgXmlNode::DeleteChild): Likewise.
2680 (pkgXmlNode::GetDocumentRoot): Likewise.
2681 (pkgXmlNode::IsElementOfType): Likewise.
2683 2010-03-28 Cesar Strauss <cestrauss@gmail.com>
2685 Avoid running InternetAttemptConnect in pkgInternetAgent
2686 constructor, since it is called during DLL initialisation.
2688 * src/pkginet.cpp (pkgInternetAgent::pkgInternetAgent): Move the
2689 InternetAttemptConnect call from constructor...
2690 (pkgInternetAgent::OpenURL): ...to here.
2692 2010-03-23 Keith Marshall <keithmarshall@users.sourceforge.net>
2694 Automate object code dependency tracking.
2696 * Makefile.in (DEPFLAGS): New macro; define it.
2697 (%.OBJEXT: %.c, %.OBJEXT: %.cpp): Add dependency generator commands...
2698 (%.d): ...to create these dependency maps; `sinclude' them, and...
2699 (clean): ...remove them.
2701 * .cvsignore (*.d): Add wild card template to match them.
2703 2010-03-22 Keith Marshall <keithmarshall@users.sourceforge.net>
2705 Support case insensitive matching for file and subsystem names.
2707 * src/pkgbase.h (safe_strcmp): New inline function; it provides NULL
2708 argument safe comparison of strings, returning the boolean inverse of
2709 the `strcmp' result, using either case-sensitive or case-insensitive
2710 semantics; derive it from...
2711 (match_if_explicit): ...this; redefine as macro; invoke `safe_strcmp'
2712 using explicitly case-sensitive semantics.
2713 (subsystem_strcmp): New macro; it invokes `safe_strcmp' with either
2714 case-sensitive or case-insensitive semantics, depending on...
2715 (CASE_INSENSITIVE_SUBSYSTEMS): ...this new context selection macro; it
2716 fixes the choice between case-sensitive and case-insensitive matching
2717 semantics for any given implementation, at compile time.
2718 (pkg_strcmp): New macro; it invokes `safe_strcmp' with either
2719 case-sensitive or case-insensitive semantics, depending on...
2720 (CASE_INSENSITIVE_FILESYSTEM): ...this new context selection macro; it
2721 fixes the choice between case-sensitive and case-insensitive matching
2722 semantics for any given implementation, at compile time.
2724 * src/sysroot.cpp (pkgXmlNode::GetSysRoot): Use `subsystem_strcmp'.
2726 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
2728 Add preliminary support for virtual packages.
2730 * src/pkgkeys.h (yes_value, no_value): Redefine as aliases...
2731 (value_yes, value_no): ...for these new global strings; declare them.
2732 (value_none, value_virtual): New global strings; declare them.
2734 * src/pkgkeys.c (yes_value, no_value): Rename...
2735 (value_yes, value_no): ...to implement these, respectively.
2736 (value_none, value_virtual): Implement them.
2738 * src/pkgname.cpp (pkgXmlNode::ArchiveName): Check containing package
2739 node for `class' attribute set to `value_virtual'; if present, always
2740 return the effective `tarname' property as `value_none'.
2742 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): For packages
2743 with an effective `tarname' of `value_none', do not download anything.
2745 * src/pkgexec.cpp (pkgActionItem::Execute): For packages with an
2746 effective `tarname' of `value_none', do not invoke any tar archive
2747 processing function.
2749 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
2751 Don't write installation records for unavailable packages.
2753 * src/tarproc.cpp (pkgTarArchiveInstaller): In constructor, ensure
2754 archive is ready for processing, before initialising an installation
2757 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
2759 Rationalise path identification for XML file locations.
2761 * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Use `xmlfile()'
2762 function to locate `sysroot' map file; free memory when done.
2763 (pkgXmlDocument::UpdateSystemMap): Likewise.
2764 (sigpath): Static global variable disused; delete it.
2766 2010-03-01 Keith Marshall <keithmarshall@users.sourceforge.net>
2768 Extend package name search to include component packages.
2770 * src/pkgfind.cpp (pkgHasMatchingName): Remove; fold it into...
2771 (pkgXmlNode::FindPackageByName): ...this; augment to extend search
2772 within package definition elements, seeking a potential match on an
2773 included component package name or component class-implied name.
2775 * src/pkgkeys.h (class_key): New global string constant; declare it.
2776 * src/pkgkeys.c (class_key): Implement it.
2778 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
2780 Bump version for next release cycle.
2782 * configure.ac (AC_INIT): Bump version suffix to alpha-2.
2784 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
2786 mingw-get-0.1-mingw32-alpha-1 released.
2788 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
2790 Prepare initial package release.
2792 * README: New file; use it to source release notes.
2794 * Makefile.in (SRCDIST_FILES): Use ...
2795 (LICENCE_FILES): ...this new macro; define it.
2796 (licdist): New build goal; implement it.
2797 (bindist): Require it; add alternative `zip' format package.
2799 * xml/profile.xml (repository): Set default `package-index' name.
2800 (system-map): Normalise spelling for default `sysroot' path names.
2802 2010-02-10 Keith Marshall <keithmarshall@users.sourceforge.net>
2804 Add directory/file records in installation manifests.
2806 * src/pkgkeys.h (dirname_key, filename_key): New strings; declare...
2807 * src/pkgkeys.c (dirname_key, filename_key): ...and implement them.
2809 * src/pkgproc.h (pkgArchiveProcessor::installed): New class member
2810 variable; declare it.
2811 (pkgTarArchiveInstaller::UpdateInstallationManifest): New method;
2814 * src/tarproc.cpp: Miscellaneous comment updates.
2815 (pkgTarArchiveInstaller): In constructor...
2816 (pkgTarArchiveInstaller::installed): ...use new member variable...
2817 (pkgArchiveProcessor::installed): ...inherited from this.
2818 (pkgTarArchiveInstaller::UpdateInstallationManifest): Implement and...
2819 (pkgTarArchiveInstaller::ProcessDataStream): ...use it.
2820 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
2822 2010-02-06 Keith Marshall <keithmarshall@users.sourceforge.net>
2824 Work around a deficiency in Microsoft's stat() implementation.
2826 * src/tarproc.cpp (pkgTarArchiveProcessor::ProcessDirectory): Don't
2827 pass a `pathname' argument with trailing slashes; strip them off.
2829 2010-02-06 Keith Marshall <keithmarshall@users.sourceforge.net>
2831 Add machinery for installation and packaging for distribution.
2833 * install-sh: New file; source it from autoconf distribution.
2835 * configure.ac (AC_PREFIX_DEFAULT): Assign it as `C:/MinGW'.
2836 (AC_PROG_MKDIR_P, AC_PROG_INSTALL, AC_PROG_LN_S): Invoke these.
2837 (STRIP): New output variable; use AC_CHECK_TOOL to define it.
2839 * Makefile.in (abs_top_srcdir): Define to AC_SUBST value.
2840 (PACKAGE_TARNAME, PACKAGE_VERSION): Define to AC_SUBST values.
2841 (prefix, exec_prefix, bindir, libexecdir, localstatedir): Likewise.
2842 (INSTALL, INSTALL_PROGRAM, INSTALL_SCRIPT, INSTALL_DATA): Likewise.
2843 (STRIP): New macro; define it using AC_CHECK_TOOL substitution.
2844 (mkinstalldirs): New macro; define it as AC_PROG_MKDIR_P result.
2845 (LN_S): New macro; define it as AC_PROG_LN_S result.
2846 (dist, srcdist, bindist): New build objectives; implement them.
2847 (install, installdirs, install-strip, maintainer-clean): Likewise.
2848 (SRCDIST_FILES, SRCDIST_SUBDIRS): New macros; define them.
2849 (PACKAGE_DISTNAME, PACKAGE_DISTVERSION): Likewise.
2850 (PACKAGE_DISTROOT, PACKAGE_ROOTVERSION): Likewise.
2851 (PACKAGE_CONFIG_DIR): Likewise.
2853 2010-02-02 Keith Marshall <keithmarshall@users.sourceforge.net>
2855 Implement package installer for tar archives.
2857 * src/pkgexec.cpp (pkgXmlDocument::Execute): Replace existing
2858 stub implementation of installer, using methods provided by...
2859 * src/pkgproc.h, src/tarproc.cpp: ...these new files, with trap...
2860 * src/pkgdeps.cpp (pkgXmlDocument::Schedule) [installed]: Add entry...
2861 (pkgActionItem::Selection) [to_remove]: ...for this; use it to detect
2862 `install' requests for packages which are aleady installed.
2864 * Makefile.in (CORE_DLL_OBJECTS): Add tarproc.$(OBJEXT); specify
2865 dependencies as appropriate.
2867 * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Don't commit
2868 newly created `sysroot' mapping records to disk; defer to...
2869 (pkgXmlDocument::UpdateSystemMap): ...this new method.
2870 (sigpath): Make it a global variable, with file (static) scope.
2872 * src/climain.cpp (pkgXmlDocument::UpdateSystemMap): Invoke it.
2874 * src/pkgkeys.h (download_key, modified_key, source_key): New global
2875 string variables; declare them, providing their implementations...
2876 * src/pkgkeys.c (download_key, modified_key, source_key): ...here.
2877 * src/pkgname.cpp (download_key, source_key): Use them.
2879 * src/pkginet.cpp (pkgActionItem::ArchivePath): Delete; replace...
2880 * src/mkpath.c (pkgArchivePath): ...with this free standing function.
2881 * src/mkpath.h (pkgArchivePath): Declare its prototype.
2883 * src/pkgbase.h (pkgActionItem::ArchivePath): Delete declaration.
2884 (pkgXmlDocument): Add a default constructor; implement as `inline'.
2885 (pkgXmlDocument::AddDeclaration): Use heap memory to allocate the new
2886 declaration object, instead of `auto' variable, to avoid scope error.
2887 (pkgXmlDocument::UpdateSystemMap): Declare it.
2889 2010-01-26 Keith Marshall <keithmarshall@users.sourceforge.net>
2891 Implement rudimentary dependency resolver.
2893 * src/pkgdeps.cpp: New file.
2895 * Makefile.in (CORE_DLL_OBJECTS): Add pkgdeps.$(OBJEXT) reference;
2896 establish header file dependencies.
2898 * src/pkgbase.h (to_remove, to_install, selection_types): New enum.
2899 (pkgActionItem::selection): Extend it to store as enumerated pair...
2900 (pkgActionItem::SelectPackage): New inline method; assign them.
2901 (pkgActionItem::Selection): New inline method; retrieve them.
2902 (pkgXmlNode::GetInstallationRecord): New method; declare it.
2904 * src/pkgexec.cpp (pkgActionItem): In constructor...
2905 (selection): ...initialise both references in enumerated pair.
2906 (pkgActionItem::GetReference): Use `Selection()' method.
2907 (pkgActionItem::SelectIfMostRecent): Ditto; also correct logic for
2908 making selection, and assign to `to_install' element.
2909 (pkgXmlDocument::Schedule): Don't update `request'.
2910 (pkgActionItem::Execute): Implement as stub.
2912 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): Use new
2913 `Selection()' method.
2915 * src/pkgkeys.h (yes_value, no_value): Declare new string constants.
2916 * src/pkgkeys.c (yes_value, no_value): Implement them.
2918 * src/vercmp.cpp: Update copyright notice.
2919 (pkgVersionInfo::operator<=): Bug fix; must test for `<', but had `>'.
2921 2010-01-23 Keith Marshall <keithmarshall@users.sourceforge.net>
2923 Avoid segmentation faults when processing invalid data streams.
2925 * src/pkgstrm.h: Update copyright notice.
2926 (pkgArchiveStream::IsReady): New pure virtual method.
2927 (pkgRawArchiveStream::IsReady): Provide inline implementation.
2928 (pkgGzipArchiveStream::IsReady): Likewise.
2929 (pkgBzipArchiveStream::IsReady): Likewise.
2930 (pkgLzmaArchiveStream::IsReady): Likewise.
2931 (pkgXzArchiveStream::IsReady): Likewise.
2933 * src/pkgstrm.cpp: Update copyright notice.
2934 (pkgLzmaArchiveStream, pkgXzArchiveStream) [fd == -1]: Decline to
2935 perform any form of read or decode processing.
2937 * src/pkginet.cpp (pkgInternetLzmaStreamingAgent): Use `fd = -2' as
2938 pseudo-descriptor for the pkgLzmaArchiveStream derived component of
2939 this internet data streaming class.
2941 2010-01-23 Keith Marshall <keithmarshall@users.sourceforge.net>
2943 Require liblzma >= liblzma-4.999.9beta_20091209-3-mingw32-dev
2945 * src/pkgstrm.h (LZMA_API_STATIC): Remove definition and associated
2946 comment; it was required to permit, (but not to enforce), linking to
2947 the static liblzma.a library, with earlier beta releases, but this
2948 anomaly has now been corrected.
2950 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
2952 Remove zlib sources from trunk.
2953 (Application builders should use free standing implementation of
2954 zlib, from MinGW's package distribution page on SourceForge).
2956 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
2958 Remove bzip2 sources from trunk.
2959 (Application builders should use free standing implementation of
2960 bzip2, from MinGW's package distribution page on SourceForge).
2962 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
2964 Add subsystem specific sysroot mapping facility.
2966 * src/pkghash.c: New file; required by...
2967 * src/sysroot.cpp: New file; it implements...
2968 (pkgXmlDocument::LoadSystemMap, pkgXmlNode::GetSysRoot): New methods.
2970 * src/pkgbase.h: Update copyright notice.
2971 (pkgXmlDocument::LoadSystemMap): Declare it.
2972 (pkgXmlDocument::AddDeclaration): New inline method.
2973 (pkgXmlDocument::SetRoot, pkgXmlDocument::Save): Likewise.
2974 (pkgXmlNode::GetSysRoot): Declare it.
2975 (pkgXmlNode::GetDocumentRoot): New inline method.
2976 (pkgXmlNode::AddChild, pkgXmlNode::DeleteChild): Likewise.
2978 * src/climain.cpp: Update copyright notice.
2979 (climain): Invoke pkgXmlDocument::LoadSystemMap() as required.
2981 * Makefile.in (CORE_DLL_OBJECTS): Add ...
2982 (pkghash.$(OBJEXT), sysroot.$(OBJEXT)): ...these; upate dependencies.
2983 (DEBUGLEVEL): New macro; define it.
2986 2010-01-16 Keith Marshall <keithmarshall@users.sourceforge.net>
2988 Assign standardised keys for XML database lookup.
2990 * src/pkgkeys.h: New file; provide public key declarations.
2991 * src/pkgkeys.c: New file; implement them.
2993 * src/pkgbind.cpp: Use them; update copyright notice.
2994 * src/pkgexec.cpp, src/pkgfind.cpp, src/pkginet.cpp: Likewise.
2995 * src/pkgname.cpp, src/pkgspec.cpp: Likewise.
2997 * Makfile.in (CORE_DLL_OBJECTS): Add pkgkeys.$(OBJEXT); update all
2998 dependencies accordingly.
3000 2010-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
3002 Add CLI version reporting option.
3004 * configure.ac: Update copyright notice for new year.
3005 (COPYRIGHT_HOLDER): New AC_SUBST variable; define it.
3006 (YEARS_OF_ISSUE): New AC_SUBST variable; define it.
3007 (AC_CONFIG_FILES): Add `version.c'; source it from...
3009 * version.c.in: ...this new file.
3011 * Makefile.in: Update copyright notice for new year.
3012 (mingw-get$(EXEEXT)): Add dependency on `version.$(OBJEXT)'.
3013 (distclean): Add `version.c'.
3015 * configure: Regenerated.
3017 * src/clistub.c: Update copyright notice for new year.
3018 (options): New array of `struct option'; define and use it as the
3019 reference for `argv' parsing with `getopt_long_only()'.
3021 2009-12-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3023 Add CLI support for "update" action.
3025 * src/pkgtask.h (ACTION_UPDATE): Define it, derived from...
3026 (action_update): ...this new entry in anonymous enumeration.
3028 * src/pkgexec.cpp (action_name): Add "update" keyword identification.
3030 * src/pkgbase.h: Typo in comment; s/xwXmlDocument/wxXmlDocument/.
3031 (pkgXmlDocument::BindRepositories): Add `force_update' parameter...
3032 * src/pkgbind.cpp (pkgXmlDocument::BindRepositories): Use it to...
3033 (pkgXmlDocument::SyncRepository): ...invoke this method when passed as
3034 a `true' flag, in addition to (as previously) first time reference.
3036 * src/climain.cpp (climain): Interpret "update" keyword for...
3037 [ACTION_UPDATE]: ...passing state as `force_update' parameter to...
3038 (pkgXmlDocument::BindRepositories): ...this method, then...
3039 [!ACTION_UPDATE]: Follow with normal action processing.
3041 2009-12-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3043 Add status checking for Internet URL connections.
3045 * src/pkginet.cpp (pkgInternetAgent::QueryStatus): New method.
3046 (pkgInternetStreamingAgent::Get): Use it; set `dl_status' as return
3047 value, deferring failure diagnostics to callers, i.e. to...
3048 (pkgXmlDocument::SyncRepositories): ...this, and to...
3049 (pkgActionItem::DownloadArchiveFiles): ...this.
3051 2009-11-23 Keith Marshall <keithmarshall@users.sourceforge.net>
3053 Add package download and repository synchronisation machinery.
3055 * src/pkgstrm.h: New header file.
3057 * src/pkgbind.cpp, src/pkginet.cpp, src/pkgstrm.cpp,
3058 src/pkgfind.cpp, src/pkgname.cpp, src/keyword.c: New files.
3059 * Makefile.in (CORE_DLL_OBJECTS): Add build goals for them.
3061 * xml: New directory.
3063 * src/climain.cpp (climain): Establish repository bindings from...
3064 * xml/profile.xml: ...this new configuration file.
3066 2009-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3068 Add XML database bindings and preliminary action executive for CLI.
3070 * src/pkgbase.h, src/pkgtask.h,
3071 src/mkpath.h, src/vercmp.h: New header files.
3073 * src/climain.cpp, src/pkgexec.cpp, src/pkgspec.cpp,
3074 src/mkpath.c, src/vercmp.cpp, src/xmlfile.c: New files.
3076 * Makefile.in (CORE_DLL_OBJECTS): Define initial set of files...
3077 (mingw-get-0.dll): ...build them into this new DLL target; add it...
3078 (all): ...as prerequisite for this primary build goal.
3080 2009-11-12 Keith Marshall <keithmarshall@users.sourceforge.net>
3082 Avoid some potential GCC warnings.
3084 * src/clistub.c: Include process.h for `execv' prototype...
3085 (main): Cast `argv' to appropriately matched type when calling it.
3087 * src/pkginfo/driver.c: Include stdlib.h for `free' prototype.
3089 2009-11-11 Keith Marshall <keithmarshall@users.sourceforge.net>
3091 Create diagnostic message handler for CLI usage.
3093 * src/dmh.h: New header file; it defines the public interface.
3094 * src/dmh.cpp: New file; it implements the message handler.
3096 2009-11-05 Keith Marshall <keithmarshall@users.sourceforge.net>
3098 Correct some identified TinyXML issues.
3100 * tinyxml/tinyxml.h (IsWhiteSpace): Add FIXME annotation to flag
3101 probable redundancy of checks for '\n' and '\r'.
3102 * tinyxml/tinyxmlparser.cpp: Revert John E's 2008-08-09 change; remove
3103 all such redundancies in IsWhiteSpace() calls throughout.
3105 * tinyxml/tinyxml.cpp (TiXmlAttribute::SetDoubleValue): Correct format
3106 specification in sprintf()/snprintf() calls; "%lf" is invalid; replace
3109 2009-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
3111 Add CLI loader stub.
3113 * src/clistub.c: New file.
3114 * Makefile.in: Add build rule for it; build as...
3115 (mingw-get.exe): ...this; also add to...
3116 (clean): ...this goal.
3118 2009-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
3120 Set up build mechanism.
3122 * configure.ac, Makefile.in: New files.
3123 * .cvsignore (configure, autom4te.cache): Add to ignored files.
3125 2009-10-30 Keith Marshall <keithmarshall@users.sourceforge.net>
3127 Add GPL-v3 licensing terms.
3129 * COPYING: New file, sourced from gnu.org.
3131 2009-10-12 Keith Marshall <keithmarshall@users.sourceforge.net>
3133 Add pkginfo implementation.
3135 * src, src/pkginfo: New directories.
3136 * src/pkginfo/pkginfo.h, src/pkginfo/pkginfo.l: New files.
3137 * src/pkginfo/driver.c: New file.
3139 2009-10-12 Keith Marshall <keithmarshall@users.sourceforge.net>
3143 * All files (tdm-branch): Assign new branch tag.
3144 * All top-level files: Remove from trunk.
3145 * ChangeLog: New file.