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