1 2012-12-12 Keith Marshall <keithmarshall@users.sourceforge.net>
3 Improve conditionally enabled state manipulation for menu items.
5 * src/guidata.rc (IDM_REPO_APPLY): Set its initial state as GRAYED.
7 * src/pkgdata.cpp (AppWindowMaker::UpdatePackageMenuBindings):
8 [IDM_PACKAGE_REINSTALL]: Always leave it GRAYED; this is a temporary
9 provision, until the GUI is updated to support "reinstall" capability.
10 [IDM_REPO_APPLY && !(EnumeratePendingActions > 0)]: Make it GRAYED.
11 [IDM_REPO_APPLY && (EnumeratePendingActions > 0)]: Enable it.
13 2012-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
15 Implement GUI bindings for processing a schedule of actions.
17 * src/guimain.h (IDD_DMH_CONSOLE): New resource ID; define it.
18 (IDD_APPLY_EXECUTE): New dialogue template resource ID; define it.
19 (AppWindowMaker::ExecuteScheduledActions): New method; declare it.
21 * src/guidata.rc (IDD_APPLY_EXECUTE): Implement dialogue template.
23 * src/guixmld.cpp (pkgApplyChanges): New thread function; implement it.
24 (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]: Use it; it is invoked...
25 (IDD_APPLY_EXECUTE): ...via this dialogue box, subsequently calling...
26 (AppWindowMaker::ExecuteScheduledActions): ...this; implement it.
28 * src/pkgexec.cpp (pkgActionItem::Execute): Add argument; use it.
29 (pkgActionItem::~pkgActionItem): Unlink chained references.
31 * src/pkgbase.h (pkgActionItem::Execute): Adjust prototype.
33 2012-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
35 Do not preserve unnecessary download requests.
37 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles):
38 [(flags & ACTION_INSTALL) != ACTION_INSTALL]: Actions having no
39 "install" effect do not require a download; cancel any associated
42 2012-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
44 Implement GUI bindings for package download agent.
46 * src/guimain.h (IDD_PROGRESS_VAL, IDD_PROGRESS_MAX):
47 (IDD_PROGRESS_PCT): New manifest resource IDs; define them. They will
48 be used to identify dialogue controls, to be associated with...
49 (IDD_APPLY_DOWNLOAD): ...this new dialogue template ID; define it.
50 (AppWindowMaker::DownloadArchiveFiles): New inline method; declare it.
52 * src/guidata.rc (IDD_APPLY_DOWNLOAD): Implement dialogue template.
54 * src/pkgbase.h (pkgActionItem::DownloadArchiveFiles): New public
55 inline method; declare it. It overloads an existing private method of
56 the same name, which it subsequently invokes.
58 * src/pkginet.h: New header file; it declares...
59 (pkgInvokeDownload): ...this new extern "C" function prototype, and...
60 (pkgDownloadMeter): ...this abstract class; it is factored from its
61 original implementation in pkginet.cpp, augmented by addition of...
62 (pkgDownloadMeter::primary): New static member variable; declare it.
63 (pkgDownloadMeter::UseGUI): New public method; implement it inline.
64 (pkgDownloadMeter::ResetGUI): New public method; declare it, providing
65 a do-nothing inline default implementation. Any derived class, which
66 supports GUI capability, should override this.
68 * src/pkgnget.cpp: New file; it implements...
69 (pkgDownloadMeterGUI): New class, derived from pkgDownloadMeter.
70 (pkgActionItem::DownloadArchiveFiles): New overloaded inline method.
71 (AppWindowMaker::DownloadArchiveFiles): New inline method.
72 (pkgInvokeDownload): New dialogue box worker thread handler.
74 * src/pkginet.cpp: Include pkginet.h; hence...
75 (pkgDownloadMeter): ...remove redundant class declaration.
76 (pkgDownloadMeter::primary): Define and initialise it.
77 (pkgInternetStreamingAgent::Get) [pkgDownloadMeter::UseGUI]: Delegate
78 progress metering to referenced pkgDownloadMeterGUI class instance.
79 [! pkgDownloadMeter::UseGUI]: Continue to use the existing built-in
80 pkgDownloadMeterTTY mechanism.
81 (pkgActionItem::DownloadSingleArchive) [ACTION_DOWLOAD_FAILED]: Assert
82 this initially; subsequently clear it on successful completion.
83 (pkgActionItem::DownloadArchiveFiles): Collect diagnostic messages
84 into a single DMH_BEGIN_DIGEST ... DMH_END_DIGEST group.
86 * src/guixmld.cpp: Include pkginet.h; it is required by...
87 (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]: Use pkgInvokeDownload.
89 * Makefile.in (GUIMAIN_OBJECTS): Include pkgnget.$OBJEXT
91 2012-12-08 Keith Marshall <keithmarshall@users.sourceforge.net>
93 Implement "Discard" handler for GUI "Apply Changes" dialogue.
95 * src/pkgbase.h (pkgActionItem::Reset): New public method; declare it.
96 (pkgActionItem::Clear): New public method; declare two overloaded
97 variants, of which implement one inline.
98 (pkgXmlDocument::ClearScheduledActions): New public method; declare
99 and implement it inline.
101 * src/pkgtask.h (ACTION_DOWNLOAD_FAILED, ACTION_APPLY_FAILED): New
102 manifest bit-flag constants; define them. They provide a mechanism
103 for blocking the discard event in respect of failed actions.
105 * src/guixmld.cpp (pkgActionItem::Reset): Implement it.
106 (pkgActionItem::Clear): Implement second, out-of-line variant.
107 (ACTION_PRESERVE_FAILED): New local manifest bit-flag constant; define
108 it as an aggregate of ACTION_DOWNLOAD_FAILED and ACTION_APPLY_FAILED.
109 (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]: Use them.
111 2012-12-07 Keith Marshall <keithmarshall@users.sourceforge.net>
113 Implement GUI dialogue for "Apply Changes" action approval.
115 * src/guidata.rc (ID_MAIN_WINDOW_MENU): Rename...
116 ("&Repository"): ...this drop-down menu entry...
117 ("&Installation"): ...this; add...
118 ("&Apply Changes"): ...this new selection.
119 (IDD_APPLY_APPROVE): New dialogue box resource template; define it.
120 (SS_CTEXTBOX): New aggregate style convenience macro; define it.
121 (ES_VT100): Likewise.
123 * src/guimain.h (IDM_REPO_APPLY): New resource ID; define it.
124 (IDM_REPO_QUIT): Redefined resource ID; was 302; changed to 312.
125 (IDD_APPLY_APPROVE, IDD_PROGRESS_TXT): New resource IDs; define them.
126 (IDD_APPLY_REMOVES_PACKAGES, IDD_APPLY_REMOVES_SUMMARY): Likewise.
127 (IDD_APPLY_INSTALLS_PACKAGES, IDD_APPLY_INSTALLS_SUMMARY): Likewise.
128 (IDD_APPLY_UPGRADES_PACKAGES, IDD_APPLY_UPGRADES_SUMMARY): Likewise.
129 (ID_APPLY, ID_DISCARD, ID_DEFER): New response IDs; define them.
130 (AppWindowMaker::EnumerateActions): New inline method; declare it.
131 (AppWindowMaker::DialogueResponse): New inline method; declare and
134 * src/guixmld.cpp (pkglist.h): #included.
135 (dmh_setpty): Add locally declared prototype.
136 (AppWindowMaker::EnumerateActions): Implement it.
137 (pkgActionCount): New static helper function; implement it.
138 (ACTION_APPLY, APPLIES_TO): New macros; define them.
139 (FMT_APPLY_REMOVES, FMT_APPLY_INSTALLS, FMT_APPLY_UPGRADES): New
140 manifest string constants; define them.
141 (pkgApplyApproved): New static call-back function; implement...
142 (AppWindowMaker::OnCommand) [IDM_REPO_APPLY]: ...and use it.
144 2012-12-06 Keith Marshall <keithmarshall@users.sourceforge.net>
146 Implement enhanced action item enumeration capability.
148 * src/pkgbase.h (pkgActionItem::EnumeratePendingActions): New public
149 method; declare it. It provides the capability to enumerate scheduled
150 actions, filtered by action classification; when invoked such that it
151 selects all actions, it may be used as a replacement for...
152 (pkgActionItem::Unapplied): ...this; delete declaration.
154 * src/pkgdata.cpp (pkgActionItem::EnumeratePendingActions): Implement
155 it; it is derived, with enhancement, from original implementation...
156 (pkgActionItem::Unapplied): ...of this; delete it, and...
157 (AppWindowMaker::OnClose): ...update calling reference accordingly.
159 2012-12-05 Keith Marshall <keithmarshall@users.sourceforge.net>
161 Implement PTY display emulation for GUI mode DMH.
163 * src/dmhcore.h (dmhTypeGeneric::set_console_hook): New public virtual
164 method; declare it, providing inline default do-nothing implementation.
165 (dmhTypeGeneric::severity_tag): New protected static method; declare it.
166 (dmhTypeGeneric::notification_format): New protected static property;
169 * src/dmh.cpp (dmhTypeGeneric::severity_tag): Implement it.
170 (dmhTypeGeneric::notification_format): Define and initialise it.
171 (dmhTypeTTY::notify): Use them.
172 (dmh_setpty): New function; declare prototype and implement it.
174 * src/guidmh.cpp (dmhTypePTY): New locally implemented class.
175 (dmhTypeGUI::set_console_hook): New virtual method; declare and
176 implement it; it stores a dmhTypePTY reference pointer into...
177 (dmhTypeGUI::console_hook): ...this new private member variable.
178 (dmhTypeGUI::dmhTypeGUI): Initialise it.
179 (dmhTypeGUI::notify) [console_hook != NULL]: Delegate to it.
180 (dmhTypeGUI::printf) [console_hook != NULL]: Likewise.
182 2012-12-03 Keith Marshall <keithmarshall@users.sourceforge.net>
184 Implement generalised API for dialogue boxes with worker threads.
186 * src/guimain.h (pkgDialogueThread): New typedef; declare it.
187 (AppWindowMaker::DialogueThread): New static property; declare it.
188 (AppWindowMaker::DispatchDialogueThread): New method; declare it.
190 * src/guixmld.cpp: Formatting of several comments adjusted.
191 (pkgUpdate, pkgInitDataLoad): Defunct functions; replaced by...
192 (pkgDialogue): ...this new static call-back function; implement it.
193 (AppWindowMaker::DialogueThread): Instantiate and initialise it.
194 (AppWindowMaker::DispatchDialogueThread): Implement it.
195 (AppWindowMaker::Invoked): Use it to invoke pkgInvokeInitDataLoad()...
196 (AppWindowMaker::OnCommand): ...and pkgInvokeUpdate().
198 2012-12-03 Keith Marshall <keithmarshall@users.sourceforge.net>
200 Consolidate GUI implementation for package list view management.
202 * src/pkglist.h (pkgListViewMaker::GetTitle): Disused overloaded
203 method; remove all declarations.
204 (pkgListViewMaker::GetVersionString): Disused method; remove
206 (pkgListViewMaker::GetItem): New private inline method; declare it.
207 (pkgListViewMaker::UpdateItem): New private method; declare it.
208 (pkgListViewMaker::UpdateListView): New public method; declare it.
209 (pkgListViewMaker::MarkScheduledActions): Likewise.
211 * src/guimain.h (AppWindowMaker::MarkSchedule): New public inline
212 method; declare it, but defer implementation to...
214 * src/pkgdata.cpp (AppWindowMaker::MarkSchedule): ...here; not used
215 elsewhere, it is derived from, and replaces...
216 (pkgMarkSchedule): ...this function; factor out redundant code, in
217 favour of delegation to pkgListViewMaker::MarkScheduledActions(), with
218 following call to AppWindowMaker::UpdatePackageMenuBindings(); update
219 calling function references...
220 (AppWindowMaker::UnmarkSelectedPackage): ...here, and...
221 (AppWindowMaker::Schedule): ...here.
223 * src/pkglist.cpp (pkgVersionString): New static function; implement
224 it as a local replacement for...
225 (pkgListViewMaker::GetVersionString): ...this defunct class method.
226 (pkgGetTitle): New overloaded static function; implement two variants,
227 as local replacements for...
228 (pkgListViewMaker::GetTitle): ...this defunct overloaded class method.
229 (pkgListViewMaker::UpdateItem): Implement it; factor code from...
230 (pkgListViewMaker::InsertItem): ...here, whence use it.
231 (pkgListViewMaker::MarkScheduledActions): Implement it.
232 (pkgListViewMaker::UpdateListView): Implement it.
233 (pkgListViewMaker::pkgListViewMaker): Remove references to...
234 (LVIF_TEXT): ...this.
236 2012-11-30 Keith Marshall <keithmarshall@users.sourceforge.net>
238 Increase width of window sash bars by 50%.
240 * src/guimain.h (SASH_BAR_THICKNESS): Increase from 4 to 6; this makes
241 it easier to grab the sash bars, so they may be dragged; IMO, it also
242 results in a better appearance.
244 2012-11-29 Keith Marshall <keithmarshall@users.sourceforge.net>
246 Maintain consistent internal vs. external installation records.
248 * src/pkginst.cpp (pkgInstall): Set "installed" attribute on internal
249 package reference, to "yes", after installation; CLI didn't need this,
250 but GUI will do so, for any package revisited in a single session.
252 * src/pkgunst.cpp (pkgRemove): Similarly, negate "installed" attribute
253 after package removal.
255 2012-11-17 Keith Marshall <keithmarshall@users.sourceforge.net>
257 Refactor to consolidate three instances of duplicate code.
259 * src/pkglist.h (pkgGetStatus): New function; declare it.
260 * src/pkglist.cpp (pkgGetStatus): Implement it; factor out from...
261 (pkgListViewMaker::InsertItem): ...here, whence use it.
262 * src/pkgdata.cpp (pkgMarkSchedule): Likewise here...
263 (DataSheetMaker::DisplayGeneralData): ...and here.
265 2012-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
267 Add GUI support for install, upgrade, and remove action scheduling.
269 * src/guimain.h (EXTERN_C): Ensure it is defined.
270 (pkgActionItem): Add forward declaration of class name.
271 (pkgMarkSchedule): New EXTERN_C function; declare and prototype it.
272 (AppWindowMaker::OnClose): New virtual method; declare it.
273 (AppWindowMaker::Schedule): New public method; declare it.
274 (AppWindowMaker::UnmarkSelectedPackage): Likewise.
276 * src/pkgbase.h (pkgActionItem::HasAttribute) [this == NULL]: Add
277 protective logic; ignore attempts to access non-existent objects.
278 (pkgActionItem::SelectPackage) [this == NULL]: Likewise.
279 (pkgActionItem::Selection) [this == NULL]: Likewise.
280 (pkgActionItem::GetReference): New overloaded public method; declare
281 prototype variant with argument type of pkgXmlNode*.
282 (pkgActionItem::Unapplied): New public method; declare it.
283 (pkgActionItem::CancelScheduledAction): Likewise.
284 (pkgXmlDocument::Schedule): Change return type from void to
285 pkgActionItem*; add default argument values.
287 * src/guixmld.cpp (AppWindowMaker::OnCommand): Add menu case hooks...
288 [IDM_PACKAGE_INSTALL]: ...to schedule package 'install' action...
289 [IDM_PACKAGE_UPGRADE]: ...package 'upgrade' action...
290 [IDM_PACKAGE_REMOVE]: ...package 'remove' action, or...
291 [IDM_PACKAGE_UNMARK]: ...to cancel any of these scheduling requests.
292 [IDM_REPO_QUIT]: Correct typo; s/WM_QUIT/WM_CLOSE/ in comment.
294 * src/pkgdata.cpp (pkgMarkSchedule): Implement it.
295 (pkgActionItem::CancelScheduledAction): Implement it.
296 (pkgActionItem::Unapplied): Implement it.
297 (AppWindowMaker::UpdatePackageMenuBindings): Improve comments.
298 (AppWindowMaker::UnmarkSelectedPackage): Implement it.
299 (AppWindowMaker::Schedule): Implement it.
300 (AppWindowMaker::OnClose): Implement it.
302 * src/pkgdeps.cpp (pkgActionItem::GetReference): Implement overload.
303 (pkgXmlDocument::Schedule): Change return type, and return value.
304 [this == NULL]: Add protective logic; ignore non-existent objects.
305 [name == NULL]: Do not schedule; just return existing action list.
307 2012-11-02 Keith Marshall <keithmarshall@users.sourceforge.net>
309 Add dynamically enabled state control for package menu items.
311 * src/guimain.h (AppWindowMaker::UpdatePackageMenuBindings): New
312 private method; declare it.
314 * src/pkgdata.cpp (AppWindowMaker::UpdatePackageMenuBindings):
316 (AppWindowMaker::OnNotify): ...use it.
318 2012-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
320 Avoid excessive inter-word spaces in adjusted text.
322 * src/pkgdata.cpp (pkgTroffLayoutEngine::WriteLn): Check extent of
323 padding to be added at each inter-word space, when adjusting text; do
324 not adjust, if it exceeds 5% of available display pane width.
326 2012-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
328 Elide unbreakable text which will not fit within display width.
330 * src/pkgdata.cpp (pkgTroffLayoutEngine::WriteLn): Add logic to detect
331 over-width unbreakable text; elide characters from the right, to make
332 it fit within the display width, with trailing ellipsis.
334 2012-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
336 Add content compiler for package data sheet "general" tab.
338 * src/pkgbase.h (pkgActionItem::PrintURI): Make it public. Add a
339 call-back reference argument, for output function; assign puts() as
340 default, where previously had hard coded printf() emulating puts()
342 * src/pkginet.cpp (pkgActionItem::PrintURI): Use call-back hook.
344 * src/pkgdata.cpp (DataSheetMaker::Display): New static property; it
345 stores a reference to the active class instance, so static call-back
346 methods may delegate processing requests to non-static methods.
347 (DataSheetMaker::Advance): New static property; it is used to instruct
348 call-back methods to interpose paragraph leading it the output stream.
349 (DataSheetMaker::FormatRecord): New private method; implement it.
350 (DataSheetMaker::FormatText): Don't pass "canvas" as an argument; we
351 can access it directly as a class property. Update all callers as
352 necessary, to conform to modified function prototype.
353 (pkgListSelection): New static function; implement it, and...
354 (DataSheetMaker::OnPaint): ...use it in switch cases, when calling...
355 [PKG_DATASHEET_GENERAL]: DataSheetMaker::DisplayGeneralData(), and...
356 [PKG_DATASHEET_DESCRIPTION]: DataSheetMaker::DisplayDescription().
357 (DataSheetMaker::DisplayGeneralData): New public method; implement it.
358 (DataSheetMaker::DisplayPackageURL): New static method; implement it.
359 (DataSheetMaker::DisplayLicenceURL): Likewise.
360 (DataSheetMaker::DisplaySourceURL): Likewise.
362 2012-10-30 Keith Marshall <keithmarshall@users.sourceforge.net>
364 Fix error in counting of catalogue files during loading.
366 * src/pkgbind.cpp (pkgRepository::GetPackageList): Increment count
367 variable once only, at start of each cycle of the catalogue loading
368 loop; previous strategy of counting in discrete logic paths could
369 miss several required increments, particularly in CLI mode.
371 2012-10-27 Keith Marshall <keithmarshall@users.sourceforge.net>
373 Avoid DMH message digest fragmentation when downloading.
375 * src/dmh.h (DMH_GET_CONTROL_STATE): New macro; define it.
376 * src/pkginet.cpp (pkgInternetAgent::OpenURL): Use it; do not close
377 locally opened message digest, when called with one already open.
379 2012-10-27 Keith Marshall <keithmarshall@users.sourceforge.net>
381 Initiate progress metering for catalogue load and update operations.
383 * src/guidata.rc (IDD_REPO_UPDATE): New dialogue template; define it.
384 (IDM_REPO_UPDATE): Enable selection from "Repository" drop-down menu.
386 * src/guimain.h (IDD_REPO_UPDATE, IDD_CLOSE_OPTIONS):
387 (IDD_AUTO_CLOSE_OPTION, IDD_PROGRESS_BAR, IDD_PROGRESS_MSG): New
388 resource identification manifest constants; define them.
389 (pkgXmlNode, pkgProgressMeter): Add forward class declarations.
390 (AppWindowMaker::AttachedProgressMeter): New private data; define...
391 (AppWindowMaker::AppWindowMaker): ...and initialise it.
392 (AppWindowMaker::AttachProgressMeter): New public method; declare it.
393 (AppWindowMaker::DetachProgressMeter): Likewise.
394 (AppWindowMaker::LoadPackageData, AppWindowMaker::ClearPackageList):
395 (AppWindowMaker::UpdatePackageList): Make them public.
397 * src/pkgbase.h (pkgProgressMeter): New abstract class; declare it.
398 (AppWindowMaker) [GUIMAIN_H undefined]: Add forward class declaration.
399 (pkgXmlDocument::progress_meter): New private data member; declare...
400 (pkgXmlDocument::pkgXmlDocument): ...and initialise it.
401 (pkgXmlDocument::ProgressMeter, pkgXmlDocument::AttachProgressMeter):
402 (pkgXmlDocument::DetachProgressMeter): New public inline methods;
405 * src/pkgview.cpp (WTK::GenericDialogue): Delete disused reference.
406 (AppWindowMaker::OnCommand): Factor out implementation; relocate it...
407 * src/guixmld.cpp: ...to here; thus it may utilise dependants of...
408 (ProgressMeterMaker): ...this new locally implemented class.
409 (AppWindowMaker::AttachProgressMeter): Implement it.
410 (AppWindowMaker::AttachProgressMeter): Likewise.
411 (pkgProgressMeter::~pkgProgressMeter): Likewise.
412 (pkgUpdate, pkgInvokeUpdate): New static functions; implement them.
413 (AppWindowMaker::Invoked): Replace direct call to LoadPackageData by
414 an indirect invocation, via a progress metering dialogue box using...
415 (pkgInitDataLoad): ...this new static callback function, invoking...
416 (pkgInvokeInitDataLoad): ...this new static thread function, whence...
417 (AppWindowMaker::LoadPackageData): ...this; add hook-up call to...
418 (pkgXmlDocument::AttachProgressMeter): ...incorporate this.
420 * src/pkgbind.cpp (pkgRepository::total, pkgRepository::count): New
421 private static properties; declare and instantiate them; provide...
422 (pkgRepository::Reset, pkgRepository::IncrementTotal): ...new public
423 static methods to manipulate them; declare and implement them inline.
424 (pkgRepository::GetPackageList): Use them to manage updates to the
425 pkgProgressMeter class instance, if any, which has been bound to
426 the controlling pkgXmlDocument class instance, when invoking...
427 (pkgXmlXmlDocument::BindRepositories): ...this.
429 2012-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
431 Associate DMH message boxes with active dialogues.
433 * src/guidmh.cpp (last_active_popup): New static inline function.
434 (dmhTypeGUI::dispatch_message): Use it.
436 2012-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
438 Fix Diagnostic Message Handler initialisation logic.
440 * src/dmh.cpp (dmh_init) [DMH_SUBSYSTEM_GUI]: Correct a logic error;
441 it previously fell through after any successful initialisation of the
442 DMH_SUBSYSTEM_GUI handler, replacing it with a DMH_SUBSYSTEM_TTY type
443 handler. Also, assign a heap copy of the passed "progname" string
444 resource, which is volatile, to ensure that the handler retains a
447 2012-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
449 Implement preliminary GUI mode data sheet compiler.
451 * src/guimain.h (DataSheetMaker): New class; forward declare it.
452 (AppWindowMaker::InitPackageTabControl): New private method; declare it.
453 (AppWindowMaker::DataSheet, AppWindowMaker::PackageTabControl):
454 (AppWindowMaker::TabDataPane, AppWindowMaker::PackageTabPane): New
455 private data members; declare them.
456 (ID_SASH_WINDOW_PANE_CLASS): New string resource identifier; define it.
457 (ID_PACKAGE_DATASHEET, ID_PACKAGE_TABPANE): New window identifiers;
460 * src/guidata.rc (ID_SASH_WINDOW_PANE_CLASS): Specify string resource.
462 * src/pkgview.cpp (AppWindowMaker::OnSize): Add handler for...
463 (ID_PACKAGE_TABPANE, ID_PACKAGE_TABCONTROL, ID_PACKAGE_DATASHHET):
464 ...this group of sash pane child window entities.
465 (AppWindowMaker::OnNotify): Comment out disused stub implementation.
467 * src/pkgshow.cpp (pkgUTF8Parser): Factor out class declaration...
468 (UTF32_MAX, UTF32_OVERFLOW, UTF32_INVALID): ...these definitions...
469 (utf32_t): ...and this typedef; relocate to, and #include...
470 * src/pkgdata.h: ...this new header file.
472 * src/pkgdata.cpp (DataSheetMaker): New class; declare and implement it.
473 (AppWindowMaker::InitPackageTabControl): Implement it.
474 (AppWindowMaker::OnNotify): Reimplement it.
476 * Makefile.in (GUIMAIN_OBJECTS): Add pkgdata.OBJEXT
478 * src/guixmld.cpp (AppWindowMaker::Invoked): Add call to invoke
479 AppWindowMaker::InitPackageTabControl()
481 2012-10-09 Keith Marshall <keithmarshall@users.sourceforge.net>
483 Remove a grossly heuristic list view hack.
485 * src/pkglist.cpp (pkgListViewMaker::GetTitle): Remove code for the
486 heuristic deletion of any redundant package name prefixes from package
487 title attributes; by now, all such prefixes should have been removed
488 from the catalogue, explicitly, at source.
490 2012-10-08 Keith Marshall <keithmarshall@users.sourceforge.net>
492 Implement GUI list view compiler for XML catalogue.
494 * src/pkgview.cpp (AppWindowMaker::LayoutEngine): Add case handler...
495 [pane_id == ID_PACKAGE_LISTVIEW]: ...for this window pane class.
497 * src/guimain.h (ID_PKGLIST_TABLE_HEADINGS):
498 (ID_PKGNAME_COLUMN_HEADING, ID_PKGTYPE_COLUMN_HEADING):
499 (ID_INSTVER_COLUMN_HEADING, ID_REPOVER_COLUMN_HEADING):
500 (ID_PKGDESC_COLUMN_HEADING): New resource identifiers; define them.
501 (ID_PKGSTATE_AVAILABLE, ID_PKGSTATE_AVAILABLE_NEW):
502 (ID_PKGSTATE_AVAILABLE_LOCKED, ID_PKGSTATE_AVAILABLE_INSTALL):
503 (ID_PKGSTATE_INSTALLED_CURRENT, ID_PKGSTATE_INSTALLED_LOCKED):
504 (ID_PKGSTATE_INSTALLED_OLD, ID_PKGSTATE_UPGRADE, ID_PKGSTATE_REMOVE):
505 (ID_PKGSTATE_REINSTALL, ID_PKGSTATE_DOWNGRADE, ID_PKGSTATE_BROKEN):
506 (ID_PKGSTATE_PURGE): New icon resource identifiers; define them.
507 (AppWindowMaker::InitPackageListView): New private method; declare it.
508 (AppWindowMaker::UpdatePackageList): New private method; declare it.
509 (AppWindowMaker::ClearPackageList): New private method; declare and
512 * src/guidata.rc (ID_PKGSTATE_AVAILABLE, ID_PKGSTATE_AVAILABLE_NEW):
513 (ID_PKGSTATE_AVAILABLE_LOCKED, ID_PKGSTATE_AVAILABLE_INSTALL):
514 (ID_PKGSTATE_INSTALLED_CURRENT, ID_PKGSTATE_INSTALLED_LOCKED):
515 (ID_PKGSTATE_INSTALLED_OLD, ID_PKGSTATE_UPGRADE, ID_PKGSTATE_REMOVE):
516 (ID_PKGSTATE_REINSTALL, ID_PKGSTATE_DOWNGRADE, ID_PKGSTATE_BROKEN):
517 (ID_PKGSTATE_PURGE): New icon resources; implement them.
519 * icons/state01.ico icons/state02.ico icons/state03.ico:
520 * icons/state04.ico icons/state05.ico icons/state06.ico:
521 * icons/state07.ico icons/state08.ico icons/state09.ico:
522 * icons/state10.ico icons/state11.ico icons/state12.ico:
523 * icons/state13.ico: New files. All are cloned from synaptic icons;
524 see src/guimain.rc for symbolic/functional reference names.
526 * src/pkglist.h [GUIMAIN_H defined] (pkgListViewMaker): New class;
527 declare it for use in modules which #include guimain.h
529 * src/pkglist.cpp: New file; it implements...
530 (pkgListViewMaker): ...this new class, and its clients...
531 (AppWindowMaker::InitPackageListView): New method.
532 (AppWindowMaker::UpdatePackageList): Likewise.
534 * Makefile.in (GUIMAIN_OBJECTS): Add pkglist.OBJEXT
536 * src/guixmld.cpp (AppWindowMaker::Invoke): Call InitCommonControls(),
537 as prerequisite to AppWindowMaker::InitPackageListView(); follow up by
538 calling AppWindowMaker::AdjustLayout().
540 2012-10-07 Keith Marshall <keithmarshall@users.sourceforge.net>
542 Add GUI initialiser hook for XML catalogue interface.
544 * src/guimain.h (AppWindowMaker::Invoke): New public method; declare
545 it; it overrides the generic WTK::MainWindowMaker::Invoke() method, so
546 providing the initialiser hook which will invoke this...
547 (AppWindowMaker::LoadPackageData): ...new private method; declare it.
549 * src/guixmld.cpp: New file.
550 (AppWindowMaker::Invoke): Implement it.
551 (AppWindowMaker::LoadPackageData): Likewise.
553 * Makefile.in (GUIMAIN_OBJECTS): Add guixmld.OBJEXT
555 2012-09-29 Keith Marshall <keithmarshall@users.sourceforge.net>
557 Add initial working GUI mode DMH class implementation.
559 * src/dmh.h (DMH_SEVERITY_MASK): New manifest constant; define it.
560 (DMH_DIGEST_MASK, DMH_COMPILE_DIGEST, DMH_DISPATCH_DIGEST): Likewise.
561 (DMH_BEGIN_DIGEST, DMH_END_DIGEST): Redefine in terms of above.
563 * src/dmhcore.h: New header file; it declares...
564 (dmhTypeGeneric): ...this abstract base class, factored from...
566 * src/dmh.cpp (dmhTypeGeneric): ...here, whence remove it; it is
567 still required, thus include dmhcore.h so that it remains visible.
568 (dmh_exception): Remove errant namespace qualifier from constructor.
569 (dmhTypeGUI): Delete class declaration and original constructor.
570 (dmh_init): Delete reference to dmhTypeGUI; replace by call to...
571 (dmh_init_gui): ...this new static function; it is a stub which
572 invokes a DLL import of the same name, to instantiate a dmhTypeGUI.
573 (dmhTypeGUI::control, dmhTypeGUI::notify, dmhTypeGUI::printf): Delete
574 original method stubs.
576 * src/guidmh.cpp: New file; it reimplements...
577 (dmhTypeGUI): ...this class; declare it and implement its constructor.
578 (dmh_init_gui): Provide its DLL exported implementation.
579 (dmhTypeGUI::dispatch_message): New private method; add it to the
580 class declaration and implement it; it is a helper method for...
581 (dmhTypeGUI::control, dmhTypeGUI::notify): ...these; implement them.
582 (dmhTypeGUI::printf): Provide a replacement stub.
584 * Makefile.in (GUIMAIN_OBJECTS): Add guidmh.OBJEXT
586 * src/guimain.h (AppWindowMaker::Create): New method; add it to the
587 class declaration; it overrides the default Create() method inherited
588 from WTK::MainWindowMaker
590 * src/pkgview.cpp (AppWindowMaker::Create): Implement it; it handles
591 window class registration and dmhTypeGUI initialisation, in addition
592 to the inherited CreateWindow() behaviour.
594 * src/guimain.cpp: Include dmh.h
595 (WinMain): Add catch block for dmh_exception. Remove window class
596 registration request; it is now delegated to AppWindowMaker::Create()
598 2012-09-26 Keith Marshall <keithmarshall@users.sourceforge.net>
600 Add .hgignore as tracked file.
602 * .hgignore: New file.
604 2012-09-25 Keith Marshall <keithmarshall@users.sourceforge.net>
606 Defer generation of version.c until "make" time.
608 * version.c.in: Move it...
609 * src/version.c.in: ...to here.
610 (PACKAGE_NAME, PACKAGE_VERSION, COPYRIGHT_HOLDER, YEARS_OF_ISSUE):
611 Change substitution field marker character from "@" to "%".
613 * configure.ac (AC_CONFIG_FILES): Remove version.c
615 * Makefile.in (TAG_SCRIPT): New macro, factored out from...
616 (RC_SCRIPT): ...here, whence use it; also use it to implement...
617 (VERSION_SCRIPT): ...this further new macro; use it in...
618 (%.c): ...this generic template rule for version.c
619 (time-stamp, %.time, %.tagged.time, %.tag): New generic build
620 goals; use them to track package release progression via...
621 (build.tag): ...this new intermediate; make it a pre-requisite...
622 (guidata.OBJEXT, version.c): ...of these.
624 2012-09-21 Keith Marshall <keithmarshall@users.sourceforge.net>
626 Implement framework for GUI sash window layout controller.
628 * configure.ac (AC_INIT): Bump version number to 0.6
629 (CLI_RELEASE_CLASS): New AC_SUBST variable; default to "beta".
630 (GUI_RELEASE_CLASS): New AC_SUBST variable; default to "alpha".
631 (SNAPSHOT_CLASS): Recognise as user specified environent variable
632 override for both CLI_RELEASE_CLASS and GUI_RELEASE_CLASS.
633 (RC): New AC_CHECK_TOOL substitution variable name; it replaces...
634 (WINDRES): ...this, as reference name for the resource compiler.
635 (MINGW_AC_ASSERT_MISSING): Add AC_CHECK_HEADER traps for missing
636 "lua-dev" and "wtklite-dev" support.
638 * Makefile.in (CLI_RELEASE_CLASS, GUI_RELEASE_CLASS): Use them.
639 (BUILD_TAG, RC_SCRIPT, RC_INCLUDES): New macros; define and use...
640 (RC): ...with this, to implement new target rule for compiling...
641 (%.rc): ...resource definition files to %.OBJEXT objects.
642 (GUIMAIN_OBJECTS, GUIMAIN_LIBS): New macros; define and use...
643 (guimain.EXEEXT): ...to implement build rule for this.
644 (LIBEXEC_PROGRAMS): Add guimain.EXEEXT
645 (lastrites.EXEEXT): Use GUI_LDFLAGS.
647 * src/guimain.h src/guimain.cpp src/guidata.rc: New files.
648 * src/pkgview.cpp: New file.
650 2012-09-20 Keith Marshall <keithmarshall@users.sourceforge.net>
652 Adjust incorrectly resolved 2012-09-14 merge from master.
654 * src/Makefile.in: Restore lost reference to guistub.cpp
656 2012-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
658 Implement GUI hooks in "rites of passage" internal API.
660 * src/pkglock.h: New file; it adds the pkgLock() and pkgRelease()
661 inline wrapper functions, through which the GUI application acquires
662 and manages an exclusive access lock for the XML catalogue.
664 * src/rites.c (lockfile_name): Explicitly cast memory allocated for
665 the returned name to (char *), so this may be embedded in C++ code.
666 (pkgInitRites): Factor out lock acquisition failure diagnostics...
667 (pkgLockFail): ...to this inline helper function; conditionally...
668 [ifdef GUIMAIN_H]: ...provide one implementation for GUI use...
669 [ifndef GUIMAIN_H]: ...and an alternative for CLI use.
671 2012-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
673 Be case agnostic when matching shortcut targets.
675 * scripts/libexec/unlink.js [ref.TargetPath == chklink]: Apply
676 toLowerCase() on both sides of the comparison.
678 2012-09-12 Keith Marshall <keithmarshall@users.sourceforge.net>
680 Note relocation of m4 when packaging source distribution.
682 * Makefile.in (SRCDIST_SUBDIRS): Refer to build-aux/m4, not m4.
684 2012-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
686 Move guimain.cpp out of the way.
688 * src/guimain.cpp: Rename file as...
689 * src/guistub.cpp: ...this; we want to keep current features for now,
690 but to use the guimain.cpp name for main GUI application development.
691 * Makefile.in: Adjust references accordingly.
693 2012-09-09 Keith Marshall <keithmarshall@users.sourceforge.net>
695 Fix typo, and update licensing terms for embedded getopt.c
697 * src/getopt.c: Incorporate MIT/X style licence; update copyright
698 notice, to reflect chronology of publication; correct degenerate RCS
699 keyword usage in EOF marker comment.
701 2012-09-03 Keith Marshall <keithmarshall@users.sourceforge.net>
703 Correct omission from copyright notice.
705 * src/pkgkeys.c: Add year 2012, to reflect 2012-09-02 update.
707 2012-09-02 Keith Marshall <keithmarshall@users.sourceforge.net>
709 Redefine paragraph_key with project global scope.
711 * src/pkgkeys.h (paragraph_key): Declare it.
712 * src/pkgkeys.c (paragraph_key): Define it.
714 * src/pkgshow.cpp (pkgDirectoryViewer::EmitDescription): Delete
715 function local definition; use global definition instead.
717 2012-09-02 Keith Marshall <keithmarshall@users.sourceforge.net>
719 Correct defect introduced by 2012-08-03 commit.
721 * src/approot.c (AppPathNameW): Add omitted 'else', so that tail
722 pointer isn't moved after the APPROOT prefix is truncated.
724 2012-09-02 Keith Marshall <keithmarshall@users.sourceforge.net>
726 Remap Mercurial subrepository reference via local hg-git clone.
728 * .hgsub (build-aux): Point to ../build-aux; this must be a locally
729 hosted hg clone of the git origin repository, and it must pre-exist as
730 a sibling of any created hg clone of the mingw-get repository.
732 * .hgsubstate: New file, automatically generated by Mercurial.
734 2012-08-31 Keith Marshall <keithmarshall@users.sourceforge.net>
736 Add Mercurial subrepository reference for build-aux.
740 2012-08-03 Keith Marshall <keithmarshall@users.sourceforge.net>
742 More code refactoring, to facilitate GUI implementation.
744 * src/clistub.c (AppPathNameW): Factor out; relocate to...
745 * src/approot.c: ...this new file; it reproduces the original
746 implementation, modified to also consider any "libexec" directory in
747 the executable path as the first child of the APPROOT prefix. Note
748 also, that no longer terminates APPROOT with a trailing backslash.
750 * src/approot.h: New file; it trivially declares the prototype for...
751 (AppPathNameW): ...this relocated extern "C" function.
753 * src/clistub.c (main): Adapt usage of AppPathNameW(), to reinstate
754 trailing backslash on assignment to APPROOT environment variable.
756 * Makefile.in (CLI_EXE_OBJECTS): New macro; define it as the original
757 set of prerequisites, with the addition of approot.OBJEXT, for...
758 (mingw-get.EXEEXT): ...this; use it.
760 * src/rites.c: Add comment regarding APPROOT usage.
762 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
764 Find missing.m4 in build-aux/m4 directory.
766 * aclocal.m4: Change path m4/missing.m4 to build-aux/m4/missing.m4.
768 2012-07-31 Earnie Boyd <earnie@users.sourceforge.net>
770 Add build-aux as a submodule.
771 Move .cvsignore to .gitignore.
773 * .gitmodules: New file.
774 * build-aux: New submodule directory.
775 * .cvsignore: Remove.
776 * .gitignore: New file.
778 2012-07-13 Keith Marshall <keithmarshall@users.sourceforge.net>
780 Disable globbing of command line arguments.
782 * src/clistub.c (_CRT_glob): Define and initialise to zero; we don't
783 need globbing, and it may cause case transliteration of case-sensitive
784 action keywords, when a file system entity with a case-insensitively
785 matching name exists.
787 2012-06-02 Keith Marshall <keithmarshall@users.sourceforge.net>
789 Refactor API to facilitate implementation of GUI ListView hooks.
791 * src/pkgkeys.h (title_key, description_key): Declare them.
792 * src/pkgkeys.c (title_key, description_key): Define them; relocate...
793 * src/pkgshow.cpp (pkgDirectoryViewer::EmitDescription): ...from here.
794 (pkgXmlDocument::CalalogueAllPackages): New public method; factor...
795 (pkgXmlDocument::DisplayPackageInfo): ...from here, whence use it.
796 (pkgDirectoryViewerEngine::EnumerateComponents): New private method;
797 implement as a concrete method of this abstract base class; factor...
798 (pkgDirectoryViewer::Dispatch): ...from original inline implementation
799 within this method of the concrete derived class, whence use it.
800 (pkgDirectoryViewerEngine, pkgDirectory): Factor class declarations...
801 * src/pkglist.h: ...into this new header file; include it.
803 * src/pkgbase.h (pkgDirectory): Add forward class declaration.
804 (pkgXmlDocument::CatalogueAllPackages): Declare it.
806 2012-05-02 Keith Marshall <keithmarshall@users.sourceforge.net>
808 Update help text to document package version selection capability.
810 * src/clistub.c (help_text): Add description of command line syntax
811 which may be used to specify an alternative to the default package
812 version selection, for install and upgrade actions.
814 2012-05-01 Keith Marshall <keithmarshall@users.sourceforge.net>
816 Support options set by preferences assigned within profile.xml
818 * xml/profile.xml (preferences): New element; add defaults.
820 * src/pkgopts.h (OPTION_ASSIGNED_FLAGS, OPTION_DESKTOP_ARGS):
821 (OPTION_START_MENU_ARGS): New enumerated constants; define them.
822 (OPTION_DESKTOP, OPTION_START_MENU): New manifest constants.
823 (OPTION_ASSIGNED, mark_option_as_set): New macros; define them.
824 (pkgOpts::GetValue, pkgOpts::GetString): Restrict look-up index to
825 least significant 12-bits of full-range index value.
826 (pkgOpts::IsSet): New inline method; implement it.
828 * src/clistub.c (main): Reimplement --desktop and --start-menu
829 options; each now becomes an OPTION_GENERIC optarg string store.
830 (set_script_hook): Function no longer used; delete it; delegate to...
831 * src/pkgbase.h (pkgXmlDocument::EstablishPreferences): ...this new
832 method; declare it, providing its implementation in...
833 * src/pkgopts.cpp: ...this new file; invoke it...
834 * src/climain.cpp (climain): ...here.
836 * Makefile.in (CORE_DLL_OBJECTS): Add pkgopts.$OBJEXT
838 2012-04-30 Keith Marshall <keithmarshall@users.sourceforge.net>
840 Correct sequence of installation/removal progress reporting.
842 * src/pkgunst.cpp (pkgRemove): Delay output of "removing package ..."
843 message, until after pre-remove hooks have run; this ensures that any
844 output from the pre-remove hook scripts appears in correct sequence.
846 * src/pkginst.cpp (pkgInstall): Likewise, for "installing package ..."
847 message, in relation to pre-install hooks.
849 2012-04-26 Keith Marshall <keithmarshall@users.sourceforge.net>
851 mingw-get-0.5-beta-20120426-1 released.
853 * configure.ac (AC_INIT): Version number updated.
854 * srcdist-doc/NEWS.in: Updated; bug-fix notifications added.
855 * All files (r0-5-beta-20120426-1): Tag assigned.
857 2012-04-25 Keith Marshall <keithmarshall@users.sourceforge.net>
859 Interim work-around for MinGW-Bug #3520864.
861 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
862 [DEBUG_TRACE_DEPENDENCIES]: Add request flags to messages reporting
863 the scheduling of installation activities.
865 * src/pkgexec.cpp (pkgXmlDocument::Schedule): Add temporary diagnostic
866 hooks to confirm request flags; bracket them with #if 0 ... #endif.
867 [ACTION_PRIMARY && pre-scheduled request]: Don't trash request flags
868 when updating the pre-existing action item data.
870 2012-04-23 Keith Marshall <keithmarshall@users.sourceforge.net>
872 Fix MinGW-Bug #3520488
874 * src/pkgexec.cpp (action_code): Check for, and reject NULL pointer
875 passed as action request string; also reject ambiguous abbreviations.
877 * src/climain.cpp (climain): Discriminate between NULL pointer and
878 other forms of invalid action keyword matching failures.
880 2012-04-16 Keith Marshall <keithmarshall@users.sourceforge.net>
882 mingw-get-0.5-beta-20120416-1 released.
884 * configure.ac (AC_INIT): Version number updated.
885 (YEARS_OF_ISSUE): 2012 added.
887 * srcdist-doc/NEWS.in: Updated; release notes added.
888 * All files (r0-5-beta-20120416-1): Tag assigned.
890 2012-04-16 Keith Marshall <keithmarshall@users.sourceforge.net>
892 Assign icon to temporary GUI executable file.
894 * icons/pkgicon.ico: New file, shamelessly copied from synaptic.
896 * configure.ac: Add identification for windres; propagate it to...
897 * Makefile.in: ...here; use it to compile object from icon files...
898 (srcdir/icons) [%.ico]: ...from this new vpath location.
899 (gui.exe): Link to compiled icon's object file.
900 (SRCDIST_SUBDIRS): Add icons directory.
902 2012-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
904 Ensure that package removal requests are correctly scheduled.
906 * src/pkgdeps.cpp (pkgXmlDocument::Schedule) [ACTION_REMOVE]: Schedule
907 as a distinct case, when the installed version is not the most recent
908 available release; consideration of this distinct case was previously
909 erroneously overlooked.
911 2012-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
913 Correct scheduling of new prerequisites when upgrading.
915 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
916 [ACTION_UPGRADE && ACTION_PRIMARY]: Don't exclude scheduling for this
917 case of a prerequisite with no previously installed version; it may be
918 a delegated primary requirement of a meta-package.
920 2012-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
922 Don't require subsystem within user specified version bounds.
924 * src/pkgdeps.cpp (pkgActionItem::ApplyBounds): Automatically consider
925 "*" wild-card matches for subsystem, if user doesn't specify it.
927 2012-04-09 Charles Wilson <mingw@cwilson.fastmail.fm>
931 * src/pkgdeps.cpp (pkgopts.h): Include unconditionally; do not rely...
932 (debug.h) [DEBUG_TRACE_DYNAMIC]: ...on this, for indirect inclusion.
934 2012-04-07 Keith Marshall <keithmarshall@users.sourceforge.net>
936 Correct a srcdist package construction defect.
938 * Makefile.in (srcdist) [for SRCDIST_SUBDIRS]: Use...
939 (mkinstalldirs): ...this, to create package image directories.
941 2012-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
943 Add scripting hooks to support creation of MS-Windows shortcuts.
945 * src/clistub.c (progname): New static variable with file scope; it
946 replaces former automatic variable, of same name, in main() function.
947 (set_script_hook): New static function; implement it, and call it...
948 (main) [--desktop, --start-menu]: ...from here, to interpret these new
949 command line options; they are propagated to scripts via...
950 (MINGW_GET_DESKTOP_HOOK, MINGW_GET_START_MENU_HOOK): ...these new
951 internally assigned environment variables.
952 (help_text): Document --desktop and --start-menu.
954 * scripts/libexec/setup.lua scripts/libexec/wsh.lua: New lua module
955 files; they implement a lua scripting API; they delegate requests to
956 the Windows Scripting Host, via either of this pair of...
957 * scripts/libexec/shlink.js: ...new script to create shortcuts, or...
958 * scripts/libexec/unlink.js: ...its complement, to remove them.
959 * Makefile.in (SRCDIST_SUBDIRS): Integrate them; enumerate them in...
960 (scripts_srcdir, LIBEXEC_SCRIPTS): ...these new macros; use to...
961 (install): ...install them.
963 2012-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
965 Initialise $LUA_PATH to locate mingw-get specific scripts.
967 * src/pkgexec.cpp (lua_path_init): New static inline function.
968 (pkgXmlNode::DispatchScript): Call it on first time invocation, per...
969 [lua_path_setup == false]: ...this static function local variable.
971 2012-04-01 Keith Marshall <keithmarshall@users.sourceforge.net>
973 Support installation of releases other than latest available.
975 * src/pkgbase.h (pkgActionItem::ApplyBounds): New method; declare it.
977 * src/pkgdeps.cpp (pkgActionItem::ApplyBounds): Implement it.
978 (pkgXmlDocument::Schedule): Use it to interpret user specified version
979 bounds, and apply them to scheduled action items. Having used...
980 (get_version_bounds): ...this new static inline function...
981 ...to acquire any user specified version bounds, check that they can
982 be honoured, before scheduling any action; delegate diagnostics to...
983 (dmh_notify_no_match): ...this new local helper function, to report
984 when they can't, and to indicate viable alternatives.
986 2012-03-26 Keith Marshall <keithmarshall@users.sourceforge.net>
988 Rework previously inadequate solution for MinGW-Bug #3424406
990 * src/pkgtask.h: Update copyright notice for current year.
991 (ACTION_MAY_SELECT): New manifest constant for use as flag; define it.
992 * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit): Assign it.
994 * src/pkgdeps.cpp (STATIC_INLINE): New macro; define it.
995 (ACTION_RECURSIVE_REINSTALL, ACTION_RECURSIVE_UPGRADE):
996 (ACTION_RECURSIVE_REPLACE): New action code constants; define them.
997 (with_flags): Original macro deleted; replace it with...
998 (with_request_flags): ...this new static inline function.
999 (if_noref, if_match, if_alias, with_download, promote): New static
1000 inline functions; they replace original macros of the same names.
1001 (is_recursive_action): Function no longer used; delete it.
1002 (action_class): New static inline function; implement and use it...
1003 (pkgXmlDocument::ResolveDependencies): ...here, to identify scheduling
1004 requirements for packages which are already installed; depends on...
1005 (request_mode): ...this new automatic variable; it augments and...
1006 (recursive_mode): ...replaces this one; rename it accordingly.
1007 (viable): Automatic variable no longer used; delete it.
1008 [DEBUG_REQUEST & DEBUG_TRACE_DEPENDENCIES]: Emit notification for
1009 scheduled installation.
1010 (pkgXmlDocument::Schedule): Add an implied...
1011 (ACTION_REMOVE): ...when scheduling a reinstallation.
1013 2012-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1015 Address reinstallation issues per MinGW-Bugs #3416013 and #3424406
1017 * src/pkgexec.cpp (reinstall_action_scheduled): New inline function.
1018 (pkgActionItem::Execute): Use it to identify cases where...
1019 [--reinstall]: ...implicit package removal is required, and also to
1020 facilitate improved progress reporting in such cases.
1022 * src/pkgdeps.cpp (is_recursive_action): New inline function.
1023 (pkgXmlDocument::ResolveDependencies): Use it in tandem with...
1024 (recursive_mode): ...this new automatic variable, so as to handle...
1025 [meta-package dependency]: ...implicit recursion, to extend the scope
1026 of the current action to the first level of non-meta dependency.
1027 [install --reinstall]: ...reinstall original version of nominated
1028 package, ignoring any available upgrade; extend scope of operation...
1029 [install --reinstall --recursive]: ...to all prerequisite packages.
1030 [upgrade --reinstall]: ...upgrade nominated package if possible; if no
1031 upgrade available, reinstall current version; extend scope...
1032 [upgrade --reinstall --recursive]: ...to all prerequisites.
1033 (pkgXmlDocument::Schedule): Partially revert 2012-03-05 change;
1034 reimplement selectively; never promote...
1035 [install, install --reinstall]: ...these operations to become...
1036 [upgrade]: ...this, even if available; issue diagnostic instead.
1038 2012-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1040 Rationalise implementation and usage of --all-related option.
1042 * src/pkgopts.h: Update copyright notice; add year 2012.
1043 (OPTION_RECURSIVE, OPTION_ALL_RELATED): New constants; define them.
1044 (pkgOpts::SetFlags): New method; declare and implement it inline.
1046 * src/clistub.c: Update copyright notice; add year 2012.
1047 (options) [recursive, all-related]: Redefine in terms of...
1048 (OPTION_RECURSIVE, OPTION_ALL_RELATED): ...these.
1049 (help_text): Update appropriately.
1051 * src/climain.cpp: Update copyright notice; add year 2012.
1052 (climain) [all-related]: Associate its use exclusively with...
1053 (source, licence): ...these package processing operations; use...
1054 (pkgOptions::SetFlags): ...this, to propagate its effect.
1056 2012-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1058 Don't report failed downloads in respect of virtual packages.
1060 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): Clear...
1061 [ACTION_DOWNLOAD]: ...this status flag for any package identified as
1062 a meta-package; this corrects a further regression introduced with the
1063 2011-11-09 update, whereby pending download requests for such virtual
1064 packages were not cancelled, resulting in failure to install due to
1065 failed downloads, when no download is actually required.
1067 2012-03-05 Keith Marshall <keithmarshall@users.sourceforge.net>
1069 Don't suppress implied downloads for top-level actions.
1071 * src/pkgdeps.cpp: Update copyright notice for new year.
1072 (pkgXmlDocument::Schedule) [!OPTION_PRINT_URIS]: Ensure that...
1073 [ACTION_DOWNLOAD]: ...this is enabled, when scheduling an install or
1074 an upgrade action for a package specified as a command line argument;
1075 this corrects a regression introduced on 2011-11-09, which resulted in
1076 ACTION_DOWNLOAD being enabled only for second tier dependent actions.
1078 2012-02-20 Keith Marshall <keithmarshall@users.sourceforge.net>
1080 Copyright notice updates.
1082 * Makefile.in: Add 2012 as year of republication.
1083 * src/pkgbase.h src/sysroot.cpp src/pkgexec.cpp: Likewise.
1084 * src/rites.c src/pkginst.cpp src/pkgunst.cpp: Likewise.
1086 2012-02-20 Keith Marshall <keithmarshall@users.sourceforge.net>
1088 Fix ill-advised optimisation in $APPROOT environment lookup.
1090 * src/rites.c (approot_path): Don't save result of getenv() lookup
1091 across calls; the environment may have been moved in the interim,
1092 making the original result invalid on any subsequent call. Also,
1093 prefer MS-Windows style (with backslashes) for default.
1094 (pkgLastRites): Report full path name for lastrites.exe, on execl()
1095 failure, rather than only the path relative to $APPROOT.
1097 2012-02-20 Keith Marshall <keithmarshall@users.sourceforge.net>
1099 Propagate sysroot path settings to scripts via the environment.
1101 * src/pkgbase.h (PKG_PUTENV_FLAGS_MASK): New constant; it maps...
1102 (PKG_PUTENV_DIRSEP_MSW, PKG_PUTENV_DIRSEP_POSIX): ...these flags...
1103 (PKG_PUTENV_SCAN_VARNAME, PKG_PUTENV_NAME_TOUPPER): ...and these;
1104 they are used to specify optional behavioural choices for...
1105 (pkgPutEnv): ...this new function; declare it.
1107 * src/sysroot.cpp (pkgPutEnv): Implement it.
1108 (pkgXmlDocument::LoadSystemMap): Use it to add $SUBSYSTEM_SYSROOT path
1109 specifications to the environment, for each named subsystem associated
1110 with the active system map.
1112 * src/pkgexec.cpp (pkgActionItem::Execute): Invoke pkgPutEnv() prior
1113 to processing of each package install, upgrade, or remove action, so
1114 as to update environment variable $SYSROOT to represent the sysroot
1115 path for each package processed, during execution of script hooks.
1117 2012-02-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1119 Implement hooks to support lua scripting interface.
1121 * Makefile.in (LIBS): Add -llua.
1123 * src/pkgbase.h (pkgXmlNode::InvokeScript): New method; declare it
1124 as private, and provide overloaded public inline API implementation.
1125 (pkgXmlNode::DispatchScript): New private method; declare it.
1127 * src/pkgexec.cpp (pkgXmlNode::InvokeScript): Implement it.
1128 (pkgXmlNode::DispatchScript): Likewise; it directs InvokeScript to...
1129 (pkgInvokeScript): ...this new static function; implement it.
1131 * src/pkginst.cpp (pkgInstall): Call InvokeScript as appropriate.
1132 * src/pkgunst.cpp (pkgRemove): Likewise.
1134 2011-11-24 Keith Marshall <keithmarshall@users.sourceforge.net>
1136 Avoid implicit cast warnings; reported by Robert Hartmann.
1138 * src/dmh.h (DMH_BEGIN_DIGEST): Explicitly cast to uint16_t.
1139 (DMH_END_DIGEST): Likewise.
1141 2011-11-09 Keith Marshall <keithmarshall@users.sourceforge.net>
1143 Avoid unnecessary downloads for already installed packages.
1145 * src/pkginet.cpp (pkgActionItem::DownloadSingleArchive): Require
1146 external scheduling of ACTION_DOWNLOAD; cancel the scheduled request
1147 on completion, or when not required due to pre-existing local copy.
1149 * src/climain.cpp (pkgActionItem::GetSourceArchive): Must always be
1150 prepared to download the associated archive; enable ACTION_DOWNLOAD.
1152 * src/pkgexec.cpp (pkgActionItem::Schedule) [OPTION_REINSTALL]:
1153 May need to download the archive, even when the requested package was
1154 previously installed; schedule ACTION_DOWNLOAD to enable this.
1156 * src/pkgdeps.cpp (promote): Macro redefined in terms of...
1157 (with_flags, with_download): ...these new macros; implement and...
1158 (pkgXmlDocument::ResolveDependencies): ...use them to enable/schedule
1159 ACTION_DOWNLOAD only when expected that it may be necessary.
1161 2011-11-06 Keith Marshall <keithmarshall@users.sourceforge.net>
1163 Fix packaging anomalies for source and licence distributions.
1165 * Makefile.in (licdist): Link README from ${CURDIR}, not from '..'.
1166 (srcdist): Explicitly link pkginfo.c from ${CURDIR} to src/pkginfo,
1167 rather than as implied prerequisite; this avoids a bogus attempt to
1168 link srcdist-doc into src/pkginfo.
1170 2011-11-06 Keith Marshall <keithmarshall@users.sourceforge.net>
1172 Bump version number for subsequent CVS snapshots.
1174 * configure.ac (AC_INIT): Set version to 0.4-alpha-1.1cvs
1176 2011-11-06 Keith Marshall <keithmarshall@users.sourceforge.net>
1178 mingw-get-0.4-mingw32-alpha-1 released.
1180 * configure.ac (AC_INIT): Adjust version number.
1181 * srcdist-doc/NEWS.in: Updated; document new features and bugs fixed.
1182 * All files (r0-4-alpha-1): Tag assigned.
1184 2011-11-04 Keith Marshall <keithmarshall@users.sourceforge.net>
1186 Don't upgrade installed DLL components to incompatible version.
1187 Provide clearer diagnostics for failed requests on implied packages.
1189 * src/pkgdeps.cpp (is_abi_compatible): New static inline function.
1190 (pkgXmlDocument::ResolveDependencies) [is_installed]: Use it.
1191 (pkgXmlDocument::ResolveDependencies) [DEBUG_TRACE_DEPENDENCIES]:
1192 Clean up and improve diagnostic message content and formatting.
1193 (pkgXmlDocument::Schedule) [(upgrade || remove) && ! installed]:
1194 Downgrade diagnostic to WARNING, for implicitly specified component
1195 packages; provide additional explanatory diagnostics.
1197 * src/pkgspec.cpp (pkgSpecs::VersionComparator):
1198 * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit):
1199 [DEBUG_TRACE_DEPENDENCIES]: Eliminate diagnostic noise.
1201 2011-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1203 Fix --download-only vs. --reinstall conflict.
1205 * src/pkgexec.cpp (pkgActionItem::Execute) [OPTION_DOWNLOAD_ONLY]:
1206 Test for explicit inequality, rather than equality to zero; since the
1207 2011-08-30 update, which made --download-only also imply --reinstall,
1208 it will test as non-zero when --reinstall is specified, even though
1209 --download-only is not.
1211 2011-10-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1213 Add support for non-specific upgrade of all installed packages.
1215 * src/pkgbase.h (pkgXmlDocument::RescheduleInstalledPackages):
1216 New public method; declare it.
1218 * src/pkgdeps.cpp (pkgXmlDocument::RescheduleInstalledPackages):
1221 * src/climain.cpp (climain) [ACTION_UPGRADE && argc < 2]: Invoke
1222 pkgXmlDocument::RescheduleInstalledPackages() to schedule the upgrade
1223 request for all packages currently registered as installed.
1225 2011-10-06 Keith Marshall <keithmarshall@users.sourceforge.net>
1227 Implement "source" and "licence" operations.
1229 * src/pkgopts.h (OPTION_ALL_DEPS): New option code; define it.
1230 * src/clistub.c (main): Associate it with...
1231 (all-related, recursive): ...these synonymous option names...
1232 (options): ...defined within this local structured array.
1233 (help_text): Document them; also document "source" and "licence" as
1234 new operations which may be specified on the command line.
1236 * src/pkgtask.h (action_source, action_licence): Enumerate them.
1237 (ACTION_SOURCE, ACTION_LICENCE): Define their manifest values, and...
1238 * src/pkgexec.cpp (action_name): ...associate with operation names.
1240 * src/pkgbase.h (pkgActionItem::GetScheduledSourceArchives):
1241 (pkgActionItem::GetSourceArchive, pkgXmlDocument::GetSourceArchive):
1242 New public methods; declare them for external implementation.
1243 (pkgXmlDocument::GetScheduledSourceArchives): New public method;
1244 implement it as inline.
1246 * src/climain.cpp (pkgProcessedArchives): New pointer to stack of...
1247 (pkgArchiveNameList): ...this new locally defined class; implement it.
1248 (pkgActionItem::GetSourceArchive, pkgXmlDocument::GetSourceArchive):
1249 (pkgActionItem::GetScheduledSourceArchives): Implement them.
1250 (climain): Add invocation hooks.
1252 2011-10-04 Keith Marshall <keithmarshall@users.sourceforge.net>
1254 Establish mapping from release tarname to source tarname.
1256 * src/pkgreqs.cpp (inherited_requirement): New inline function.
1257 (requirement): Use it; adapt to propagate release archive format and
1258 compression type fields, in addition to version fields, when resolving
1259 "%" wildcard matches within the template for the resultant tarname.
1260 (pkgAssociateName): New public function; implement it for use by...
1261 * src/pkgname.cpp (pkgResolvedName): ...this new inline function.
1262 (pkgXmlNode::SourceArchiveName): Use it; adapt to accept a category
1263 selector, so it may resolve source or licence tarnames on demand.
1265 * src/pkgbase.h (pkgXmlNode::SourceArchiveName): Modify declaration;
1266 add category selector argument to support source/licence choice.
1268 2011-10-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1270 Facilitate downloads using diverse cache directories.
1272 * src/pkgbase.h (pkgActionItem::DownloadSingleArchive): New private
1273 method; declare it; it handles the download for a single named archive
1274 file, and stores it in a specifed cache directory.
1276 * src/pkginet.cpp (pkgActionItem::DownloadSingleArchive): Implement
1277 it; factor its code from the original implementation within...
1278 (pkgActionItem::DownloadArchiveFiles): ...this; adapt to use it.
1280 2011-10-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1282 Establish cache directory for source archive downloads.
1284 * src/mkpath.h (pkgSourceArchivePath): New function; declare it.
1285 * src/mkpath.c (pkgSourceArchivePath): Implement it.
1287 2011-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1289 Support archive extraction to arbitrary destination without install.
1291 * src/pkgproc.h (pkgArchiveProcessor::ExtractFile): New virtual
1292 helper method for use, as core helper, by derived classes; declare it.
1293 (pkgArchiveProcessor::CreateExtractionDirectory): Likewise.
1294 (pkgTarArchiveProcessor): Declare overloaded default constructor.
1295 (pkgTarArchiveExtractor): New class definition; it is derived from
1296 pkgTarArchiveProcessor.
1298 * src/tarproc.cpp (pkgArchiveProcessor::ExtractFile): Implement it.
1299 (pkgArchiveProcessor::CreateExtractionDirectory): Likewise.
1300 (pkgTarArchiveExtractor): Implement constructor, together with...
1301 (pkgTarArchiveExtractor::ProcessDirectory): ...this method, and also...
1302 (pkgTarArchiveExtractor::ProcessDataStream): ...this one; these are
1303 declared as abstract, in the pkgTarArchiveProcessor base class.
1304 (pkgTarArchiveInstaller::ProcessDirectory): Simplify; it now delegates
1305 directory creation to pkgArchiveProcessor::CreateExtractionDirectory.
1306 (pkgTarArchiveInstaller::ProcessDataStream): Simplify; delegate file
1307 handling to pkgArchiveProcessor::ExtractFile, as appropriate.
1309 2011-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1311 Make --download-only and --print-uris imply --reinstall.
1313 * src/pkgopts.h (OPTION_PRINT_URIS): Adjust definition.
1314 (OPTION_DNLOAD_ONLY, OPTION_DOWNLOAD_ONLY): Likewise.
1316 2011-08-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1318 Implement --download-only and --print-uris options.
1320 * src/pkgopts.h (OPTION_DOWNLOAD_ONLY, OPTION_PRINT_URIS):
1321 New manifest constants, identifying flag bits; define them.
1322 (OPTION_DNLOAD_ONLY): Likewise; an alias for OPTION_DOWNLOAD_ONLY.
1324 * src/pkgbase.h (pkgActionItem::PrintURI): New private method.
1325 * src/pkginet.cpp: Implement it.
1327 * src/clistub.c (options): Add "download-only" and "print-uris".
1328 (help_text): Document them.
1329 * src/pkgexec.cpp (pkgActionItem::Execute): Process them.
1331 2011-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1333 mingw-get-0.3-mingw32-alpha-2.1 released.
1335 * configure.ac (AC_INIT): Adjust version number.
1336 * srcdist-doc/NEWS.in: Updated; document bugs fixed.
1337 * All files (r0-3-alpha-2-1): Tag assigned.
1339 2011-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1341 Adopt tar.xz as default package archive format.
1343 * Makefile.in (TARZIP, TAREXT): New macros; define them.
1344 (bindist, licdist, srcdist): Use them in place of hardcoded tar.gz
1345 (maintainer-clean): Expunge tar files of any compression format.
1347 2011-07-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1349 Correct handling of release status in requirements specifications.
1351 * src/debug.h (DEBUG_TRACE_DEPENDENCIES): New tracing hook; define it.
1352 * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit): Use it; add
1353 function entry/exit tracing report hooks.
1354 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): Likewise;
1355 also add internal trace point reporting, which may also require...
1356 (show_required): ...this new static inline DEBUG_INVOKED function.
1358 * src/pkgreqs.cpp (requirement): Propagate release status and release
1359 reference index fields from requirer, when package version requirement
1360 is specified by a '%' token, and no explicit release status override
1361 is included in the requirement specification.
1363 * src/pkgspec.cpp (is_wildcard_spec): New static inline helper.
1364 (pkgSpecs::VersionComparator): Use it to identify any package version
1365 specification which may require the extension of a wildcard match, to
1366 span the package version and release status fields; also add tracing
1367 hooks, triggered on DEBUG_TRACE_DEPENDENCIES, to facilitate debugging.
1369 2011-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1371 Avoid accidental RCS keyword substitutions.
1373 * Makefile.in (DOLLAR): New macro; define it.
1374 (readme.txt, readme.txt.in): Use it, where unexpanded RCS Id keyword
1375 matching is intended.
1377 2011-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1379 Mercurial support revisited.
1381 * .cvsignore (.hgtags): Add to CVS untracked list.
1383 2011-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1385 Update readme.txt ID tag-line to track NEWS rather than README.
1387 * Makefile.in (readme.txt.in): New rule; implement it.
1388 (readme.txt.tag): Likewise; this implements the tag-line tracking.
1389 (readme.txt): Rule redefined in terms of the preceding pair.
1391 2011-06-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1393 mingw-get-0.3-mingw32-alpha-2 released.
1395 * configure.ac (AC_INIT): Adjust version number.
1396 * srcdist-doc/NEWS.in: Updated; document new features and bugs fixed.
1397 * All files (r0-3-alpha-2): Tag assigned.
1399 2011-06-15 Keith Marshall <keithmarshall@users.sourceforge.net>
1401 Add internal documentation for --reinstall option.
1403 * src/clistub.c (help_text): Add description for "--reinstall".
1405 2011-06-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1407 Support use of Mercurial within a CVS working copy.
1409 * .cvsignore (.hg, .hgignore): Don't have CVS track these.
1411 2011-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1413 Implement --reinstall option.
1415 * src/pkgopts.h (OPTION_REINSTALL): New macro; define it.
1416 (OPTION_GENERIC, OPTION_SHIFT_MASK): Likewise.
1417 (OPTION_EXTRA_FLAGS): New field; declare it.
1419 * src/clistub.c (options): Add "reinstall".
1420 (OPTION_GENERIC): Use it where appropriate; within its scope...
1421 (OPTION_STORAGE_CLASS): Improve descriptive comments; add handling for
1422 default case of flag type options requiring an alignment shift.
1424 * src/pkgexec.cpp: Remove previous "always reinstall" kludge.
1425 (pkgOptionSelected, PKG_OPTION_REINSTALL): Remove obsolete macros.
1426 (pkgActionItem::Execute): Check for "upgrade" request on any package
1427 which is already up to date; report this state, otherwise...
1428 [OPTION_REINSTALL || ACTION_UPGRADE]: Mark package as "removed", to
1429 avoid bail-out on "package already installed", when calling...
1430 (pkgInstall): ...this.
1432 2011-06-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1434 Don't require -vv to report progress of update operation.
1436 * src/pkgbind.cpp (pkgRepository::GetPackageList): Eliminate all
1437 basename() calls; `dname' already tells us what it should return.
1438 [update]: Report progress, irrespective of verbosity setting.
1440 2011-06-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1442 Fix MinGW-Bug #3313806.
1444 * src/pkginfo/pkginfo.l (CMS_KEYWORDS): Do not match them within the
1445 PACKAGE_NAME field; this avoids misinterpretation as a release status
1446 qualifier when intended as part of the package name, as in msys-cvs.
1448 2011-06-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1450 Provisional correction for MinGW-Bug #3309438.
1452 * src/debug.h [DEBUGLEVEL == 0]: Provide defaults for...
1453 (DEBUG_ENABLED, DEBUG_REQUEST): ...these macros.
1455 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDirectory):
1456 (pkgTarArchiveInstaller::ProcessDataStream): Use DEBUG_REQUEST to
1457 enable runtime trace activation for previous compile time choices.
1459 2011-05-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1461 mingw-get-0.3-mingw32-alpha-1 released.
1463 * configure.ac (AC_INIT): Adjust version number.
1464 * srcdist-doc/NEWS.in: Updated; document new features.
1465 * All files (r0-3-alpha-1): Tag assigned.
1467 2011-05-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1469 Support assignment of DEBUGLEVEL at configure time.
1471 * configure.ac (DEBUGLEVEL): Declare as a precious variable, using
1472 AC_ARG_VAR; also declare with AC_SUBST, to ensure it is initialised.
1474 * Makefile.in (DEBUGLEVEL): Let AC_SUBST assign it.
1476 2011-05-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1478 Work around bugs in MinGW and GNU getopt_long_only() implementations.
1480 * src/getopt.c: New file; this is a free-standing replacement for any
1481 implementation provided by system libraries. We will always use this
1482 to ensure correct operation irrespective of system bugs; (different
1483 bug manifestations have been identified in the stock MinGW and GNU
1486 * Makefile.in (mingw-get.EXEEXT): Use it.
1488 * src/clistub.c (options): Remove redundant declaration of `-v' as a
1491 2011-05-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1493 Implement user selection of traceable features at run-time.
1495 * src.pkgopts.h (OPTION_VERBOSE_MAX): New macro; define it.
1497 * src/debug.h (DEBUG_ENABLED): New macro; define it.
1498 (DEBUG_REQUEST, DEBUG_REQUEST_FLAGS, DEBUG_TRACE_DYNAMIC): Likewise.
1500 * src/clistub.c (main) [--trace]: Don't make it available unless...
1501 [DEBUG_ENABLED(DEBUG_TRACE_DYNAMIC)]: ...this is set (at compile-time).
1502 [--verbose]: Limit to OPTION_VERBOSE_MAX, using...
1503 (atmost): ...this new macro; define it.
1504 (options): Declare `-v' as both long and short form, pending bug fix
1505 in MinGW's getopt_long_only() implementation.
1507 * src/pkginet.cpp (pkgInternetAgent::OpenURL): Use DEBUG_REQUEST.
1508 (pkgInternetLzmaStreamingAgent::TransferData): Likewise.
1509 (pkgInternetStreamingAgent::TransferData): Likewise.
1510 (pkgInternetStreamingAgent::Get): Likewise.
1512 * src/pkgunst.cpp (pkgActionItem::SetAuthorities): Use DEBUG_REQUEST.
1513 (pkg_rmdir, pkg_unlink): Likewise.
1515 * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Use DEBUG_REQUEST.
1517 2011-05-21 Keith Marshall <keithmarshall@users.sourceforge.net>
1519 Implement protocol for processing global program options.
1521 * src/pkgopts.h: New file.
1523 * src/climain.cpp (cli_setopts): New function; implement it.
1524 (pkgOptions): Likewise.
1526 * src/clistub.c (xatoi): New function; implement it.
1527 (cli_setargv): New inline helper function; implement it.
1528 (main): Use it. Also incorporate implementation of...
1529 (parsed_options): New structure; it accommodates...
1530 (verbose, trace): New options; interpret them, and...
1531 (help_text): ...document them.
1533 * src/pkgbind.cpp (pkgRepository::GetPackageList): Make catalogue
1534 loading notifications and progress reports conditional on...
1535 [OPTION_VERBOSE > 1]: ...this.
1537 2011-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1539 Augment known development status keywords and accept CMS labels.
1541 * src/pkginfo/pkginfo.l (CMS_KEYWORDS): Define new provisional list;
1542 add transitional state scanner rule and code to interpret them.
1543 (STATUS_KEYWORDS): Add "pre" and "rc" to existing list; modify scanner
1544 code to maintain consistency with CMS_KEYWORDS processing; also extend
1545 this coding strategy to other rules.
1547 * src/pkginfo/driver.c (spec): Strip initial '$' token from displayed
1548 field values; (we expect it only for a CMS_KEYWORDS field value).
1550 * src/pkgreqs.cpp (pkgSpecs::GetTarName): Remove any initial '$' token
1551 from PACKAGE_RELEASE_STATUS field, when performing reverse of tarname
1552 decomposition transformation.
1554 2011-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1556 Correct omission from 2011-02-18 commit.
1558 * src/tarproc.cpp (Copyright Notice): Add 2011 as year of release.
1560 2011-05-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1562 mingw-get-0.2-mingw32-alpha-4 released.
1564 * configure.ac (AC_INIT): Adjust version number.
1565 * srcdist-doc/NEWS.in: Updated; add bug-fix/feature descriptions.
1566 * All files (r0-2-alpha-4): Tag assigned.
1568 2011-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1570 Fix MinGW-Bug #3297660 (reported by Chris Sutcliffe).
1572 * src/pkgbase.h (pkgActionItem::SetAuthorities): Return unsigned long.
1573 (pkgActionItem::HasAttribute): New inline method; implement it.
1575 * src/pkgtask.h (ACTION_DOWNLOAD, ACTION_DOWNLOAD_OK): New macros.
1577 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles):
1578 [ACTION_DOWNLOAD]: Assert it at commencement of each package download;
1579 clear it again, on successful download completion.
1581 * src/pkginst.cpp (pkgtask.h): #include it.
1582 (pkgInstall) [ACTION_DOWNLOAD]: Don't proceed with installation when
1583 set; this indicates failed download; diagnose it.
1585 * src/pkgunst.cpp (pkgRemove) [ACTION_DOWNLOAD && ACTION_UPGRADE]:
1586 Don't proceed with pre-emptive removal when both set; this indicates
1587 failed download of replacement package; diagnose it.
1589 2011-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1591 Fix MinGW-Bug #3295526 (reported by Charles Wilson).
1593 * src/pkgunst.cpp (sys/stat.h): #include it; we need it for...
1594 (pkg_unlink): ...chmod( file, S_IWRITE ), emulating `rm -f' semantics.
1596 2011-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1598 Diagnose and aggressively retry failed download connections.
1600 * src/debug.h (DEBUG_TRACE_INTERNET_REQUESTS): New macro; define it.
1602 * src/pkginet.cpp (debug.h): #include it.
1603 (pkgDownloadMeter): New abstract class; declare it and implement its
1604 default (non-abstract) data and methods; derive...
1605 (pkgDownloadMeterTTY): ...this new class from it; implement it...
1606 (pkgInternetStreamingAgent::Get): ...and instantiate it (naively for
1607 now), as associated pkgDownloadMeter object; add tracing diagnostic.
1608 (pkgInternetAgent::OpenURL): Don't inline it; move implementation out
1609 of line; add retry loops to aggressively retry failed connections.
1610 (pkgInternetAgent::QueryContentLength): New method; implement it.
1611 (pkgInternetStreamingAgent::TransferData): Avoid Microsoft specific
1612 data type `DWORD'; prefer equivalent standard `unsigned long'. Add
1613 tracing diagnostic. Remove progress diagnostic; replace it with an
1614 `Update' request to associated pkgDownloadMeter.
1615 (pkgInternetLzmaStreamingAgent::GetRawData): Avoid `DWORD' data type.
1616 (pkgInternetLzmaStreamingAgent::TransferData): Likewise; add tracing
1617 diagnostic on failure.
1619 2011-03-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1621 mingw-get-0.2-mingw32-alpha-3 released.
1623 * configure.ac (AC_INIT): Adjust version number.
1624 * srcdist-doc/NEWS.in: Updated; add bug-fix description.
1625 * All files (r0-2-alpha-3): Tag assigned.
1627 2011-03-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1629 Provisional handling for http proxy authentication.
1630 (Adapted from patch by Scott Michel <pingbak@users.sourceforge.net>)
1631 (ref: MinGW-Patch #3158453)
1633 * src/pkginet.cpp: Several format/layout adjustments; add comments.
1634 Eliminate several instances of Microsoft specific typedef nastiness.
1635 (dmh_dialogue_context): New macro; kludge definition to support...
1636 (pkgInternetAgent::OpenURL) [HTTP_STATUS_PROXY_AUTH_REQ]: Detect
1639 2011-03-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1641 Expand macros in path names for files and directories to be removed.
1643 * src/pkgunst.cpp (pkgRemove): Format sysroot as a template, so...
1644 (pkg_rmdir, pkg_unlink): ...are able to use mkpath() to construct the
1645 full path name for each file or directory to be removed.
1647 2011-03-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1649 Correct defective activation logic for some debugging hooks.
1651 * src/pkgunst.cpp (pkg_rmdir, pkg_unlink) [DEBUG_INVOKE_IF]:
1652 (pkgActionItem::SetAuthorities) [DEBUG_INVOKE_IF]: Use bit-wise `&'
1653 operator, not `&&', to evaluate DEBUGLEVEL state.
1655 2011-03-22 Keith Marshall <keithmarshall@users.sourceforge.net>
1657 Avoid Unicode hyphens in generated ASCII document files.
1659 * Makefile.in (NROFF): New macro; define it to invoke `nroff -Tascii'.
1660 (%.dist, readme.txt): Use it to ensure that output is pure ASCII.
1662 2011-03-15 Keith Marshall <keithmarshall@users.sourceforge.net>
1664 mingw-get-0.2-mingw32-alpha-2 released.
1666 * configure.ac (AC_INIT): Adjust version number.
1667 * srcdist-doc/NEWS.in: Updated; add bug-fix description.
1668 * All files (r0-2-alpha-2): Tag assigned.
1670 2011-03-15 Keith Marshall <keithmarshall@users.sourceforge.net>
1672 Fix MinGW-Bug 3212246.
1674 * src/keyword.c (has_keyword): Avoid incrementing the comparison
1675 pointers when a significant character in one string is not matched in
1676 the other; previously the pointers were left pointing one character to
1677 the right of the mismatch, and this was overlooked if the mismatch
1678 occurred at the rightmost character in both strings.
1680 2011-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1682 mingw-get-0.2-mingw32-alpha-1 released.
1684 * configure.ac (AC_INIT): Set version number; correct capitalisation
1685 in URI reference to bug reporting instructions.
1687 * srcdist-doc/NEWS.in: Confirm release date.
1688 [bug reporting]: Remove redundant paragraph; the information is
1689 provided, via reference to mingw.org. in the README and INSTALL files.
1691 * All files (r0-2-alpha-1): Tag assigned.
1693 2011-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1695 * srcdist-doc/INSTALL.in [building]: Qualify liblzma.a requirement;
1696 add earliest acceptable snapshot release date.
1698 2011-03-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1700 Remove unused 7zip and boost source code from CVS trunk.
1702 * 7z: Directory and all content removed.
1705 2011-03-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1707 Refactor and update existing installation and usage instructions.
1709 * src/clistub.c (help_text): Updated.
1711 * srcdist-doc: New directory.
1713 * README: Deleted; its content refactored into...
1714 * srcdist-doc/README.in srcdist-doc/INSTALL.in srcdist-doc/NEWS.in:
1715 ...these new template files, updated for current development state.
1717 * srcdist-doc/gendoc.sed.in: New sed script; it directs formatting of
1718 generated text files derived from the srcdist-doc templates.
1720 * Makefile.in (SRCDIST_SUBDIRS): Add srcdist-doc.
1721 (SRCDIST_FILES): Add NEWS and INSTALL.
1722 (srcdist-doc): New build rule to generate README, NEWS and INSTALL.
1723 (srcdist, licdist): Adjust path to locate them.
1724 (readme.txt): New build rule to generate on-line package description.
1726 (distclean): Don't remove Makefile...
1727 (maintainer-clean): ...but do it here instead. Also remove generated
1728 README, NEWS and INSTALL, the autom4te cache, and all distributable
1729 zip files, in addition to tarballs, for the current version.
1731 2011-02-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1733 Initial implementation for "remove" feature.
1735 * src/pkgbase.h: Update copyright notice; add current year.
1736 (pkgActionItem::SetPrimary): New inline public method; declare it.
1737 (pkgActionItem::SetAuthorities): New public method; declare it.
1739 * src/pkgtask.h (ACTION_PREFLIGHT, ACTION_REMOVE_OK): New defines.
1741 * src/pkgproc.h: Update copyright notice; add current year.
1742 (pkgManifest::GetSysRootReference): New public method; declare it.
1743 (pkgManifest::GetRoot): New inline method; declare and implement it.
1744 (pkgManifest::DetachSysRoot): Argument type changed to const char*.
1745 (pkgRemove): New extern "C" function; declare it.
1747 * src/pkgexec.cpp (pkgActionItem::SetPrimary): Implement it, and...
1748 (pkgXmlDocument::Schedule): ...use it to promote actions on all user
1749 specified packages, as listed on the command line, to primary status.
1750 (pkgActionItem::Execute): Repeatedly invoke...
1751 (pkgActionItem::SetAuthorities): ...this; incorporate call of...
1752 (pkgActionItem::DownloadArchiveFiles): ...this, within the loop, so
1753 that we retry failed downloads at least a second time.
1754 [ACTION_REMOVE]: Delete stub; invoke pkgRemove().
1756 * src/pkgunst.cpp: New file.
1757 (pkgActionItem::SetAuthorities): Implement it.
1758 (pkgManifest::GetSysRootReference): Implement it.
1759 (pkgManifest::DetachSysRoot): Implement it per new declaration.
1760 (pkgRemove): Implement it.
1762 * Makefile.in (CORE_DLL_OBJECTS): Add pkgunst.OBJEXT
1764 2011-02-26 Keith Marshall <keithmarshall@users.sourceforge.net>
1766 Work-around for improper stderr buffering in MSYS mintty and rxvt.
1767 (Merged from r0-1-alpha-5 branch).
1769 * src/dmh.cpp (dmhTypeTTY::emit_and_flush): New private method.
1770 (dmhTypeTTY::printf, dmhTypeTTY::notify): Use it to force an fflush()
1771 after each output record is written to stderr.
1773 * README: Update as appropriate.
1775 2011-02-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1777 Tidy up some debugging hooks.
1779 * src/debug.h (DEBUG_INVOKED): New macro; define it.
1780 (DEBUG_INVOKE_IF): Likewise; this takes arguments providing for
1781 conditional invocation of code when DEBUGLEVEL is non-zero; make it
1782 expand to nothing, when DEBUGLEVEL is zero.
1783 (DEBUG_TRACE_INIT): Redefined macro; value changed to 0x0010.
1784 (DEBUG_TRACE_TRANSACTIONS, DEBUG_SUPPRESS_INSTALLATION):
1785 (DEBUG_UPDATE_INVENTORY): New macros; define them.
1787 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDirectory):
1788 (pkgTarArchiveInstaller::ProcessDataStream): Refactor debugging hooks;
1789 implement them in terms of DEBUGLEVEL, with reference to...
1790 (DEBUG_SUPPRESS_INSTALLATION, DEBUG_UPDATE_INVENTORY): ...these.
1792 2011-02-15 Keith Marshall <keithmarshall@users.sourceforge.net>
1794 Make package version comparisons more robust.
1796 Fixes an issue reported by Chris Sutcliffe: previously, version
1797 comparisons were evaluated solely on the basis of differences in the
1798 package version field itself. Henceforth, if this field compares as
1799 equal, then the comparison is extended to also consider differences
1800 between development phase qualifiers, and, if these too compare as
1801 equal, to differences in the target subsystem version fields.
1803 * src/pkginfo/pkginfo.h (pkgSpecs::VersionComparator): New private
1806 * src/pkgspec.cpp (pkgSpecs::VersionComparator): Implement it.
1807 (pkgSpecs::operator<, pkgSpecs::operator<=, pkgSpecs::operator>=):
1808 (pkgSpecs::operator>): Use it, replacing...
1809 (version): ...this static function; now unreferenced; delete it.
1811 * src/vercmp.h (pkgVersionInfo::pkgVersionInfo): Make it inline; it
1812 now delegates the entire class construction operation to...
1813 (pkgVersionInfo::Parse): ...this new private method; declare it. This
1814 is also used to facilitate implementation of...
1815 (pkgVersionInfo::Reset): ...this new inline method, also requiring...
1816 (pkgVersionInfo::FreeAll): ...this new inline method; also now used by
1817 the class destructor, it encapsulates separate calls to...
1818 (pkgVersionInfo::Free): ...this original inline method, renamed...
1819 (pkgVersionInfo::FreeEntry): ...as this.
1821 * src/vercmp.cpp (pkgVersionInfo::Parse): Implement it.
1823 2011-02-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1825 Merge from mingw-get-0.1-mingw32-alpha-5 bug-fix branch.
1827 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): Promote
1828 "install" action on new prerequisites, where a previously uninstalled
1829 package is required to satisfy any "upgrade" dependency.
1831 * src/pkgexec.cpp (pkgActionList::Execute): Don't make misleading
1832 claims concerning package removal.
1834 * src/pkgtask.h (STRICTLY_GT, STRICTLY_LT, ACTION_PRIMARY): Add one
1835 level of parentheses around defining expressions.
1837 2011-02-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1839 Publish mingw-get-0.0-mingw32-alpha-5.1 bug-fix release.
1841 * README: Updated to reflect changes.
1843 2011-02-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1845 Improve diagnostics for failed GUI invocation.
1847 * src/guimain.cpp: New file; currently delivers only a diagnostic
1848 stub, provided by Sze Howe Koh <axfangli@users.sourceforge.net>, to
1849 pop-up a message block explaining why GUI mode cannot be invoked.
1851 * Makefile.in (GUI_LDFLAGS): New macro; it is required by...
1852 (gui$EXEEXT): ...this new build rule; add to prerequisites of...
1853 (all): ...this [default] build rule; redefine this in terms of...
1854 (BIN_PROGRAMS, LIBEXEC_PROGRAMS, LIBEXEC_DATA): ...these new macros;
1855 define them, and also use them as loop iterator objectives for...
1856 (install, install_strip): ...these; also schedule them...
1857 (clean): ...for removal by this.
1859 * src/clistub.c (Copyright): Add new year.
1860 (main): Amend error message, if gui$EXEEXT doesn't start; make it
1861 more intelligible to normal users.
1863 2011-02-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1865 Correct omissions from packaged source tarball.
1867 * Makefile.in (Copyright): Add new year.
1868 (SRCDIST_FILES): Add aclocal.m4
1869 (SRCDIST_SUBDIRS): Add m4
1871 2011-01-05 Keith Marshall <keithmarshall@users.sourceforge.net>
1873 Reduce path names to base names, in some diagnostic message contexts.
1875 * src/climain.cpp: Update copyright notice for new year.
1876 (climain): Extract base name from argv[0], to pass as program name tag
1877 in initialisation of diagnostic message handler.
1879 * src/dmh.h, src/dmh.cpp: Update copyright notices; make some layout
1880 adjustments, for more consistent formatting style.
1882 * src/pkgbind.cpp: Update copyright notice.
1883 (pkgRepository::GetPackageList): Reduce path names for catalogue files
1884 to their base names, when reporting them in diagnostic messages.
1886 2011-01-05 Keith Marshall <keithmarshall@users.sourceforge.net>
1888 Avoid a potential out-of-range action name look-up.
1890 * src/pkgdeps.cpp: Update copyright notice for new year.
1891 (pkgXmlDocument::Schedule): Mask action code with ACTION_MASK, to
1892 determine correct action name when diagnosing uninstalled package.
1894 2011-01-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1896 Make "install" and "remove" notifications symmetric.
1898 * configure.ac (AC_INIT): Bump version to "0.1-alpha-6cvs".
1899 (YEARS_OF_ISSUE): Add new year.
1901 * src/pkginst.cpp: Update copyright notice for new year.
1902 (pkgInstall): Add notification for package being installed.
1904 2010-12-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1906 Add preliminary CLI support for "list" and "show" actions.
1908 * src/pkgtask.h (ACTION_PRIMARY): New manifest constant; define it.
1909 (ACTION_LIST, ACTION_SHOW): Likewise; cast to enumerated values for...
1910 (action_list, action_show): ...these; define them.
1912 * src/pkgexec.cpp (action_name): Add defining text for...
1913 (action_list, action_show): ...these.
1915 * src/climain.cpp: Partially revert 2010-11-01 change...
1916 (climain) [! ACTION_UPDATE]: Reinstate original "if" block, moving
1917 the "switch" block within it, but without the ACTION_UPDATE case.
1918 [ACTION_LIST, ACTION_SHOW]: New "switch" cases; they invoke...
1919 (pkgXmlDocument::DisplayPackageInfo): ...this new method.
1921 * src/pkgbase.h (pkgXmlDocument::DisplayPackageInfo): Declare it.
1922 (pkgActionItem::ConfirmInstallationStatus): New method; declare it.
1923 (pkgXmlNode::GetSysRoot): Make declaration style consistent with
1924 others in the class; do not name arguments in the declaration.
1925 (pkgXmlNode::FindFirstAssociate): Likewise.
1926 (pkgXmlNode::FindNextAssociate): Likewise.
1928 * src/pkgshow.cpp: New file.
1929 (pkgXmlDocument::DisplayPackageInfo): Implement it.
1931 * src/pkgdeps.cpp (pkgMsgUnknownPackage): New extern "C" function;
1932 implement it temporarily, pending a future i18n reimplementation.
1933 (assert_installed): Drop "inline" attribute; leave it as "static".
1934 Set "tarname" correctly, to match the installed package version; (it
1935 previously incorrectly returned the latest available version).
1936 (pkgActionItem::ConfirmInstallationStatus): Implement it.
1937 (pkgXmlDocument::Schedule) [ACTION_PRIMARY]: Set as appropriate.
1938 (pkgXmlDocument::Schedule) [ACTION_REMOVE || ACTION_UPGRADE]: Complain
1939 if requested package is not recorded as having been installed.
1940 (pkgXmlDocument::ResolveDependencies) [! ACTION_INSTALL]: Do not
1941 invoke it recursively.
1943 * Makefile.in (pkgshow.$OBJEXT): Add reference.
1945 2010-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1947 Lay groundwork for implentation of additional actions.
1949 * src/climain.cpp (climain): Adjust indentation; replace `if' block...
1950 [action != ACTION_UPDATE]: ...with this default `switch' case, and...
1951 [action == ACTION_UPDATE]: ...this as explicit "do nothing" case.
1953 2010-10-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1955 mingw-get-0.1-mingw32-alpha-5 released.
1957 * configure.ac (AC_INIT): Bump version to 0.1-alpha-5.
1958 * README: Update release notes accordingly.
1959 * All files (r0-1-alpha-5): Tag assigned.
1961 2010-10-22 Keith Marshall <keithmarshall@users.sourceforge.net>
1963 Make pkgInitRites/pkgLastRites processing more robust;
1964 avoid a potential race condition in mingw-get-inst.
1966 * src/rites.c: Refactor conditional code to segregate execution of...
1967 [defined IMPLEMENT_INITIATION_RITES]: ...this into distinct phases.
1968 (PHASE_ONE_RITES, PHASE_TWO_RITES): Define constants to identify them.
1969 (do_init_rites): Renamed to...
1970 (invoke_rites): ...this; inline it.
1971 (pkgLastRites): Invoke it, to pre-empt rename action of...
1972 (lastrites.exe): ...this, subsequently exec()ed process.
1973 (perror): Issue more informative diagnostic on exec() failure.
1975 * src/clistub.c (IMPLEMENT_INITIATION_RITES): Stipulate as...
1976 (PHASE_ONE_RITES): ...this phase of implementation only.
1978 * src/pkgexec.cpp (IMPLEMENT_INITIATION_RITES): Define to provide...
1979 (PHASE_TWO_RITES): ...this phase of implementation, facilitated by...
1980 (self_upgrade_rites): ...this locally defined RITES_INLINE function.
1981 (pkgActionItem::Execute): Invoke it, in remove/install loop, while...
1982 [init_rites_pending]: ...new loop local variable remains true.
1984 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
1986 Fix packaging bug in -lic package.
1988 * Makefile.in (licdist): Use directory named
1989 "share", not "shared".
1991 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
1993 mingw-get-0.1-mingw32-alpha-4 released.
1995 * All files (r0-1-alpha-4): Tag assigned.
1997 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
1999 Add rudimentary help option.
2001 * README: Update release notes.
2003 * src/clistub.c: Add --help option.
2005 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
2007 Fix "mingw-get deletes itself" bug in last rites handling.
2009 * README: Add new release notes.
2011 * configure.ac: Bump version to 0.1-alpha-4.
2013 * src/dmh.h: If __cplusplus, include <exception> and
2014 declare dmh_exception class.
2016 * src/dmh.cpp (class dmh_exception): Implement.
2017 (abort_if_fatal): If DMH_FATAL, throw dmh_exception rather
2018 than calling exit().
2020 * src/climain.cpp (climain): Wrap entire function body in try/
2021 catch block. If dmh_exception is caught, return EXIT_FAILURE.
2023 * src/clistub.c (main): Capture return value of climain(). If
2024 non-zero, perform last rites and return EXIT_FAILURE.
2026 2010-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2028 mingw-get-0.1-mingw32-alpha-3 released.
2030 * README: Add new release notes.
2032 * All files (r0-1-alpha-3): Tag assigned.
2034 2010-08-27 Keith Marshall <keithmarshall@users.sourceforge.net>
2036 Add runtime hooks to support self-upgrade for future releases.
2038 * src/rites.c: New file; compile it free-standing, to provide...
2039 (lastrites.exe): ...this helper application for context clean-up;
2040 alternatively, use it as an include file, with pre-definition of...
2041 (IMPLEMENT_INITIATION_RITES): ...this, to implement...
2042 (pkgInitRites, pkgLastRites): ...these inline functions.
2044 * src/clistub.c (main) [argc > 1]: Use them.
2045 (progname): New local variable within `main'; set it once, then use it
2046 instead of repeated references to `basename(*argv)' in diagnostics.
2047 (MINGW_GET_DLL, MINGW_GET_GUI): Relocate to `src/rites.c'.
2049 * src/debug.h (DEBUG_INHIBIT_RITES_OF_PASSAGE):
2050 (DEBUG_FAIL_FILE_RENAME_RITE, DEBUG_FAIL_FILE_UNLINK_RITE): New
2051 defines; they facilitate debugging of the src/rites.c code.
2053 * Makefile.in (lastrites$EXEEXT): New target; build as prerequisite...
2054 (all): ...of this primary target.
2055 (install, install-strip): Install it.
2056 (SRCDIST_FILES): Remove install-sh; it is now included in...
2057 (build-aux): ...this directory; add it to...
2058 (SRCDIST_SUBDIRS): ...this.
2060 2010-08-24 Keith Marshall <keithmarshall@users.sourceforge.net>
2062 Set default sysroots relative to mingw-get installation directory.
2064 * xml/profile.xml (system-map) [name == default]: For each of...
2065 [subsystem == mingw32]: ...set sysroot path to value of %R macro...
2066 [subsystem == msys]: ...and to its %R/msys/1.0 subdirectory.
2068 2010-08-19 Keith Marshall <keithmarshall@users.sourceforge.net>
2070 Some dependency resolver enhancements and bug fixes.
2072 * src/pkgbase.h (pkgXmlNode::GetContainerAttribute): New method;
2075 * src/pkgdeps.cpp (pkgXmlNode::GetContainerAttribute): Implement it;
2076 it is used to retrieve package name attributes from the containing
2077 'package' element, when given a pointer to a 'release' element by...
2078 (assert_unmatched, assert_installed): ...these new static functions.
2079 (pkgXmlDocument::Schedule): Use them to reconstruct and register
2080 dependency reference data for previously installed packages which are
2081 no longer included in the distribution manifest.
2082 (pkgXmlDocument::ResolveDependencies): Fix a block nesting error;
2083 catch and diagnose unresolved dependencies; don't look beyond the XML
2084 document root node, (tinyxml error not caught?), when searching for
2085 requirements specified on container nodes.
2087 2010-08-17 Keith Marshall <keithmarshall@users.sourceforge.net>
2089 Improve scheduling of package processing requests.
2091 * src/pkgexec.cpp (pkgXmlDocument::Schedule): Inspect entire `actions'
2092 list, when checking for duplicate package processing requests; decline
2093 to schedule any such duplicate, or any request which lacks a package
2096 2010-08-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2098 Lay foundation for selective compilation of debugging code.
2100 * src/debug.h: New file...
2101 * src/sysroot.cpp: Include it.
2102 (pkgXmlDocument::LoadSystemMap): Make debugging output conditional...
2103 [DEBUGLEVEL & DEBUG_TRACE_INIT]: ...on this new debugging state.
2105 2010-08-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2107 * src/pkgkeys.h: Typo in comment: file was previously identified as
2108 pkgkeys.c; corrected.
2110 2010-08-13 Keith Marshall <keithmarshall@users.sourceforge.net>
2112 Improve diagnostics for invalid references to non-release XML nodes.
2114 * src/pkgkeys.h (value_unknown): New global string; declare it.
2115 * src/pkgkeys.c (value_unknown): Implement it.
2117 * src/pkgname.cpp (pkgArchiveName): Identify XML element type when
2118 diagnosing references to elements of types other than release; use...
2119 (value_unknown): ...this, as appropriate.
2121 2010-08-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2123 Guard against a potential buffer overrun.
2125 * src/pkgreqs.cpp (pkgSpecs::SetProperty): Allocate an additional
2126 byte to accommodate an extra field separator, when inserting a new
2127 data value into a previously empty field.
2129 2010-07-27 Cesar Strauss <cestrauss@gmail.com>
2131 Handle the GNU long name tar header format.
2133 * src/pkgproc.h (TAR_ENTITY_TYPE_GNU_LONGNAME): New manifest constant;
2135 (pkgTarArchiveProcessor::EntityDataAsString): New protected method;
2137 * src/tarproc.cpp: ...implement it.
2138 (pkgTarArchiveProcessor::Process): Before building the entry pathname,
2139 check for a GNU long name type header; when found, read pathname from
2140 the entry data area, before fetching the following header, from which
2141 to retrieve the associated entity data.
2143 2010-06-24 Keith Marshall <keithmarshall@users.sourceforge.net>
2145 Work around an autoconf bug (reported by Stefano Sabatini).
2147 * Makefile.in (VPATH): Use @top_srcdir@ instead of ${srcdir}; current
2148 autoconf incorrectly elides references to @srcdir@ and ${srcdir} when
2149 substituting within a VPATH specification for building `in-source'.
2150 Also, prefer colons to blanks as path name separators, for improved
2151 portability to non-GNU implementations of make; (recommendation by
2154 2010-06-24 Keith Marshall <keithmarshall@users.sourceforge.net>
2156 Include alias search, when matching component package name.
2158 * src/keyword.c (has_keyword): Rearrange argument declarations for
2159 more natural order; update all callers accordingly. Simplify; compare
2160 keyword to be matched with each successive candidate from match-list,
2161 character-by-character and in-place, so avoiding memory allocation
2162 for any local duplicate of the passed match-list; thus...
2163 (safe_strdup): ...this static function no longer required; delete it.
2164 (string.h): No references remain; do not include it.
2166 * src/pkgfind.cpp (pkgXmlNode::FindPackageByName): Augment component
2167 package name matching to include potential matches of the look-up name
2168 with trailing component name stripped off, when that matches the class
2169 name of an identified component package, and the initial substring of
2170 the look-up name, after stripping, matches any specified alias name
2171 for the containing package.
2173 2010-06-10 Keith Marshall <keithmarshall@users.sourceforge.net>
2175 Address FIXME relating to identification of distributable files.
2177 * install-sh: Move to...
2178 * build-aux: ...this new directory.
2180 * Makefile.in (PACKAGE_DISTVERSION): Modify `sed' edit sequence; make
2181 it depend on, and ensure that it incorporates the expansion of...
2182 (PACKAGE_SUBSYSTEM): ...this new macro; defined as substitution of...
2183 (host_os): ...this autoconf variable, set by...
2185 * configure.ac (AC_CANONICAL_HOST): ...this; add it, requiring...
2186 (AC_CONFIG_AUX_DIR): ...`build-aux' directory reference, providing...
2188 * build-aux/config.guess, build-aux/config.sub: ...these new standard
2189 files; import them from the standard `build-aux' repository.
2191 2010-05-17 Keith Marshall <keithmarshall@users.sourceforge.net>
2193 Bump version for next release cycle.
2195 * configure.ac (AC_INIT): Bump version suffix to alpha-3.
2197 2010-05-17 Keith Marshall <keithmarshall@users.sourceforge.net>
2199 mingw-get-0.1-mingw32-alpha-2 released.
2201 * README: Add new release notes.
2203 * xml/profile.xml: Update to use default referencing for...
2204 (package-list.xml.lzma): ...this repository master catalogue.
2206 * All files (r0-1-alpha-2): Tag assigned.
2208 2010-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2210 Make provision to protect user's profile settings during upgrade.
2212 * Makefile.in (install): Remove `profile.xml'; replace it with...
2213 (install-profile): ...this new prerequisite installation goal; it
2214 renames the installed copy of `profile.xml' as `defaults.xml', within
2215 the installed package image.
2217 * src/pkgkeys.h (defaults_key): New key; declare it.
2218 * src/pkgkeys.c: Some cosmetic formatting (tabulation) adjustments.
2219 (defaults_key): Implement it; it refers to the `defaults.xml' file.
2221 * src/climain.cpp (climain): Check `profile_key' for accessibility of
2222 the `profile.xml' file; if [! R_OK] emit a diagnostic warning, fall
2223 back on `defaults_key', and attempt to load configuration from the
2224 distributed `defaults.xml' file.
2226 2010-05-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2228 Add preliminary support for future `-reinstall' option.
2230 * src/pkgexec.cpp (pkgActionItem::Execute) [ACTION_INSTALL]: Force
2231 installation if `-reinstall' option is selected, overriding state of
2232 any prior installation; temporarily assume that this option is always
2233 selected, to permit proper `upgrade' operation in the absence of any
2234 functional `uninstall' capability, and pending implementation of a
2235 mechanism for interpreting user specified options.
2237 2010-05-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2239 Correct handling for "%R" macro in relative sysroot path specs.
2241 * src/tarproc.cpp (pkgTarArchiveProcessor): In constructor, expand the
2242 sysroot path specification a second time, to capture the effect of any
2243 embedded macros, before computing the recorded `sysroot_len' value.
2245 2010-05-05 Keith Marshall <keithmarshall@users.sourceforge.net>
2247 Handle "%" wildcard matches in package and subsystem version strings.
2249 * src/pkgbase.h (pkgSpecs): Forward declare it.
2250 (pkgActionItem::~pkgActionItem): Declare explicit destructor.
2251 (pkgActionItem::SetRequirements): Add extra `pkgSpecs*' argument;
2252 update references, passing additional argument in...
2254 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): ...this.
2256 * src/pkgexec.cpp (pkgActionItem::~pkgActionItem): Implement it.
2257 (pkgActionItem::SetRequirements): Delete obsolete implementation.
2259 * src/pkginfo/pkginfo.h: Update copyright notice; add year 2010.
2260 (pkgSpecs::GetTarName): New public method; declare it.
2261 (pkgSpecs::SetProperty): New private method; declare it.
2262 (pkgSpecs::SetPackageName): New inline method; implement it.
2263 (pkgSpecs::SetPackageVersion, pkgSpecs::SetPackageBuild): Likewise.
2264 (pkgSpecs::SetSubSystemName, pkgSpecs::SetSubSystemVersion): Likewise.
2265 (pkgSpecs::SetSubSystemBuild, pkgSpecs::SetReleaseStatus): Likewise.
2266 (pkgSpecs::SetReleaseIndex, pkgSpecs::SetComponentClass): Likewise.
2267 (pkgSpecs::SetComponentVersion, pkgSpecs::SetPackageFormat): Likewise.
2268 (pkgSpecs::SetCompressionType): Likewise.
2270 * src/pkginfo/pkginfo.l: Update copyright notice; add year 2010.
2271 (TRANS): Interpret "%" as wildcard in version string matches.
2273 * src/pkgreqs.cpp: New file.
2274 (pkgActionItem::SetRequirements): Reimplement per new declaration;
2275 it now always allocates heap memory for requirements specifications.
2276 (pkgSpecs::GetTarName, pkgSpecs::SetProperty): Implement them.
2278 * Makefile.in (CORE_DLL_OBJECTS): Add `pkgreqs.$(OBJEXT)'.
2280 2010-04-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2282 Revert 2010-04-04 refactoring of tarproc.cpp and tarinst.cpp
2284 * src/tarinst.cpp: File removed; its content merged into...
2285 * src/tarproc.cpp: ...this; it cannot be cleanly separated out.
2287 * Makefile.in (tarinst.$OBJEXT): Remove reference.
2289 2010-04-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2291 Handle "*" wildcard matches in package and subsystem version strings.
2293 * src/vercmp.h (pkgVersionInfo::version_string): New private member
2294 variable; it stores a pointer to a dynamically allocated local copy of
2295 the invariant `version' argument, to facilitate correct parsing.
2296 (pkgVersionInfo::build_string): Likewise; it provides similar handling
2297 for the invariant `build' argument.
2298 (pkgVersionInfo::Free): New private inline method; it provides a NULL
2299 pointer safe wrapper, calling the C library `free()' function, (since
2300 some implementations are believed to be unsafe); it is used by...
2301 (pkgVersionInfo::~pkgVersionInfo): ...this new inline destructor, to
2302 release the memory allocated by the constructor, for `version_string'
2305 * src/vercmp.cpp (pkgVersionInfo::pkgVersionInfo): Allocate memory for
2306 `version_string' and `build_string', as required; populate it.
2307 Explicitly handle "*" as a `match anything' wildcard...
2308 (pkgVersionInfo::Compare): ...matching it as `equal' to everything.
2310 2010-04-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2312 Correct omission from configure script prerequisite checks.
2314 * aclocal.m4 (MINGW_AC_OUTPUT): New macro; it wraps AC_OUTPUT itself,
2315 adding a trap to force an abort if any preceding prerequisite check
2316 was handled by MINGW_AC_ASSERT_MISSING.
2318 * configure.ac: Qualify package component types, in prerequisite
2319 checks handled by MINGW_AC_ASSERT_MISSING; invoke MINGW_AC_OUTPUT
2320 in place of AC_OUTPUT.
2322 2010-04-17 Keith Marshall <keithmarshall@users.sourceforge.net>
2324 Add configure script checks for prerequisite library headers.
2325 (Thanks to Cesar Strauss for proposing a rudimentary implementation).
2327 * aclocal.m4: New file; it does no more than include...
2328 * m4/missing.m4: ...this; new file incorporated from build-aux module.
2330 * configure.ac: Add AC_CHECK_HEADER assertions for...
2331 (zlib.h, bzlib.h, lzma.h): ...these; invoke MINGW_AC_ASSERT_MISSING in
2332 respect of each failing assertion.
2334 2010-04-17 Keith Marshall <keithmarshall@users.sourceforge.net>
2336 Case-insensitive subsystem name matching revisited.
2338 * src/pkgfind.cpp (pkgXmlDocument::FindPackageByName): Use...
2339 (subsystem_strcmp): ...this to match subsystem names, instead of...
2340 (match_if_explicit): ...this.
2342 2010-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2344 Enable recursive processing of repository package lists.
2346 * src/pkgbase.h (pkgXmlDocument::SyncRepository): Make it public.
2348 * src/pkgbind.cpp (pkgRepository): New locally defined and implemented
2349 class; it facilitates recursive loading and parsing of package lists,
2350 replacing much of the original non-recursive functionality within...
2351 (pkgXmlDocument::BindRepositories): ...this; use it.
2353 2010-04-04 Keith Marshall <keithmarshall@users.sourceforge.net>
2355 Implement installer function; use per-package file manifests.
2357 * src/pkgproc.h (pkgManifest): New class; declare it.
2358 (pkgArchiveProcessor::origin): New protected member variable.
2359 (pkgArchiveProcessor::sysroot_len): New protected member variable.
2360 (pkgArchiveProcessor::installed): Type changed to `pkgManifest *'.
2361 (pkgTarArchiveInstaller::Process): Declare specialisation hook.
2362 (pkgTarArchiveInstaller::UpdateInstallationManifest): Disused member
2363 function; remove redundant declaration from class definition.
2364 (pkgInstall): New generalised installation function; declare it.
2365 (pkgRegister): New function; declare it.
2367 * src/pkginst.cpp: New file.
2368 (pkgManifest, pkgInstall, pkgRegister): Implement them.
2370 * src/pkgexec.cpp (pkgActionItem::Execute): Use `pkgInstall' in place
2371 of stub formerly provided here.
2373 * src/pkgkeys.h (manifest_key, reference_key): New keys; declare them.
2374 * src/pkgkeys.c (manifest_key, reference_key): Implement them.
2376 * src/tarproc.cpp: Code refactored.
2377 (pkgTarArchiveProcessor::sysroot_len): Initialise it.
2378 (pkgTarArchiveProcessor::origin): Initialise it.
2379 (pkgTarArchiveProcessor::installed): Initialise; associate it with a
2380 pkgManifest class entity, and populate this as appropriate.
2381 (pkgTarArchiveProcessor::~pkgTarArchiveProcessor): Add explicit clean
2382 up of linked `pkgManifest *' entity referenced by `installed'.
2383 (pkgTarArchiveProcessor::Process) [TAR_ENTITY_TYPE_DIRECTORY]: Add
2384 braces to demarcate localised inner scope of string scan for removal
2385 of trailing directory name separators; (thanks to Cesar Strauss for
2386 reporting invalid local pointer declaration error in GCC >= 4.4).
2387 (pkgTarArchiveInstaller::UpdateInstallationManifest): Deleted.
2388 (pkgTarArchiveInstaller::pkgTarArchiveInstaller): Factor out.
2389 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
2390 (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
2391 (commit_saved_entity): Likewise.
2393 * src/tarinst.cpp: New file; it implements...
2394 (pkgTarArchiveInstaller::Process): ...this new specialisation
2395 of the original pkgTarArchiveProcessor::Process method...
2396 (pkgTarArchiveInstaller::pkgTarArchiveInstaller): ...and this
2397 refactored code, abstracted from src/tarproc.cpp and modified to
2398 use the pkgManifest class for installation tracking.
2399 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
2400 (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
2401 (commit_saved_entity): Relocated from src/tarproc.cpp.
2403 * Makefile.in (CORE_DLL_OBJECTS): Add...
2404 (pkginst.OBJEXT, tarinst.OBJEXT): ...these new object files.
2406 2010-03-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2408 Guard against NULL pointer dereferences in tinyxml code.
2410 * src/pkgbase.h (pkgXmlNode::GetName): Verify `this' pointer is
2411 non-NULL, before invoking the underlying tinyxml method.
2412 (pkgXmlNode::GetParent, pkgXmlNode::GetChildren): Likewise.
2413 (pkgXmlNode::GetNext, pkgXmlNode::GetPropVal): Likewise.
2414 (pkgXmlNode::AddChild, pkgXmlNode::DeleteChild): Likewise.
2415 (pkgXmlNode::GetDocumentRoot): Likewise.
2416 (pkgXmlNode::IsElementOfType): Likewise.
2418 2010-03-28 Cesar Strauss <cestrauss@gmail.com>
2420 Avoid running InternetAttemptConnect in pkgInternetAgent
2421 constructor, since it is called during DLL initialisation.
2423 * src/pkginet.cpp (pkgInternetAgent::pkgInternetAgent): Move the
2424 InternetAttemptConnect call from constructor...
2425 (pkgInternetAgent::OpenURL): ...to here.
2427 2010-03-23 Keith Marshall <keithmarshall@users.sourceforge.net>
2429 Automate object code dependency tracking.
2431 * Makefile.in (DEPFLAGS): New macro; define it.
2432 (%.OBJEXT: %.c, %.OBJEXT: %.cpp): Add dependency generator commands...
2433 (%.d): ...to create these dependency maps; `sinclude' them, and...
2434 (clean): ...remove them.
2436 * .cvsignore (*.d): Add wild card template to match them.
2438 2010-03-22 Keith Marshall <keithmarshall@users.sourceforge.net>
2440 Support case insensitive matching for file and subsystem names.
2442 * src/pkgbase.h (safe_strcmp): New inline function; it provides NULL
2443 argument safe comparison of strings, returning the boolean inverse of
2444 the `strcmp' result, using either case-sensitive or case-insensitive
2445 semantics; derive it from...
2446 (match_if_explicit): ...this; redefine as macro; invoke `safe_strcmp'
2447 using explicitly case-sensitive semantics.
2448 (subsystem_strcmp): New macro; it invokes `safe_strcmp' with either
2449 case-sensitive or case-insensitive semantics, depending on...
2450 (CASE_INSENSITIVE_SUBSYSTEMS): ...this new context selection macro; it
2451 fixes the choice between case-sensitive and case-insensitive matching
2452 semantics for any given implementation, at compile time.
2453 (pkg_strcmp): New macro; it invokes `safe_strcmp' with either
2454 case-sensitive or case-insensitive semantics, depending on...
2455 (CASE_INSENSITIVE_FILESYSTEM): ...this new context selection macro; it
2456 fixes the choice between case-sensitive and case-insensitive matching
2457 semantics for any given implementation, at compile time.
2459 * src/sysroot.cpp (pkgXmlNode::GetSysRoot): Use `subsystem_strcmp'.
2461 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
2463 Add preliminary support for virtual packages.
2465 * src/pkgkeys.h (yes_value, no_value): Redefine as aliases...
2466 (value_yes, value_no): ...for these new global strings; declare them.
2467 (value_none, value_virtual): New global strings; declare them.
2469 * src/pkgkeys.c (yes_value, no_value): Rename...
2470 (value_yes, value_no): ...to implement these, respectively.
2471 (value_none, value_virtual): Implement them.
2473 * src/pkgname.cpp (pkgXmlNode::ArchiveName): Check containing package
2474 node for `class' attribute set to `value_virtual'; if present, always
2475 return the effective `tarname' property as `value_none'.
2477 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): For packages
2478 with an effective `tarname' of `value_none', do not download anything.
2480 * src/pkgexec.cpp (pkgActionItem::Execute): For packages with an
2481 effective `tarname' of `value_none', do not invoke any tar archive
2482 processing function.
2484 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
2486 Don't write installation records for unavailable packages.
2488 * src/tarproc.cpp (pkgTarArchiveInstaller): In constructor, ensure
2489 archive is ready for processing, before initialising an installation
2492 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
2494 Rationalise path identification for XML file locations.
2496 * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Use `xmlfile()'
2497 function to locate `sysroot' map file; free memory when done.
2498 (pkgXmlDocument::UpdateSystemMap): Likewise.
2499 (sigpath): Static global variable disused; delete it.
2501 2010-03-01 Keith Marshall <keithmarshall@users.sourceforge.net>
2503 Extend package name search to include component packages.
2505 * src/pkgfind.cpp (pkgHasMatchingName): Remove; fold it into...
2506 (pkgXmlNode::FindPackageByName): ...this; augment to extend search
2507 within package definition elements, seeking a potential match on an
2508 included component package name or component class-implied name.
2510 * src/pkgkeys.h (class_key): New global string constant; declare it.
2511 * src/pkgkeys.c (class_key): Implement it.
2513 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
2515 Bump version for next release cycle.
2517 * configure.ac (AC_INIT): Bump version suffix to alpha-2.
2519 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
2521 mingw-get-0.1-mingw32-alpha-1 released.
2523 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
2525 Prepare initial package release.
2527 * README: New file; use it to source release notes.
2529 * Makefile.in (SRCDIST_FILES): Use ...
2530 (LICENCE_FILES): ...this new macro; define it.
2531 (licdist): New build goal; implement it.
2532 (bindist): Require it; add alternative `zip' format package.
2534 * xml/profile.xml (repository): Set default `package-index' name.
2535 (system-map): Normalise spelling for default `sysroot' path names.
2537 2010-02-10 Keith Marshall <keithmarshall@users.sourceforge.net>
2539 Add directory/file records in installation manifests.
2541 * src/pkgkeys.h (dirname_key, filename_key): New strings; declare...
2542 * src/pkgkeys.c (dirname_key, filename_key): ...and implement them.
2544 * src/pkgproc.h (pkgArchiveProcessor::installed): New class member
2545 variable; declare it.
2546 (pkgTarArchiveInstaller::UpdateInstallationManifest): New method;
2549 * src/tarproc.cpp: Miscellaneous comment updates.
2550 (pkgTarArchiveInstaller): In constructor...
2551 (pkgTarArchiveInstaller::installed): ...use new member variable...
2552 (pkgArchiveProcessor::installed): ...inherited from this.
2553 (pkgTarArchiveInstaller::UpdateInstallationManifest): Implement and...
2554 (pkgTarArchiveInstaller::ProcessDataStream): ...use it.
2555 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
2557 2010-02-06 Keith Marshall <keithmarshall@users.sourceforge.net>
2559 Work around a deficiency in Microsoft's stat() implementation.
2561 * src/tarproc.cpp (pkgTarArchiveProcessor::ProcessDirectory): Don't
2562 pass a `pathname' argument with trailing slashes; strip them off.
2564 2010-02-06 Keith Marshall <keithmarshall@users.sourceforge.net>
2566 Add machinery for installation and packaging for distribution.
2568 * install-sh: New file; source it from autoconf distribution.
2570 * configure.ac (AC_PREFIX_DEFAULT): Assign it as `C:/MinGW'.
2571 (AC_PROG_MKDIR_P, AC_PROG_INSTALL, AC_PROG_LN_S): Invoke these.
2572 (STRIP): New output variable; use AC_CHECK_TOOL to define it.
2574 * Makefile.in (abs_top_srcdir): Define to AC_SUBST value.
2575 (PACKAGE_TARNAME, PACKAGE_VERSION): Define to AC_SUBST values.
2576 (prefix, exec_prefix, bindir, libexecdir, localstatedir): Likewise.
2577 (INSTALL, INSTALL_PROGRAM, INSTALL_SCRIPT, INSTALL_DATA): Likewise.
2578 (STRIP): New macro; define it using AC_CHECK_TOOL substitution.
2579 (mkinstalldirs): New macro; define it as AC_PROG_MKDIR_P result.
2580 (LN_S): New macro; define it as AC_PROG_LN_S result.
2581 (dist, srcdist, bindist): New build objectives; implement them.
2582 (install, installdirs, install-strip, maintainer-clean): Likewise.
2583 (SRCDIST_FILES, SRCDIST_SUBDIRS): New macros; define them.
2584 (PACKAGE_DISTNAME, PACKAGE_DISTVERSION): Likewise.
2585 (PACKAGE_DISTROOT, PACKAGE_ROOTVERSION): Likewise.
2586 (PACKAGE_CONFIG_DIR): Likewise.
2588 2010-02-02 Keith Marshall <keithmarshall@users.sourceforge.net>
2590 Implement package installer for tar archives.
2592 * src/pkgexec.cpp (pkgXmlDocument::Execute): Replace existing
2593 stub implementation of installer, using methods provided by...
2594 * src/pkgproc.h, src/tarproc.cpp: ...these new files, with trap...
2595 * src/pkgdeps.cpp (pkgXmlDocument::Schedule) [installed]: Add entry...
2596 (pkgActionItem::Selection) [to_remove]: ...for this; use it to detect
2597 `install' requests for packages which are aleady installed.
2599 * Makefile.in (CORE_DLL_OBJECTS): Add tarproc.$(OBJEXT); specify
2600 dependencies as appropriate.
2602 * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Don't commit
2603 newly created `sysroot' mapping records to disk; defer to...
2604 (pkgXmlDocument::UpdateSystemMap): ...this new method.
2605 (sigpath): Make it a global variable, with file (static) scope.
2607 * src/climain.cpp (pkgXmlDocument::UpdateSystemMap): Invoke it.
2609 * src/pkgkeys.h (download_key, modified_key, source_key): New global
2610 string variables; declare them, providing their implementations...
2611 * src/pkgkeys.c (download_key, modified_key, source_key): ...here.
2612 * src/pkgname.cpp (download_key, source_key): Use them.
2614 * src/pkginet.cpp (pkgActionItem::ArchivePath): Delete; replace...
2615 * src/mkpath.c (pkgArchivePath): ...with this free standing function.
2616 * src/mkpath.h (pkgArchivePath): Declare its prototype.
2618 * src/pkgbase.h (pkgActionItem::ArchivePath): Delete declaration.
2619 (pkgXmlDocument): Add a default constructor; implement as `inline'.
2620 (pkgXmlDocument::AddDeclaration): Use heap memory to allocate the new
2621 declaration object, instead of `auto' variable, to avoid scope error.
2622 (pkgXmlDocument::UpdateSystemMap): Declare it.
2624 2010-01-26 Keith Marshall <keithmarshall@users.sourceforge.net>
2626 Implement rudimentary dependency resolver.
2628 * src/pkgdeps.cpp: New file.
2630 * Makefile.in (CORE_DLL_OBJECTS): Add pkgdeps.$(OBJEXT) reference;
2631 establish header file dependencies.
2633 * src/pkgbase.h (to_remove, to_install, selection_types): New enum.
2634 (pkgActionItem::selection): Extend it to store as enumerated pair...
2635 (pkgActionItem::SelectPackage): New inline method; assign them.
2636 (pkgActionItem::Selection): New inline method; retrieve them.
2637 (pkgXmlNode::GetInstallationRecord): New method; declare it.
2639 * src/pkgexec.cpp (pkgActionItem): In constructor...
2640 (selection): ...initialise both references in enumerated pair.
2641 (pkgActionItem::GetReference): Use `Selection()' method.
2642 (pkgActionItem::SelectIfMostRecent): Ditto; also correct logic for
2643 making selection, and assign to `to_install' element.
2644 (pkgXmlDocument::Schedule): Don't update `request'.
2645 (pkgActionItem::Execute): Implement as stub.
2647 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): Use new
2648 `Selection()' method.
2650 * src/pkgkeys.h (yes_value, no_value): Declare new string constants.
2651 * src/pkgkeys.c (yes_value, no_value): Implement them.
2653 * src/vercmp.cpp: Update copyright notice.
2654 (pkgVersionInfo::operator<=): Bug fix; must test for `<', but had `>'.
2656 2010-01-23 Keith Marshall <keithmarshall@users.sourceforge.net>
2658 Avoid segmentation faults when processing invalid data streams.
2660 * src/pkgstrm.h: Update copyright notice.
2661 (pkgArchiveStream::IsReady): New pure virtual method.
2662 (pkgRawArchiveStream::IsReady): Provide inline implementation.
2663 (pkgGzipArchiveStream::IsReady): Likewise.
2664 (pkgBzipArchiveStream::IsReady): Likewise.
2665 (pkgLzmaArchiveStream::IsReady): Likewise.
2666 (pkgXzArchiveStream::IsReady): Likewise.
2668 * src/pkgstrm.cpp: Update copyright notice.
2669 (pkgLzmaArchiveStream, pkgXzArchiveStream) [fd == -1]: Decline to
2670 perform any form of read or decode processing.
2672 * src/pkginet.cpp (pkgInternetLzmaStreamingAgent): Use `fd = -2' as
2673 pseudo-descriptor for the pkgLzmaArchiveStream derived component of
2674 this internet data streaming class.
2676 2010-01-23 Keith Marshall <keithmarshall@users.sourceforge.net>
2678 Require liblzma >= liblzma-4.999.9beta_20091209-3-mingw32-dev
2680 * src/pkgstrm.h (LZMA_API_STATIC): Remove definition and associated
2681 comment; it was required to permit, (but not to enforce), linking to
2682 the static liblzma.a library, with earlier beta releases, but this
2683 anomaly has now been corrected.
2685 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
2687 Remove zlib sources from trunk.
2688 (Application builders should use free standing implementation of
2689 zlib, from MinGW's package distribution page on SourceForge).
2691 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
2693 Remove bzip2 sources from trunk.
2694 (Application builders should use free standing implementation of
2695 bzip2, from MinGW's package distribution page on SourceForge).
2697 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
2699 Add subsystem specific sysroot mapping facility.
2701 * src/pkghash.c: New file; required by...
2702 * src/sysroot.cpp: New file; it implements...
2703 (pkgXmlDocument::LoadSystemMap, pkgXmlNode::GetSysRoot): New methods.
2705 * src/pkgbase.h: Update copyright notice.
2706 (pkgXmlDocument::LoadSystemMap): Declare it.
2707 (pkgXmlDocument::AddDeclaration): New inline method.
2708 (pkgXmlDocument::SetRoot, pkgXmlDocument::Save): Likewise.
2709 (pkgXmlNode::GetSysRoot): Declare it.
2710 (pkgXmlNode::GetDocumentRoot): New inline method.
2711 (pkgXmlNode::AddChild, pkgXmlNode::DeleteChild): Likewise.
2713 * src/climain.cpp: Update copyright notice.
2714 (climain): Invoke pkgXmlDocument::LoadSystemMap() as required.
2716 * Makefile.in (CORE_DLL_OBJECTS): Add ...
2717 (pkghash.$(OBJEXT), sysroot.$(OBJEXT)): ...these; upate dependencies.
2718 (DEBUGLEVEL): New macro; define it.
2721 2010-01-16 Keith Marshall <keithmarshall@users.sourceforge.net>
2723 Assign standardised keys for XML database lookup.
2725 * src/pkgkeys.h: New file; provide public key declarations.
2726 * src/pkgkeys.c: New file; implement them.
2728 * src/pkgbind.cpp: Use them; update copyright notice.
2729 * src/pkgexec.cpp, src/pkgfind.cpp, src/pkginet.cpp: Likewise.
2730 * src/pkgname.cpp, src/pkgspec.cpp: Likewise.
2732 * Makfile.in (CORE_DLL_OBJECTS): Add pkgkeys.$(OBJEXT); update all
2733 dependencies accordingly.
2735 2010-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
2737 Add CLI version reporting option.
2739 * configure.ac: Update copyright notice for new year.
2740 (COPYRIGHT_HOLDER): New AC_SUBST variable; define it.
2741 (YEARS_OF_ISSUE): New AC_SUBST variable; define it.
2742 (AC_CONFIG_FILES): Add `version.c'; source it from...
2744 * version.c.in: ...this new file.
2746 * Makefile.in: Update copyright notice for new year.
2747 (mingw-get$(EXEEXT)): Add dependency on `version.$(OBJEXT)'.
2748 (distclean): Add `version.c'.
2750 * configure: Regenerated.
2752 * src/clistub.c: Update copyright notice for new year.
2753 (options): New array of `struct option'; define and use it as the
2754 reference for `argv' parsing with `getopt_long_only()'.
2756 2009-12-17 Keith Marshall <keithmarshall@users.sourceforge.net>
2758 Add CLI support for "update" action.
2760 * src/pkgtask.h (ACTION_UPDATE): Define it, derived from...
2761 (action_update): ...this new entry in anonymous enumeration.
2763 * src/pkgexec.cpp (action_name): Add "update" keyword identification.
2765 * src/pkgbase.h: Typo in comment; s/xwXmlDocument/wxXmlDocument/.
2766 (pkgXmlDocument::BindRepositories): Add `force_update' parameter...
2767 * src/pkgbind.cpp (pkgXmlDocument::BindRepositories): Use it to...
2768 (pkgXmlDocument::SyncRepository): ...invoke this method when passed as
2769 a `true' flag, in addition to (as previously) first time reference.
2771 * src/climain.cpp (climain): Interpret "update" keyword for...
2772 [ACTION_UPDATE]: ...passing state as `force_update' parameter to...
2773 (pkgXmlDocument::BindRepositories): ...this method, then...
2774 [!ACTION_UPDATE]: Follow with normal action processing.
2776 2009-12-16 Keith Marshall <keithmarshall@users.sourceforge.net>
2778 Add status checking for Internet URL connections.
2780 * src/pkginet.cpp (pkgInternetAgent::QueryStatus): New method.
2781 (pkgInternetStreamingAgent::Get): Use it; set `dl_status' as return
2782 value, deferring failure diagnostics to callers, i.e. to...
2783 (pkgXmlDocument::SyncRepositories): ...this, and to...
2784 (pkgActionItem::DownloadArchiveFiles): ...this.
2786 2009-11-23 Keith Marshall <keithmarshall@users.sourceforge.net>
2788 Add package download and repository synchronisation machinery.
2790 * src/pkgstrm.h: New header file.
2792 * src/pkgbind.cpp, src/pkginet.cpp, src/pkgstrm.cpp,
2793 src/pkgfind.cpp, src/pkgname.cpp, src/keyword.c: New files.
2794 * Makefile.in (CORE_DLL_OBJECTS): Add build goals for them.
2796 * xml: New directory.
2798 * src/climain.cpp (climain): Establish repository bindings from...
2799 * xml/profile.xml: ...this new configuration file.
2801 2009-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
2803 Add XML database bindings and preliminary action executive for CLI.
2805 * src/pkgbase.h, src/pkgtask.h,
2806 src/mkpath.h, src/vercmp.h: New header files.
2808 * src/climain.cpp, src/pkgexec.cpp, src/pkgspec.cpp,
2809 src/mkpath.c, src/vercmp.cpp, src/xmlfile.c: New files.
2811 * Makefile.in (CORE_DLL_OBJECTS): Define initial set of files...
2812 (mingw-get-0.dll): ...build them into this new DLL target; add it...
2813 (all): ...as prerequisite for this primary build goal.
2815 2009-11-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2817 Avoid some potential GCC warnings.
2819 * src/clistub.c: Include process.h for `execv' prototype...
2820 (main): Cast `argv' to appropriately matched type when calling it.
2822 * src/pkginfo/driver.c: Include stdlib.h for `free' prototype.
2824 2009-11-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2826 Create diagnostic message handler for CLI usage.
2828 * src/dmh.h: New header file; it defines the public interface.
2829 * src/dmh.cpp: New file; it implements the message handler.
2831 2009-11-05 Keith Marshall <keithmarshall@users.sourceforge.net>
2833 Correct some identified TinyXML issues.
2835 * tinyxml/tinyxml.h (IsWhiteSpace): Add FIXME annotation to flag
2836 probable redundancy of checks for '\n' and '\r'.
2837 * tinyxml/tinyxmlparser.cpp: Revert John E's 2008-08-09 change; remove
2838 all such redundancies in IsWhiteSpace() calls throughout.
2840 * tinyxml/tinyxml.cpp (TiXmlAttribute::SetDoubleValue): Correct format
2841 specification in sprintf()/snprintf() calls; "%lf" is invalid; replace
2844 2009-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2846 Add CLI loader stub.
2848 * src/clistub.c: New file.
2849 * Makefile.in: Add build rule for it; build as...
2850 (mingw-get.exe): ...this; also add to...
2851 (clean): ...this goal.
2853 2009-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2855 Set up build mechanism.
2857 * configure.ac, Makefile.in: New files.
2858 * .cvsignore (configure, autom4te.cache): Add to ignored files.
2860 2009-10-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2862 Add GPL-v3 licensing terms.
2864 * COPYING: New file, sourced from gnu.org.
2866 2009-10-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2868 Add pkginfo implementation.
2870 * src, src/pkginfo: New directories.
2871 * src/pkginfo/pkginfo.h, src/pkginfo/pkginfo.l: New files.
2872 * src/pkginfo/driver.c: New file.
2874 2009-10-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2878 * All files (tdm-branch): Assign new branch tag.
2879 * All top-level files: Remove from trunk.
2880 * ChangeLog: New file.