1 2017-09-05 Keith Marshall <keith@users.osdn.me>
3 mingw-get-0.6.3-mingw32-pre-20170905-1 posted on OSDN.net
5 * All files (r0-6-3-beta-20170905-1): Tag assigned.
7 2017-09-04 Keith Marshall <keith@users.osdn.me>
9 Improve probability of establishing successful URL connections.
11 * src/pkginet.cpp (pkgInternetAgent::OpenURL): Add...
12 (INTERNET_FLAG_KEEP_CONNECTION, INTERNET_FLAG_IGNORE_CERT_CN_INVALID)
13 (INTERNET_FLAG_IGNORE_CERT_DATE_INVALID, INTERNET_FLAG_PRAGMA_NOCACHE)
14 (INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTPS)
15 (INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTP): ...these flags, when calling
16 the InternetOpenUrl() function.
18 2017-09-01 Keith Marshall <keith@users.osdn.me>
20 Increment version for first OSDN hosted release.
22 * VERSION.m4 (VERSION_PATCH): Increment to 3; thus...
23 (__VERSION__): ...this is auto-incremented to 0.6.3
25 2013-11-26 Keith Marshall <keithmarshall@users.sourceforge.net>
27 Conflate name and class columns in GUI package list.
29 * src/pkglist.cpp (AppWindowMaker::InitPackageListView): Remove...
30 <ID_PKGTYPE_COLUMN_HEADING>: ...column with this heading; add its width
31 allocation to the original pixel count alloted for the width of...
32 <ID_PKGNAME_COLUMN_HEADING>: ...this column.
33 (pkgListViewMaker::UpdateItem): Conflate content of original name and
34 class columns into first column; renumber successive columns.
36 2013-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
38 Don't attempt to resolve dependencies for unidentified packages.
40 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
41 [selected == NULL]: Current dependency is unresolved; do not make any
42 recursive call for this unidentified requirement. This avoids posting
43 misleading "can't get 'tarname' for non-release element <<<unknown>>>"
44 diagnostic messages, where the subsequent "unresolved dependency"
45 message is sufficient; include dmhmsgs.h, and add...
46 (PKGMSG_SPECIFICATION_ERROR): ...this preamble instead.
48 2013-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
50 Implement foundation for future NLS enabled diagnostics.
52 * src/dmhmsgs.h: New file; it declares the NLS capable DMH interface.
53 * src/dmhmsgs.c: New file; it implements rudimentary NLS hooks, (but
54 currently does not direct them to any NLS provider), together with an
55 initial subset of a default (compiled in) message catalogue.
57 * Makefile.in (CORE_DLL_OBJECTS): Add dmhmsgs.$OBJEXT
59 * src/pkgname.cpp (pkgArchiveName): Modify diagnostics, to use...
60 (PKGMSG_SPECIFICATION_ERROR): ...this dmhmsgs.h declared message.
62 2013-10-15 Keith Marshall <keithmarshall@users.sourceforge.net>
64 Add automated build time configuration management.
66 * Makefile.in (Makefile): Add regeneration rules, depending on...
67 (VERSION.m4, configure.ac, aclocal.m4, missing.m4, makeopts.m4):
68 ...these, if modified by the package maintainer, directed via...
69 (config.status, configure): ...these, regenerated as required.
71 2013-10-04 Keith Marshall <keithmarshall@users.sourceforge.net>
73 mingw-get-0.6.2-mingw32-beta-20131004-1 released.
75 * VERSION.m4 (VERSION_PATCH): Increment it.
76 * srcdist-doc/NEWS.in: Release notes updated.
77 * All files (r0-6-2-beta-20131004-1): Tag assigned.
79 2013-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
81 Propagate RELEASE_CLASS setting from mingw-get-setup.
83 * configure.ac (CLI_RELEASE_CLASS, GUI_RELEASE_CLASS): Adopt...
84 (RELEASE_CLASS) [defined]: ...this as default value.
86 2013-10-02 Keith Marshall <keithmarshall@users.sourceforge.net>
88 Support group affiliation with component package granularity.
90 * src/pkglist.cpp (pkgXmlNode::IsVisibleClass): Make it synonymous
91 with IsVisibleGroupMember(); this is a temporary adjustment, pending
92 the planned implementation of component class visibility filtering.
93 (pkgListViewMaker::Dispatch): Defer consideration of visibility until
94 traversal of component package directories, except in the particular
95 case of packages which lack defined components.
97 2013-10-01 Keith Marshall <keithmarshall@users.sourceforge.net>
99 Correct processing of package group associations.
101 * src/pkgtree.cpp (AppWindowMaker::IsPackageGroupAffiliate): Iterate
102 over "affiliate_key" elements in FindNextAssociate() calls; original
103 implementation was incorrectly iterating over "group_key" elements.
105 2013-09-21 Keith Marshall <keithmarshall@users.sourceforge.net>
107 Reorder controls within "Apply Changes" dialogue.
109 * src/guimain.rc (IDD_APPLY_APPROVE): Move definition of the "Okay to
110 proceed?" GROUPBOX, and its contained PUSHBUTTONs, to the top; we want
111 it to get the default focus.
113 2013-09-21 Keith Marshall <keithmarshall@users.sourceforge.net>
115 Reimplement wsh.lua in C/C++; (cf. MinGW-Bug #2057).
117 * src/pkgexec.cpp (LUA_INLINE): New function attribute definition.
118 (init_lua_path): Use it, reproducing the original function attributes.
119 (lua_isstringarg): New LUA_INLINE helper function; implement it.
120 (lua_wsh_libexec_path): New function; it implements wsh.libexec_path
121 (lua_wsh_execute): New function; it implements wsh.execute
122 (luaload_wsh): New function; it wraps references to lua_wsh_execute()
123 and lua_wsh_libexec_path() to provide the wsh module implementation.
124 (pkgXmlNode::DispatchScript): Preload it into the Lua interpreter.
126 * scripts/libexec/setup.lua (M.argwrap): New method; implement it.
127 (M.shlink, M.unlink): Use it to collect their arguments into a single
128 string, to be passed as the command to be invoked by wsh.execute
130 * scripts/libexec/wsh.lua: File is no longer required; delete it.
131 * Makefile.in (LIBEXEC_SCRIPTS): Remove reference to it.
133 2013-09-20 Keith Marshall <keithmarshall@users.sourceforge.net>
135 Establish default preferences for GUI; (cf. MinGW-Feature #2036)
137 * src/pkgbase.h (pkgXmlDocument::EstablishPreferences): Adjust its
138 prototype; add argument identifying prospective client classification.
140 * src/pkgopts.cpp (client_key): New XML property keyword; define it.
141 (pkgXmlDocument::EstablishPreferences): Implement filter, based on new
142 client classification argument, to restrict preference selection to a
143 matching client class specification.
145 * src/climain.cpp (dbase.EstablishPreferences): Filter on class "cli".
146 * src/guiexec.cpp (pkgData->EstablishPreferences): Likewise, on "gui".
148 * xml/profile.xml (preferences): Add client="cli" attribute for the
149 existing specification; add another for client="gui".
151 2013-09-20 Keith Marshall <keithmarshall@users.sourceforge.net>
153 Force canonical comparison of shell links; (cf. MinGW-Bug #2054)
155 * scripts/libexec/unlink.js [FileExists(filename) && (chklink != "")]:
156 The value of 'chklink' may not be canonical; instantiate an (unsaved)
157 link reference from it, then compare the canonicalized reference from
158 within it, to the reference within 'filename', thus avoiding possible
159 lexical mismatch between canonical and non-canonical forms.
161 2013-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
163 Correct LUA_PATH assignment for GUI; (cf. MinGW-Bug #2052)
165 * src/pkgexec.cpp (LUA_LIBEXEC_PATH): New manifest string; define it.
166 (init_lua_path) <LUA_PATH>: Use it; add guimain.exe app directory.
168 2013-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
170 Handle meta-package removal correctly; (cf. MinGW-Bug #2051)
172 * src/pkgunst.cpp (pkgRemove) [archive == none]: Ensure the pending
173 action flag is cleared; previously this was done during manifest clean
174 up, and since a meta-package has no manifest, it was overlooked.
176 2013-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
178 mingw-get-0.6.1-mingw32-beta-20130910-1 released.
180 * srcdist-doc/NEWS.in: Release notes updated.
181 * All files (r0-6-1-beta-20130910-1): Tag assigned.
183 2013-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
187 * src/dmhguix.cpp (DMH_PTY_GUARDBYTES): New manifest constant.
188 (dmhTypePTY::printf) [buffer full]: Use it; it defines a reserved byte
189 count, at end of buffer, where expansion or scroll out is triggered;
190 use memcpy() for scroll out, but avoid overlapping regions.
191 (dmhTypePTY::printf) [output == '\r']: Handle it.
193 * src/tarproc.cpp (create_output_stream): Improve diagnostic messages;
194 discriminate between file collision and other privilege violations.
195 (pkgArchiveProcessor::ExtractFile): Don't return a zero status code,
196 when the output stream could not be successfully opened, so that...
197 (pkgTarArchiveInstaller::ProcessDataStream): ...we may avoid writing a
198 spurious manifest entry here.
200 2013-09-06 Keith Marshall <keithmarshall@users.sourceforge.net>
202 Update version, pre-empting subsequent release.
204 * VERSION.m4 (VERSION_PATCH): Bump from zero to 1.
206 2013-09-04 Keith Marshall <keithmarshall@users.sourceforge.net>
208 mingw-get-0.6.0-mingw32-beta-20130904-1 released.
210 * srcdist-doc/NEWS.in srcdist-doc/README.in: Release notes updated.
211 * srcdist-doc/INSTALL.in: Installation instructions updated.
212 * All files (r0-6-0-beta-20130904-1): Tag assigned.
214 2013-08-26 Keith Marshall <keithmarshall@users.sourceforge.net>
216 Implement retry throttling for failed internet connections.
218 * src/pkginet.h (INTERNET_RETRY_ATTEMPTS): New macro; define it.
219 (INTERNET_RETRY_INTERVAL, INTERNET_DELAY_FACTOR): Likewise.
221 * src/pkginet.cpp (INTERNET_RETRY_REQUESTER): New typedef.
222 (pkgInternetAgent::connection_delay, pkgInternetAgent::delay_factor):
223 (pkgInternetAgent::retries, pkgInternetAgent::retry_interval): New
224 private member variables; declare them.
225 (pkgInternetAgent::OpenURL): Use them; they must be initialised by...
226 (pkgInternetAgent::SetRetryOptions): ...this new method; implement it.
227 (pkgActionItem::DownloadSingleArchive): Invoke it.
228 (pkgXmlDocument::SyncRepository): Likewise.
230 2013-08-24 Keith Marshall <keithmarshall@users.sourceforge.net>
232 Reassign default URL for download of setup tool components.
234 * aclocal.m4 (PACKAGE_DIST_DOMAIN, PACKAGE_DIST_DIR): New precious
235 variables; declare them as such, and assign default values by using...
236 (MINGW_AC_PACKAGE_DIST_URL): ...this new macro; implement it.
238 * configure.ac (MINGW_AC_PACKAGE_DIST_URL): Use it.
239 * Makefile.in (TAG_SCRIPT): Capture assigned URL; substitute it...
240 (PACKAGE_DIST_URL): ...for this replacement text marker...
241 * src/setup.rc (ID_DOWNLOAD_HOST_URI): ...here.
243 2013-08-21 Keith Marshall <keithmarshall@users.sourceforge.net>
245 Simplify guimain.exe duplicate instance prevention.
247 * src/guimain.cpp (WinMain): Delegate requisite checking to...
248 (WTK::RaiseAppWindow): ...this external toolkit function.
250 2013-08-13 Keith Marshall <keithmarshall@users.sourceforge.net>
252 Install licence as standard setup component.
254 * src/guimain.h src/setup.rc (ID_PACKAGE_GUI_DISTNAME): Macro
255 no longer required; delete definition.
257 * src/setup.cpp (pkgSetup::DoFirstTimeInstallation):
258 <pkgSetupAction> [ID_PACKAGE_GUI_DISTNAME]: Delete reference.
259 <pkgSetupAction> [ID_PACKAGE_BASE_DISTNAME]: Update reference; repeat
260 to explicitly address each of "bin", "gui", and "lic" components.
262 * Makefile.in (TAG_SCRIPT) [PACKAGE_GUI_DISTNAME]: Delete reference.
263 (TAG_SCRIPT) [PACKAGE_BASE_DISTNAME]: Redefine as template.
265 2013-08-13 Keith Marshall <keithmarshall@users.sourceforge.net>
267 More dialogue box adjustments.
269 * src/guimain.rc: Generally clean up white-space distribution.
270 (All dialogue templates): Use WS_TABSTOP consistently.
272 2013-08-13 Keith Marshall <keithmarshall@users.sourceforge.net>
274 Circumvent Windows-7 "Program Compatibility Assistant" misbehaviour.
276 * src/manifest.rc (assembly) <compatibility>: Add <supportedOS>
277 declarations for each of Vista, Win7, and (tentatively) Win8.
279 2013-07-30 Keith Marshall <keithmarshall@users.sourceforge.net>
281 Minor modification to "about" dialogue dismissal button.
283 * src/guimain.rc (IDD_HELP_ABOUT) <DEFPUSHBUTTON>: Change label text
284 to "Dismiss"; add WS_TABSTOP style.
286 2013-07-30 Keith Marshall <keithmarshall@users.sourceforge.net>
288 Match "about" dialogue caption to main window.
290 * src/guimain.rc (IDM_HELP_ABOUT) <MENUITEM>: Match it to...
291 (IDD_HELP_ABOUT) <CAPTION>: ...this; make it representative of...
292 (ID_MAIN_WINDOW_CAPTION): ...this.
294 2013-07-30 Keith Marshall <keithmarshall@users.sourceforge.net>
296 Implement "icon legend" display as "help" menu item.
298 * src/guimain.rc (IDM_HELP_LEGEND): Make menu item active; define
299 template for the dialogue box which it is to call out.
301 * src/guiexec.cpp (AppWindowMaker::OnCommand) [IDM_HELP_LEGEND]: New
302 case handler; implement dialogue box call out, as a variation on...
303 [IDM_HELP_ABOUT]: ...this; modify it accordingly.
305 2013-07-30 Keith Marshall <keithmarshall@users.sourceforge.net>
307 Avoid discarding pending changes when catalogue is updated.
309 * src/guimain.h (IDD_CONFIRMATION): New manifest constant; define it.
310 (AppWindowMaker::ConfirmActionDialogue): New static method; declare it.
311 (AppWindowMaker::ConfirmActionRequest): New method; declare it.
313 * src/guimain.rc (IDD_CONFIRMATION): Implement new dialogue template.
315 * src/guiexec.cpp (pkgConfirmAction, pkgConfirmActionClient): New
316 static variables; they are used as pseudo-arguments, together with...
317 (DIALOGUE_DISPATCH, DIALOGUE_RESPONSE, DIALOGUE_CHKSTATE): ...these
318 new macros; define them; they facilitate the implementation of...
319 (AppWindowMaker::ConfirmActionDialogue): ...this; implement it.
320 (AppWindowMaker::ConfirmActionRequest): Implement it; use it...
321 (AppWindowMaker::OnCommand) [IDM_REPO_UPDATE]: ...here, and...
323 * src/pkgdata.cpp (AppWindowMaker::OnClose): ...here.
325 2013-07-26 Keith Marshall <keithmarshall@users.sourceforge.net>
327 Make a minor GUI layout adjustment.
329 * src/pkgview.cpp (VSASH_INIT_POS): Increment from 0.30 to 0.35; this
330 sets the initial height of the package list pane to be 35% of the main
331 window height, which, at the default initial window size, neatly fits
332 the entire "Basic Setup" package group, without scrolling, on my
333 1366x768 pixel Win7-VM display.
335 2013-07-25 Keith Marshall <keithmarshall@users.sourceforge.net>
337 Implement setup tool installer "plugin".
339 * src/setup.h (SETUP_HOOK_RUN_INSTALLER): Define request code.
341 * src/dllhook.cpp (run_basic_system_installer): Implement handler...
342 (setup_hook) [SETUP_HOOK_RUN_INSTALLER]: ...and invoke it.
343 (setup_hook) [default]: Collect diagnostics in common message digest.
344 (AppWindowMaker::SetupHookInvoked): Define and initialise it; in this
345 context, which does not conflict with prior definition in guimain.exe,
346 it must always remain true.
348 * src/setup.cpp (SetupTool) [constructor]: Invoke...
349 (SetupTool::DispatchSetupHookRequest): ...this, on user's request...
350 (SETUP_HOOK_RUN_INSTALLER): ...with this action code; this replaces...
351 (SetupTool::RunInstalledProgram): ...one reference instance for this
352 external program fork, leaving only one such reference remaining;
353 declare it to be "inline".
355 * Makefile.in (GUIMAIN_LIB_OBJECTS): New macro; define it. It
356 abstracts a subset of the object modules originally enumerated...
357 (GUIMAIN_OBJECTS): ...here, whence use it; also incorporate into...
358 (SETUP_DLL_OBJECTS): ...this.
359 (SETUP_DLL_LIBS): Make it equivalent to...
360 (GUIMAIN_LIBS): ...this.
361 (mingw-get-setup-0.dll): Use...
362 (GUI_LDFLAGS): ...this, to specify linking options, rather than...
365 2013-07-25 Keith Marshall <keithmarshall@users.sourceforge.net>
367 Add "Basic Setup" as a built-in standard package group.
369 * src/guimain.h (AppWindowMaker::SetupToolInvoked): New private
370 static member variable; declare it.
372 * src/guimain.cpp (AppWindowMaker::SetupToolInvoked): Define and
373 initialise it; this instance is specific to guimain.exe, where it
374 must always remain false.
376 * src/pkgtree.cpp (PKG_AFFILIATE_ALL): New constant; define it.
377 (load_package_group_hierarchy): Use it to specify those groups which
378 have all packages as affiliates, rather than just first root group.
379 (group_attributes): New static inline function; implement it, then...
380 (is_affiliated) [PKG_AFFILIATE_ALL]: ...use it to identify groups
381 which are specified as having all packages as affiliates.
382 (AppWindowMaker::InitPackageTreeView): Construct a temporary XML
383 specification for the "Basic Setup" package group, thence add it to
384 the package tree view; mark it as default group selection when...
385 [AppWindowMaker::SetupToolInvoked]: ...this is true.
387 2013-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
389 Implement GUI filtering of package list by group selection.
391 * src/pkgbase.h (pkgXmlNode::IsVisibleGroupMember):
392 (pkgXmlNode::IsVisibleClass): New inline methods; declare them.
393 (pkgXmlNode::MapPackageGroupHierarchy): New inline method; declare it.
394 (pkgXmlNode::SetPackageGroupHierarchyMapper): Likewise; it sets up...
395 (pkgXmlNode::PackageGroupHierarchyMapper): ...this new private static
396 function pointer; declare it as a function reference, in terms of...
397 (pkgXmlNode::GroupHierarchyMapper): ...this new typedef; define it.
399 * src/guimain.h (AppWindowMaker::PackageTreeView): Make it static.
400 (AppWindowMaker::IsPackageGroupAffiliate): Declare new static method.
402 * src/pkgbind.cpp (pkgRepository::GetPackageList): Make it invoke...
403 (pkgXmlNode::MapPackageGroupHierarchy): ...this; implement it.
405 * src/pkglist.cpp (pkgXmlNode::IsVisibleGroupMember): Implement it.
406 (pkgXmlNode::IsVisibleClass): Likewise; just provide a stub, for now.
407 (pkgListViewMaker::Dispatch): Use them to filter package list content.
408 (AppWindowMaker::UpdatePackageList): Redraw main window when done.
410 * src/pkgtree.cpp [_WIN32_IE >= 0x0400]: Require this.
411 (AppWindowMaker::PackageTreeView): Define and initialise it.
412 (AppWindowMaker::InitPackageTreeView): Extend implementation; use...
413 (map_package_group_hierarchy_recursive, load package_group_hierarchy):
414 (is_existing_group, map_package_group_hierarchy): ...these; implement
415 them locally, as file scoped static helper functions.
416 (select_key): New static local string constant; define it.
417 (pkgInitCategoryTreeGraft): Use it; also have it invoke...
418 (pkgXmlNode::SetPackageGroupHierarchyMapper): ...this; implement it.
419 (AppWindowMaker::IsPackageGroupAffiliate): Implement it; it uses...
420 (is_affiliated, is_child_affiliate): ...these helpers; provide them as
421 locally implemented, file scoped static functions.
423 * src/pkgdata.cpp (AppWindowMaker::OnNotify): Add handler for...
424 [ID_PACKAGE_TREEVIEW && TVN_SELCHANGED]: ...this notification.
426 2013-07-12 Keith Marshall <keithmarshall@users.sourceforge.net>
428 Correct a static string buffer aliasing issue.
430 * src/setup.cpp (SetupTool::setup_dll): New inline method; it ensures
431 that the buffer within approot_path() refers to the setup helper DLL.
432 (SetupTool::InitialiseSetupHookAPI): Use it, when loading the DLL.
433 (SetupTool::SetupTool): Use it again, when subsequently calling...
434 (_wunlink): ...this; it is now the preferred API, replacing...
435 (DeleteFileW): ...this; do not blindly assume that...
436 (SetupTool::dll_name): ...this remains unchanged between references;
437 it is an alias for the static buffer within approot_path().
439 2013-07-12 Keith Marshall <keithmarshall@users.sourceforge.net>
441 Add a custom profile for use by the setup tool.
443 * xml/setup.xml: New file.
445 2013-07-03 Keith Marshall <keithmarshall@users.sourceforge.net>
447 Improve handling of workspace clean-up requests.
449 * Makefile.in (mostlyclean): New rule; it replaces...
450 (clean): ...original intent delegated to 'mostlyclean'; retained and
451 augmented to remove all content specified by 'mostlyclean', plus...
452 (version.c, verinfo.h): ...these additional generated files.
453 (distclean): Modified; 'version.c' now removed by 'clean'.
455 2013-07-03 Keith Marshall <keithmarshall@users.sourceforge.net>
457 Correct an omission from the source code distribution.
459 * Makefile.in (BUILD_AUX_FILES): Add makeopts.m4; this was omitted
460 from the 2013-04-10 modification to fix MinGW-Bug #1601.
462 2013-07-03 Keith Marshall <keithmarshall@users.sourceforge.net>
464 Incorporate foundation for setup tool implementation.
466 * src/setup.cpp: New file; it implements the setup program.
467 * src/setup.rc: New file; it implements setup program resources.
469 * src/dllhook.cpp: New file; it implements a DLL bridging API to
470 facilitate invocation of mingw-get-0.dll functions from the setup
471 program, after both DLLs have been explicitly loaded at run time.
473 * src/setup.h: New file; it declares the interface between the
474 setup program and the preceding mingw-get bridging DLL.
476 * src/guimain.h: Add filter to exclude declarations specific to...
477 [IMPLEMENTATION_LEVEL == PACKAGE_BASE_COMPONENT]: ...this case, when
478 included by compilation units specific to the setup tool components.
479 (ID_MAIN_DIALOGUE_CAPTION, ID_DOWNLOAD_HOST_URI): New resource IDs.
480 (ID_PACKAGE_BASE_DISTNAME, ID_PACKAGE_DATA_DISTNAME): Likewise.
481 (ID_PACKAGE_GUI_DISTNAME): Likewise; define them.
483 * Makefile.in (all): Respecify it, in terms of...
484 (all-core, all-setup): ...these new rules; define them, and also...
485 (all-setup-exe, all-setup-dll): ...these, to force building of...
486 (mingw-get-setup.$EXEEXT, mingw-get-setup-0.dll): ...these binaries.
487 (setup.res.$OBJEXT): Specify prerequisites, as for guimain.res.$OBJEXT
488 (SETUP_TOOL_OBJECTS, SETUP_TOOL_LIBS): New macros; define them.
489 (SETUP_DLL_OBJECTS, SETUP_DLL_LIBS, SETUP_DISTNAME): Likewise.
490 (TAG_SCRIPT): Add resource script substitution definitions for...
491 (ID_PACKAGE_BASE_DISTNAME, ID_PACKAGE_DATA_DISTNAME): ...these...
492 (ID_PACKAGE_GUI_DISTNAME): ...and this.
494 2013-07-01 Keith Marshall <keithmarshall@users.sourceforge.net>
496 Add subprocess argument vector construction helpers.
498 * src/argwrap.c src/argwrap.h: New files; they implement an API for
499 construction of argument vectors, with appropriate quoting, to be
500 passed to MS-Windows exec'd subprocesses. Rewritten from scratch,
501 without reference to any prior GPL licensed implementation, with MIT
502 style licence, these provide the foundation for a possible future
503 libmingwex.a implementation; they are included here, since no such
504 implementation is currently available.
506 2013-06-28 Keith Marshall <keithmarshall@users.sourceforge.net>
508 Avoid inadvertent overwrite of existing files.
510 * src/mkpath.c (_O_NEWFILE): Conditionally specify attributes...
511 [IMPLEMENTATION_LEVEL == SETUP_TOOL_COMPONENT]: ...as they were...
512 [IMPLEMENTATION_LEVEL != SETUP_TOOL_COMPONENT]: ...else, include
513 _O_EXCL in the specified set; exclude _O_TRUNC.
515 * src/tarproc.cpp (dmh_notify_extraction_failed): New static inline
516 function; it encapsulates the diagnostic message factored out from...
517 (pkgArchiveProcessor::ExtractFile): ...here, whence use it.
518 (create_output_stream): Also used in this new static inline function;
519 it adds an appropriate diagnostic wrapper around set_output_stream(),
520 when _O_EXCL prevents overwrite of an existing file.
521 (pkgArchiveProcessor::SetOutputStream): Use it.
523 2013-06-27 Keith Marshall <keithmarshall@users.sourceforge.net>
525 Improve diagnostics for tar archive processing faults.
527 * src/pkgproc.h (TAR_ARCHIVE_FORMAT_ERROR): New constant; define it.
528 (TAR_ARCHIVE_DATA_READ_ERROR, TAR_ARCHIVE_DATA_WRITE_ERROR): Likewise.
530 * src/tarproc.cpp (dmh_notify_archive_data_exhausted): New static
531 inline function; implement it.
532 (pkgTarArchiveProcessor::GetArchiveEntry) [short header]: Use it.
533 (pkgArchiveProcessor::ExtractFile) [TAR_ARCHIVE_DATA_READ_ERROR]:
534 Likewise, use it here; also explicitlycheck for, and diagnose...
535 [TAR_ARCHIVE_DATA_WRITE_ERROR]: ...this; also add a further catch all
536 case, to diagnose any other unexpected condition.
537 (pkgTarArchiveProcessor::GetArchiveEntry) [bad checksum]: Diagnose it.
538 (pkgTarArchiveProcessor::Process): Return appropriate status codes.
539 (pkgTarArchiveProcessor::ProcessEntityData): Likewise.
541 2013-06-24 Keith Marshall <keithmarshall@users.sourceforge.net>
543 Facilitate version synchronisation for mingw-get-setup.
545 * VERSION.m4: New file.
546 * configure.ac: Include it, and...
547 (AC_INIT): ...use it.
549 2013-06-21 Keith Marshall <keithmarshall@users.sourceforge.net>
551 Keep version strings clean when release class is unspecified.
553 * Makefile.in (RC_SCRIPT, VERSION_SCRIPT): Simplify; assign specified
554 release class to local variable; delegate release tag generation to...
555 (TAG_SCRIPT): ...this; check release class variable is not an empty
556 string, before inserting it into the generated release tag.
558 2013-06-20 Keith Marshall <keithmarshall@users.sourceforge.net>
560 Rework defective assignment of product version resources.
562 * Makefile.in (BUILD_TAG): Avoid creating an empty build.tag file.
563 (PACKAGE_VERINFO_SCRIPT): Ensure that the build tag is generated as a
564 string of non-zero length. Do not assume that it comprises only two
565 elements; extract the final two, as the third and fourth elements
566 of the product version meta-data record.
568 2013-06-19 Keith Marshall <keithmarshall@users.sourceforge.net>
570 Rework defective package build time-stamping logic.
572 * Makefile.in (%.time): Make it explicitly touch its target; the
573 2013-05-15 changes, to reduce redundancy, didn't work as expected.
574 (%.tag): Add a side effect; make it also explicitly touch %.time.
575 (%.tagged.time): This is now redundant; remove it.
577 2013-06-14 Keith Marshall <keithmarshall@users.sourceforge.net>
579 Collect distributable package files in user specified directory.
581 * Makefile.in (distdir): New macro; define default as abs_builddir.
582 (srcdist, bindist, licdist): Use it; direct generated tarballs to it.
583 (%.txt.dist): New pattern rule; define, and use it to make a copy...
584 (readme.txt): ...of this, in distdir, when processing...
585 (dist): ...this build objective.
587 2013-06-14 Keith Marshall <keithmarshall@users.sourceforge.net>
589 Handle Microsoft's 32-bit vs. 64-bit time_t ambiguity.
591 * src/apihook.c: New file; it provides...
592 (have_api): ...this helper; it checks for availability of any specific
593 API function, within a specific system DLL, (MSVCRT.DLL by default).
595 * src/tarproc.cpp (have_utime64_api): New inline function; it wraps...
596 (have_api): ...this, to check whether MSVCRT.DLL provides...
597 (commit_saved_entity) [_utime64]: ...this; use if available, else...
598 (commit_saved_entity) [!_utime64]: ...fall back to using...
601 * Makefile.in (CORE_DLL_OBJECTS): Add apihook.$OBJEXT
603 2013-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
605 Facilitate package extraction and registration at setup time.
607 * src/pkgproc.h (IMPLEMENTATION_LEVEL): Add filters to facilitate
608 implementation of distinct setup time archive processing behaviour.
609 (pkgArchiveProcessor::save_on_extract): New property; declare it.
610 (pkgArchiveProcessor::SaveExtractedFiles): New method; implement it.
611 (pkgArchiveProcessor::SetOutputStream): New method; declare it.
613 * src/tarproc.cpp (IMPLEMENTATION_LEVEL): Add filters to implement
614 distinct setup time specific archive processing behaviour.
615 (pkgArchiveProcessor::SetOutputStream): Implement it.
616 (pkgTarArchiveExtractor::ProcessDataStream): Use it.
617 (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
619 2013-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
621 Implement some GUI progress metering dialogue enhancements.
623 * src/pkgbase.h (pkgProgressMeter): Don't pre-empt private features
624 of derived progress metering classes; hence, we no longer need this...
625 (AppWindowMaker): ...as a forward class declaration; delete it.
627 * src/guimain.rc (IDD_REPO_UPDATE): Resize, and adjust layout.
628 (IDD_PROGRESS_VAL, IDD_PROGRESS_MAX, IDD_PROGRESS_PCT): Add these
629 dialogue box progress counter display elements.
631 * src/pkgbind.cpp (pkgRepository::GetPackageList): Adjust style of
632 progress status messages, to suit reporting via GUI dialogue box or
633 CLI console, as appropriate.
635 * src/guiexec.cpp (ProgressMeterMaker): Redefine class, in terms of...
636 (PROGRESS_METER_CLASS): ...this new generic class name macro.
637 Reimplement private members, previously inherited from base class;
638 adjust class constructor to ensure that they are initialised.
639 Delete explicit destructor; a default destructor is now sufficient.
640 (ProgressMeterMaker::SetRange, ProgressMeterMaker::SetValue):
641 (ProgressMeterMaker::Annotate): Factor out; reimplement them...
643 * src/pmihook.cpp: ...in this new file, as generalised methods of...
644 (PROGRESS_METER_CLASS): ...the class named by this macro.
645 (PROGRESS_METER_CLASS::PutVal): New private method; implement it.
647 2013-05-31 Keith Marshall <keithmarshall@users.sourceforge.net>
649 Avoid a potential macro definition conflict.
651 * src/pkgbase.h (strcasecmp) [__MINGW32__]: Use string.h definition.
653 2013-05-15 Keith Marshall <keithmarshall@users.sourceforge.net>
655 Streamline build-time dependency tracking procedures.
657 * Makefile.in (DEPFLAGS): Adjust for simultaneous .o/.d generation.
658 (RC_DEPFLAGS): New macro; define dependency generation flags for the
659 resource compiler, which can't handle the new DEPFLAGS methodology.
660 (%.c, %.cpp, %.rc): Simplify $OBJEXT generation procedures.
661 (%.time): Remove redundantly replicated build-time procedure from...
662 (%.tagged.time): ...this; just make it a prerequisite.
664 2013-05-15 Keith Marshall <keithmarshall@users.sourceforge.net>
666 Add resources for specification of product version.
668 * src/verinfo.rc src/verinfo.h.in: New files; included by...
669 * src/guimain.rc: ...this, whence also specify version information...
670 (VERINFO_FILE_NAME, VERINFO_INTERNAL_NAME, VERINFO_FILE_DESCRIPTION):
671 (VERINFO_FILE_VERSION, VERINFO_FILE_VERSION_STRING): ...per these new
672 manifest constant macros; define them, with propagation to...
673 (ID_MAIN_WINDOW_CAPTION): ...this; keep it consistent.
675 * Makefile.in (TAG_SCRIPT): Include invocation for...
676 (PACKAGE_VERINFO_SCRIPT): ...this new macro; defined to interpret...
677 (PACKAGE_VERINFO_PRODUCT_VERSION): ...this new substitution template;
678 it is used in src/verinfo.h.in, whence verinfo.h is generated.
679 (RC_INCLUDES): Add current working directory, for...
680 (verinfo.h): ...this; add rule and dependencies to generate it.
682 2013-05-14 Keith Marshall <keithmarshall@users.sourceforge.net>
684 Make application manifest resource definition reusable.
686 * src/manifest.rc: New file; factor content from...
687 * src/guimain.rc: ...here, whence include it.
689 2013-05-08 Keith Marshall <keithmarshall@users.sourceforge.net>
691 Extend DMH services to delay-loaded DLL clients.
693 * src/dmhcore.h (dmh_bind): New function; declare it.
694 * src/dmhcore.cpp (dmh_bind): Implement it; it provides an API through
695 which the setup tool makes its existing DMH services available to post
696 install hooks in mingw-get-0.dll, which cannot be loaded until after
697 the providing package has been downloaded and unpacked.
699 2013-05-08 Keith Marshall <keithmarshall@users.sourceforge.net>
701 Avoid unnecessary command line globbing in GUI applications.
703 * src/guimain.cpp src/guistub.cpp (_CRT_glob): Declare as extern "C";
704 initialise to zero, so overriding the runtime start-up default.
706 * src/rites.c [! IMPLEMENT_INITIATION_RITES] (_CRT_glob): Initialise
707 to zero here too; lastrites.exe doesn't need globbing either.
709 2013-05-04 Keith Marshall <keithmarshall@users.sourceforge.net>
711 Address some GCC-4.7 string initialisation warnings.
713 * src/pkglist.cpp (AppWindowMaker::InitPackageListView): Declare all
714 headings[].text initialisers as 'const'; cast to 'char *' as required.
715 (pkgListViewMaker::Dispatch): Ditto, when inserting the 'const' empty
716 string into the list, as a component class value.
718 * src/pkgdata.cpp (AppWindowMaker::InitPackageTabControl): Declare all
719 TabLegend[] initialisers as 'const'; cast to 'char *' as required.
721 2013-05-02 Keith Marshall <keithmarshall@users.sourceforge.net>
723 Correct a spin wait thread synchronisation issue.
725 * src/pkgnget.cpp (pkgDownloadMeterGUI::SpinWait): Handle stop
726 requests explicitly; acknowledge when waiting thread has stopped.
727 (pkgDownloadMeterGUI::SpinWaitAction): Raise explicit stop requests;
728 wait for acknowledgement that waiting thread has stopped.
730 2013-04-23 Keith Marshall <keithmarshall@users.sourceforge.net>
732 Select compressed data streaming filters for use by setup tool.
734 * src/pkgstrm.cpp [IMPLEMENTATION_LEVEL != PACKAGE_BASE_COMPONENT]:
735 Exclude the implementations of all decompression filters, except...
736 (pkgXzArchiveStream): ...this, together with its requisite methods...
737 (pkgArchiveStream, pkgLzmaArchiveStream): ...from these.
739 2013-04-23 Keith Marshall <keithmarshall@users.sourceforge.net>
741 Adapt internet download agent for use by setup tool.
743 * src/pkgbase.h: More code rearrangement, exposing...
744 (safe_strcmp): ...this in any implementation context, controlled...
745 [USES_SAFE_STRCMP && ! HAVE_SAFE_STRCMP]: ...by this; when true...
746 (HAVE_SAFE_STRCMP): ...define this to 1, (must be non-zero).
747 [IMPLEMENTATION_LEVEL == PACKAGE_BASE_COMPONENT]: Ensure that...
748 (USES_SAFE_STRCMP): ...this is defined to 1, (i.e. non-zero).
749 (EXTERN_C): Relocate macro definition...
750 * src/pkgimpl.h: ...to here; add complementary implementation of...
751 (BEGIN_C_DECLS, END_C_DECLS): ...these new macros; define them.
753 * src/pkginet.h (pkgDownloadMeter::SpinWait): New static method;
754 declare it as inline, to be implemented elsewhere, delegating to...
755 (pkgDownloadMeter::SpinWaitAction): ...this new protected virtual
756 method; declare and implement it inline, as a "do nothing" base
757 class method, to be optionally overridden in a derived class.
759 * src/pkginet.cpp (pkgDownloadMeter::SpinWait): Implement it.
760 (pkgInternetAgent::OpenURL): Use it to invoke SpinWaitAction().
761 (USES_SAFE_STRCMP): Define as 1; (safe_strcmp() is required).
762 [IMPLEMENTATION_LEVEL != PACKAGE_BASE_COMPONENT]: Filter out code
763 which may not be required in more specialised contexts, then...
764 [IMPLEMENTATION_LEVEL == SETUP_TOOL_COMPONENT]: ...add specialised
765 variants specific to this.
767 * src/pkgnget.cpp [IMPLEMENTATION_LEVEL != PACKAGE_BASE_COMPONENT]:
768 Filter out code which may not be required in more specialised context.
769 (dmh_setpty): Provide locally declared prototype for external function.
770 (pkgDownloadMeterGUI): Add pseudo-terminal diagnostic message window.
771 (pkgDownloadMeterGUI::SpinWaitAction): Declare and implement GUI
772 specific method specialisation; it invokes a thread, running...
773 (pkgDownloadMeterGUI::SpinWait): ...this new static method overload.
775 2013-04-19 Keith Marshall <keithmarshall@users.sourceforge.net>
777 Implement pre-emptive update issue number identification.
779 * src/pkgkeys.h (serial_number): Declare function prototype.
780 * src/pkginet.cpp (serial_number): Implementation remains here;
781 promote from static to extern "C".
783 * src/pkgbind.cpp (value_assumed_new): New char constant; define it.
784 (pkgRepository::expected_issue): New private member var; declare and...
785 (pkgRepository::pkgRepository): ...initialise it, assuming new.
786 (pkgRepository::GetPackageList): Assign pre-emptively declared issue
787 number, (from package-list references), to 'expected_issue'; compare it
788 with 'current_issue' number recorded within locally stored catalogue.
789 [current_issue >= expected_issue]: Suppress redundant download; adjust
790 diagnostic messages as appropriate.
792 2013-04-10 Keith Marshall <keithmarshall@users.sourceforge.net>
794 Fix MinGW-Bug #1601 (on new issues tracker).
796 * aclocal.m4 (makeopts.m4): New build-aux module; include it.
797 (MINGW_AC_PROG_LEX): New macro; implement it.
799 * configure.ac (AC_INIT): Make version number tripartite.
800 (MINGW_AC_MAKE_NO_PRINT_DIRECTORY): Use this new makeopts.m4 macro.
801 (MINGW_AC_PROG_LEX): Use it, in place of...
802 (AC_PROG_LEX): ...this.
804 * Makefile.in (MAKE): New macro; assign using autoconf's SET_MAKE.
805 (QUIET_MAKE): New macro; derive it from $(MAKE) --no-print-directory.
806 (LEX_COMMAND, LEX_COMMAND_ABORT): New macros; define them.
807 (LEX_MISSING, LEX_MISSING_MESSAGE, LEX_OUTPUT): Likewise.
808 (FORMAT_MESSAGE, MESSAGE_FOLD_WIDTH): Likewise; implemented from...
809 (AWK_CLEAR_LINE_BUFFER, AWK_FLUSH_BUFFER, AWK_PRINT_AND_CLEAR_BUFFER):
810 (AWK_COLLECT_MESSAGE, AWK_COLLECT_BLANK_LINE, AWK_PRINT_LINE_BUFFER):
811 ...this collection of internal helper macros; define them.
812 (%.c: %.l): Replacement for built-in rule; it handles "missing lex" in
813 a manner consistent with expectations of autoconf's AC_PROG_LEX.
814 (execute-command): New phoney build goal; it is used with...
815 (WITH_REQUEST): ...this new macro, to invoke commands recursively.
817 2013-03-25 Keith Marshall <keithmarshall@users.sourceforge.net>
819 Adapt DMH for use in setup tool.
821 * src/dmh.cpp: File renamed to...
822 * src/dmhcore.cpp: ...this; some code rearranged, to facilitate...
823 [IMPLEMENTATION_LEVEL == PACKAGE_BASE_COMPONENT]: ...marking of code
824 sections which are required in the base package build, but which may
825 be filtered out of the build context for the setup tool.
827 * src/guidmh.cpp: File renamed to this...
828 * src/dmhguix.cpp: ...this; also add marking for...
829 [IMPLEMENTATION_LEVEL == PACKAGE_BASE_COMPONENT]: ...sections which
830 may be filtered out of the build context for the setup tool.
831 (dmhTypePTY::printf): Improve stratagem for output.
833 * Makefile.in (CORE_DLL_OBJECTS, GUIMAIN_OBJECTS): Adjust references
834 to renamed source files.
836 2013-03-22 Keith Marshall <keithmarshall@users.sourceforge.net>
838 Enable context hooks for build time code filtering.
840 * src/pkgimpl.h: New file; it defines...
841 (PACKAGE_BASE_COMPONENT, SETUP_TOOL_COMPONENT): ...these contexts;
842 either of these may be selected, by defining as manifest value for...
843 (IMPLEMENTATION_LEVEL): ...this; default is PACKAGE_BASE_COMPONENT.
845 * src/pkgbase.h: Include pkgimpl.h
846 [IMPLEMENTATION_LEVEL != PACKAGE_BASE_COMPONENT]: Occlude content.
848 2013-03-21 Keith Marshall <keithmarshall@users.sourceforge.net>
850 Specify additional files for clean-up.
852 * Makefile.in (distclean): Additionally specify...
853 (build.tag, build.time): ...these, as removable files.
855 2013-03-21 Keith Marshall <keithmarshall@users.sourceforge.net>
857 Add a missing distribution dependency.
859 * Makefile.in (srcdist): Explicitly require...
860 (pkginfo.c): ...this; previously, it was only an implicit build time
861 requirement, and may not have persisted until distribution time.
863 2013-03-21 Keith Marshall <keithmarshall@users.sourceforge.net>
865 Implement by-name association of resource scripts with programs.
867 * src/guidata.rc: Renamed as...
868 * src/guimain.rc: ...this, reflecting its association with...
869 * src/guimain.cpp: ...this program source.
871 * Makefile.in (GUIMAIN_OBJECTS): Update dependency...
872 (%.$OBJEXT:%.rc): ...replacing use of this pattern rule...
873 (%.res.$OBJEXT:%.rc): ...with this.
875 2013-01-18 Keith Marshall <keithmarshall@users.sourceforge.net>
877 Make GUI support visual styles in current Windows versions.
879 * src/guidata.rc: Add an appropriate inline manifest resource.
881 * src/guiexec.cpp (AppWindowMaker::Invoked): Ensure UpdateWindow() is
882 called after the initial call to AdjustLayout(); this is required to
883 ensure that all child windows are properly displayed from the outset.
885 * src/pkgview.cpp (AppWindowMaker::LayoutEngine):
886 [ID_PACKAGE_DATASHEET]: Adjust the top position of the frame, to make
887 the border coincide with the bottom border of the tab strip above.
889 2013-01-12 Keith Marshall <keithmarshall@users.sourceforge.net>
891 Merge gui-dev branch head to master; close gui-dev branch.
893 * configure.ac (AC_INIT): Reset version to 0.6; reset all package
894 files to state prevailing at gui-dev branch head.
896 2013-01-11 Keith Marshall <keithmarshall@users.sourceforge.net>
898 Create release branch for further r0.5 development.
900 * configure.ac (AC_INIT): Bump version number to 0.5.1; assign branch
901 label (mercurial bookmark) as "r0-5-1" for all files; (this is not to
902 be released, at this time).
904 2013-01-10 Keith Marshall <keithmarshall@users.sourceforge.net>
906 Implement data sheet compiler for list of installed files.
908 * src/pkgdata.cpp: #include pkgproc.h; it furnishes...
909 (pkgManifest): ...this class declaration, which is required by...
910 (DataSheetMaker::DisplayFilesManifest): ...this new private inline
911 method; declare and implement it; subsequently, invoke it...
912 (DataSheetMaker::OnPaint) [PKG_DATASHEET_INSTALLED_FILES]: ...here.
913 (pkgTroffLayoutEngine::WriteLn): Correct a defect in handling of
914 excess-length unbreakable "words" outside the viewport; previously
915 they were not dropped from the input queue, resulting in repeated
916 reprocessing in an infinite loop.
918 2013-01-09 Keith Marshall <keithmarshall@users.sourceforge.net>
920 Include release tags in GUI displayed package versions.
922 * src/pkglist.cpp (pkgVersionString) [ReleaseStatus != NULL]:
923 Append ReleaseStatus and ReleaseIndex to generated version string.
925 2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
927 Fix enumeration of pending install actions for scheduled upgrades.
929 * src/pkgdata.cpp (pkgActionItem::EnumeratePendingActions):
930 [action == ACTION_UPGRADE && classified == ACTION_INSTALL]: Enumerate
931 upgrade as a special case of the install classification.
933 2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
935 Implement "Mark All Upgrades" GUI capability.
937 * src/guimain.h (IDM_REPO_APPLY): Renumbered; make room for...
938 (IDM_REPO_MARK_UPGRADES): ...this new constant; define it.
940 * src/guidata.rc (IDM_REPO_MARK_UPGRADES): New option; add it...
941 (ID_MAIN_WINDOW_WINDOW) [Installation]: ...to this drop-down menu.
943 * src/pkgbase.h (pkgActionItem::SuppressRedundantUpgrades): New
944 public inline method; declare it.
946 * src/guiexec.cpp (AppWindowMaker::OnCommand):
947 [IDM_REPO_MARK_UPGRADES]: Add case handler for this menu selection.
948 (pkgActionItem::SuppressRedundantUpgrades): New method; implement it.
950 2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
952 Avoid unnecessary reloading of package list.
954 * src/guiexec.cpp (AppWindowMaker::OnCommand) [IDM_REPO_APPLY]:
955 Do not reload package list after processing; update it in place.
957 2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
959 Avoid potential heap corruption in action scheduler.
961 * src/guiexec.cpp (pkgActionItem::Clear): Factor out; relocate to...
962 * src/pkgexec.cpp (pkgActionItem::Clear): ...here; this keeps all use
963 of new and delete operators on the same side of the EXE/DLL boundary
964 as the constructor and destructor for pkgActionItem objects.
965 (pkgActionItem::Schedule): Ensure that all min_wanted and max_wanted
966 references are unique to each allocated pkgActionItem object, so that
967 the destructor may safely release their associated heap memory blocks.
969 2013-01-07 Keith Marshall <keithmarshall@users.sourceforge.net>
971 Update copyright notification for development in new year.
973 * configure.ac (YEARS_OF_ISSUE): Add year 2013.
975 * Makefile.in (version.c, guidata.$OBJEXT): Make them depend on...
976 (Makefile): ...this, so YEARS_OF_ISSUE propagates to built objects.
978 2012-12-24 Keith Marshall <keithmarshall@users.sourceforge.net>
980 Work around a GUI action scheduling instability.
982 * src/guimain.h (AppWindowMaker::UpdateDataSheet): Declare new method.
983 * src/pkgdata.cpp (AppWindowMaker::UpdateDataSheet): Implement it.
984 (AppWindowMaker::OnNotify): Use it.
986 * src/guiexec.cpp (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]:
987 Don't refresh package list view in-place; clear and reload it instead.
989 2012-12-21 Keith Marshall <keithmarshall@users.sourceforge.net>
991 Update distribution build rules.
993 * Makefile.in (SRCDIST_FILES): Remove version.c.in; this was moved
994 to src/version.c.in, and is now automatically included via...
995 (SRCDIST_SUBDIRS): ...this; remove build-aux and build-aux/m4; we want
996 only selected files from these, as filtered by specification in...
997 (BUILD_AUX_DIRS, BUILD_AUX_FILES): ...these new macros; define them.
998 (BLDTAG, SCMTAG, GCMTAG): New release class macros; define them.
999 (bindist, licdist, srcdist): Use them.
1001 2012-12-21 Keith Marshall <keithmarshall@users.sourceforge.net>
1003 Update CLI implementation hooks for GUI integration.
1005 * Makefile.in (LIBEXEC_PROGRAMS): Replace gui$EXEEXT with
1006 guistub$EXEEXT; update make goal references accordingly.
1008 * src/rites.c (MINGW_GET_GUI): Redefine to be guimain$EXEEXT.
1009 (MINGW_GET_GFB): Define new fall-back; let it be guistub$EXEEXT.
1010 (RITES_IMPLEMENTATION): Perform rites for MINGW_GET_GUI.
1012 * src/clistub.c (main) [cannot exec MINGW_GET_GUI]: Try
1013 MINGW_GET_GFB instead.
1015 2012-12-21 Keith Marshall <keithmarshall@users.sourceforge.net>
1017 Rename executive core file for GUI implementation.
1019 * src/guixmld.cpp: File renamed...
1020 * src/guiexec.cpp: ...to this; its function exceeds original intent.
1021 * Makefile.in (GUIMAIN_OBJECTS): Update reference accordingly.
1023 2012-12-20 Keith Marshall <keithmarshall@users.sourceforge.net>
1025 Create foundation for implementation of package category tree view.
1027 * Makefile.in (GUIMAIN_OBJECTS): Add pkgtree.$OBJEXT reference to...
1028 * src/pkgtree.cpp: ...incorporate this new file; it implements...
1029 (AppWindowMaker::InitPackageTreeView): ...this new class method...
1030 (pkgInitCategoryTreeGraft): ...and this new extern "C" function.
1032 * src/guimain.h (pkgInitCategoryTreeGraft): Declare prototype.
1033 (AppWindowMaker::InitPackageTreeView): New private method; declare it.
1034 (AppWindowMaker::PackageTreeView): New member variable; declare it.
1036 * src/guixmld.cpp (AppWindowMaker::LoadPackageData): Call
1037 pkgInitCategoryTreeGraft(), after loading profile.xml
1038 (AppWindowMaker::Invoked): Call InitPackageTreeView()
1040 * src/pkgview.cpp (AppWindowMaker::LayoutEngine):
1041 [ID_PACKAGE_TREEVIEW]: Handle it.
1043 2012-12-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1045 Make the "Apply Changes" dialogue "failure-aware".
1047 * src/pkgtask.h (ACTION_APPLY_FAILED): Redefine, in terms of...
1048 (ACTION_INSTALL_FAILED, ACTION_REMOVE_FAILED): New manifest defines.
1049 (ACTION_UNSUCCESSFUL): New manifest constant; define it.
1051 * src/pkgdata.cpp (pkgActionItem::EnumeratePendingActions):
1052 [ACTION_UNSUCCESSFUL]: Make it a special case for enumeration.
1054 * src/guixmld.cpp (pkgApplyChanges): Enumerate...
1055 [ACTION_UNSUCCESSFUL > 0]: ...all such cases; when true...
1056 [IDD_AUTO_CLOSE_OPTION]: ...this; select alternative close-out
1057 messages, as appropriate.
1058 (pkgActionItem::Assert): Factor out; relocate to...
1059 * src/pkgexec.cpp (pkgActionItem::Assert): ...here; this moves its
1060 object code into the mingw-get DLL.
1062 * src/pkgunst.cpp (pkgRemove) [ACTION_REMOVE_FAILED]:
1063 * src/pkginst.cpp (pkgInstall) [ACTION_INSTALL_FAILED]:
1064 Assert as appropriate.
1066 2012-12-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1068 Improve progress reporting in "Apply Changes" dialogue.
1070 * src/pkgstat.h: New header file; it declares...
1071 (pkgSpinWait): ...this new pure abstract base class; it specifies an
1072 infrastructure for posting arbitrary text to dialogue controls.
1074 * src/pkgexec.cpp (pkgSpinWait): Implement its static elements.
1075 (pkgActionItem::Execute): Dispatch progress reports, handled by...
1076 (pkgSpinWait::Report, pkgSpinWait::Indicator): ...these.
1078 * src/guixmld.cpp (pkgDialogueSpinWait): New class; declare it and
1079 implement locally. It is derived from, and provides a listener for...
1080 (pkgSpinWait): ...this abstract class.
1081 (pkgApplyChanges): Use it.
1083 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDataStream): Call...
1084 (pkgSpinWait::Report): ...this, to report extracted files.
1086 * src/pkgunst.cpp (pkg_unst): Call...
1087 (pkgSpinWait::Report): ...this, to report deleted files.
1089 * src/sysroot.cpp (pkgXmlDocument::UpdateSystemMap): Call...
1090 (pkgSpinWait::Report, pkgSpinWait::Indicator): ...these, to confirm
1091 continuing database update activity.
1093 2012-12-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1095 Update tab display on right-click in package list view.
1097 * src/pkgdata.cpp (AppWindowMaker::OnNotify) [NM_RCLICK]:
1098 Call DataSheetMaker::DisplayData(), before invoking pop-up menu.
1100 2012-12-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1102 Add more protection against NULL pointer abuse.
1104 * src/pkgbase.h (pkgActionItem::Reset): Method renamed to...
1105 * src/guixmld.cpp (pkgActionItem::Assert): ...this; also renamed here.
1106 (AppWindowMaker::OnCommand): When calling...
1107 (pkgListViewMaker::MarkScheduledActions): ...this, pass argument as...
1108 (pkgXmlDocument::ClearScheduledActions): ...pointer returned by this.
1110 * src/pkgdata.cpp (AppWindowMaker::MarkSchedule):
1111 [pending_actions == NULL]: Do not propagate invocation request to...
1112 (pkgListViewMaker::MarkScheduledActions): ...this.
1114 * src/pkglist.cpp (pkgListViewMaker::MarkScheduledActions):
1115 [schedule == NULL]: Do nothing.
1117 2012-12-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1119 Implement some additional permanent debugging support.
1121 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
1122 [DEBUG_TRACE_DEPENDENCIES]: Enable DMH digest mode for messages.
1124 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDataStream):
1125 [DEBUG_TRACE_TRANSACTIONS]: Add logging of installed file path names.
1127 2012-12-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1129 Insert a missing snprintf format effector.
1131 * src/pkgnget.cpp (pkgDownloadMeterGUI::Update): Add omitted '%'
1132 format specifier, in "%%", for formatting percentage-complete value.
1133 Rename "size_buf" automatic variable as "buf"; this results in shorter
1134 source lines, and consequently a tidier source code layout.
1135 (pkgDownloadMeterGUI::ResetGUI): Likewise s/size_buf/buf/
1137 2012-12-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1139 Add a missing header reference.
1141 * src/approot.h: Include stdint.h; this ensures that wchar_t is
1142 properly typedef'd, before attempting to use it.
1144 2012-12-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1146 Make a clone of the package menu available as a pop-up.
1148 * src/guimain.h (AppWindowMaker::SelectPackageAction): New private
1151 * src/pkgdata.cpp (AppWindowMaker::SelectPackageAction): Implement it.
1152 (AppWindowMaker::OnNotify) [ID_PACKAGE_LISTVIEW]: Use it.
1154 2012-12-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1156 Improve conditionally enabled state manipulation for menu items.
1158 * src/guidata.rc (IDM_REPO_APPLY): Set its initial state as GRAYED.
1160 * src/pkgdata.cpp (AppWindowMaker::UpdatePackageMenuBindings):
1161 [IDM_PACKAGE_REINSTALL]: Always leave it GRAYED; this is a temporary
1162 provision, until the GUI is updated to support "reinstall" capability.
1163 [IDM_REPO_APPLY && !(EnumeratePendingActions > 0)]: Make it GRAYED.
1164 [IDM_REPO_APPLY && (EnumeratePendingActions > 0)]: Enable it.
1166 2012-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1168 Implement GUI bindings for processing a schedule of actions.
1170 * src/guimain.h (IDD_DMH_CONSOLE): New resource ID; define it.
1171 (IDD_APPLY_EXECUTE): New dialogue template resource ID; define it.
1172 (AppWindowMaker::ExecuteScheduledActions): New method; declare it.
1174 * src/guidata.rc (IDD_APPLY_EXECUTE): Implement dialogue template.
1176 * src/guixmld.cpp (pkgApplyChanges): New thread function; implement it.
1177 (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]: Use it; it is invoked...
1178 (IDD_APPLY_EXECUTE): ...via this dialogue box, subsequently calling...
1179 (AppWindowMaker::ExecuteScheduledActions): ...this; implement it.
1181 * src/pkgexec.cpp (pkgActionItem::Execute): Add argument; use it.
1182 (pkgActionItem::~pkgActionItem): Unlink chained references.
1184 * src/pkgbase.h (pkgActionItem::Execute): Adjust prototype.
1186 2012-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1188 Do not preserve unnecessary download requests.
1190 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles):
1191 [(flags & ACTION_INSTALL) != ACTION_INSTALL]: Actions having no
1192 "install" effect do not require a download; cancel any associated
1195 2012-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1197 Implement GUI bindings for package download agent.
1199 * src/guimain.h (IDD_PROGRESS_VAL, IDD_PROGRESS_MAX):
1200 (IDD_PROGRESS_PCT): New manifest resource IDs; define them. They will
1201 be used to identify dialogue controls, to be associated with...
1202 (IDD_APPLY_DOWNLOAD): ...this new dialogue template ID; define it.
1203 (AppWindowMaker::DownloadArchiveFiles): New inline method; declare it.
1205 * src/guidata.rc (IDD_APPLY_DOWNLOAD): Implement dialogue template.
1207 * src/pkgbase.h (pkgActionItem::DownloadArchiveFiles): New public
1208 inline method; declare it. It overloads an existing private method of
1209 the same name, which it subsequently invokes.
1211 * src/pkginet.h: New header file; it declares...
1212 (pkgInvokeDownload): ...this new extern "C" function prototype, and...
1213 (pkgDownloadMeter): ...this abstract class; it is factored from its
1214 original implementation in pkginet.cpp, augmented by addition of...
1215 (pkgDownloadMeter::primary): New static member variable; declare it.
1216 (pkgDownloadMeter::UseGUI): New public method; implement it inline.
1217 (pkgDownloadMeter::ResetGUI): New public method; declare it, providing
1218 a do-nothing inline default implementation. Any derived class, which
1219 supports GUI capability, should override this.
1221 * src/pkgnget.cpp: New file; it implements...
1222 (pkgDownloadMeterGUI): New class, derived from pkgDownloadMeter.
1223 (pkgActionItem::DownloadArchiveFiles): New overloaded inline method.
1224 (AppWindowMaker::DownloadArchiveFiles): New inline method.
1225 (pkgInvokeDownload): New dialogue box worker thread handler.
1227 * src/pkginet.cpp: Include pkginet.h; hence...
1228 (pkgDownloadMeter): ...remove redundant class declaration.
1229 (pkgDownloadMeter::primary): Define and initialise it.
1230 (pkgInternetStreamingAgent::Get) [pkgDownloadMeter::UseGUI]: Delegate
1231 progress metering to referenced pkgDownloadMeterGUI class instance.
1232 [! pkgDownloadMeter::UseGUI]: Continue to use the existing built-in
1233 pkgDownloadMeterTTY mechanism.
1234 (pkgActionItem::DownloadSingleArchive) [ACTION_DOWLOAD_FAILED]: Assert
1235 this initially; subsequently clear it on successful completion.
1236 (pkgActionItem::DownloadArchiveFiles): Collect diagnostic messages
1237 into a single DMH_BEGIN_DIGEST ... DMH_END_DIGEST group.
1239 * src/guixmld.cpp: Include pkginet.h; it is required by...
1240 (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]: Use pkgInvokeDownload.
1242 * Makefile.in (GUIMAIN_OBJECTS): Include pkgnget.$OBJEXT
1244 2012-12-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1246 Implement "Discard" handler for GUI "Apply Changes" dialogue.
1248 * src/pkgbase.h (pkgActionItem::Reset): New public method; declare it.
1249 (pkgActionItem::Clear): New public method; declare two overloaded
1250 variants, of which implement one inline.
1251 (pkgXmlDocument::ClearScheduledActions): New public method; declare
1252 and implement it inline.
1254 * src/pkgtask.h (ACTION_DOWNLOAD_FAILED, ACTION_APPLY_FAILED): New
1255 manifest bit-flag constants; define them. They provide a mechanism
1256 for blocking the discard event in respect of failed actions.
1258 * src/guixmld.cpp (pkgActionItem::Reset): Implement it.
1259 (pkgActionItem::Clear): Implement second, out-of-line variant.
1260 (ACTION_PRESERVE_FAILED): New local manifest bit-flag constant; define
1261 it as an aggregate of ACTION_DOWNLOAD_FAILED and ACTION_APPLY_FAILED.
1262 (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]: Use them.
1264 2012-12-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1266 Implement GUI dialogue for "Apply Changes" action approval.
1268 * src/guidata.rc (ID_MAIN_WINDOW_MENU): Rename...
1269 ("&Repository"): ...this drop-down menu entry...
1270 ("&Installation"): ...this; add...
1271 ("&Apply Changes"): ...this new selection.
1272 (IDD_APPLY_APPROVE): New dialogue box resource template; define it.
1273 (SS_CTEXTBOX): New aggregate style convenience macro; define it.
1274 (ES_VT100): Likewise.
1276 * src/guimain.h (IDM_REPO_APPLY): New resource ID; define it.
1277 (IDM_REPO_QUIT): Redefined resource ID; was 302; changed to 312.
1278 (IDD_APPLY_APPROVE, IDD_PROGRESS_TXT): New resource IDs; define them.
1279 (IDD_APPLY_REMOVES_PACKAGES, IDD_APPLY_REMOVES_SUMMARY): Likewise.
1280 (IDD_APPLY_INSTALLS_PACKAGES, IDD_APPLY_INSTALLS_SUMMARY): Likewise.
1281 (IDD_APPLY_UPGRADES_PACKAGES, IDD_APPLY_UPGRADES_SUMMARY): Likewise.
1282 (ID_APPLY, ID_DISCARD, ID_DEFER): New response IDs; define them.
1283 (AppWindowMaker::EnumerateActions): New inline method; declare it.
1284 (AppWindowMaker::DialogueResponse): New inline method; declare and
1287 * src/guixmld.cpp (pkglist.h): #included.
1288 (dmh_setpty): Add locally declared prototype.
1289 (AppWindowMaker::EnumerateActions): Implement it.
1290 (pkgActionCount): New static helper function; implement it.
1291 (ACTION_APPLY, APPLIES_TO): New macros; define them.
1292 (FMT_APPLY_REMOVES, FMT_APPLY_INSTALLS, FMT_APPLY_UPGRADES): New
1293 manifest string constants; define them.
1294 (pkgApplyApproved): New static call-back function; implement...
1295 (AppWindowMaker::OnCommand) [IDM_REPO_APPLY]: ...and use it.
1297 2012-12-06 Keith Marshall <keithmarshall@users.sourceforge.net>
1299 Implement enhanced action item enumeration capability.
1301 * src/pkgbase.h (pkgActionItem::EnumeratePendingActions): New public
1302 method; declare it. It provides the capability to enumerate scheduled
1303 actions, filtered by action classification; when invoked such that it
1304 selects all actions, it may be used as a replacement for...
1305 (pkgActionItem::Unapplied): ...this; delete declaration.
1307 * src/pkgdata.cpp (pkgActionItem::EnumeratePendingActions): Implement
1308 it; it is derived, with enhancement, from original implementation...
1309 (pkgActionItem::Unapplied): ...of this; delete it, and...
1310 (AppWindowMaker::OnClose): ...update calling reference accordingly.
1312 2012-12-05 Keith Marshall <keithmarshall@users.sourceforge.net>
1314 Implement PTY display emulation for GUI mode DMH.
1316 * src/dmhcore.h (dmhTypeGeneric::set_console_hook): New public virtual
1317 method; declare it, providing inline default do-nothing implementation.
1318 (dmhTypeGeneric::severity_tag): New protected static method; declare it.
1319 (dmhTypeGeneric::notification_format): New protected static property;
1322 * src/dmh.cpp (dmhTypeGeneric::severity_tag): Implement it.
1323 (dmhTypeGeneric::notification_format): Define and initialise it.
1324 (dmhTypeTTY::notify): Use them.
1325 (dmh_setpty): New function; declare prototype and implement it.
1327 * src/guidmh.cpp (dmhTypePTY): New locally implemented class.
1328 (dmhTypeGUI::set_console_hook): New virtual method; declare and
1329 implement it; it stores a dmhTypePTY reference pointer into...
1330 (dmhTypeGUI::console_hook): ...this new private member variable.
1331 (dmhTypeGUI::dmhTypeGUI): Initialise it.
1332 (dmhTypeGUI::notify) [console_hook != NULL]: Delegate to it.
1333 (dmhTypeGUI::printf) [console_hook != NULL]: Likewise.
1335 2012-12-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1337 Implement generalised API for dialogue boxes with worker threads.
1339 * src/guimain.h (pkgDialogueThread): New typedef; declare it.
1340 (AppWindowMaker::DialogueThread): New static property; declare it.
1341 (AppWindowMaker::DispatchDialogueThread): New method; declare it.
1343 * src/guixmld.cpp: Formatting of several comments adjusted.
1344 (pkgUpdate, pkgInitDataLoad): Defunct functions; replaced by...
1345 (pkgDialogue): ...this new static call-back function; implement it.
1346 (AppWindowMaker::DialogueThread): Instantiate and initialise it.
1347 (AppWindowMaker::DispatchDialogueThread): Implement it.
1348 (AppWindowMaker::Invoked): Use it to invoke pkgInvokeInitDataLoad()...
1349 (AppWindowMaker::OnCommand): ...and pkgInvokeUpdate().
1351 2012-12-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1353 Consolidate GUI implementation for package list view management.
1355 * src/pkglist.h (pkgListViewMaker::GetTitle): Disused overloaded
1356 method; remove all declarations.
1357 (pkgListViewMaker::GetVersionString): Disused method; remove
1359 (pkgListViewMaker::GetItem): New private inline method; declare it.
1360 (pkgListViewMaker::UpdateItem): New private method; declare it.
1361 (pkgListViewMaker::UpdateListView): New public method; declare it.
1362 (pkgListViewMaker::MarkScheduledActions): Likewise.
1364 * src/guimain.h (AppWindowMaker::MarkSchedule): New public inline
1365 method; declare it, but defer implementation to...
1367 * src/pkgdata.cpp (AppWindowMaker::MarkSchedule): ...here; not used
1368 elsewhere, it is derived from, and replaces...
1369 (pkgMarkSchedule): ...this function; factor out redundant code, in
1370 favour of delegation to pkgListViewMaker::MarkScheduledActions(), with
1371 following call to AppWindowMaker::UpdatePackageMenuBindings(); update
1372 calling function references...
1373 (AppWindowMaker::UnmarkSelectedPackage): ...here, and...
1374 (AppWindowMaker::Schedule): ...here.
1376 * src/pkglist.cpp (pkgVersionString): New static function; implement
1377 it as a local replacement for...
1378 (pkgListViewMaker::GetVersionString): ...this defunct class method.
1379 (pkgGetTitle): New overloaded static function; implement two variants,
1380 as local replacements for...
1381 (pkgListViewMaker::GetTitle): ...this defunct overloaded class method.
1382 (pkgListViewMaker::UpdateItem): Implement it; factor code from...
1383 (pkgListViewMaker::InsertItem): ...here, whence use it.
1384 (pkgListViewMaker::MarkScheduledActions): Implement it.
1385 (pkgListViewMaker::UpdateListView): Implement it.
1386 (pkgListViewMaker::pkgListViewMaker): Remove references to...
1387 (LVIF_TEXT): ...this.
1389 2012-11-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1391 Increase width of window sash bars by 50%.
1393 * src/guimain.h (SASH_BAR_THICKNESS): Increase from 4 to 6; this makes
1394 it easier to grab the sash bars, so they may be dragged; IMO, it also
1395 results in a better appearance.
1397 2012-11-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1399 Maintain consistent internal vs. external installation records.
1401 * src/pkginst.cpp (pkgInstall): Set "installed" attribute on internal
1402 package reference, to "yes", after installation; CLI didn't need this,
1403 but GUI will do so, for any package revisited in a single session.
1405 * src/pkgunst.cpp (pkgRemove): Similarly, negate "installed" attribute
1406 after package removal.
1408 2012-11-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1410 Refactor to consolidate three instances of duplicate code.
1412 * src/pkglist.h (pkgGetStatus): New function; declare it.
1413 * src/pkglist.cpp (pkgGetStatus): Implement it; factor out from...
1414 (pkgListViewMaker::InsertItem): ...here, whence use it.
1415 * src/pkgdata.cpp (pkgMarkSchedule): Likewise here...
1416 (DataSheetMaker::DisplayGeneralData): ...and here.
1418 2012-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1420 Add GUI support for install, upgrade, and remove action scheduling.
1422 * src/guimain.h (EXTERN_C): Ensure it is defined.
1423 (pkgActionItem): Add forward declaration of class name.
1424 (pkgMarkSchedule): New EXTERN_C function; declare and prototype it.
1425 (AppWindowMaker::OnClose): New virtual method; declare it.
1426 (AppWindowMaker::Schedule): New public method; declare it.
1427 (AppWindowMaker::UnmarkSelectedPackage): Likewise.
1429 * src/pkgbase.h (pkgActionItem::HasAttribute) [this == NULL]: Add
1430 protective logic; ignore attempts to access non-existent objects.
1431 (pkgActionItem::SelectPackage) [this == NULL]: Likewise.
1432 (pkgActionItem::Selection) [this == NULL]: Likewise.
1433 (pkgActionItem::GetReference): New overloaded public method; declare
1434 prototype variant with argument type of pkgXmlNode*.
1435 (pkgActionItem::Unapplied): New public method; declare it.
1436 (pkgActionItem::CancelScheduledAction): Likewise.
1437 (pkgXmlDocument::Schedule): Change return type from void to
1438 pkgActionItem*; add default argument values.
1440 * src/guixmld.cpp (AppWindowMaker::OnCommand): Add menu case hooks...
1441 [IDM_PACKAGE_INSTALL]: ...to schedule package 'install' action...
1442 [IDM_PACKAGE_UPGRADE]: ...package 'upgrade' action...
1443 [IDM_PACKAGE_REMOVE]: ...package 'remove' action, or...
1444 [IDM_PACKAGE_UNMARK]: ...to cancel any of these scheduling requests.
1445 [IDM_REPO_QUIT]: Correct typo; s/WM_QUIT/WM_CLOSE/ in comment.
1447 * src/pkgdata.cpp (pkgMarkSchedule): Implement it.
1448 (pkgActionItem::CancelScheduledAction): Implement it.
1449 (pkgActionItem::Unapplied): Implement it.
1450 (AppWindowMaker::UpdatePackageMenuBindings): Improve comments.
1451 (AppWindowMaker::UnmarkSelectedPackage): Implement it.
1452 (AppWindowMaker::Schedule): Implement it.
1453 (AppWindowMaker::OnClose): Implement it.
1455 * src/pkgdeps.cpp (pkgActionItem::GetReference): Implement overload.
1456 (pkgXmlDocument::Schedule): Change return type, and return value.
1457 [this == NULL]: Add protective logic; ignore non-existent objects.
1458 [name == NULL]: Do not schedule; just return existing action list.
1460 2012-11-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1462 Add dynamically enabled state control for package menu items.
1464 * src/guimain.h (AppWindowMaker::UpdatePackageMenuBindings): New
1465 private method; declare it.
1467 * src/pkgdata.cpp (AppWindowMaker::UpdatePackageMenuBindings):
1468 Implement it, and...
1469 (AppWindowMaker::OnNotify): ...use it.
1471 2012-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1473 Avoid excessive inter-word spaces in adjusted text.
1475 * src/pkgdata.cpp (pkgTroffLayoutEngine::WriteLn): Check extent of
1476 padding to be added at each inter-word space, when adjusting text; do
1477 not adjust, if it exceeds 5% of available display pane width.
1479 2012-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1481 Elide unbreakable text which will not fit within display width.
1483 * src/pkgdata.cpp (pkgTroffLayoutEngine::WriteLn): Add logic to detect
1484 over-width unbreakable text; elide characters from the right, to make
1485 it fit within the display width, with trailing ellipsis.
1487 2012-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1489 Add content compiler for package data sheet "general" tab.
1491 * src/pkgbase.h (pkgActionItem::PrintURI): Make it public. Add a
1492 call-back reference argument, for output function; assign puts() as
1493 default, where previously had hard coded printf() emulating puts()
1495 * src/pkginet.cpp (pkgActionItem::PrintURI): Use call-back hook.
1497 * src/pkgdata.cpp (DataSheetMaker::Display): New static property; it
1498 stores a reference to the active class instance, so static call-back
1499 methods may delegate processing requests to non-static methods.
1500 (DataSheetMaker::Advance): New static property; it is used to instruct
1501 call-back methods to interpose paragraph leading it the output stream.
1502 (DataSheetMaker::FormatRecord): New private method; implement it.
1503 (DataSheetMaker::FormatText): Don't pass "canvas" as an argument; we
1504 can access it directly as a class property. Update all callers as
1505 necessary, to conform to modified function prototype.
1506 (pkgListSelection): New static function; implement it, and...
1507 (DataSheetMaker::OnPaint): ...use it in switch cases, when calling...
1508 [PKG_DATASHEET_GENERAL]: DataSheetMaker::DisplayGeneralData(), and...
1509 [PKG_DATASHEET_DESCRIPTION]: DataSheetMaker::DisplayDescription().
1510 (DataSheetMaker::DisplayGeneralData): New public method; implement it.
1511 (DataSheetMaker::DisplayPackageURL): New static method; implement it.
1512 (DataSheetMaker::DisplayLicenceURL): Likewise.
1513 (DataSheetMaker::DisplaySourceURL): Likewise.
1515 2012-10-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1517 Fix error in counting of catalogue files during loading.
1519 * src/pkgbind.cpp (pkgRepository::GetPackageList): Increment count
1520 variable once only, at start of each cycle of the catalogue loading
1521 loop; previous strategy of counting in discrete logic paths could
1522 miss several required increments, particularly in CLI mode.
1524 2012-10-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1526 Avoid DMH message digest fragmentation when downloading.
1528 * src/dmh.h (DMH_GET_CONTROL_STATE): New macro; define it.
1529 * src/pkginet.cpp (pkgInternetAgent::OpenURL): Use it; do not close
1530 locally opened message digest, when called with one already open.
1532 2012-10-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1534 Initiate progress metering for catalogue load and update operations.
1536 * src/guidata.rc (IDD_REPO_UPDATE): New dialogue template; define it.
1537 (IDM_REPO_UPDATE): Enable selection from "Repository" drop-down menu.
1539 * src/guimain.h (IDD_REPO_UPDATE, IDD_CLOSE_OPTIONS):
1540 (IDD_AUTO_CLOSE_OPTION, IDD_PROGRESS_BAR, IDD_PROGRESS_MSG): New
1541 resource identification manifest constants; define them.
1542 (pkgXmlNode, pkgProgressMeter): Add forward class declarations.
1543 (AppWindowMaker::AttachedProgressMeter): New private data; define...
1544 (AppWindowMaker::AppWindowMaker): ...and initialise it.
1545 (AppWindowMaker::AttachProgressMeter): New public method; declare it.
1546 (AppWindowMaker::DetachProgressMeter): Likewise.
1547 (AppWindowMaker::LoadPackageData, AppWindowMaker::ClearPackageList):
1548 (AppWindowMaker::UpdatePackageList): Make them public.
1550 * src/pkgbase.h (pkgProgressMeter): New abstract class; declare it.
1551 (AppWindowMaker) [GUIMAIN_H undefined]: Add forward class declaration.
1552 (pkgXmlDocument::progress_meter): New private data member; declare...
1553 (pkgXmlDocument::pkgXmlDocument): ...and initialise it.
1554 (pkgXmlDocument::ProgressMeter, pkgXmlDocument::AttachProgressMeter):
1555 (pkgXmlDocument::DetachProgressMeter): New public inline methods;
1558 * src/pkgview.cpp (WTK::GenericDialogue): Delete disused reference.
1559 (AppWindowMaker::OnCommand): Factor out implementation; relocate it...
1560 * src/guixmld.cpp: ...to here; thus it may utilise dependants of...
1561 (ProgressMeterMaker): ...this new locally implemented class.
1562 (AppWindowMaker::AttachProgressMeter): Implement it.
1563 (AppWindowMaker::AttachProgressMeter): Likewise.
1564 (pkgProgressMeter::~pkgProgressMeter): Likewise.
1565 (pkgUpdate, pkgInvokeUpdate): New static functions; implement them.
1566 (AppWindowMaker::Invoked): Replace direct call to LoadPackageData by
1567 an indirect invocation, via a progress metering dialogue box using...
1568 (pkgInitDataLoad): ...this new static callback function, invoking...
1569 (pkgInvokeInitDataLoad): ...this new static thread function, whence...
1570 (AppWindowMaker::LoadPackageData): ...this; add hook-up call to...
1571 (pkgXmlDocument::AttachProgressMeter): ...incorporate this.
1573 * src/pkgbind.cpp (pkgRepository::total, pkgRepository::count): New
1574 private static properties; declare and instantiate them; provide...
1575 (pkgRepository::Reset, pkgRepository::IncrementTotal): ...new public
1576 static methods to manipulate them; declare and implement them inline.
1577 (pkgRepository::GetPackageList): Use them to manage updates to the
1578 pkgProgressMeter class instance, if any, which has been bound to
1579 the controlling pkgXmlDocument class instance, when invoking...
1580 (pkgXmlXmlDocument::BindRepositories): ...this.
1582 2012-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1584 Associate DMH message boxes with active dialogues.
1586 * src/guidmh.cpp (last_active_popup): New static inline function.
1587 (dmhTypeGUI::dispatch_message): Use it.
1589 2012-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1591 Fix Diagnostic Message Handler initialisation logic.
1593 * src/dmh.cpp (dmh_init) [DMH_SUBSYSTEM_GUI]: Correct a logic error;
1594 it previously fell through after any successful initialisation of the
1595 DMH_SUBSYSTEM_GUI handler, replacing it with a DMH_SUBSYSTEM_TTY type
1596 handler. Also, assign a heap copy of the passed "progname" string
1597 resource, which is volatile, to ensure that the handler retains a
1600 2012-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1602 Implement preliminary GUI mode data sheet compiler.
1604 * src/guimain.h (DataSheetMaker): New class; forward declare it.
1605 (AppWindowMaker::InitPackageTabControl): New private method; declare it.
1606 (AppWindowMaker::DataSheet, AppWindowMaker::PackageTabControl):
1607 (AppWindowMaker::TabDataPane, AppWindowMaker::PackageTabPane): New
1608 private data members; declare them.
1609 (ID_SASH_WINDOW_PANE_CLASS): New string resource identifier; define it.
1610 (ID_PACKAGE_DATASHEET, ID_PACKAGE_TABPANE): New window identifiers;
1613 * src/guidata.rc (ID_SASH_WINDOW_PANE_CLASS): Specify string resource.
1615 * src/pkgview.cpp (AppWindowMaker::OnSize): Add handler for...
1616 (ID_PACKAGE_TABPANE, ID_PACKAGE_TABCONTROL, ID_PACKAGE_DATASHHET):
1617 ...this group of sash pane child window entities.
1618 (AppWindowMaker::OnNotify): Comment out disused stub implementation.
1620 * src/pkgshow.cpp (pkgUTF8Parser): Factor out class declaration...
1621 (UTF32_MAX, UTF32_OVERFLOW, UTF32_INVALID): ...these definitions...
1622 (utf32_t): ...and this typedef; relocate to, and #include...
1623 * src/pkgdata.h: ...this new header file.
1625 * src/pkgdata.cpp (DataSheetMaker): New class; declare and implement it.
1626 (AppWindowMaker::InitPackageTabControl): Implement it.
1627 (AppWindowMaker::OnNotify): Reimplement it.
1629 * Makefile.in (GUIMAIN_OBJECTS): Add pkgdata.OBJEXT
1631 * src/guixmld.cpp (AppWindowMaker::Invoked): Add call to invoke
1632 AppWindowMaker::InitPackageTabControl()
1634 2012-10-09 Keith Marshall <keithmarshall@users.sourceforge.net>
1636 Remove a grossly heuristic list view hack.
1638 * src/pkglist.cpp (pkgListViewMaker::GetTitle): Remove code for the
1639 heuristic deletion of any redundant package name prefixes from package
1640 title attributes; by now, all such prefixes should have been removed
1641 from the catalogue, explicitly, at source.
1643 2012-10-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1645 Implement GUI list view compiler for XML catalogue.
1647 * src/pkgview.cpp (AppWindowMaker::LayoutEngine): Add case handler...
1648 [pane_id == ID_PACKAGE_LISTVIEW]: ...for this window pane class.
1650 * src/guimain.h (ID_PKGLIST_TABLE_HEADINGS):
1651 (ID_PKGNAME_COLUMN_HEADING, ID_PKGTYPE_COLUMN_HEADING):
1652 (ID_INSTVER_COLUMN_HEADING, ID_REPOVER_COLUMN_HEADING):
1653 (ID_PKGDESC_COLUMN_HEADING): New resource identifiers; define them.
1654 (ID_PKGSTATE_AVAILABLE, ID_PKGSTATE_AVAILABLE_NEW):
1655 (ID_PKGSTATE_AVAILABLE_LOCKED, ID_PKGSTATE_AVAILABLE_INSTALL):
1656 (ID_PKGSTATE_INSTALLED_CURRENT, ID_PKGSTATE_INSTALLED_LOCKED):
1657 (ID_PKGSTATE_INSTALLED_OLD, ID_PKGSTATE_UPGRADE, ID_PKGSTATE_REMOVE):
1658 (ID_PKGSTATE_REINSTALL, ID_PKGSTATE_DOWNGRADE, ID_PKGSTATE_BROKEN):
1659 (ID_PKGSTATE_PURGE): New icon resource identifiers; define them.
1660 (AppWindowMaker::InitPackageListView): New private method; declare it.
1661 (AppWindowMaker::UpdatePackageList): New private method; declare it.
1662 (AppWindowMaker::ClearPackageList): New private method; declare and
1663 implement it inline.
1665 * src/guidata.rc (ID_PKGSTATE_AVAILABLE, ID_PKGSTATE_AVAILABLE_NEW):
1666 (ID_PKGSTATE_AVAILABLE_LOCKED, ID_PKGSTATE_AVAILABLE_INSTALL):
1667 (ID_PKGSTATE_INSTALLED_CURRENT, ID_PKGSTATE_INSTALLED_LOCKED):
1668 (ID_PKGSTATE_INSTALLED_OLD, ID_PKGSTATE_UPGRADE, ID_PKGSTATE_REMOVE):
1669 (ID_PKGSTATE_REINSTALL, ID_PKGSTATE_DOWNGRADE, ID_PKGSTATE_BROKEN):
1670 (ID_PKGSTATE_PURGE): New icon resources; implement them.
1672 * icons/state01.ico icons/state02.ico icons/state03.ico:
1673 * icons/state04.ico icons/state05.ico icons/state06.ico:
1674 * icons/state07.ico icons/state08.ico icons/state09.ico:
1675 * icons/state10.ico icons/state11.ico icons/state12.ico:
1676 * icons/state13.ico: New files. All are cloned from synaptic icons;
1677 see src/guimain.rc for symbolic/functional reference names.
1679 * src/pkglist.h [GUIMAIN_H defined] (pkgListViewMaker): New class;
1680 declare it for use in modules which #include guimain.h
1682 * src/pkglist.cpp: New file; it implements...
1683 (pkgListViewMaker): ...this new class, and its clients...
1684 (AppWindowMaker::InitPackageListView): New method.
1685 (AppWindowMaker::UpdatePackageList): Likewise.
1687 * Makefile.in (GUIMAIN_OBJECTS): Add pkglist.OBJEXT
1689 * src/guixmld.cpp (AppWindowMaker::Invoke): Call InitCommonControls(),
1690 as prerequisite to AppWindowMaker::InitPackageListView(); follow up by
1691 calling AppWindowMaker::AdjustLayout().
1693 2012-10-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1695 Add GUI initialiser hook for XML catalogue interface.
1697 * src/guimain.h (AppWindowMaker::Invoke): New public method; declare
1698 it; it overrides the generic WTK::MainWindowMaker::Invoke() method, so
1699 providing the initialiser hook which will invoke this...
1700 (AppWindowMaker::LoadPackageData): ...new private method; declare it.
1702 * src/guixmld.cpp: New file.
1703 (AppWindowMaker::Invoke): Implement it.
1704 (AppWindowMaker::LoadPackageData): Likewise.
1706 * Makefile.in (GUIMAIN_OBJECTS): Add guixmld.OBJEXT
1708 2012-09-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1710 Add initial working GUI mode DMH class implementation.
1712 * src/dmh.h (DMH_SEVERITY_MASK): New manifest constant; define it.
1713 (DMH_DIGEST_MASK, DMH_COMPILE_DIGEST, DMH_DISPATCH_DIGEST): Likewise.
1714 (DMH_BEGIN_DIGEST, DMH_END_DIGEST): Redefine in terms of above.
1716 * src/dmhcore.h: New header file; it declares...
1717 (dmhTypeGeneric): ...this abstract base class, factored from...
1719 * src/dmh.cpp (dmhTypeGeneric): ...here, whence remove it; it is
1720 still required, thus include dmhcore.h so that it remains visible.
1721 (dmh_exception): Remove errant namespace qualifier from constructor.
1722 (dmhTypeGUI): Delete class declaration and original constructor.
1723 (dmh_init): Delete reference to dmhTypeGUI; replace by call to...
1724 (dmh_init_gui): ...this new static function; it is a stub which
1725 invokes a DLL import of the same name, to instantiate a dmhTypeGUI.
1726 (dmhTypeGUI::control, dmhTypeGUI::notify, dmhTypeGUI::printf): Delete
1727 original method stubs.
1729 * src/guidmh.cpp: New file; it reimplements...
1730 (dmhTypeGUI): ...this class; declare it and implement its constructor.
1731 (dmh_init_gui): Provide its DLL exported implementation.
1732 (dmhTypeGUI::dispatch_message): New private method; add it to the
1733 class declaration and implement it; it is a helper method for...
1734 (dmhTypeGUI::control, dmhTypeGUI::notify): ...these; implement them.
1735 (dmhTypeGUI::printf): Provide a replacement stub.
1737 * Makefile.in (GUIMAIN_OBJECTS): Add guidmh.OBJEXT
1739 * src/guimain.h (AppWindowMaker::Create): New method; add it to the
1740 class declaration; it overrides the default Create() method inherited
1741 from WTK::MainWindowMaker
1743 * src/pkgview.cpp (AppWindowMaker::Create): Implement it; it handles
1744 window class registration and dmhTypeGUI initialisation, in addition
1745 to the inherited CreateWindow() behaviour.
1747 * src/guimain.cpp: Include dmh.h
1748 (WinMain): Add catch block for dmh_exception. Remove window class
1749 registration request; it is now delegated to AppWindowMaker::Create()
1751 2012-09-26 Keith Marshall <keithmarshall@users.sourceforge.net>
1753 Add .hgignore as tracked file.
1755 * .hgignore: New file.
1757 2012-09-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1759 Defer generation of version.c until "make" time.
1761 * version.c.in: Move it...
1762 * src/version.c.in: ...to here.
1763 (PACKAGE_NAME, PACKAGE_VERSION, COPYRIGHT_HOLDER, YEARS_OF_ISSUE):
1764 Change substitution field marker character from "@" to "%".
1766 * configure.ac (AC_CONFIG_FILES): Remove version.c
1768 * Makefile.in (TAG_SCRIPT): New macro, factored out from...
1769 (RC_SCRIPT): ...here, whence use it; also use it to implement...
1770 (VERSION_SCRIPT): ...this further new macro; use it in...
1771 (%.c): ...this generic template rule for version.c
1772 (time-stamp, %.time, %.tagged.time, %.tag): New generic build
1773 goals; use them to track package release progression via...
1774 (build.tag): ...this new intermediate; make it a pre-requisite...
1775 (guidata.OBJEXT, version.c): ...of these.
1777 2012-09-21 Keith Marshall <keithmarshall@users.sourceforge.net>
1779 Implement framework for GUI sash window layout controller.
1781 * configure.ac (AC_INIT): Bump version number to 0.6
1782 (CLI_RELEASE_CLASS): New AC_SUBST variable; default to "beta".
1783 (GUI_RELEASE_CLASS): New AC_SUBST variable; default to "alpha".
1784 (SNAPSHOT_CLASS): Recognise as user specified environent variable
1785 override for both CLI_RELEASE_CLASS and GUI_RELEASE_CLASS.
1786 (RC): New AC_CHECK_TOOL substitution variable name; it replaces...
1787 (WINDRES): ...this, as reference name for the resource compiler.
1788 (MINGW_AC_ASSERT_MISSING): Add AC_CHECK_HEADER traps for missing
1789 "lua-dev" and "wtklite-dev" support.
1791 * Makefile.in (CLI_RELEASE_CLASS, GUI_RELEASE_CLASS): Use them.
1792 (BUILD_TAG, RC_SCRIPT, RC_INCLUDES): New macros; define and use...
1793 (RC): ...with this, to implement new target rule for compiling...
1794 (%.rc): ...resource definition files to %.OBJEXT objects.
1795 (GUIMAIN_OBJECTS, GUIMAIN_LIBS): New macros; define and use...
1796 (guimain.EXEEXT): ...to implement build rule for this.
1797 (LIBEXEC_PROGRAMS): Add guimain.EXEEXT
1798 (lastrites.EXEEXT): Use GUI_LDFLAGS.
1800 * src/guimain.h src/guimain.cpp src/guidata.rc: New files.
1801 * src/pkgview.cpp: New file.
1803 2012-09-20 Keith Marshall <keithmarshall@users.sourceforge.net>
1805 Adjust incorrectly resolved 2012-09-14 merge from master.
1807 * src/Makefile.in: Restore lost reference to guistub.cpp
1809 2012-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1811 Implement GUI hooks in "rites of passage" internal API.
1813 * src/pkglock.h: New file; it adds the pkgLock() and pkgRelease()
1814 inline wrapper functions, through which the GUI application acquires
1815 and manages an exclusive access lock for the XML catalogue.
1817 * src/rites.c (lockfile_name): Explicitly cast memory allocated for
1818 the returned name to (char *), so this may be embedded in C++ code.
1819 (pkgInitRites): Factor out lock acquisition failure diagnostics...
1820 (pkgLockFail): ...to this inline helper function; conditionally...
1821 [ifdef GUIMAIN_H]: ...provide one implementation for GUI use...
1822 [ifndef GUIMAIN_H]: ...and an alternative for CLI use.
1824 2012-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1826 Be case agnostic when matching shortcut targets.
1828 * scripts/libexec/unlink.js [ref.TargetPath == chklink]: Apply
1829 toLowerCase() on both sides of the comparison.
1831 2012-09-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1833 Note relocation of m4 when packaging source distribution.
1835 * Makefile.in (SRCDIST_SUBDIRS): Refer to build-aux/m4, not m4.
1837 2012-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1839 Move guimain.cpp out of the way.
1841 * src/guimain.cpp: Rename file as...
1842 * src/guistub.cpp: ...this; we want to keep current features for now,
1843 but to use the guimain.cpp name for main GUI application development.
1844 * Makefile.in: Adjust references accordingly.
1846 2012-09-09 Keith Marshall <keithmarshall@users.sourceforge.net>
1848 Fix typo, and update licensing terms for embedded getopt.c
1850 * src/getopt.c: Incorporate MIT/X style licence; update copyright
1851 notice, to reflect chronology of publication; correct degenerate RCS
1852 keyword usage in EOF marker comment.
1854 2012-09-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1856 Correct omission from copyright notice.
1858 * src/pkgkeys.c: Add year 2012, to reflect 2012-09-02 update.
1860 2012-09-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1862 Redefine paragraph_key with project global scope.
1864 * src/pkgkeys.h (paragraph_key): Declare it.
1865 * src/pkgkeys.c (paragraph_key): Define it.
1867 * src/pkgshow.cpp (pkgDirectoryViewer::EmitDescription): Delete
1868 function local definition; use global definition instead.
1870 2012-09-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1872 Correct defect introduced by 2012-08-03 commit.
1874 * src/approot.c (AppPathNameW): Add omitted 'else', so that tail
1875 pointer isn't moved after the APPROOT prefix is truncated.
1877 2012-09-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1879 Remap Mercurial subrepository reference via local hg-git clone.
1881 * .hgsub (build-aux): Point to ../build-aux; this must be a locally
1882 hosted hg clone of the git origin repository, and it must pre-exist as
1883 a sibling of any created hg clone of the mingw-get repository.
1885 * .hgsubstate: New file, automatically generated by Mercurial.
1887 2012-08-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1889 Add Mercurial subrepository reference for build-aux.
1893 2012-08-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1895 More code refactoring, to facilitate GUI implementation.
1897 * src/clistub.c (AppPathNameW): Factor out; relocate to...
1898 * src/approot.c: ...this new file; it reproduces the original
1899 implementation, modified to also consider any "libexec" directory in
1900 the executable path as the first child of the APPROOT prefix. Note
1901 also, that no longer terminates APPROOT with a trailing backslash.
1903 * src/approot.h: New file; it trivially declares the prototype for...
1904 (AppPathNameW): ...this relocated extern "C" function.
1906 * src/clistub.c (main): Adapt usage of AppPathNameW(), to reinstate
1907 trailing backslash on assignment to APPROOT environment variable.
1909 * Makefile.in (CLI_EXE_OBJECTS): New macro; define it as the original
1910 set of prerequisites, with the addition of approot.OBJEXT, for...
1911 (mingw-get.EXEEXT): ...this; use it.
1913 * src/rites.c: Add comment regarding APPROOT usage.
1915 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
1917 Find missing.m4 in build-aux/m4 directory.
1919 * aclocal.m4: Change path m4/missing.m4 to build-aux/m4/missing.m4.
1921 2012-07-31 Earnie Boyd <earnie@users.sourceforge.net>
1923 Add build-aux as a submodule.
1924 Move .cvsignore to .gitignore.
1926 * .gitmodules: New file.
1927 * build-aux: New submodule directory.
1928 * .cvsignore: Remove.
1929 * .gitignore: New file.
1931 2012-07-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1933 Disable globbing of command line arguments.
1935 * src/clistub.c (_CRT_glob): Define and initialise to zero; we don't
1936 need globbing, and it may cause case transliteration of case-sensitive
1937 action keywords, when a file system entity with a case-insensitively
1938 matching name exists.
1940 2012-06-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1942 Refactor API to facilitate implementation of GUI ListView hooks.
1944 * src/pkgkeys.h (title_key, description_key): Declare them.
1945 * src/pkgkeys.c (title_key, description_key): Define them; relocate...
1946 * src/pkgshow.cpp (pkgDirectoryViewer::EmitDescription): ...from here.
1947 (pkgXmlDocument::CalalogueAllPackages): New public method; factor...
1948 (pkgXmlDocument::DisplayPackageInfo): ...from here, whence use it.
1949 (pkgDirectoryViewerEngine::EnumerateComponents): New private method;
1950 implement as a concrete method of this abstract base class; factor...
1951 (pkgDirectoryViewer::Dispatch): ...from original inline implementation
1952 within this method of the concrete derived class, whence use it.
1953 (pkgDirectoryViewerEngine, pkgDirectory): Factor class declarations...
1954 * src/pkglist.h: ...into this new header file; include it.
1956 * src/pkgbase.h (pkgDirectory): Add forward class declaration.
1957 (pkgXmlDocument::CatalogueAllPackages): Declare it.
1959 2012-05-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1961 Update help text to document package version selection capability.
1963 * src/clistub.c (help_text): Add description of command line syntax
1964 which may be used to specify an alternative to the default package
1965 version selection, for install and upgrade actions.
1967 2012-05-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1969 Support options set by preferences assigned within profile.xml
1971 * xml/profile.xml (preferences): New element; add defaults.
1973 * src/pkgopts.h (OPTION_ASSIGNED_FLAGS, OPTION_DESKTOP_ARGS):
1974 (OPTION_START_MENU_ARGS): New enumerated constants; define them.
1975 (OPTION_DESKTOP, OPTION_START_MENU): New manifest constants.
1976 (OPTION_ASSIGNED, mark_option_as_set): New macros; define them.
1977 (pkgOpts::GetValue, pkgOpts::GetString): Restrict look-up index to
1978 least significant 12-bits of full-range index value.
1979 (pkgOpts::IsSet): New inline method; implement it.
1981 * src/clistub.c (main): Reimplement --desktop and --start-menu
1982 options; each now becomes an OPTION_GENERIC optarg string store.
1983 (set_script_hook): Function no longer used; delete it; delegate to...
1984 * src/pkgbase.h (pkgXmlDocument::EstablishPreferences): ...this new
1985 method; declare it, providing its implementation in...
1986 * src/pkgopts.cpp: ...this new file; invoke it...
1987 * src/climain.cpp (climain): ...here.
1989 * Makefile.in (CORE_DLL_OBJECTS): Add pkgopts.$OBJEXT
1991 2012-04-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1993 Correct sequence of installation/removal progress reporting.
1995 * src/pkgunst.cpp (pkgRemove): Delay output of "removing package ..."
1996 message, until after pre-remove hooks have run; this ensures that any
1997 output from the pre-remove hook scripts appears in correct sequence.
1999 * src/pkginst.cpp (pkgInstall): Likewise, for "installing package ..."
2000 message, in relation to pre-install hooks.
2002 2012-04-26 Keith Marshall <keithmarshall@users.sourceforge.net>
2004 mingw-get-0.5-beta-20120426-1 released.
2006 * configure.ac (AC_INIT): Version number updated.
2007 * srcdist-doc/NEWS.in: Updated; bug-fix notifications added.
2008 * All files (r0-5-beta-20120426-1): Tag assigned.
2010 2012-04-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2012 Interim work-around for MinGW-Bug #3520864.
2014 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
2015 [DEBUG_TRACE_DEPENDENCIES]: Add request flags to messages reporting
2016 the scheduling of installation activities.
2018 * src/pkgexec.cpp (pkgXmlDocument::Schedule): Add temporary diagnostic
2019 hooks to confirm request flags; bracket them with #if 0 ... #endif.
2020 [ACTION_PRIMARY && pre-scheduled request]: Don't trash request flags
2021 when updating the pre-existing action item data.
2023 2012-04-23 Keith Marshall <keithmarshall@users.sourceforge.net>
2025 Fix MinGW-Bug #3520488
2027 * src/pkgexec.cpp (action_code): Check for, and reject NULL pointer
2028 passed as action request string; also reject ambiguous abbreviations.
2030 * src/climain.cpp (climain): Discriminate between NULL pointer and
2031 other forms of invalid action keyword matching failures.
2033 2012-04-16 Keith Marshall <keithmarshall@users.sourceforge.net>
2035 mingw-get-0.5-beta-20120416-1 released.
2037 * configure.ac (AC_INIT): Version number updated.
2038 (YEARS_OF_ISSUE): 2012 added.
2040 * srcdist-doc/NEWS.in: Updated; release notes added.
2041 * All files (r0-5-beta-20120416-1): Tag assigned.
2043 2012-04-16 Keith Marshall <keithmarshall@users.sourceforge.net>
2045 Assign icon to temporary GUI executable file.
2047 * icons/pkgicon.ico: New file, shamelessly copied from synaptic.
2049 * configure.ac: Add identification for windres; propagate it to...
2050 * Makefile.in: ...here; use it to compile object from icon files...
2051 (srcdir/icons) [%.ico]: ...from this new vpath location.
2052 (gui.exe): Link to compiled icon's object file.
2053 (SRCDIST_SUBDIRS): Add icons directory.
2055 2012-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2057 Ensure that package removal requests are correctly scheduled.
2059 * src/pkgdeps.cpp (pkgXmlDocument::Schedule) [ACTION_REMOVE]: Schedule
2060 as a distinct case, when the installed version is not the most recent
2061 available release; consideration of this distinct case was previously
2062 erroneously overlooked.
2064 2012-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2066 Correct scheduling of new prerequisites when upgrading.
2068 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
2069 [ACTION_UPGRADE && ACTION_PRIMARY]: Don't exclude scheduling for this
2070 case of a prerequisite with no previously installed version; it may be
2071 a delegated primary requirement of a meta-package.
2073 2012-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2075 Don't require subsystem within user specified version bounds.
2077 * src/pkgdeps.cpp (pkgActionItem::ApplyBounds): Automatically consider
2078 "*" wild-card matches for subsystem, if user doesn't specify it.
2080 2012-04-09 Charles Wilson <mingw@cwilson.fastmail.fm>
2082 Fix missing include.
2084 * src/pkgdeps.cpp (pkgopts.h): Include unconditionally; do not rely...
2085 (debug.h) [DEBUG_TRACE_DYNAMIC]: ...on this, for indirect inclusion.
2087 2012-04-07 Keith Marshall <keithmarshall@users.sourceforge.net>
2089 Correct a srcdist package construction defect.
2091 * Makefile.in (srcdist) [for SRCDIST_SUBDIRS]: Use...
2092 (mkinstalldirs): ...this, to create package image directories.
2094 2012-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
2096 Add scripting hooks to support creation of MS-Windows shortcuts.
2098 * src/clistub.c (progname): New static variable with file scope; it
2099 replaces former automatic variable, of same name, in main() function.
2100 (set_script_hook): New static function; implement it, and call it...
2101 (main) [--desktop, --start-menu]: ...from here, to interpret these new
2102 command line options; they are propagated to scripts via...
2103 (MINGW_GET_DESKTOP_HOOK, MINGW_GET_START_MENU_HOOK): ...these new
2104 internally assigned environment variables.
2105 (help_text): Document --desktop and --start-menu.
2107 * scripts/libexec/setup.lua scripts/libexec/wsh.lua: New lua module
2108 files; they implement a lua scripting API; they delegate requests to
2109 the Windows Scripting Host, via either of this pair of...
2110 * scripts/libexec/shlink.js: ...new script to create shortcuts, or...
2111 * scripts/libexec/unlink.js: ...its complement, to remove them.
2112 * Makefile.in (SRCDIST_SUBDIRS): Integrate them; enumerate them in...
2113 (scripts_srcdir, LIBEXEC_SCRIPTS): ...these new macros; use to...
2114 (install): ...install them.
2116 2012-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
2118 Initialise $LUA_PATH to locate mingw-get specific scripts.
2120 * src/pkgexec.cpp (lua_path_init): New static inline function.
2121 (pkgXmlNode::DispatchScript): Call it on first time invocation, per...
2122 [lua_path_setup == false]: ...this static function local variable.
2124 2012-04-01 Keith Marshall <keithmarshall@users.sourceforge.net>
2126 Support installation of releases other than latest available.
2128 * src/pkgbase.h (pkgActionItem::ApplyBounds): New method; declare it.
2130 * src/pkgdeps.cpp (pkgActionItem::ApplyBounds): Implement it.
2131 (pkgXmlDocument::Schedule): Use it to interpret user specified version
2132 bounds, and apply them to scheduled action items. Having used...
2133 (get_version_bounds): ...this new static inline function...
2134 ...to acquire any user specified version bounds, check that they can
2135 be honoured, before scheduling any action; delegate diagnostics to...
2136 (dmh_notify_no_match): ...this new local helper function, to report
2137 when they can't, and to indicate viable alternatives.
2139 2012-03-26 Keith Marshall <keithmarshall@users.sourceforge.net>
2141 Rework previously inadequate solution for MinGW-Bug #3424406
2143 * src/pkgtask.h: Update copyright notice for current year.
2144 (ACTION_MAY_SELECT): New manifest constant for use as flag; define it.
2145 * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit): Assign it.
2147 * src/pkgdeps.cpp (STATIC_INLINE): New macro; define it.
2148 (ACTION_RECURSIVE_REINSTALL, ACTION_RECURSIVE_UPGRADE):
2149 (ACTION_RECURSIVE_REPLACE): New action code constants; define them.
2150 (with_flags): Original macro deleted; replace it with...
2151 (with_request_flags): ...this new static inline function.
2152 (if_noref, if_match, if_alias, with_download, promote): New static
2153 inline functions; they replace original macros of the same names.
2154 (is_recursive_action): Function no longer used; delete it.
2155 (action_class): New static inline function; implement and use it...
2156 (pkgXmlDocument::ResolveDependencies): ...here, to identify scheduling
2157 requirements for packages which are already installed; depends on...
2158 (request_mode): ...this new automatic variable; it augments and...
2159 (recursive_mode): ...replaces this one; rename it accordingly.
2160 (viable): Automatic variable no longer used; delete it.
2161 [DEBUG_REQUEST & DEBUG_TRACE_DEPENDENCIES]: Emit notification for
2162 scheduled installation.
2163 (pkgXmlDocument::Schedule): Add an implied...
2164 (ACTION_REMOVE): ...when scheduling a reinstallation.
2166 2012-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
2168 Address reinstallation issues per MinGW-Bugs #3416013 and #3424406
2170 * src/pkgexec.cpp (reinstall_action_scheduled): New inline function.
2171 (pkgActionItem::Execute): Use it to identify cases where...
2172 [--reinstall]: ...implicit package removal is required, and also to
2173 facilitate improved progress reporting in such cases.
2175 * src/pkgdeps.cpp (is_recursive_action): New inline function.
2176 (pkgXmlDocument::ResolveDependencies): Use it in tandem with...
2177 (recursive_mode): ...this new automatic variable, so as to handle...
2178 [meta-package dependency]: ...implicit recursion, to extend the scope
2179 of the current action to the first level of non-meta dependency.
2180 [install --reinstall]: ...reinstall original version of nominated
2181 package, ignoring any available upgrade; extend scope of operation...
2182 [install --reinstall --recursive]: ...to all prerequisite packages.
2183 [upgrade --reinstall]: ...upgrade nominated package if possible; if no
2184 upgrade available, reinstall current version; extend scope...
2185 [upgrade --reinstall --recursive]: ...to all prerequisites.
2186 (pkgXmlDocument::Schedule): Partially revert 2012-03-05 change;
2187 reimplement selectively; never promote...
2188 [install, install --reinstall]: ...these operations to become...
2189 [upgrade]: ...this, even if available; issue diagnostic instead.
2191 2012-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2193 Rationalise implementation and usage of --all-related option.
2195 * src/pkgopts.h: Update copyright notice; add year 2012.
2196 (OPTION_RECURSIVE, OPTION_ALL_RELATED): New constants; define them.
2197 (pkgOpts::SetFlags): New method; declare and implement it inline.
2199 * src/clistub.c: Update copyright notice; add year 2012.
2200 (options) [recursive, all-related]: Redefine in terms of...
2201 (OPTION_RECURSIVE, OPTION_ALL_RELATED): ...these.
2202 (help_text): Update appropriately.
2204 * src/climain.cpp: Update copyright notice; add year 2012.
2205 (climain) [all-related]: Associate its use exclusively with...
2206 (source, licence): ...these package processing operations; use...
2207 (pkgOptions::SetFlags): ...this, to propagate its effect.
2209 2012-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2211 Don't report failed downloads in respect of virtual packages.
2213 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): Clear...
2214 [ACTION_DOWNLOAD]: ...this status flag for any package identified as
2215 a meta-package; this corrects a further regression introduced with the
2216 2011-11-09 update, whereby pending download requests for such virtual
2217 packages were not cancelled, resulting in failure to install due to
2218 failed downloads, when no download is actually required.
2220 2012-03-05 Keith Marshall <keithmarshall@users.sourceforge.net>
2222 Don't suppress implied downloads for top-level actions.
2224 * src/pkgdeps.cpp: Update copyright notice for new year.
2225 (pkgXmlDocument::Schedule) [!OPTION_PRINT_URIS]: Ensure that...
2226 [ACTION_DOWNLOAD]: ...this is enabled, when scheduling an install or
2227 an upgrade action for a package specified as a command line argument;
2228 this corrects a regression introduced on 2011-11-09, which resulted in
2229 ACTION_DOWNLOAD being enabled only for second tier dependent actions.
2231 2012-02-20 Keith Marshall <keithmarshall@users.sourceforge.net>
2233 Copyright notice updates.
2235 * Makefile.in: Add 2012 as year of republication.
2236 * src/pkgbase.h src/sysroot.cpp src/pkgexec.cpp: Likewise.
2237 * src/rites.c src/pkginst.cpp src/pkgunst.cpp: Likewise.
2239 2012-02-20 Keith Marshall <keithmarshall@users.sourceforge.net>
2241 Fix ill-advised optimisation in $APPROOT environment lookup.
2243 * src/rites.c (approot_path): Don't save result of getenv() lookup
2244 across calls; the environment may have been moved in the interim,
2245 making the original result invalid on any subsequent call. Also,
2246 prefer MS-Windows style (with backslashes) for default.
2247 (pkgLastRites): Report full path name for lastrites.exe, on execl()
2248 failure, rather than only the path relative to $APPROOT.
2250 2012-02-20 Keith Marshall <keithmarshall@users.sourceforge.net>
2252 Propagate sysroot path settings to scripts via the environment.
2254 * src/pkgbase.h (PKG_PUTENV_FLAGS_MASK): New constant; it maps...
2255 (PKG_PUTENV_DIRSEP_MSW, PKG_PUTENV_DIRSEP_POSIX): ...these flags...
2256 (PKG_PUTENV_SCAN_VARNAME, PKG_PUTENV_NAME_TOUPPER): ...and these;
2257 they are used to specify optional behavioural choices for...
2258 (pkgPutEnv): ...this new function; declare it.
2260 * src/sysroot.cpp (pkgPutEnv): Implement it.
2261 (pkgXmlDocument::LoadSystemMap): Use it to add $SUBSYSTEM_SYSROOT path
2262 specifications to the environment, for each named subsystem associated
2263 with the active system map.
2265 * src/pkgexec.cpp (pkgActionItem::Execute): Invoke pkgPutEnv() prior
2266 to processing of each package install, upgrade, or remove action, so
2267 as to update environment variable $SYSROOT to represent the sysroot
2268 path for each package processed, during execution of script hooks.
2270 2012-02-17 Keith Marshall <keithmarshall@users.sourceforge.net>
2272 Implement hooks to support lua scripting interface.
2274 * Makefile.in (LIBS): Add -llua.
2276 * src/pkgbase.h (pkgXmlNode::InvokeScript): New method; declare it
2277 as private, and provide overloaded public inline API implementation.
2278 (pkgXmlNode::DispatchScript): New private method; declare it.
2280 * src/pkgexec.cpp (pkgXmlNode::InvokeScript): Implement it.
2281 (pkgXmlNode::DispatchScript): Likewise; it directs InvokeScript to...
2282 (pkgInvokeScript): ...this new static function; implement it.
2284 * src/pkginst.cpp (pkgInstall): Call InvokeScript as appropriate.
2285 * src/pkgunst.cpp (pkgRemove): Likewise.
2287 2011-11-24 Keith Marshall <keithmarshall@users.sourceforge.net>
2289 Avoid implicit cast warnings; reported by Robert Hartmann.
2291 * src/dmh.h (DMH_BEGIN_DIGEST): Explicitly cast to uint16_t.
2292 (DMH_END_DIGEST): Likewise.
2294 2011-11-09 Keith Marshall <keithmarshall@users.sourceforge.net>
2296 Avoid unnecessary downloads for already installed packages.
2298 * src/pkginet.cpp (pkgActionItem::DownloadSingleArchive): Require
2299 external scheduling of ACTION_DOWNLOAD; cancel the scheduled request
2300 on completion, or when not required due to pre-existing local copy.
2302 * src/climain.cpp (pkgActionItem::GetSourceArchive): Must always be
2303 prepared to download the associated archive; enable ACTION_DOWNLOAD.
2305 * src/pkgexec.cpp (pkgActionItem::Schedule) [OPTION_REINSTALL]:
2306 May need to download the archive, even when the requested package was
2307 previously installed; schedule ACTION_DOWNLOAD to enable this.
2309 * src/pkgdeps.cpp (promote): Macro redefined in terms of...
2310 (with_flags, with_download): ...these new macros; implement and...
2311 (pkgXmlDocument::ResolveDependencies): ...use them to enable/schedule
2312 ACTION_DOWNLOAD only when expected that it may be necessary.
2314 2011-11-06 Keith Marshall <keithmarshall@users.sourceforge.net>
2316 Fix packaging anomalies for source and licence distributions.
2318 * Makefile.in (licdist): Link README from ${CURDIR}, not from '..'.
2319 (srcdist): Explicitly link pkginfo.c from ${CURDIR} to src/pkginfo,
2320 rather than as implied prerequisite; this avoids a bogus attempt to
2321 link srcdist-doc into src/pkginfo.
2323 2011-11-06 Keith Marshall <keithmarshall@users.sourceforge.net>
2325 Bump version number for subsequent CVS snapshots.
2327 * configure.ac (AC_INIT): Set version to 0.4-alpha-1.1cvs
2329 2011-11-06 Keith Marshall <keithmarshall@users.sourceforge.net>
2331 mingw-get-0.4-mingw32-alpha-1 released.
2333 * configure.ac (AC_INIT): Adjust version number.
2334 * srcdist-doc/NEWS.in: Updated; document new features and bugs fixed.
2335 * All files (r0-4-alpha-1): Tag assigned.
2337 2011-11-04 Keith Marshall <keithmarshall@users.sourceforge.net>
2339 Don't upgrade installed DLL components to incompatible version.
2340 Provide clearer diagnostics for failed requests on implied packages.
2342 * src/pkgdeps.cpp (is_abi_compatible): New static inline function.
2343 (pkgXmlDocument::ResolveDependencies) [is_installed]: Use it.
2344 (pkgXmlDocument::ResolveDependencies) [DEBUG_TRACE_DEPENDENCIES]:
2345 Clean up and improve diagnostic message content and formatting.
2346 (pkgXmlDocument::Schedule) [(upgrade || remove) && ! installed]:
2347 Downgrade diagnostic to WARNING, for implicitly specified component
2348 packages; provide additional explanatory diagnostics.
2350 * src/pkgspec.cpp (pkgSpecs::VersionComparator):
2351 * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit):
2352 [DEBUG_TRACE_DEPENDENCIES]: Eliminate diagnostic noise.
2354 2011-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2356 Fix --download-only vs. --reinstall conflict.
2358 * src/pkgexec.cpp (pkgActionItem::Execute) [OPTION_DOWNLOAD_ONLY]:
2359 Test for explicit inequality, rather than equality to zero; since the
2360 2011-08-30 update, which made --download-only also imply --reinstall,
2361 it will test as non-zero when --reinstall is specified, even though
2362 --download-only is not.
2364 2011-10-07 Keith Marshall <keithmarshall@users.sourceforge.net>
2366 Add support for non-specific upgrade of all installed packages.
2368 * src/pkgbase.h (pkgXmlDocument::RescheduleInstalledPackages):
2369 New public method; declare it.
2371 * src/pkgdeps.cpp (pkgXmlDocument::RescheduleInstalledPackages):
2374 * src/climain.cpp (climain) [ACTION_UPGRADE && argc < 2]: Invoke
2375 pkgXmlDocument::RescheduleInstalledPackages() to schedule the upgrade
2376 request for all packages currently registered as installed.
2378 2011-10-06 Keith Marshall <keithmarshall@users.sourceforge.net>
2380 Implement "source" and "licence" operations.
2382 * src/pkgopts.h (OPTION_ALL_DEPS): New option code; define it.
2383 * src/clistub.c (main): Associate it with...
2384 (all-related, recursive): ...these synonymous option names...
2385 (options): ...defined within this local structured array.
2386 (help_text): Document them; also document "source" and "licence" as
2387 new operations which may be specified on the command line.
2389 * src/pkgtask.h (action_source, action_licence): Enumerate them.
2390 (ACTION_SOURCE, ACTION_LICENCE): Define their manifest values, and...
2391 * src/pkgexec.cpp (action_name): ...associate with operation names.
2393 * src/pkgbase.h (pkgActionItem::GetScheduledSourceArchives):
2394 (pkgActionItem::GetSourceArchive, pkgXmlDocument::GetSourceArchive):
2395 New public methods; declare them for external implementation.
2396 (pkgXmlDocument::GetScheduledSourceArchives): New public method;
2397 implement it as inline.
2399 * src/climain.cpp (pkgProcessedArchives): New pointer to stack of...
2400 (pkgArchiveNameList): ...this new locally defined class; implement it.
2401 (pkgActionItem::GetSourceArchive, pkgXmlDocument::GetSourceArchive):
2402 (pkgActionItem::GetScheduledSourceArchives): Implement them.
2403 (climain): Add invocation hooks.
2405 2011-10-04 Keith Marshall <keithmarshall@users.sourceforge.net>
2407 Establish mapping from release tarname to source tarname.
2409 * src/pkgreqs.cpp (inherited_requirement): New inline function.
2410 (requirement): Use it; adapt to propagate release archive format and
2411 compression type fields, in addition to version fields, when resolving
2412 "%" wildcard matches within the template for the resultant tarname.
2413 (pkgAssociateName): New public function; implement it for use by...
2414 * src/pkgname.cpp (pkgResolvedName): ...this new inline function.
2415 (pkgXmlNode::SourceArchiveName): Use it; adapt to accept a category
2416 selector, so it may resolve source or licence tarnames on demand.
2418 * src/pkgbase.h (pkgXmlNode::SourceArchiveName): Modify declaration;
2419 add category selector argument to support source/licence choice.
2421 2011-10-02 Keith Marshall <keithmarshall@users.sourceforge.net>
2423 Facilitate downloads using diverse cache directories.
2425 * src/pkgbase.h (pkgActionItem::DownloadSingleArchive): New private
2426 method; declare it; it handles the download for a single named archive
2427 file, and stores it in a specifed cache directory.
2429 * src/pkginet.cpp (pkgActionItem::DownloadSingleArchive): Implement
2430 it; factor its code from the original implementation within...
2431 (pkgActionItem::DownloadArchiveFiles): ...this; adapt to use it.
2433 2011-10-02 Keith Marshall <keithmarshall@users.sourceforge.net>
2435 Establish cache directory for source archive downloads.
2437 * src/mkpath.h (pkgSourceArchivePath): New function; declare it.
2438 * src/mkpath.c (pkgSourceArchivePath): Implement it.
2440 2011-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2442 Support archive extraction to arbitrary destination without install.
2444 * src/pkgproc.h (pkgArchiveProcessor::ExtractFile): New virtual
2445 helper method for use, as core helper, by derived classes; declare it.
2446 (pkgArchiveProcessor::CreateExtractionDirectory): Likewise.
2447 (pkgTarArchiveProcessor): Declare overloaded default constructor.
2448 (pkgTarArchiveExtractor): New class definition; it is derived from
2449 pkgTarArchiveProcessor.
2451 * src/tarproc.cpp (pkgArchiveProcessor::ExtractFile): Implement it.
2452 (pkgArchiveProcessor::CreateExtractionDirectory): Likewise.
2453 (pkgTarArchiveExtractor): Implement constructor, together with...
2454 (pkgTarArchiveExtractor::ProcessDirectory): ...this method, and also...
2455 (pkgTarArchiveExtractor::ProcessDataStream): ...this one; these are
2456 declared as abstract, in the pkgTarArchiveProcessor base class.
2457 (pkgTarArchiveInstaller::ProcessDirectory): Simplify; it now delegates
2458 directory creation to pkgArchiveProcessor::CreateExtractionDirectory.
2459 (pkgTarArchiveInstaller::ProcessDataStream): Simplify; delegate file
2460 handling to pkgArchiveProcessor::ExtractFile, as appropriate.
2462 2011-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2464 Make --download-only and --print-uris imply --reinstall.
2466 * src/pkgopts.h (OPTION_PRINT_URIS): Adjust definition.
2467 (OPTION_DNLOAD_ONLY, OPTION_DOWNLOAD_ONLY): Likewise.
2469 2011-08-07 Keith Marshall <keithmarshall@users.sourceforge.net>
2471 Implement --download-only and --print-uris options.
2473 * src/pkgopts.h (OPTION_DOWNLOAD_ONLY, OPTION_PRINT_URIS):
2474 New manifest constants, identifying flag bits; define them.
2475 (OPTION_DNLOAD_ONLY): Likewise; an alias for OPTION_DOWNLOAD_ONLY.
2477 * src/pkgbase.h (pkgActionItem::PrintURI): New private method.
2478 * src/pkginet.cpp: Implement it.
2480 * src/clistub.c (options): Add "download-only" and "print-uris".
2481 (help_text): Document them.
2482 * src/pkgexec.cpp (pkgActionItem::Execute): Process them.
2484 2011-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2486 mingw-get-0.3-mingw32-alpha-2.1 released.
2488 * configure.ac (AC_INIT): Adjust version number.
2489 * srcdist-doc/NEWS.in: Updated; document bugs fixed.
2490 * All files (r0-3-alpha-2-1): Tag assigned.
2492 2011-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2494 Adopt tar.xz as default package archive format.
2496 * Makefile.in (TARZIP, TAREXT): New macros; define them.
2497 (bindist, licdist, srcdist): Use them in place of hardcoded tar.gz
2498 (maintainer-clean): Expunge tar files of any compression format.
2500 2011-07-27 Keith Marshall <keithmarshall@users.sourceforge.net>
2502 Correct handling of release status in requirements specifications.
2504 * src/debug.h (DEBUG_TRACE_DEPENDENCIES): New tracing hook; define it.
2505 * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit): Use it; add
2506 function entry/exit tracing report hooks.
2507 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): Likewise;
2508 also add internal trace point reporting, which may also require...
2509 (show_required): ...this new static inline DEBUG_INVOKED function.
2511 * src/pkgreqs.cpp (requirement): Propagate release status and release
2512 reference index fields from requirer, when package version requirement
2513 is specified by a '%' token, and no explicit release status override
2514 is included in the requirement specification.
2516 * src/pkgspec.cpp (is_wildcard_spec): New static inline helper.
2517 (pkgSpecs::VersionComparator): Use it to identify any package version
2518 specification which may require the extension of a wildcard match, to
2519 span the package version and release status fields; also add tracing
2520 hooks, triggered on DEBUG_TRACE_DEPENDENCIES, to facilitate debugging.
2522 2011-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2524 Avoid accidental RCS keyword substitutions.
2526 * Makefile.in (DOLLAR): New macro; define it.
2527 (readme.txt, readme.txt.in): Use it, where unexpanded RCS Id keyword
2528 matching is intended.
2530 2011-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2532 Mercurial support revisited.
2534 * .cvsignore (.hgtags): Add to CVS untracked list.
2536 2011-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2538 Update readme.txt ID tag-line to track NEWS rather than README.
2540 * Makefile.in (readme.txt.in): New rule; implement it.
2541 (readme.txt.tag): Likewise; this implements the tag-line tracking.
2542 (readme.txt): Rule redefined in terms of the preceding pair.
2544 2011-06-17 Keith Marshall <keithmarshall@users.sourceforge.net>
2546 mingw-get-0.3-mingw32-alpha-2 released.
2548 * configure.ac (AC_INIT): Adjust version number.
2549 * srcdist-doc/NEWS.in: Updated; document new features and bugs fixed.
2550 * All files (r0-3-alpha-2): Tag assigned.
2552 2011-06-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2554 Add internal documentation for --reinstall option.
2556 * src/clistub.c (help_text): Add description for "--reinstall".
2558 2011-06-14 Keith Marshall <keithmarshall@users.sourceforge.net>
2560 Support use of Mercurial within a CVS working copy.
2562 * .cvsignore (.hg, .hgignore): Don't have CVS track these.
2564 2011-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
2566 Implement --reinstall option.
2568 * src/pkgopts.h (OPTION_REINSTALL): New macro; define it.
2569 (OPTION_GENERIC, OPTION_SHIFT_MASK): Likewise.
2570 (OPTION_EXTRA_FLAGS): New field; declare it.
2572 * src/clistub.c (options): Add "reinstall".
2573 (OPTION_GENERIC): Use it where appropriate; within its scope...
2574 (OPTION_STORAGE_CLASS): Improve descriptive comments; add handling for
2575 default case of flag type options requiring an alignment shift.
2577 * src/pkgexec.cpp: Remove previous "always reinstall" kludge.
2578 (pkgOptionSelected, PKG_OPTION_REINSTALL): Remove obsolete macros.
2579 (pkgActionItem::Execute): Check for "upgrade" request on any package
2580 which is already up to date; report this state, otherwise...
2581 [OPTION_REINSTALL || ACTION_UPGRADE]: Mark package as "removed", to
2582 avoid bail-out on "package already installed", when calling...
2583 (pkgInstall): ...this.
2585 2011-06-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2587 Don't require -vv to report progress of update operation.
2589 * src/pkgbind.cpp (pkgRepository::GetPackageList): Eliminate all
2590 basename() calls; `dname' already tells us what it should return.
2591 [update]: Report progress, irrespective of verbosity setting.
2593 2011-06-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2595 Fix MinGW-Bug #3313806.
2597 * src/pkginfo/pkginfo.l (CMS_KEYWORDS): Do not match them within the
2598 PACKAGE_NAME field; this avoids misinterpretation as a release status
2599 qualifier when intended as part of the package name, as in msys-cvs.
2601 2011-06-07 Keith Marshall <keithmarshall@users.sourceforge.net>
2603 Provisional correction for MinGW-Bug #3309438.
2605 * src/debug.h [DEBUGLEVEL == 0]: Provide defaults for...
2606 (DEBUG_ENABLED, DEBUG_REQUEST): ...these macros.
2608 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDirectory):
2609 (pkgTarArchiveInstaller::ProcessDataStream): Use DEBUG_REQUEST to
2610 enable runtime trace activation for previous compile time choices.
2612 2011-05-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2614 mingw-get-0.3-mingw32-alpha-1 released.
2616 * configure.ac (AC_INIT): Adjust version number.
2617 * srcdist-doc/NEWS.in: Updated; document new features.
2618 * All files (r0-3-alpha-1): Tag assigned.
2620 2011-05-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2622 Support assignment of DEBUGLEVEL at configure time.
2624 * configure.ac (DEBUGLEVEL): Declare as a precious variable, using
2625 AC_ARG_VAR; also declare with AC_SUBST, to ensure it is initialised.
2627 * Makefile.in (DEBUGLEVEL): Let AC_SUBST assign it.
2629 2011-05-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2631 Work around bugs in MinGW and GNU getopt_long_only() implementations.
2633 * src/getopt.c: New file; this is a free-standing replacement for any
2634 implementation provided by system libraries. We will always use this
2635 to ensure correct operation irrespective of system bugs; (different
2636 bug manifestations have been identified in the stock MinGW and GNU
2639 * Makefile.in (mingw-get.EXEEXT): Use it.
2641 * src/clistub.c (options): Remove redundant declaration of `-v' as a
2644 2011-05-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2646 Implement user selection of traceable features at run-time.
2648 * src.pkgopts.h (OPTION_VERBOSE_MAX): New macro; define it.
2650 * src/debug.h (DEBUG_ENABLED): New macro; define it.
2651 (DEBUG_REQUEST, DEBUG_REQUEST_FLAGS, DEBUG_TRACE_DYNAMIC): Likewise.
2653 * src/clistub.c (main) [--trace]: Don't make it available unless...
2654 [DEBUG_ENABLED(DEBUG_TRACE_DYNAMIC)]: ...this is set (at compile-time).
2655 [--verbose]: Limit to OPTION_VERBOSE_MAX, using...
2656 (atmost): ...this new macro; define it.
2657 (options): Declare `-v' as both long and short form, pending bug fix
2658 in MinGW's getopt_long_only() implementation.
2660 * src/pkginet.cpp (pkgInternetAgent::OpenURL): Use DEBUG_REQUEST.
2661 (pkgInternetLzmaStreamingAgent::TransferData): Likewise.
2662 (pkgInternetStreamingAgent::TransferData): Likewise.
2663 (pkgInternetStreamingAgent::Get): Likewise.
2665 * src/pkgunst.cpp (pkgActionItem::SetAuthorities): Use DEBUG_REQUEST.
2666 (pkg_rmdir, pkg_unlink): Likewise.
2668 * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Use DEBUG_REQUEST.
2670 2011-05-21 Keith Marshall <keithmarshall@users.sourceforge.net>
2672 Implement protocol for processing global program options.
2674 * src/pkgopts.h: New file.
2676 * src/climain.cpp (cli_setopts): New function; implement it.
2677 (pkgOptions): Likewise.
2679 * src/clistub.c (xatoi): New function; implement it.
2680 (cli_setargv): New inline helper function; implement it.
2681 (main): Use it. Also incorporate implementation of...
2682 (parsed_options): New structure; it accommodates...
2683 (verbose, trace): New options; interpret them, and...
2684 (help_text): ...document them.
2686 * src/pkgbind.cpp (pkgRepository::GetPackageList): Make catalogue
2687 loading notifications and progress reports conditional on...
2688 [OPTION_VERBOSE > 1]: ...this.
2690 2011-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2692 Augment known development status keywords and accept CMS labels.
2694 * src/pkginfo/pkginfo.l (CMS_KEYWORDS): Define new provisional list;
2695 add transitional state scanner rule and code to interpret them.
2696 (STATUS_KEYWORDS): Add "pre" and "rc" to existing list; modify scanner
2697 code to maintain consistency with CMS_KEYWORDS processing; also extend
2698 this coding strategy to other rules.
2700 * src/pkginfo/driver.c (spec): Strip initial '$' token from displayed
2701 field values; (we expect it only for a CMS_KEYWORDS field value).
2703 * src/pkgreqs.cpp (pkgSpecs::GetTarName): Remove any initial '$' token
2704 from PACKAGE_RELEASE_STATUS field, when performing reverse of tarname
2705 decomposition transformation.
2707 2011-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2709 Correct omission from 2011-02-18 commit.
2711 * src/tarproc.cpp (Copyright Notice): Add 2011 as year of release.
2713 2011-05-14 Keith Marshall <keithmarshall@users.sourceforge.net>
2715 mingw-get-0.2-mingw32-alpha-4 released.
2717 * configure.ac (AC_INIT): Adjust version number.
2718 * srcdist-doc/NEWS.in: Updated; add bug-fix/feature descriptions.
2719 * All files (r0-2-alpha-4): Tag assigned.
2721 2011-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2723 Fix MinGW-Bug #3297660 (reported by Chris Sutcliffe).
2725 * src/pkgbase.h (pkgActionItem::SetAuthorities): Return unsigned long.
2726 (pkgActionItem::HasAttribute): New inline method; implement it.
2728 * src/pkgtask.h (ACTION_DOWNLOAD, ACTION_DOWNLOAD_OK): New macros.
2730 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles):
2731 [ACTION_DOWNLOAD]: Assert it at commencement of each package download;
2732 clear it again, on successful download completion.
2734 * src/pkginst.cpp (pkgtask.h): #include it.
2735 (pkgInstall) [ACTION_DOWNLOAD]: Don't proceed with installation when
2736 set; this indicates failed download; diagnose it.
2738 * src/pkgunst.cpp (pkgRemove) [ACTION_DOWNLOAD && ACTION_UPGRADE]:
2739 Don't proceed with pre-emptive removal when both set; this indicates
2740 failed download of replacement package; diagnose it.
2742 2011-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2744 Fix MinGW-Bug #3295526 (reported by Charles Wilson).
2746 * src/pkgunst.cpp (sys/stat.h): #include it; we need it for...
2747 (pkg_unlink): ...chmod( file, S_IWRITE ), emulating `rm -f' semantics.
2749 2011-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2751 Diagnose and aggressively retry failed download connections.
2753 * src/debug.h (DEBUG_TRACE_INTERNET_REQUESTS): New macro; define it.
2755 * src/pkginet.cpp (debug.h): #include it.
2756 (pkgDownloadMeter): New abstract class; declare it and implement its
2757 default (non-abstract) data and methods; derive...
2758 (pkgDownloadMeterTTY): ...this new class from it; implement it...
2759 (pkgInternetStreamingAgent::Get): ...and instantiate it (naively for
2760 now), as associated pkgDownloadMeter object; add tracing diagnostic.
2761 (pkgInternetAgent::OpenURL): Don't inline it; move implementation out
2762 of line; add retry loops to aggressively retry failed connections.
2763 (pkgInternetAgent::QueryContentLength): New method; implement it.
2764 (pkgInternetStreamingAgent::TransferData): Avoid Microsoft specific
2765 data type `DWORD'; prefer equivalent standard `unsigned long'. Add
2766 tracing diagnostic. Remove progress diagnostic; replace it with an
2767 `Update' request to associated pkgDownloadMeter.
2768 (pkgInternetLzmaStreamingAgent::GetRawData): Avoid `DWORD' data type.
2769 (pkgInternetLzmaStreamingAgent::TransferData): Likewise; add tracing
2770 diagnostic on failure.
2772 2011-03-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2774 mingw-get-0.2-mingw32-alpha-3 released.
2776 * configure.ac (AC_INIT): Adjust version number.
2777 * srcdist-doc/NEWS.in: Updated; add bug-fix description.
2778 * All files (r0-2-alpha-3): Tag assigned.
2780 2011-03-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2782 Provisional handling for http proxy authentication.
2783 (Adapted from patch by Scott Michel <pingbak@users.sourceforge.net>)
2784 (ref: MinGW-Patch #3158453)
2786 * src/pkginet.cpp: Several format/layout adjustments; add comments.
2787 Eliminate several instances of Microsoft specific typedef nastiness.
2788 (dmh_dialogue_context): New macro; kludge definition to support...
2789 (pkgInternetAgent::OpenURL) [HTTP_STATUS_PROXY_AUTH_REQ]: Detect
2792 2011-03-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2794 Expand macros in path names for files and directories to be removed.
2796 * src/pkgunst.cpp (pkgRemove): Format sysroot as a template, so...
2797 (pkg_rmdir, pkg_unlink): ...are able to use mkpath() to construct the
2798 full path name for each file or directory to be removed.
2800 2011-03-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2802 Correct defective activation logic for some debugging hooks.
2804 * src/pkgunst.cpp (pkg_rmdir, pkg_unlink) [DEBUG_INVOKE_IF]:
2805 (pkgActionItem::SetAuthorities) [DEBUG_INVOKE_IF]: Use bit-wise `&'
2806 operator, not `&&', to evaluate DEBUGLEVEL state.
2808 2011-03-22 Keith Marshall <keithmarshall@users.sourceforge.net>
2810 Avoid Unicode hyphens in generated ASCII document files.
2812 * Makefile.in (NROFF): New macro; define it to invoke `nroff -Tascii'.
2813 (%.dist, readme.txt): Use it to ensure that output is pure ASCII.
2815 2011-03-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2817 mingw-get-0.2-mingw32-alpha-2 released.
2819 * configure.ac (AC_INIT): Adjust version number.
2820 * srcdist-doc/NEWS.in: Updated; add bug-fix description.
2821 * All files (r0-2-alpha-2): Tag assigned.
2823 2011-03-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2825 Fix MinGW-Bug 3212246.
2827 * src/keyword.c (has_keyword): Avoid incrementing the comparison
2828 pointers when a significant character in one string is not matched in
2829 the other; previously the pointers were left pointing one character to
2830 the right of the mismatch, and this was overlooked if the mismatch
2831 occurred at the rightmost character in both strings.
2833 2011-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2835 mingw-get-0.2-mingw32-alpha-1 released.
2837 * configure.ac (AC_INIT): Set version number; correct capitalisation
2838 in URI reference to bug reporting instructions.
2840 * srcdist-doc/NEWS.in: Confirm release date.
2841 [bug reporting]: Remove redundant paragraph; the information is
2842 provided, via reference to mingw.org. in the README and INSTALL files.
2844 * All files (r0-2-alpha-1): Tag assigned.
2846 2011-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2848 * srcdist-doc/INSTALL.in [building]: Qualify liblzma.a requirement;
2849 add earliest acceptable snapshot release date.
2851 2011-03-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2853 Remove unused 7zip and boost source code from CVS trunk.
2855 * 7z: Directory and all content removed.
2858 2011-03-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2860 Refactor and update existing installation and usage instructions.
2862 * src/clistub.c (help_text): Updated.
2864 * srcdist-doc: New directory.
2866 * README: Deleted; its content refactored into...
2867 * srcdist-doc/README.in srcdist-doc/INSTALL.in srcdist-doc/NEWS.in:
2868 ...these new template files, updated for current development state.
2870 * srcdist-doc/gendoc.sed.in: New sed script; it directs formatting of
2871 generated text files derived from the srcdist-doc templates.
2873 * Makefile.in (SRCDIST_SUBDIRS): Add srcdist-doc.
2874 (SRCDIST_FILES): Add NEWS and INSTALL.
2875 (srcdist-doc): New build rule to generate README, NEWS and INSTALL.
2876 (srcdist, licdist): Adjust path to locate them.
2877 (readme.txt): New build rule to generate on-line package description.
2879 (distclean): Don't remove Makefile...
2880 (maintainer-clean): ...but do it here instead. Also remove generated
2881 README, NEWS and INSTALL, the autom4te cache, and all distributable
2882 zip files, in addition to tarballs, for the current version.
2884 2011-02-27 Keith Marshall <keithmarshall@users.sourceforge.net>
2886 Initial implementation for "remove" feature.
2888 * src/pkgbase.h: Update copyright notice; add current year.
2889 (pkgActionItem::SetPrimary): New inline public method; declare it.
2890 (pkgActionItem::SetAuthorities): New public method; declare it.
2892 * src/pkgtask.h (ACTION_PREFLIGHT, ACTION_REMOVE_OK): New defines.
2894 * src/pkgproc.h: Update copyright notice; add current year.
2895 (pkgManifest::GetSysRootReference): New public method; declare it.
2896 (pkgManifest::GetRoot): New inline method; declare and implement it.
2897 (pkgManifest::DetachSysRoot): Argument type changed to const char*.
2898 (pkgRemove): New extern "C" function; declare it.
2900 * src/pkgexec.cpp (pkgActionItem::SetPrimary): Implement it, and...
2901 (pkgXmlDocument::Schedule): ...use it to promote actions on all user
2902 specified packages, as listed on the command line, to primary status.
2903 (pkgActionItem::Execute): Repeatedly invoke...
2904 (pkgActionItem::SetAuthorities): ...this; incorporate call of...
2905 (pkgActionItem::DownloadArchiveFiles): ...this, within the loop, so
2906 that we retry failed downloads at least a second time.
2907 [ACTION_REMOVE]: Delete stub; invoke pkgRemove().
2909 * src/pkgunst.cpp: New file.
2910 (pkgActionItem::SetAuthorities): Implement it.
2911 (pkgManifest::GetSysRootReference): Implement it.
2912 (pkgManifest::DetachSysRoot): Implement it per new declaration.
2913 (pkgRemove): Implement it.
2915 * Makefile.in (CORE_DLL_OBJECTS): Add pkgunst.OBJEXT
2917 2011-02-26 Keith Marshall <keithmarshall@users.sourceforge.net>
2919 Work-around for improper stderr buffering in MSYS mintty and rxvt.
2920 (Merged from r0-1-alpha-5 branch).
2922 * src/dmh.cpp (dmhTypeTTY::emit_and_flush): New private method.
2923 (dmhTypeTTY::printf, dmhTypeTTY::notify): Use it to force an fflush()
2924 after each output record is written to stderr.
2926 * README: Update as appropriate.
2928 2011-02-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2930 Tidy up some debugging hooks.
2932 * src/debug.h (DEBUG_INVOKED): New macro; define it.
2933 (DEBUG_INVOKE_IF): Likewise; this takes arguments providing for
2934 conditional invocation of code when DEBUGLEVEL is non-zero; make it
2935 expand to nothing, when DEBUGLEVEL is zero.
2936 (DEBUG_TRACE_INIT): Redefined macro; value changed to 0x0010.
2937 (DEBUG_TRACE_TRANSACTIONS, DEBUG_SUPPRESS_INSTALLATION):
2938 (DEBUG_UPDATE_INVENTORY): New macros; define them.
2940 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDirectory):
2941 (pkgTarArchiveInstaller::ProcessDataStream): Refactor debugging hooks;
2942 implement them in terms of DEBUGLEVEL, with reference to...
2943 (DEBUG_SUPPRESS_INSTALLATION, DEBUG_UPDATE_INVENTORY): ...these.
2945 2011-02-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2947 Make package version comparisons more robust.
2949 Fixes an issue reported by Chris Sutcliffe: previously, version
2950 comparisons were evaluated solely on the basis of differences in the
2951 package version field itself. Henceforth, if this field compares as
2952 equal, then the comparison is extended to also consider differences
2953 between development phase qualifiers, and, if these too compare as
2954 equal, to differences in the target subsystem version fields.
2956 * src/pkginfo/pkginfo.h (pkgSpecs::VersionComparator): New private
2959 * src/pkgspec.cpp (pkgSpecs::VersionComparator): Implement it.
2960 (pkgSpecs::operator<, pkgSpecs::operator<=, pkgSpecs::operator>=):
2961 (pkgSpecs::operator>): Use it, replacing...
2962 (version): ...this static function; now unreferenced; delete it.
2964 * src/vercmp.h (pkgVersionInfo::pkgVersionInfo): Make it inline; it
2965 now delegates the entire class construction operation to...
2966 (pkgVersionInfo::Parse): ...this new private method; declare it. This
2967 is also used to facilitate implementation of...
2968 (pkgVersionInfo::Reset): ...this new inline method, also requiring...
2969 (pkgVersionInfo::FreeAll): ...this new inline method; also now used by
2970 the class destructor, it encapsulates separate calls to...
2971 (pkgVersionInfo::Free): ...this original inline method, renamed...
2972 (pkgVersionInfo::FreeEntry): ...as this.
2974 * src/vercmp.cpp (pkgVersionInfo::Parse): Implement it.
2976 2011-02-13 Keith Marshall <keithmarshall@users.sourceforge.net>
2978 Merge from mingw-get-0.1-mingw32-alpha-5 bug-fix branch.
2980 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): Promote
2981 "install" action on new prerequisites, where a previously uninstalled
2982 package is required to satisfy any "upgrade" dependency.
2984 * src/pkgexec.cpp (pkgActionList::Execute): Don't make misleading
2985 claims concerning package removal.
2987 * src/pkgtask.h (STRICTLY_GT, STRICTLY_LT, ACTION_PRIMARY): Add one
2988 level of parentheses around defining expressions.
2990 2011-02-10 Keith Marshall <keithmarshall@users.sourceforge.net>
2992 Publish mingw-get-0.0-mingw32-alpha-5.1 bug-fix release.
2994 * README: Updated to reflect changes.
2996 2011-02-08 Keith Marshall <keithmarshall@users.sourceforge.net>
2998 Improve diagnostics for failed GUI invocation.
3000 * src/guimain.cpp: New file; currently delivers only a diagnostic
3001 stub, provided by Sze Howe Koh <axfangli@users.sourceforge.net>, to
3002 pop-up a message block explaining why GUI mode cannot be invoked.
3004 * Makefile.in (GUI_LDFLAGS): New macro; it is required by...
3005 (gui$EXEEXT): ...this new build rule; add to prerequisites of...
3006 (all): ...this [default] build rule; redefine this in terms of...
3007 (BIN_PROGRAMS, LIBEXEC_PROGRAMS, LIBEXEC_DATA): ...these new macros;
3008 define them, and also use them as loop iterator objectives for...
3009 (install, install_strip): ...these; also schedule them...
3010 (clean): ...for removal by this.
3012 * src/clistub.c (Copyright): Add new year.
3013 (main): Amend error message, if gui$EXEEXT doesn't start; make it
3014 more intelligible to normal users.
3016 2011-02-07 Keith Marshall <keithmarshall@users.sourceforge.net>
3018 Correct omissions from packaged source tarball.
3020 * Makefile.in (Copyright): Add new year.
3021 (SRCDIST_FILES): Add aclocal.m4
3022 (SRCDIST_SUBDIRS): Add m4
3024 2011-01-05 Keith Marshall <keithmarshall@users.sourceforge.net>
3026 Reduce path names to base names, in some diagnostic message contexts.
3028 * src/climain.cpp: Update copyright notice for new year.
3029 (climain): Extract base name from argv[0], to pass as program name tag
3030 in initialisation of diagnostic message handler.
3032 * src/dmh.h, src/dmh.cpp: Update copyright notices; make some layout
3033 adjustments, for more consistent formatting style.
3035 * src/pkgbind.cpp: Update copyright notice.
3036 (pkgRepository::GetPackageList): Reduce path names for catalogue files
3037 to their base names, when reporting them in diagnostic messages.
3039 2011-01-05 Keith Marshall <keithmarshall@users.sourceforge.net>
3041 Avoid a potential out-of-range action name look-up.
3043 * src/pkgdeps.cpp: Update copyright notice for new year.
3044 (pkgXmlDocument::Schedule): Mask action code with ACTION_MASK, to
3045 determine correct action name when diagnosing uninstalled package.
3047 2011-01-03 Keith Marshall <keithmarshall@users.sourceforge.net>
3049 Make "install" and "remove" notifications symmetric.
3051 * configure.ac (AC_INIT): Bump version to "0.1-alpha-6cvs".
3052 (YEARS_OF_ISSUE): Add new year.
3054 * src/pkginst.cpp: Update copyright notice for new year.
3055 (pkgInstall): Add notification for package being installed.
3057 2010-12-30 Keith Marshall <keithmarshall@users.sourceforge.net>
3059 Add preliminary CLI support for "list" and "show" actions.
3061 * src/pkgtask.h (ACTION_PRIMARY): New manifest constant; define it.
3062 (ACTION_LIST, ACTION_SHOW): Likewise; cast to enumerated values for...
3063 (action_list, action_show): ...these; define them.
3065 * src/pkgexec.cpp (action_name): Add defining text for...
3066 (action_list, action_show): ...these.
3068 * src/climain.cpp: Partially revert 2010-11-01 change...
3069 (climain) [! ACTION_UPDATE]: Reinstate original "if" block, moving
3070 the "switch" block within it, but without the ACTION_UPDATE case.
3071 [ACTION_LIST, ACTION_SHOW]: New "switch" cases; they invoke...
3072 (pkgXmlDocument::DisplayPackageInfo): ...this new method.
3074 * src/pkgbase.h (pkgXmlDocument::DisplayPackageInfo): Declare it.
3075 (pkgActionItem::ConfirmInstallationStatus): New method; declare it.
3076 (pkgXmlNode::GetSysRoot): Make declaration style consistent with
3077 others in the class; do not name arguments in the declaration.
3078 (pkgXmlNode::FindFirstAssociate): Likewise.
3079 (pkgXmlNode::FindNextAssociate): Likewise.
3081 * src/pkgshow.cpp: New file.
3082 (pkgXmlDocument::DisplayPackageInfo): Implement it.
3084 * src/pkgdeps.cpp (pkgMsgUnknownPackage): New extern "C" function;
3085 implement it temporarily, pending a future i18n reimplementation.
3086 (assert_installed): Drop "inline" attribute; leave it as "static".
3087 Set "tarname" correctly, to match the installed package version; (it
3088 previously incorrectly returned the latest available version).
3089 (pkgActionItem::ConfirmInstallationStatus): Implement it.
3090 (pkgXmlDocument::Schedule) [ACTION_PRIMARY]: Set as appropriate.
3091 (pkgXmlDocument::Schedule) [ACTION_REMOVE || ACTION_UPGRADE]: Complain
3092 if requested package is not recorded as having been installed.
3093 (pkgXmlDocument::ResolveDependencies) [! ACTION_INSTALL]: Do not
3094 invoke it recursively.
3096 * Makefile.in (pkgshow.$OBJEXT): Add reference.
3098 2010-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
3100 Lay groundwork for implentation of additional actions.
3102 * src/climain.cpp (climain): Adjust indentation; replace `if' block...
3103 [action != ACTION_UPDATE]: ...with this default `switch' case, and...
3104 [action == ACTION_UPDATE]: ...this as explicit "do nothing" case.
3106 2010-10-29 Keith Marshall <keithmarshall@users.sourceforge.net>
3108 mingw-get-0.1-mingw32-alpha-5 released.
3110 * configure.ac (AC_INIT): Bump version to 0.1-alpha-5.
3111 * README: Update release notes accordingly.
3112 * All files (r0-1-alpha-5): Tag assigned.
3114 2010-10-22 Keith Marshall <keithmarshall@users.sourceforge.net>
3116 Make pkgInitRites/pkgLastRites processing more robust;
3117 avoid a potential race condition in mingw-get-inst.
3119 * src/rites.c: Refactor conditional code to segregate execution of...
3120 [defined IMPLEMENT_INITIATION_RITES]: ...this into distinct phases.
3121 (PHASE_ONE_RITES, PHASE_TWO_RITES): Define constants to identify them.
3122 (do_init_rites): Renamed to...
3123 (invoke_rites): ...this; inline it.
3124 (pkgLastRites): Invoke it, to pre-empt rename action of...
3125 (lastrites.exe): ...this, subsequently exec()ed process.
3126 (perror): Issue more informative diagnostic on exec() failure.
3128 * src/clistub.c (IMPLEMENT_INITIATION_RITES): Stipulate as...
3129 (PHASE_ONE_RITES): ...this phase of implementation only.
3131 * src/pkgexec.cpp (IMPLEMENT_INITIATION_RITES): Define to provide...
3132 (PHASE_TWO_RITES): ...this phase of implementation, facilitated by...
3133 (self_upgrade_rites): ...this locally defined RITES_INLINE function.
3134 (pkgActionItem::Execute): Invoke it, in remove/install loop, while...
3135 [init_rites_pending]: ...new loop local variable remains true.
3137 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
3139 Fix packaging bug in -lic package.
3141 * Makefile.in (licdist): Use directory named
3142 "share", not "shared".
3144 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
3146 mingw-get-0.1-mingw32-alpha-4 released.
3148 * All files (r0-1-alpha-4): Tag assigned.
3150 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
3152 Add rudimentary help option.
3154 * README: Update release notes.
3156 * src/clistub.c: Add --help option.
3158 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
3160 Fix "mingw-get deletes itself" bug in last rites handling.
3162 * README: Add new release notes.
3164 * configure.ac: Bump version to 0.1-alpha-4.
3166 * src/dmh.h: If __cplusplus, include <exception> and
3167 declare dmh_exception class.
3169 * src/dmh.cpp (class dmh_exception): Implement.
3170 (abort_if_fatal): If DMH_FATAL, throw dmh_exception rather
3171 than calling exit().
3173 * src/climain.cpp (climain): Wrap entire function body in try/
3174 catch block. If dmh_exception is caught, return EXIT_FAILURE.
3176 * src/clistub.c (main): Capture return value of climain(). If
3177 non-zero, perform last rites and return EXIT_FAILURE.
3179 2010-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
3181 mingw-get-0.1-mingw32-alpha-3 released.
3183 * README: Add new release notes.
3185 * All files (r0-1-alpha-3): Tag assigned.
3187 2010-08-27 Keith Marshall <keithmarshall@users.sourceforge.net>
3189 Add runtime hooks to support self-upgrade for future releases.
3191 * src/rites.c: New file; compile it free-standing, to provide...
3192 (lastrites.exe): ...this helper application for context clean-up;
3193 alternatively, use it as an include file, with pre-definition of...
3194 (IMPLEMENT_INITIATION_RITES): ...this, to implement...
3195 (pkgInitRites, pkgLastRites): ...these inline functions.
3197 * src/clistub.c (main) [argc > 1]: Use them.
3198 (progname): New local variable within `main'; set it once, then use it
3199 instead of repeated references to `basename(*argv)' in diagnostics.
3200 (MINGW_GET_DLL, MINGW_GET_GUI): Relocate to `src/rites.c'.
3202 * src/debug.h (DEBUG_INHIBIT_RITES_OF_PASSAGE):
3203 (DEBUG_FAIL_FILE_RENAME_RITE, DEBUG_FAIL_FILE_UNLINK_RITE): New
3204 defines; they facilitate debugging of the src/rites.c code.
3206 * Makefile.in (lastrites$EXEEXT): New target; build as prerequisite...
3207 (all): ...of this primary target.
3208 (install, install-strip): Install it.
3209 (SRCDIST_FILES): Remove install-sh; it is now included in...
3210 (build-aux): ...this directory; add it to...
3211 (SRCDIST_SUBDIRS): ...this.
3213 2010-08-24 Keith Marshall <keithmarshall@users.sourceforge.net>
3215 Set default sysroots relative to mingw-get installation directory.
3217 * xml/profile.xml (system-map) [name == default]: For each of...
3218 [subsystem == mingw32]: ...set sysroot path to value of %R macro...
3219 [subsystem == msys]: ...and to its %R/msys/1.0 subdirectory.
3221 2010-08-19 Keith Marshall <keithmarshall@users.sourceforge.net>
3223 Some dependency resolver enhancements and bug fixes.
3225 * src/pkgbase.h (pkgXmlNode::GetContainerAttribute): New method;
3228 * src/pkgdeps.cpp (pkgXmlNode::GetContainerAttribute): Implement it;
3229 it is used to retrieve package name attributes from the containing
3230 'package' element, when given a pointer to a 'release' element by...
3231 (assert_unmatched, assert_installed): ...these new static functions.
3232 (pkgXmlDocument::Schedule): Use them to reconstruct and register
3233 dependency reference data for previously installed packages which are
3234 no longer included in the distribution manifest.
3235 (pkgXmlDocument::ResolveDependencies): Fix a block nesting error;
3236 catch and diagnose unresolved dependencies; don't look beyond the XML
3237 document root node, (tinyxml error not caught?), when searching for
3238 requirements specified on container nodes.
3240 2010-08-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3242 Improve scheduling of package processing requests.
3244 * src/pkgexec.cpp (pkgXmlDocument::Schedule): Inspect entire `actions'
3245 list, when checking for duplicate package processing requests; decline
3246 to schedule any such duplicate, or any request which lacks a package
3249 2010-08-15 Keith Marshall <keithmarshall@users.sourceforge.net>
3251 Lay foundation for selective compilation of debugging code.
3253 * src/debug.h: New file...
3254 * src/sysroot.cpp: Include it.
3255 (pkgXmlDocument::LoadSystemMap): Make debugging output conditional...
3256 [DEBUGLEVEL & DEBUG_TRACE_INIT]: ...on this new debugging state.
3258 2010-08-15 Keith Marshall <keithmarshall@users.sourceforge.net>
3260 * src/pkgkeys.h: Typo in comment: file was previously identified as
3261 pkgkeys.c; corrected.
3263 2010-08-13 Keith Marshall <keithmarshall@users.sourceforge.net>
3265 Improve diagnostics for invalid references to non-release XML nodes.
3267 * src/pkgkeys.h (value_unknown): New global string; declare it.
3268 * src/pkgkeys.c (value_unknown): Implement it.
3270 * src/pkgname.cpp (pkgArchiveName): Identify XML element type when
3271 diagnosing references to elements of types other than release; use...
3272 (value_unknown): ...this, as appropriate.
3274 2010-08-12 Keith Marshall <keithmarshall@users.sourceforge.net>
3276 Guard against a potential buffer overrun.
3278 * src/pkgreqs.cpp (pkgSpecs::SetProperty): Allocate an additional
3279 byte to accommodate an extra field separator, when inserting a new
3280 data value into a previously empty field.
3282 2010-07-27 Cesar Strauss <cestrauss@gmail.com>
3284 Handle the GNU long name tar header format.
3286 * src/pkgproc.h (TAR_ENTITY_TYPE_GNU_LONGNAME): New manifest constant;
3288 (pkgTarArchiveProcessor::EntityDataAsString): New protected method;
3290 * src/tarproc.cpp: ...implement it.
3291 (pkgTarArchiveProcessor::Process): Before building the entry pathname,
3292 check for a GNU long name type header; when found, read pathname from
3293 the entry data area, before fetching the following header, from which
3294 to retrieve the associated entity data.
3296 2010-06-24 Keith Marshall <keithmarshall@users.sourceforge.net>
3298 Work around an autoconf bug (reported by Stefano Sabatini).
3300 * Makefile.in (VPATH): Use @top_srcdir@ instead of ${srcdir}; current
3301 autoconf incorrectly elides references to @srcdir@ and ${srcdir} when
3302 substituting within a VPATH specification for building `in-source'.
3303 Also, prefer colons to blanks as path name separators, for improved
3304 portability to non-GNU implementations of make; (recommendation by
3307 2010-06-24 Keith Marshall <keithmarshall@users.sourceforge.net>
3309 Include alias search, when matching component package name.
3311 * src/keyword.c (has_keyword): Rearrange argument declarations for
3312 more natural order; update all callers accordingly. Simplify; compare
3313 keyword to be matched with each successive candidate from match-list,
3314 character-by-character and in-place, so avoiding memory allocation
3315 for any local duplicate of the passed match-list; thus...
3316 (safe_strdup): ...this static function no longer required; delete it.
3317 (string.h): No references remain; do not include it.
3319 * src/pkgfind.cpp (pkgXmlNode::FindPackageByName): Augment component
3320 package name matching to include potential matches of the look-up name
3321 with trailing component name stripped off, when that matches the class
3322 name of an identified component package, and the initial substring of
3323 the look-up name, after stripping, matches any specified alias name
3324 for the containing package.
3326 2010-06-10 Keith Marshall <keithmarshall@users.sourceforge.net>
3328 Address FIXME relating to identification of distributable files.
3330 * install-sh: Move to...
3331 * build-aux: ...this new directory.
3333 * Makefile.in (PACKAGE_DISTVERSION): Modify `sed' edit sequence; make
3334 it depend on, and ensure that it incorporates the expansion of...
3335 (PACKAGE_SUBSYSTEM): ...this new macro; defined as substitution of...
3336 (host_os): ...this autoconf variable, set by...
3338 * configure.ac (AC_CANONICAL_HOST): ...this; add it, requiring...
3339 (AC_CONFIG_AUX_DIR): ...`build-aux' directory reference, providing...
3341 * build-aux/config.guess, build-aux/config.sub: ...these new standard
3342 files; import them from the standard `build-aux' repository.
3344 2010-05-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3346 Bump version for next release cycle.
3348 * configure.ac (AC_INIT): Bump version suffix to alpha-3.
3350 2010-05-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3352 mingw-get-0.1-mingw32-alpha-2 released.
3354 * README: Add new release notes.
3356 * xml/profile.xml: Update to use default referencing for...
3357 (package-list.xml.lzma): ...this repository master catalogue.
3359 * All files (r0-1-alpha-2): Tag assigned.
3361 2010-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
3363 Make provision to protect user's profile settings during upgrade.
3365 * Makefile.in (install): Remove `profile.xml'; replace it with...
3366 (install-profile): ...this new prerequisite installation goal; it
3367 renames the installed copy of `profile.xml' as `defaults.xml', within
3368 the installed package image.
3370 * src/pkgkeys.h (defaults_key): New key; declare it.
3371 * src/pkgkeys.c: Some cosmetic formatting (tabulation) adjustments.
3372 (defaults_key): Implement it; it refers to the `defaults.xml' file.
3374 * src/climain.cpp (climain): Check `profile_key' for accessibility of
3375 the `profile.xml' file; if [! R_OK] emit a diagnostic warning, fall
3376 back on `defaults_key', and attempt to load configuration from the
3377 distributed `defaults.xml' file.
3379 2010-05-11 Keith Marshall <keithmarshall@users.sourceforge.net>
3381 Add preliminary support for future `-reinstall' option.
3383 * src/pkgexec.cpp (pkgActionItem::Execute) [ACTION_INSTALL]: Force
3384 installation if `-reinstall' option is selected, overriding state of
3385 any prior installation; temporarily assume that this option is always
3386 selected, to permit proper `upgrade' operation in the absence of any
3387 functional `uninstall' capability, and pending implementation of a
3388 mechanism for interpreting user specified options.
3390 2010-05-11 Keith Marshall <keithmarshall@users.sourceforge.net>
3392 Correct handling for "%R" macro in relative sysroot path specs.
3394 * src/tarproc.cpp (pkgTarArchiveProcessor): In constructor, expand the
3395 sysroot path specification a second time, to capture the effect of any
3396 embedded macros, before computing the recorded `sysroot_len' value.
3398 2010-05-05 Keith Marshall <keithmarshall@users.sourceforge.net>
3400 Handle "%" wildcard matches in package and subsystem version strings.
3402 * src/pkgbase.h (pkgSpecs): Forward declare it.
3403 (pkgActionItem::~pkgActionItem): Declare explicit destructor.
3404 (pkgActionItem::SetRequirements): Add extra `pkgSpecs*' argument;
3405 update references, passing additional argument in...
3407 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): ...this.
3409 * src/pkgexec.cpp (pkgActionItem::~pkgActionItem): Implement it.
3410 (pkgActionItem::SetRequirements): Delete obsolete implementation.
3412 * src/pkginfo/pkginfo.h: Update copyright notice; add year 2010.
3413 (pkgSpecs::GetTarName): New public method; declare it.
3414 (pkgSpecs::SetProperty): New private method; declare it.
3415 (pkgSpecs::SetPackageName): New inline method; implement it.
3416 (pkgSpecs::SetPackageVersion, pkgSpecs::SetPackageBuild): Likewise.
3417 (pkgSpecs::SetSubSystemName, pkgSpecs::SetSubSystemVersion): Likewise.
3418 (pkgSpecs::SetSubSystemBuild, pkgSpecs::SetReleaseStatus): Likewise.
3419 (pkgSpecs::SetReleaseIndex, pkgSpecs::SetComponentClass): Likewise.
3420 (pkgSpecs::SetComponentVersion, pkgSpecs::SetPackageFormat): Likewise.
3421 (pkgSpecs::SetCompressionType): Likewise.
3423 * src/pkginfo/pkginfo.l: Update copyright notice; add year 2010.
3424 (TRANS): Interpret "%" as wildcard in version string matches.
3426 * src/pkgreqs.cpp: New file.
3427 (pkgActionItem::SetRequirements): Reimplement per new declaration;
3428 it now always allocates heap memory for requirements specifications.
3429 (pkgSpecs::GetTarName, pkgSpecs::SetProperty): Implement them.
3431 * Makefile.in (CORE_DLL_OBJECTS): Add `pkgreqs.$(OBJEXT)'.
3433 2010-04-30 Keith Marshall <keithmarshall@users.sourceforge.net>
3435 Revert 2010-04-04 refactoring of tarproc.cpp and tarinst.cpp
3437 * src/tarinst.cpp: File removed; its content merged into...
3438 * src/tarproc.cpp: ...this; it cannot be cleanly separated out.
3440 * Makefile.in (tarinst.$OBJEXT): Remove reference.
3442 2010-04-29 Keith Marshall <keithmarshall@users.sourceforge.net>
3444 Handle "*" wildcard matches in package and subsystem version strings.
3446 * src/vercmp.h (pkgVersionInfo::version_string): New private member
3447 variable; it stores a pointer to a dynamically allocated local copy of
3448 the invariant `version' argument, to facilitate correct parsing.
3449 (pkgVersionInfo::build_string): Likewise; it provides similar handling
3450 for the invariant `build' argument.
3451 (pkgVersionInfo::Free): New private inline method; it provides a NULL
3452 pointer safe wrapper, calling the C library `free()' function, (since
3453 some implementations are believed to be unsafe); it is used by...
3454 (pkgVersionInfo::~pkgVersionInfo): ...this new inline destructor, to
3455 release the memory allocated by the constructor, for `version_string'
3458 * src/vercmp.cpp (pkgVersionInfo::pkgVersionInfo): Allocate memory for
3459 `version_string' and `build_string', as required; populate it.
3460 Explicitly handle "*" as a `match anything' wildcard...
3461 (pkgVersionInfo::Compare): ...matching it as `equal' to everything.
3463 2010-04-18 Keith Marshall <keithmarshall@users.sourceforge.net>
3465 Correct omission from configure script prerequisite checks.
3467 * aclocal.m4 (MINGW_AC_OUTPUT): New macro; it wraps AC_OUTPUT itself,
3468 adding a trap to force an abort if any preceding prerequisite check
3469 was handled by MINGW_AC_ASSERT_MISSING.
3471 * configure.ac: Qualify package component types, in prerequisite
3472 checks handled by MINGW_AC_ASSERT_MISSING; invoke MINGW_AC_OUTPUT
3473 in place of AC_OUTPUT.
3475 2010-04-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3477 Add configure script checks for prerequisite library headers.
3478 (Thanks to Cesar Strauss for proposing a rudimentary implementation).
3480 * aclocal.m4: New file; it does no more than include...
3481 * m4/missing.m4: ...this; new file incorporated from build-aux module.
3483 * configure.ac: Add AC_CHECK_HEADER assertions for...
3484 (zlib.h, bzlib.h, lzma.h): ...these; invoke MINGW_AC_ASSERT_MISSING in
3485 respect of each failing assertion.
3487 2010-04-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3489 Case-insensitive subsystem name matching revisited.
3491 * src/pkgfind.cpp (pkgXmlDocument::FindPackageByName): Use...
3492 (subsystem_strcmp): ...this to match subsystem names, instead of...
3493 (match_if_explicit): ...this.
3495 2010-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
3497 Enable recursive processing of repository package lists.
3499 * src/pkgbase.h (pkgXmlDocument::SyncRepository): Make it public.
3501 * src/pkgbind.cpp (pkgRepository): New locally defined and implemented
3502 class; it facilitates recursive loading and parsing of package lists,
3503 replacing much of the original non-recursive functionality within...
3504 (pkgXmlDocument::BindRepositories): ...this; use it.
3506 2010-04-04 Keith Marshall <keithmarshall@users.sourceforge.net>
3508 Implement installer function; use per-package file manifests.
3510 * src/pkgproc.h (pkgManifest): New class; declare it.
3511 (pkgArchiveProcessor::origin): New protected member variable.
3512 (pkgArchiveProcessor::sysroot_len): New protected member variable.
3513 (pkgArchiveProcessor::installed): Type changed to `pkgManifest *'.
3514 (pkgTarArchiveInstaller::Process): Declare specialisation hook.
3515 (pkgTarArchiveInstaller::UpdateInstallationManifest): Disused member
3516 function; remove redundant declaration from class definition.
3517 (pkgInstall): New generalised installation function; declare it.
3518 (pkgRegister): New function; declare it.
3520 * src/pkginst.cpp: New file.
3521 (pkgManifest, pkgInstall, pkgRegister): Implement them.
3523 * src/pkgexec.cpp (pkgActionItem::Execute): Use `pkgInstall' in place
3524 of stub formerly provided here.
3526 * src/pkgkeys.h (manifest_key, reference_key): New keys; declare them.
3527 * src/pkgkeys.c (manifest_key, reference_key): Implement them.
3529 * src/tarproc.cpp: Code refactored.
3530 (pkgTarArchiveProcessor::sysroot_len): Initialise it.
3531 (pkgTarArchiveProcessor::origin): Initialise it.
3532 (pkgTarArchiveProcessor::installed): Initialise; associate it with a
3533 pkgManifest class entity, and populate this as appropriate.
3534 (pkgTarArchiveProcessor::~pkgTarArchiveProcessor): Add explicit clean
3535 up of linked `pkgManifest *' entity referenced by `installed'.
3536 (pkgTarArchiveProcessor::Process) [TAR_ENTITY_TYPE_DIRECTORY]: Add
3537 braces to demarcate localised inner scope of string scan for removal
3538 of trailing directory name separators; (thanks to Cesar Strauss for
3539 reporting invalid local pointer declaration error in GCC >= 4.4).
3540 (pkgTarArchiveInstaller::UpdateInstallationManifest): Deleted.
3541 (pkgTarArchiveInstaller::pkgTarArchiveInstaller): Factor out.
3542 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
3543 (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
3544 (commit_saved_entity): Likewise.
3546 * src/tarinst.cpp: New file; it implements...
3547 (pkgTarArchiveInstaller::Process): ...this new specialisation
3548 of the original pkgTarArchiveProcessor::Process method...
3549 (pkgTarArchiveInstaller::pkgTarArchiveInstaller): ...and this
3550 refactored code, abstracted from src/tarproc.cpp and modified to
3551 use the pkgManifest class for installation tracking.
3552 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
3553 (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
3554 (commit_saved_entity): Relocated from src/tarproc.cpp.
3556 * Makefile.in (CORE_DLL_OBJECTS): Add...
3557 (pkginst.OBJEXT, tarinst.OBJEXT): ...these new object files.
3559 2010-03-31 Keith Marshall <keithmarshall@users.sourceforge.net>
3561 Guard against NULL pointer dereferences in tinyxml code.
3563 * src/pkgbase.h (pkgXmlNode::GetName): Verify `this' pointer is
3564 non-NULL, before invoking the underlying tinyxml method.
3565 (pkgXmlNode::GetParent, pkgXmlNode::GetChildren): Likewise.
3566 (pkgXmlNode::GetNext, pkgXmlNode::GetPropVal): Likewise.
3567 (pkgXmlNode::AddChild, pkgXmlNode::DeleteChild): Likewise.
3568 (pkgXmlNode::GetDocumentRoot): Likewise.
3569 (pkgXmlNode::IsElementOfType): Likewise.
3571 2010-03-28 Cesar Strauss <cestrauss@gmail.com>
3573 Avoid running InternetAttemptConnect in pkgInternetAgent
3574 constructor, since it is called during DLL initialisation.
3576 * src/pkginet.cpp (pkgInternetAgent::pkgInternetAgent): Move the
3577 InternetAttemptConnect call from constructor...
3578 (pkgInternetAgent::OpenURL): ...to here.
3580 2010-03-23 Keith Marshall <keithmarshall@users.sourceforge.net>
3582 Automate object code dependency tracking.
3584 * Makefile.in (DEPFLAGS): New macro; define it.
3585 (%.OBJEXT: %.c, %.OBJEXT: %.cpp): Add dependency generator commands...
3586 (%.d): ...to create these dependency maps; `sinclude' them, and...
3587 (clean): ...remove them.
3589 * .cvsignore (*.d): Add wild card template to match them.
3591 2010-03-22 Keith Marshall <keithmarshall@users.sourceforge.net>
3593 Support case insensitive matching for file and subsystem names.
3595 * src/pkgbase.h (safe_strcmp): New inline function; it provides NULL
3596 argument safe comparison of strings, returning the boolean inverse of
3597 the `strcmp' result, using either case-sensitive or case-insensitive
3598 semantics; derive it from...
3599 (match_if_explicit): ...this; redefine as macro; invoke `safe_strcmp'
3600 using explicitly case-sensitive semantics.
3601 (subsystem_strcmp): New macro; it invokes `safe_strcmp' with either
3602 case-sensitive or case-insensitive semantics, depending on...
3603 (CASE_INSENSITIVE_SUBSYSTEMS): ...this new context selection macro; it
3604 fixes the choice between case-sensitive and case-insensitive matching
3605 semantics for any given implementation, at compile time.
3606 (pkg_strcmp): New macro; it invokes `safe_strcmp' with either
3607 case-sensitive or case-insensitive semantics, depending on...
3608 (CASE_INSENSITIVE_FILESYSTEM): ...this new context selection macro; it
3609 fixes the choice between case-sensitive and case-insensitive matching
3610 semantics for any given implementation, at compile time.
3612 * src/sysroot.cpp (pkgXmlNode::GetSysRoot): Use `subsystem_strcmp'.
3614 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
3616 Add preliminary support for virtual packages.
3618 * src/pkgkeys.h (yes_value, no_value): Redefine as aliases...
3619 (value_yes, value_no): ...for these new global strings; declare them.
3620 (value_none, value_virtual): New global strings; declare them.
3622 * src/pkgkeys.c (yes_value, no_value): Rename...
3623 (value_yes, value_no): ...to implement these, respectively.
3624 (value_none, value_virtual): Implement them.
3626 * src/pkgname.cpp (pkgXmlNode::ArchiveName): Check containing package
3627 node for `class' attribute set to `value_virtual'; if present, always
3628 return the effective `tarname' property as `value_none'.
3630 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): For packages
3631 with an effective `tarname' of `value_none', do not download anything.
3633 * src/pkgexec.cpp (pkgActionItem::Execute): For packages with an
3634 effective `tarname' of `value_none', do not invoke any tar archive
3635 processing function.
3637 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
3639 Don't write installation records for unavailable packages.
3641 * src/tarproc.cpp (pkgTarArchiveInstaller): In constructor, ensure
3642 archive is ready for processing, before initialising an installation
3645 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
3647 Rationalise path identification for XML file locations.
3649 * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Use `xmlfile()'
3650 function to locate `sysroot' map file; free memory when done.
3651 (pkgXmlDocument::UpdateSystemMap): Likewise.
3652 (sigpath): Static global variable disused; delete it.
3654 2010-03-01 Keith Marshall <keithmarshall@users.sourceforge.net>
3656 Extend package name search to include component packages.
3658 * src/pkgfind.cpp (pkgHasMatchingName): Remove; fold it into...
3659 (pkgXmlNode::FindPackageByName): ...this; augment to extend search
3660 within package definition elements, seeking a potential match on an
3661 included component package name or component class-implied name.
3663 * src/pkgkeys.h (class_key): New global string constant; declare it.
3664 * src/pkgkeys.c (class_key): Implement it.
3666 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3668 Bump version for next release cycle.
3670 * configure.ac (AC_INIT): Bump version suffix to alpha-2.
3672 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3674 mingw-get-0.1-mingw32-alpha-1 released.
3676 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3678 Prepare initial package release.
3680 * README: New file; use it to source release notes.
3682 * Makefile.in (SRCDIST_FILES): Use ...
3683 (LICENCE_FILES): ...this new macro; define it.
3684 (licdist): New build goal; implement it.
3685 (bindist): Require it; add alternative `zip' format package.
3687 * xml/profile.xml (repository): Set default `package-index' name.
3688 (system-map): Normalise spelling for default `sysroot' path names.
3690 2010-02-10 Keith Marshall <keithmarshall@users.sourceforge.net>
3692 Add directory/file records in installation manifests.
3694 * src/pkgkeys.h (dirname_key, filename_key): New strings; declare...
3695 * src/pkgkeys.c (dirname_key, filename_key): ...and implement them.
3697 * src/pkgproc.h (pkgArchiveProcessor::installed): New class member
3698 variable; declare it.
3699 (pkgTarArchiveInstaller::UpdateInstallationManifest): New method;
3702 * src/tarproc.cpp: Miscellaneous comment updates.
3703 (pkgTarArchiveInstaller): In constructor...
3704 (pkgTarArchiveInstaller::installed): ...use new member variable...
3705 (pkgArchiveProcessor::installed): ...inherited from this.
3706 (pkgTarArchiveInstaller::UpdateInstallationManifest): Implement and...
3707 (pkgTarArchiveInstaller::ProcessDataStream): ...use it.
3708 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
3710 2010-02-06 Keith Marshall <keithmarshall@users.sourceforge.net>
3712 Work around a deficiency in Microsoft's stat() implementation.
3714 * src/tarproc.cpp (pkgTarArchiveProcessor::ProcessDirectory): Don't
3715 pass a `pathname' argument with trailing slashes; strip them off.
3717 2010-02-06 Keith Marshall <keithmarshall@users.sourceforge.net>
3719 Add machinery for installation and packaging for distribution.
3721 * install-sh: New file; source it from autoconf distribution.
3723 * configure.ac (AC_PREFIX_DEFAULT): Assign it as `C:/MinGW'.
3724 (AC_PROG_MKDIR_P, AC_PROG_INSTALL, AC_PROG_LN_S): Invoke these.
3725 (STRIP): New output variable; use AC_CHECK_TOOL to define it.
3727 * Makefile.in (abs_top_srcdir): Define to AC_SUBST value.
3728 (PACKAGE_TARNAME, PACKAGE_VERSION): Define to AC_SUBST values.
3729 (prefix, exec_prefix, bindir, libexecdir, localstatedir): Likewise.
3730 (INSTALL, INSTALL_PROGRAM, INSTALL_SCRIPT, INSTALL_DATA): Likewise.
3731 (STRIP): New macro; define it using AC_CHECK_TOOL substitution.
3732 (mkinstalldirs): New macro; define it as AC_PROG_MKDIR_P result.
3733 (LN_S): New macro; define it as AC_PROG_LN_S result.
3734 (dist, srcdist, bindist): New build objectives; implement them.
3735 (install, installdirs, install-strip, maintainer-clean): Likewise.
3736 (SRCDIST_FILES, SRCDIST_SUBDIRS): New macros; define them.
3737 (PACKAGE_DISTNAME, PACKAGE_DISTVERSION): Likewise.
3738 (PACKAGE_DISTROOT, PACKAGE_ROOTVERSION): Likewise.
3739 (PACKAGE_CONFIG_DIR): Likewise.
3741 2010-02-02 Keith Marshall <keithmarshall@users.sourceforge.net>
3743 Implement package installer for tar archives.
3745 * src/pkgexec.cpp (pkgXmlDocument::Execute): Replace existing
3746 stub implementation of installer, using methods provided by...
3747 * src/pkgproc.h, src/tarproc.cpp: ...these new files, with trap...
3748 * src/pkgdeps.cpp (pkgXmlDocument::Schedule) [installed]: Add entry...
3749 (pkgActionItem::Selection) [to_remove]: ...for this; use it to detect
3750 `install' requests for packages which are aleady installed.
3752 * Makefile.in (CORE_DLL_OBJECTS): Add tarproc.$(OBJEXT); specify
3753 dependencies as appropriate.
3755 * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Don't commit
3756 newly created `sysroot' mapping records to disk; defer to...
3757 (pkgXmlDocument::UpdateSystemMap): ...this new method.
3758 (sigpath): Make it a global variable, with file (static) scope.
3760 * src/climain.cpp (pkgXmlDocument::UpdateSystemMap): Invoke it.
3762 * src/pkgkeys.h (download_key, modified_key, source_key): New global
3763 string variables; declare them, providing their implementations...
3764 * src/pkgkeys.c (download_key, modified_key, source_key): ...here.
3765 * src/pkgname.cpp (download_key, source_key): Use them.
3767 * src/pkginet.cpp (pkgActionItem::ArchivePath): Delete; replace...
3768 * src/mkpath.c (pkgArchivePath): ...with this free standing function.
3769 * src/mkpath.h (pkgArchivePath): Declare its prototype.
3771 * src/pkgbase.h (pkgActionItem::ArchivePath): Delete declaration.
3772 (pkgXmlDocument): Add a default constructor; implement as `inline'.
3773 (pkgXmlDocument::AddDeclaration): Use heap memory to allocate the new
3774 declaration object, instead of `auto' variable, to avoid scope error.
3775 (pkgXmlDocument::UpdateSystemMap): Declare it.
3777 2010-01-26 Keith Marshall <keithmarshall@users.sourceforge.net>
3779 Implement rudimentary dependency resolver.
3781 * src/pkgdeps.cpp: New file.
3783 * Makefile.in (CORE_DLL_OBJECTS): Add pkgdeps.$(OBJEXT) reference;
3784 establish header file dependencies.
3786 * src/pkgbase.h (to_remove, to_install, selection_types): New enum.
3787 (pkgActionItem::selection): Extend it to store as enumerated pair...
3788 (pkgActionItem::SelectPackage): New inline method; assign them.
3789 (pkgActionItem::Selection): New inline method; retrieve them.
3790 (pkgXmlNode::GetInstallationRecord): New method; declare it.
3792 * src/pkgexec.cpp (pkgActionItem): In constructor...
3793 (selection): ...initialise both references in enumerated pair.
3794 (pkgActionItem::GetReference): Use `Selection()' method.
3795 (pkgActionItem::SelectIfMostRecent): Ditto; also correct logic for
3796 making selection, and assign to `to_install' element.
3797 (pkgXmlDocument::Schedule): Don't update `request'.
3798 (pkgActionItem::Execute): Implement as stub.
3800 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): Use new
3801 `Selection()' method.
3803 * src/pkgkeys.h (yes_value, no_value): Declare new string constants.
3804 * src/pkgkeys.c (yes_value, no_value): Implement them.
3806 * src/vercmp.cpp: Update copyright notice.
3807 (pkgVersionInfo::operator<=): Bug fix; must test for `<', but had `>'.
3809 2010-01-23 Keith Marshall <keithmarshall@users.sourceforge.net>
3811 Avoid segmentation faults when processing invalid data streams.
3813 * src/pkgstrm.h: Update copyright notice.
3814 (pkgArchiveStream::IsReady): New pure virtual method.
3815 (pkgRawArchiveStream::IsReady): Provide inline implementation.
3816 (pkgGzipArchiveStream::IsReady): Likewise.
3817 (pkgBzipArchiveStream::IsReady): Likewise.
3818 (pkgLzmaArchiveStream::IsReady): Likewise.
3819 (pkgXzArchiveStream::IsReady): Likewise.
3821 * src/pkgstrm.cpp: Update copyright notice.
3822 (pkgLzmaArchiveStream, pkgXzArchiveStream) [fd == -1]: Decline to
3823 perform any form of read or decode processing.
3825 * src/pkginet.cpp (pkgInternetLzmaStreamingAgent): Use `fd = -2' as
3826 pseudo-descriptor for the pkgLzmaArchiveStream derived component of
3827 this internet data streaming class.
3829 2010-01-23 Keith Marshall <keithmarshall@users.sourceforge.net>
3831 Require liblzma >= liblzma-4.999.9beta_20091209-3-mingw32-dev
3833 * src/pkgstrm.h (LZMA_API_STATIC): Remove definition and associated
3834 comment; it was required to permit, (but not to enforce), linking to
3835 the static liblzma.a library, with earlier beta releases, but this
3836 anomaly has now been corrected.
3838 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
3840 Remove zlib sources from trunk.
3841 (Application builders should use free standing implementation of
3842 zlib, from MinGW's package distribution page on SourceForge).
3844 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
3846 Remove bzip2 sources from trunk.
3847 (Application builders should use free standing implementation of
3848 bzip2, from MinGW's package distribution page on SourceForge).
3850 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
3852 Add subsystem specific sysroot mapping facility.
3854 * src/pkghash.c: New file; required by...
3855 * src/sysroot.cpp: New file; it implements...
3856 (pkgXmlDocument::LoadSystemMap, pkgXmlNode::GetSysRoot): New methods.
3858 * src/pkgbase.h: Update copyright notice.
3859 (pkgXmlDocument::LoadSystemMap): Declare it.
3860 (pkgXmlDocument::AddDeclaration): New inline method.
3861 (pkgXmlDocument::SetRoot, pkgXmlDocument::Save): Likewise.
3862 (pkgXmlNode::GetSysRoot): Declare it.
3863 (pkgXmlNode::GetDocumentRoot): New inline method.
3864 (pkgXmlNode::AddChild, pkgXmlNode::DeleteChild): Likewise.
3866 * src/climain.cpp: Update copyright notice.
3867 (climain): Invoke pkgXmlDocument::LoadSystemMap() as required.
3869 * Makefile.in (CORE_DLL_OBJECTS): Add ...
3870 (pkghash.$(OBJEXT), sysroot.$(OBJEXT)): ...these; upate dependencies.
3871 (DEBUGLEVEL): New macro; define it.
3874 2010-01-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3876 Assign standardised keys for XML database lookup.
3878 * src/pkgkeys.h: New file; provide public key declarations.
3879 * src/pkgkeys.c: New file; implement them.
3881 * src/pkgbind.cpp: Use them; update copyright notice.
3882 * src/pkgexec.cpp, src/pkgfind.cpp, src/pkginet.cpp: Likewise.
3883 * src/pkgname.cpp, src/pkgspec.cpp: Likewise.
3885 * Makfile.in (CORE_DLL_OBJECTS): Add pkgkeys.$(OBJEXT); update all
3886 dependencies accordingly.
3888 2010-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
3890 Add CLI version reporting option.
3892 * configure.ac: Update copyright notice for new year.
3893 (COPYRIGHT_HOLDER): New AC_SUBST variable; define it.
3894 (YEARS_OF_ISSUE): New AC_SUBST variable; define it.
3895 (AC_CONFIG_FILES): Add `version.c'; source it from...
3897 * version.c.in: ...this new file.
3899 * Makefile.in: Update copyright notice for new year.
3900 (mingw-get$(EXEEXT)): Add dependency on `version.$(OBJEXT)'.
3901 (distclean): Add `version.c'.
3903 * configure: Regenerated.
3905 * src/clistub.c: Update copyright notice for new year.
3906 (options): New array of `struct option'; define and use it as the
3907 reference for `argv' parsing with `getopt_long_only()'.
3909 2009-12-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3911 Add CLI support for "update" action.
3913 * src/pkgtask.h (ACTION_UPDATE): Define it, derived from...
3914 (action_update): ...this new entry in anonymous enumeration.
3916 * src/pkgexec.cpp (action_name): Add "update" keyword identification.
3918 * src/pkgbase.h: Typo in comment; s/xwXmlDocument/wxXmlDocument/.
3919 (pkgXmlDocument::BindRepositories): Add `force_update' parameter...
3920 * src/pkgbind.cpp (pkgXmlDocument::BindRepositories): Use it to...
3921 (pkgXmlDocument::SyncRepository): ...invoke this method when passed as
3922 a `true' flag, in addition to (as previously) first time reference.
3924 * src/climain.cpp (climain): Interpret "update" keyword for...
3925 [ACTION_UPDATE]: ...passing state as `force_update' parameter to...
3926 (pkgXmlDocument::BindRepositories): ...this method, then...
3927 [!ACTION_UPDATE]: Follow with normal action processing.
3929 2009-12-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3931 Add status checking for Internet URL connections.
3933 * src/pkginet.cpp (pkgInternetAgent::QueryStatus): New method.
3934 (pkgInternetStreamingAgent::Get): Use it; set `dl_status' as return
3935 value, deferring failure diagnostics to callers, i.e. to...
3936 (pkgXmlDocument::SyncRepositories): ...this, and to...
3937 (pkgActionItem::DownloadArchiveFiles): ...this.
3939 2009-11-23 Keith Marshall <keithmarshall@users.sourceforge.net>
3941 Add package download and repository synchronisation machinery.
3943 * src/pkgstrm.h: New header file.
3945 * src/pkgbind.cpp, src/pkginet.cpp, src/pkgstrm.cpp,
3946 src/pkgfind.cpp, src/pkgname.cpp, src/keyword.c: New files.
3947 * Makefile.in (CORE_DLL_OBJECTS): Add build goals for them.
3949 * xml: New directory.
3951 * src/climain.cpp (climain): Establish repository bindings from...
3952 * xml/profile.xml: ...this new configuration file.
3954 2009-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3956 Add XML database bindings and preliminary action executive for CLI.
3958 * src/pkgbase.h, src/pkgtask.h,
3959 src/mkpath.h, src/vercmp.h: New header files.
3961 * src/climain.cpp, src/pkgexec.cpp, src/pkgspec.cpp,
3962 src/mkpath.c, src/vercmp.cpp, src/xmlfile.c: New files.
3964 * Makefile.in (CORE_DLL_OBJECTS): Define initial set of files...
3965 (mingw-get-0.dll): ...build them into this new DLL target; add it...
3966 (all): ...as prerequisite for this primary build goal.
3968 2009-11-12 Keith Marshall <keithmarshall@users.sourceforge.net>
3970 Avoid some potential GCC warnings.
3972 * src/clistub.c: Include process.h for `execv' prototype...
3973 (main): Cast `argv' to appropriately matched type when calling it.
3975 * src/pkginfo/driver.c: Include stdlib.h for `free' prototype.
3977 2009-11-11 Keith Marshall <keithmarshall@users.sourceforge.net>
3979 Create diagnostic message handler for CLI usage.
3981 * src/dmh.h: New header file; it defines the public interface.
3982 * src/dmh.cpp: New file; it implements the message handler.
3984 2009-11-05 Keith Marshall <keithmarshall@users.sourceforge.net>
3986 Correct some identified TinyXML issues.
3988 * tinyxml/tinyxml.h (IsWhiteSpace): Add FIXME annotation to flag
3989 probable redundancy of checks for '\n' and '\r'.
3990 * tinyxml/tinyxmlparser.cpp: Revert John E's 2008-08-09 change; remove
3991 all such redundancies in IsWhiteSpace() calls throughout.
3993 * tinyxml/tinyxml.cpp (TiXmlAttribute::SetDoubleValue): Correct format
3994 specification in sprintf()/snprintf() calls; "%lf" is invalid; replace
3997 2009-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
3999 Add CLI loader stub.
4001 * src/clistub.c: New file.
4002 * Makefile.in: Add build rule for it; build as...
4003 (mingw-get.exe): ...this; also add to...
4004 (clean): ...this goal.
4006 2009-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
4008 Set up build mechanism.
4010 * configure.ac, Makefile.in: New files.
4011 * .cvsignore (configure, autom4te.cache): Add to ignored files.
4013 2009-10-30 Keith Marshall <keithmarshall@users.sourceforge.net>
4015 Add GPL-v3 licensing terms.
4017 * COPYING: New file, sourced from gnu.org.
4019 2009-10-12 Keith Marshall <keithmarshall@users.sourceforge.net>
4021 Add pkginfo implementation.
4023 * src, src/pkginfo: New directories.
4024 * src/pkginfo/pkginfo.h, src/pkginfo/pkginfo.l: New files.
4025 * src/pkginfo/driver.c: New file.
4027 2009-10-12 Keith Marshall <keithmarshall@users.sourceforge.net>
4031 * All files (tdm-branch): Assign new branch tag.
4032 * All top-level files: Remove from trunk.
4033 * ChangeLog: New file.