1 2017-09-01 Keith Marshall <keith@users.osdn.me>
3 Increment version for first OSDN hosted release.
5 * VERSION.m4 (VERSION_PATCH): Increment to 3; thus...
6 (__VERSION__): ...this is auto-incremented to 0.6.3
8 2013-11-26 Keith Marshall <keithmarshall@users.sourceforge.net>
10 Conflate name and class columns in GUI package list.
12 * src/pkglist.cpp (AppWindowMaker::InitPackageListView): Remove...
13 <ID_PKGTYPE_COLUMN_HEADING>: ...column with this heading; add its width
14 allocation to the original pixel count alloted for the width of...
15 <ID_PKGNAME_COLUMN_HEADING>: ...this column.
16 (pkgListViewMaker::UpdateItem): Conflate content of original name and
17 class columns into first column; renumber successive columns.
19 2013-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
21 Don't attempt to resolve dependencies for unidentified packages.
23 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
24 [selected == NULL]: Current dependency is unresolved; do not make any
25 recursive call for this unidentified requirement. This avoids posting
26 misleading "can't get 'tarname' for non-release element <<<unknown>>>"
27 diagnostic messages, where the subsequent "unresolved dependency"
28 message is sufficient; include dmhmsgs.h, and add...
29 (PKGMSG_SPECIFICATION_ERROR): ...this preamble instead.
31 2013-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
33 Implement foundation for future NLS enabled diagnostics.
35 * src/dmhmsgs.h: New file; it declares the NLS capable DMH interface.
36 * src/dmhmsgs.c: New file; it implements rudimentary NLS hooks, (but
37 currently does not direct them to any NLS provider), together with an
38 initial subset of a default (compiled in) message catalogue.
40 * Makefile.in (CORE_DLL_OBJECTS): Add dmhmsgs.$OBJEXT
42 * src/pkgname.cpp (pkgArchiveName): Modify diagnostics, to use...
43 (PKGMSG_SPECIFICATION_ERROR): ...this dmhmsgs.h declared message.
45 2013-10-15 Keith Marshall <keithmarshall@users.sourceforge.net>
47 Add automated build time configuration management.
49 * Makefile.in (Makefile): Add regeneration rules, depending on...
50 (VERSION.m4, configure.ac, aclocal.m4, missing.m4, makeopts.m4):
51 ...these, if modified by the package maintainer, directed via...
52 (config.status, configure): ...these, regenerated as required.
54 2013-10-04 Keith Marshall <keithmarshall@users.sourceforge.net>
56 mingw-get-0.6.2-mingw32-beta-20131004-1 released.
58 * VERSION.m4 (VERSION_PATCH): Increment it.
59 * srcdist-doc/NEWS.in: Release notes updated.
60 * All files (r0-6-4-beta-20131004-1): Tag assigned.
62 2013-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
64 Propagate RELEASE_CLASS setting from mingw-get-setup.
66 * configure.ac (CLI_RELEASE_CLASS, GUI_RELEASE_CLASS): Adopt...
67 (RELEASE_CLASS) [defined]: ...this as default value.
69 2013-10-02 Keith Marshall <keithmarshall@users.sourceforge.net>
71 Support group affiliation with component package granularity.
73 * src/pkglist.cpp (pkgXmlNode::IsVisibleClass): Make it synonymous
74 with IsVisibleGroupMember(); this is a temporary adjustment, pending
75 the planned implementation of component class visibility filtering.
76 (pkgListViewMaker::Dispatch): Defer consideration of visibility until
77 traversal of component package directories, except in the particular
78 case of packages which lack defined components.
80 2013-10-01 Keith Marshall <keithmarshall@users.sourceforge.net>
82 Correct processing of package group associations.
84 * src/pkgtree.cpp (AppWindowMaker::IsPackageGroupAffiliate): Iterate
85 over "affiliate_key" elements in FindNextAssociate() calls; original
86 implementation was incorrectly iterating over "group_key" elements.
88 2013-09-21 Keith Marshall <keithmarshall@users.sourceforge.net>
90 Reorder controls within "Apply Changes" dialogue.
92 * src/guimain.rc (IDD_APPLY_APPROVE): Move definition of the "Okay to
93 proceed?" GROUPBOX, and its contained PUSHBUTTONs, to the top; we want
94 it to get the default focus.
96 2013-09-21 Keith Marshall <keithmarshall@users.sourceforge.net>
98 Reimplement wsh.lua in C/C++; (cf. MinGW-Bug #2057).
100 * src/pkgexec.cpp (LUA_INLINE): New function attribute definition.
101 (init_lua_path): Use it, reproducing the original function attributes.
102 (lua_isstringarg): New LUA_INLINE helper function; implement it.
103 (lua_wsh_libexec_path): New function; it implements wsh.libexec_path
104 (lua_wsh_execute): New function; it implements wsh.execute
105 (luaload_wsh): New function; it wraps references to lua_wsh_execute()
106 and lua_wsh_libexec_path() to provide the wsh module implementation.
107 (pkgXmlNode::DispatchScript): Preload it into the Lua interpreter.
109 * scripts/libexec/setup.lua (M.argwrap): New method; implement it.
110 (M.shlink, M.unlink): Use it to collect their arguments into a single
111 string, to be passed as the command to be invoked by wsh.execute
113 * scripts/libexec/wsh.lua: File is no longer required; delete it.
114 * Makefile.in (LIBEXEC_SCRIPTS): Remove reference to it.
116 2013-09-20 Keith Marshall <keithmarshall@users.sourceforge.net>
118 Establish default preferences for GUI; (cf. MinGW-Feature #2036)
120 * src/pkgbase.h (pkgXmlDocument::EstablishPreferences): Adjust its
121 prototype; add argument identifying prospective client classification.
123 * src/pkgopts.cpp (client_key): New XML property keyword; define it.
124 (pkgXmlDocument::EstablishPreferences): Implement filter, based on new
125 client classification argument, to restrict preference selection to a
126 matching client class specification.
128 * src/climain.cpp (dbase.EstablishPreferences): Filter on class "cli".
129 * src/guiexec.cpp (pkgData->EstablishPreferences): Likewise, on "gui".
131 * xml/profile.xml (preferences): Add client="cli" attribute for the
132 existing specification; add another for client="gui".
134 2013-09-20 Keith Marshall <keithmarshall@users.sourceforge.net>
136 Force canonical comparison of shell links; (cf. MinGW-Bug #2054)
138 * scripts/libexec/unlink.js [FileExists(filename) && (chklink != "")]:
139 The value of 'chklink' may not be canonical; instantiate an (unsaved)
140 link reference from it, then compare the canonicalized reference from
141 within it, to the reference within 'filename', thus avoiding possible
142 lexical mismatch between canonical and non-canonical forms.
144 2013-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
146 Correct LUA_PATH assignment for GUI; (cf. MinGW-Bug #2052)
148 * src/pkgexec.cpp (LUA_LIBEXEC_PATH): New manifest string; define it.
149 (init_lua_path) <LUA_PATH>: Use it; add guimain.exe app directory.
151 2013-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
153 Handle meta-package removal correctly; (cf. MinGW-Bug #2051)
155 * src/pkgunst.cpp (pkgRemove) [archive == none]: Ensure the pending
156 action flag is cleared; previously this was done during manifest clean
157 up, and since a meta-package has no manifest, it was overlooked.
159 2013-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
161 mingw-get-0.6.1-mingw32-beta-20130910-1 released.
163 * srcdist-doc/NEWS.in: Release notes updated.
164 * All files (r0-6-1-beta-20130910-1): Tag assigned.
166 2013-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
170 * src/dmhguix.cpp (DMH_PTY_GUARDBYTES): New manifest constant.
171 (dmhTypePTY::printf) [buffer full]: Use it; it defines a reserved byte
172 count, at end of buffer, where expansion or scroll out is triggered;
173 use memcpy() for scroll out, but avoid overlapping regions.
174 (dmhTypePTY::printf) [output == '\r']: Handle it.
176 * src/tarproc.cpp (create_output_stream): Improve diagnostic messages;
177 discriminate between file collision and other privilege violations.
178 (pkgArchiveProcessor::ExtractFile): Don't return a zero status code,
179 when the output stream could not be successfully opened, so that...
180 (pkgTarArchiveInstaller::ProcessDataStream): ...we may avoid writing a
181 spurious manifest entry here.
183 2013-09-06 Keith Marshall <keithmarshall@users.sourceforge.net>
185 Update version, pre-empting subsequent release.
187 * VERSION.m4 (VERSION_PATCH): Bump from zero to 1.
189 2013-09-04 Keith Marshall <keithmarshall@users.sourceforge.net>
191 mingw-get-0.6.0-mingw32-beta-20130904-1 released.
193 * srcdist-doc/NEWS.in srcdist-doc/README.in: Release notes updated.
194 * srcdist-doc/INSTALL.in: Installation instructions updated.
195 * All files (r0-6-0-beta-20130904-1): Tag assigned.
197 2013-08-26 Keith Marshall <keithmarshall@users.sourceforge.net>
199 Implement retry throttling for failed internet connections.
201 * src/pkginet.h (INTERNET_RETRY_ATTEMPTS): New macro; define it.
202 (INTERNET_RETRY_INTERVAL, INTERNET_DELAY_FACTOR): Likewise.
204 * src/pkginet.cpp (INTERNET_RETRY_REQUESTER): New typedef.
205 (pkgInternetAgent::connection_delay, pkgInternetAgent::delay_factor):
206 (pkgInternetAgent::retries, pkgInternetAgent::retry_interval): New
207 private member variables; declare them.
208 (pkgInternetAgent::OpenURL): Use them; they must be initialised by...
209 (pkgInternetAgent::SetRetryOptions): ...this new method; implement it.
210 (pkgActionItem::DownloadSingleArchive): Invoke it.
211 (pkgXmlDocument::SyncRepository): Likewise.
213 2013-08-24 Keith Marshall <keithmarshall@users.sourceforge.net>
215 Reassign default URL for download of setup tool components.
217 * aclocal.m4 (PACKAGE_DIST_DOMAIN, PACKAGE_DIST_DIR): New precious
218 variables; declare them as such, and assign default values by using...
219 (MINGW_AC_PACKAGE_DIST_URL): ...this new macro; implement it.
221 * configure.ac (MINGW_AC_PACKAGE_DIST_URL): Use it.
222 * Makefile.in (TAG_SCRIPT): Capture assigned URL; substitute it...
223 (PACKAGE_DIST_URL): ...for this replacement text marker...
224 * src/setup.rc (ID_DOWNLOAD_HOST_URI): ...here.
226 2013-08-21 Keith Marshall <keithmarshall@users.sourceforge.net>
228 Simplify guimain.exe duplicate instance prevention.
230 * src/guimain.cpp (WinMain): Delegate requisite checking to...
231 (WTK::RaiseAppWindow): ...this external toolkit function.
233 2013-08-13 Keith Marshall <keithmarshall@users.sourceforge.net>
235 Install licence as standard setup component.
237 * src/guimain.h src/setup.rc (ID_PACKAGE_GUI_DISTNAME): Macro
238 no longer required; delete definition.
240 * src/setup.cpp (pkgSetup::DoFirstTimeInstallation):
241 <pkgSetupAction> [ID_PACKAGE_GUI_DISTNAME]: Delete reference.
242 <pkgSetupAction> [ID_PACKAGE_BASE_DISTNAME]: Update reference; repeat
243 to explicitly address each of "bin", "gui", and "lic" components.
245 * Makefile.in (TAG_SCRIPT) [PACKAGE_GUI_DISTNAME]: Delete reference.
246 (TAG_SCRIPT) [PACKAGE_BASE_DISTNAME]: Redefine as template.
248 2013-08-13 Keith Marshall <keithmarshall@users.sourceforge.net>
250 More dialogue box adjustments.
252 * src/guimain.rc: Generally clean up white-space distribution.
253 (All dialogue templates): Use WS_TABSTOP consistently.
255 2013-08-13 Keith Marshall <keithmarshall@users.sourceforge.net>
257 Circumvent Windows-7 "Program Compatibility Assistant" misbehaviour.
259 * src/manifest.rc (assembly) <compatibility>: Add <supportedOS>
260 declarations for each of Vista, Win7, and (tentatively) Win8.
262 2013-07-30 Keith Marshall <keithmarshall@users.sourceforge.net>
264 Minor modification to "about" dialogue dismissal button.
266 * src/guimain.rc (IDD_HELP_ABOUT) <DEFPUSHBUTTON>: Change label text
267 to "Dismiss"; add WS_TABSTOP style.
269 2013-07-30 Keith Marshall <keithmarshall@users.sourceforge.net>
271 Match "about" dialogue caption to main window.
273 * src/guimain.rc (IDM_HELP_ABOUT) <MENUITEM>: Match it to...
274 (IDD_HELP_ABOUT) <CAPTION>: ...this; make it representative of...
275 (ID_MAIN_WINDOW_CAPTION): ...this.
277 2013-07-30 Keith Marshall <keithmarshall@users.sourceforge.net>
279 Implement "icon legend" display as "help" menu item.
281 * src/guimain.rc (IDM_HELP_LEGEND): Make menu item active; define
282 template for the dialogue box which it is to call out.
284 * src/guiexec.cpp (AppWindowMaker::OnCommand) [IDM_HELP_LEGEND]: New
285 case handler; implement dialogue box call out, as a variation on...
286 [IDM_HELP_ABOUT]: ...this; modify it accordingly.
288 2013-07-30 Keith Marshall <keithmarshall@users.sourceforge.net>
290 Avoid discarding pending changes when catalogue is updated.
292 * src/guimain.h (IDD_CONFIRMATION): New manifest constant; define it.
293 (AppWindowMaker::ConfirmActionDialogue): New static method; declare it.
294 (AppWindowMaker::ConfirmActionRequest): New method; declare it.
296 * src/guimain.rc (IDD_CONFIRMATION): Implement new dialogue template.
298 * src/guiexec.cpp (pkgConfirmAction, pkgConfirmActionClient): New
299 static variables; they are used as pseudo-arguments, together with...
300 (DIALOGUE_DISPATCH, DIALOGUE_RESPONSE, DIALOGUE_CHKSTATE): ...these
301 new macros; define them; they facilitate the implementation of...
302 (AppWindowMaker::ConfirmActionDialogue): ...this; implement it.
303 (AppWindowMaker::ConfirmActionRequest): Implement it; use it...
304 (AppWindowMaker::OnCommand) [IDM_REPO_UPDATE]: ...here, and...
306 * src/pkgdata.cpp (AppWindowMaker::OnClose): ...here.
308 2013-07-26 Keith Marshall <keithmarshall@users.sourceforge.net>
310 Make a minor GUI layout adjustment.
312 * src/pkgview.cpp (VSASH_INIT_POS): Increment from 0.30 to 0.35; this
313 sets the initial height of the package list pane to be 35% of the main
314 window height, which, at the default initial window size, neatly fits
315 the entire "Basic Setup" package group, without scrolling, on my
316 1366x768 pixel Win7-VM display.
318 2013-07-25 Keith Marshall <keithmarshall@users.sourceforge.net>
320 Implement setup tool installer "plugin".
322 * src/setup.h (SETUP_HOOK_RUN_INSTALLER): Define request code.
324 * src/dllhook.cpp (run_basic_system_installer): Implement handler...
325 (setup_hook) [SETUP_HOOK_RUN_INSTALLER]: ...and invoke it.
326 (setup_hook) [default]: Collect diagnostics in common message digest.
327 (AppWindowMaker::SetupHookInvoked): Define and initialise it; in this
328 context, which does not conflict with prior definition in guimain.exe,
329 it must always remain true.
331 * src/setup.cpp (SetupTool) [constructor]: Invoke...
332 (SetupTool::DispatchSetupHookRequest): ...this, on user's request...
333 (SETUP_HOOK_RUN_INSTALLER): ...with this action code; this replaces...
334 (SetupTool::RunInstalledProgram): ...one reference instance for this
335 external program fork, leaving only one such reference remaining;
336 declare it to be "inline".
338 * Makefile.in (GUIMAIN_LIB_OBJECTS): New macro; define it. It
339 abstracts a subset of the object modules originally enumerated...
340 (GUIMAIN_OBJECTS): ...here, whence use it; also incorporate into...
341 (SETUP_DLL_OBJECTS): ...this.
342 (SETUP_DLL_LIBS): Make it equivalent to...
343 (GUIMAIN_LIBS): ...this.
344 (mingw-get-setup-0.dll): Use...
345 (GUI_LDFLAGS): ...this, to specify linking options, rather than...
348 2013-07-25 Keith Marshall <keithmarshall@users.sourceforge.net>
350 Add "Basic Setup" as a built-in standard package group.
352 * src/guimain.h (AppWindowMaker::SetupToolInvoked): New private
353 static member variable; declare it.
355 * src/guimain.cpp (AppWindowMaker::SetupToolInvoked): Define and
356 initialise it; this instance is specific to guimain.exe, where it
357 must always remain false.
359 * src/pkgtree.cpp (PKG_AFFILIATE_ALL): New constant; define it.
360 (load_package_group_hierarchy): Use it to specify those groups which
361 have all packages as affiliates, rather than just first root group.
362 (group_attributes): New static inline function; implement it, then...
363 (is_affiliated) [PKG_AFFILIATE_ALL]: ...use it to identify groups
364 which are specified as having all packages as affiliates.
365 (AppWindowMaker::InitPackageTreeView): Construct a temporary XML
366 specification for the "Basic Setup" package group, thence add it to
367 the package tree view; mark it as default group selection when...
368 [AppWindowMaker::SetupToolInvoked]: ...this is true.
370 2013-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
372 Implement GUI filtering of package list by group selection.
374 * src/pkgbase.h (pkgXmlNode::IsVisibleGroupMember):
375 (pkgXmlNode::IsVisibleClass): New inline methods; declare them.
376 (pkgXmlNode::MapPackageGroupHierarchy): New inline method; declare it.
377 (pkgXmlNode::SetPackageGroupHierarchyMapper): Likewise; it sets up...
378 (pkgXmlNode::PackageGroupHierarchyMapper): ...this new private static
379 function pointer; declare it as a function reference, in terms of...
380 (pkgXmlNode::GroupHierarchyMapper): ...this new typedef; define it.
382 * src/guimain.h (AppWindowMaker::PackageTreeView): Make it static.
383 (AppWindowMaker::IsPackageGroupAffiliate): Declare new static method.
385 * src/pkgbind.cpp (pkgRepository::GetPackageList): Make it invoke...
386 (pkgXmlNode::MapPackageGroupHierarchy): ...this; implement it.
388 * src/pkglist.cpp (pkgXmlNode::IsVisibleGroupMember): Implement it.
389 (pkgXmlNode::IsVisibleClass): Likewise; just provide a stub, for now.
390 (pkgListViewMaker::Dispatch): Use them to filter package list content.
391 (AppWindowMaker::UpdatePackageList): Redraw main window when done.
393 * src/pkgtree.cpp [_WIN32_IE >= 0x0400]: Require this.
394 (AppWindowMaker::PackageTreeView): Define and initialise it.
395 (AppWindowMaker::InitPackageTreeView): Extend implementation; use...
396 (map_package_group_hierarchy_recursive, load package_group_hierarchy):
397 (is_existing_group, map_package_group_hierarchy): ...these; implement
398 them locally, as file scoped static helper functions.
399 (select_key): New static local string constant; define it.
400 (pkgInitCategoryTreeGraft): Use it; also have it invoke...
401 (pkgXmlNode::SetPackageGroupHierarchyMapper): ...this; implement it.
402 (AppWindowMaker::IsPackageGroupAffiliate): Implement it; it uses...
403 (is_affiliated, is_child_affiliate): ...these helpers; provide them as
404 locally implemented, file scoped static functions.
406 * src/pkgdata.cpp (AppWindowMaker::OnNotify): Add handler for...
407 [ID_PACKAGE_TREEVIEW && TVN_SELCHANGED]: ...this notification.
409 2013-07-12 Keith Marshall <keithmarshall@users.sourceforge.net>
411 Correct a static string buffer aliasing issue.
413 * src/setup.cpp (SetupTool::setup_dll): New inline method; it ensures
414 that the buffer within approot_path() refers to the setup helper DLL.
415 (SetupTool::InitialiseSetupHookAPI): Use it, when loading the DLL.
416 (SetupTool::SetupTool): Use it again, when subsequently calling...
417 (_wunlink): ...this; it is now the preferred API, replacing...
418 (DeleteFileW): ...this; do not blindly assume that...
419 (SetupTool::dll_name): ...this remains unchanged between references;
420 it is an alias for the static buffer within approot_path().
422 2013-07-12 Keith Marshall <keithmarshall@users.sourceforge.net>
424 Add a custom profile for use by the setup tool.
426 * xml/setup.xml: New file.
428 2013-07-03 Keith Marshall <keithmarshall@users.sourceforge.net>
430 Improve handling of workspace clean-up requests.
432 * Makefile.in (mostlyclean): New rule; it replaces...
433 (clean): ...original intent delegated to 'mostlyclean'; retained and
434 augmented to remove all content specified by 'mostlyclean', plus...
435 (version.c, verinfo.h): ...these additional generated files.
436 (distclean): Modified; 'version.c' now removed by 'clean'.
438 2013-07-03 Keith Marshall <keithmarshall@users.sourceforge.net>
440 Correct an omission from the source code distribution.
442 * Makefile.in (BUILD_AUX_FILES): Add makeopts.m4; this was omitted
443 from the 2013-04-10 modification to fix MinGW-Bug #1601.
445 2013-07-03 Keith Marshall <keithmarshall@users.sourceforge.net>
447 Incorporate foundation for setup tool implementation.
449 * src/setup.cpp: New file; it implements the setup program.
450 * src/setup.rc: New file; it implements setup program resources.
452 * src/dllhook.cpp: New file; it implements a DLL bridging API to
453 facilitate invocation of mingw-get-0.dll functions from the setup
454 program, after both DLLs have been explicitly loaded at run time.
456 * src/setup.h: New file; it declares the interface between the
457 setup program and the preceding mingw-get bridging DLL.
459 * src/guimain.h: Add filter to exclude declarations specific to...
460 [IMPLEMENTATION_LEVEL == PACKAGE_BASE_COMPONENT]: ...this case, when
461 included by compilation units specific to the setup tool components.
462 (ID_MAIN_DIALOGUE_CAPTION, ID_DOWNLOAD_HOST_URI): New resource IDs.
463 (ID_PACKAGE_BASE_DISTNAME, ID_PACKAGE_DATA_DISTNAME): Likewise.
464 (ID_PACKAGE_GUI_DISTNAME): Likewise; define them.
466 * Makefile.in (all): Respecify it, in terms of...
467 (all-core, all-setup): ...these new rules; define them, and also...
468 (all-setup-exe, all-setup-dll): ...these, to force building of...
469 (mingw-get-setup.$EXEEXT, mingw-get-setup-0.dll): ...these binaries.
470 (setup.res.$OBJEXT): Specify prerequisites, as for guimain.res.$OBJEXT
471 (SETUP_TOOL_OBJECTS, SETUP_TOOL_LIBS): New macros; define them.
472 (SETUP_DLL_OBJECTS, SETUP_DLL_LIBS, SETUP_DISTNAME): Likewise.
473 (TAG_SCRIPT): Add resource script substitution definitions for...
474 (ID_PACKAGE_BASE_DISTNAME, ID_PACKAGE_DATA_DISTNAME): ...these...
475 (ID_PACKAGE_GUI_DISTNAME): ...and this.
477 2013-07-01 Keith Marshall <keithmarshall@users.sourceforge.net>
479 Add subprocess argument vector construction helpers.
481 * src/argwrap.c src/argwrap.h: New files; they implement an API for
482 construction of argument vectors, with appropriate quoting, to be
483 passed to MS-Windows exec'd subprocesses. Rewritten from scratch,
484 without reference to any prior GPL licensed implementation, with MIT
485 style licence, these provide the foundation for a possible future
486 libmingwex.a implementation; they are included here, since no such
487 implementation is currently available.
489 2013-06-28 Keith Marshall <keithmarshall@users.sourceforge.net>
491 Avoid inadvertent overwrite of existing files.
493 * src/mkpath.c (_O_NEWFILE): Conditionally specify attributes...
494 [IMPLEMENTATION_LEVEL == SETUP_TOOL_COMPONENT]: ...as they were...
495 [IMPLEMENTATION_LEVEL != SETUP_TOOL_COMPONENT]: ...else, include
496 _O_EXCL in the specified set; exclude _O_TRUNC.
498 * src/tarproc.cpp (dmh_notify_extraction_failed): New static inline
499 function; it encapsulates the diagnostic message factored out from...
500 (pkgArchiveProcessor::ExtractFile): ...here, whence use it.
501 (create_output_stream): Also used in this new static inline function;
502 it adds an appropriate diagnostic wrapper around set_output_stream(),
503 when _O_EXCL prevents overwrite of an existing file.
504 (pkgArchiveProcessor::SetOutputStream): Use it.
506 2013-06-27 Keith Marshall <keithmarshall@users.sourceforge.net>
508 Improve diagnostics for tar archive processing faults.
510 * src/pkgproc.h (TAR_ARCHIVE_FORMAT_ERROR): New constant; define it.
511 (TAR_ARCHIVE_DATA_READ_ERROR, TAR_ARCHIVE_DATA_WRITE_ERROR): Likewise.
513 * src/tarproc.cpp (dmh_notify_archive_data_exhausted): New static
514 inline function; implement it.
515 (pkgTarArchiveProcessor::GetArchiveEntry) [short header]: Use it.
516 (pkgArchiveProcessor::ExtractFile) [TAR_ARCHIVE_DATA_READ_ERROR]:
517 Likewise, use it here; also explicitlycheck for, and diagnose...
518 [TAR_ARCHIVE_DATA_WRITE_ERROR]: ...this; also add a further catch all
519 case, to diagnose any other unexpected condition.
520 (pkgTarArchiveProcessor::GetArchiveEntry) [bad checksum]: Diagnose it.
521 (pkgTarArchiveProcessor::Process): Return appropriate status codes.
522 (pkgTarArchiveProcessor::ProcessEntityData): Likewise.
524 2013-06-24 Keith Marshall <keithmarshall@users.sourceforge.net>
526 Facilitate version synchronisation for mingw-get-setup.
528 * VERSION.m4: New file.
529 * configure.ac: Include it, and...
530 (AC_INIT): ...use it.
532 2013-06-21 Keith Marshall <keithmarshall@users.sourceforge.net>
534 Keep version strings clean when release class is unspecified.
536 * Makefile.in (RC_SCRIPT, VERSION_SCRIPT): Simplify; assign specified
537 release class to local variable; delegate release tag generation to...
538 (TAG_SCRIPT): ...this; check release class variable is not an empty
539 string, before inserting it into the generated release tag.
541 2013-06-20 Keith Marshall <keithmarshall@users.sourceforge.net>
543 Rework defective assignment of product version resources.
545 * Makefile.in (BUILD_TAG): Avoid creating an empty build.tag file.
546 (PACKAGE_VERINFO_SCRIPT): Ensure that the build tag is generated as a
547 string of non-zero length. Do not assume that it comprises only two
548 elements; extract the final two, as the third and fourth elements
549 of the product version meta-data record.
551 2013-06-19 Keith Marshall <keithmarshall@users.sourceforge.net>
553 Rework defective package build time-stamping logic.
555 * Makefile.in (%.time): Make it explicitly touch its target; the
556 2013-05-15 changes, to reduce redundancy, didn't work as expected.
557 (%.tag): Add a side effect; make it also explicitly touch %.time.
558 (%.tagged.time): This is now redundant; remove it.
560 2013-06-14 Keith Marshall <keithmarshall@users.sourceforge.net>
562 Collect distributable package files in user specified directory.
564 * Makefile.in (distdir): New macro; define default as abs_builddir.
565 (srcdist, bindist, licdist): Use it; direct generated tarballs to it.
566 (%.txt.dist): New pattern rule; define, and use it to make a copy...
567 (readme.txt): ...of this, in distdir, when processing...
568 (dist): ...this build objective.
570 2013-06-14 Keith Marshall <keithmarshall@users.sourceforge.net>
572 Handle Microsoft's 32-bit vs. 64-bit time_t ambiguity.
574 * src/apihook.c: New file; it provides...
575 (have_api): ...this helper; it checks for availability of any specific
576 API function, within a specific system DLL, (MSVCRT.DLL by default).
578 * src/tarproc.cpp (have_utime64_api): New inline function; it wraps...
579 (have_api): ...this, to check whether MSVCRT.DLL provides...
580 (commit_saved_entity) [_utime64]: ...this; use if available, else...
581 (commit_saved_entity) [!_utime64]: ...fall back to using...
584 * Makefile.in (CORE_DLL_OBJECTS): Add apihook.$OBJEXT
586 2013-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
588 Facilitate package extraction and registration at setup time.
590 * src/pkgproc.h (IMPLEMENTATION_LEVEL): Add filters to facilitate
591 implementation of distinct setup time archive processing behaviour.
592 (pkgArchiveProcessor::save_on_extract): New property; declare it.
593 (pkgArchiveProcessor::SaveExtractedFiles): New method; implement it.
594 (pkgArchiveProcessor::SetOutputStream): New method; declare it.
596 * src/tarproc.cpp (IMPLEMENTATION_LEVEL): Add filters to implement
597 distinct setup time specific archive processing behaviour.
598 (pkgArchiveProcessor::SetOutputStream): Implement it.
599 (pkgTarArchiveExtractor::ProcessDataStream): Use it.
600 (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
602 2013-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
604 Implement some GUI progress metering dialogue enhancements.
606 * src/pkgbase.h (pkgProgressMeter): Don't pre-empt private features
607 of derived progress metering classes; hence, we no longer need this...
608 (AppWindowMaker): ...as a forward class declaration; delete it.
610 * src/guimain.rc (IDD_REPO_UPDATE): Resize, and adjust layout.
611 (IDD_PROGRESS_VAL, IDD_PROGRESS_MAX, IDD_PROGRESS_PCT): Add these
612 dialogue box progress counter display elements.
614 * src/pkgbind.cpp (pkgRepository::GetPackageList): Adjust style of
615 progress status messages, to suit reporting via GUI dialogue box or
616 CLI console, as appropriate.
618 * src/guiexec.cpp (ProgressMeterMaker): Redefine class, in terms of...
619 (PROGRESS_METER_CLASS): ...this new generic class name macro.
620 Reimplement private members, previously inherited from base class;
621 adjust class constructor to ensure that they are initialised.
622 Delete explicit destructor; a default destructor is now sufficient.
623 (ProgressMeterMaker::SetRange, ProgressMeterMaker::SetValue):
624 (ProgressMeterMaker::Annotate): Factor out; reimplement them...
626 * src/pmihook.cpp: ...in this new file, as generalised methods of...
627 (PROGRESS_METER_CLASS): ...the class named by this macro.
628 (PROGRESS_METER_CLASS::PutVal): New private method; implement it.
630 2013-05-31 Keith Marshall <keithmarshall@users.sourceforge.net>
632 Avoid a potential macro definition conflict.
634 * src/pkgbase.h (strcasecmp) [__MINGW32__]: Use string.h definition.
636 2013-05-15 Keith Marshall <keithmarshall@users.sourceforge.net>
638 Streamline build-time dependency tracking procedures.
640 * Makefile.in (DEPFLAGS): Adjust for simultaneous .o/.d generation.
641 (RC_DEPFLAGS): New macro; define dependency generation flags for the
642 resource compiler, which can't handle the new DEPFLAGS methodology.
643 (%.c, %.cpp, %.rc): Simplify $OBJEXT generation procedures.
644 (%.time): Remove redundantly replicated build-time procedure from...
645 (%.tagged.time): ...this; just make it a prerequisite.
647 2013-05-15 Keith Marshall <keithmarshall@users.sourceforge.net>
649 Add resources for specification of product version.
651 * src/verinfo.rc src/verinfo.h.in: New files; included by...
652 * src/guimain.rc: ...this, whence also specify version information...
653 (VERINFO_FILE_NAME, VERINFO_INTERNAL_NAME, VERINFO_FILE_DESCRIPTION):
654 (VERINFO_FILE_VERSION, VERINFO_FILE_VERSION_STRING): ...per these new
655 manifest constant macros; define them, with propagation to...
656 (ID_MAIN_WINDOW_CAPTION): ...this; keep it consistent.
658 * Makefile.in (TAG_SCRIPT): Include invocation for...
659 (PACKAGE_VERINFO_SCRIPT): ...this new macro; defined to interpret...
660 (PACKAGE_VERINFO_PRODUCT_VERSION): ...this new substitution template;
661 it is used in src/verinfo.h.in, whence verinfo.h is generated.
662 (RC_INCLUDES): Add current working directory, for...
663 (verinfo.h): ...this; add rule and dependencies to generate it.
665 2013-05-14 Keith Marshall <keithmarshall@users.sourceforge.net>
667 Make application manifest resource definition reusable.
669 * src/manifest.rc: New file; factor content from...
670 * src/guimain.rc: ...here, whence include it.
672 2013-05-08 Keith Marshall <keithmarshall@users.sourceforge.net>
674 Extend DMH services to delay-loaded DLL clients.
676 * src/dmhcore.h (dmh_bind): New function; declare it.
677 * src/dmhcore.cpp (dmh_bind): Implement it; it provides an API through
678 which the setup tool makes its existing DMH services available to post
679 install hooks in mingw-get-0.dll, which cannot be loaded until after
680 the providing package has been downloaded and unpacked.
682 2013-05-08 Keith Marshall <keithmarshall@users.sourceforge.net>
684 Avoid unnecessary command line globbing in GUI applications.
686 * src/guimain.cpp src/guistub.cpp (_CRT_glob): Declare as extern "C";
687 initialise to zero, so overriding the runtime start-up default.
689 * src/rites.c [! IMPLEMENT_INITIATION_RITES] (_CRT_glob): Initialise
690 to zero here too; lastrites.exe doesn't need globbing either.
692 2013-05-04 Keith Marshall <keithmarshall@users.sourceforge.net>
694 Address some GCC-4.7 string initialisation warnings.
696 * src/pkglist.cpp (AppWindowMaker::InitPackageListView): Declare all
697 headings[].text initialisers as 'const'; cast to 'char *' as required.
698 (pkgListViewMaker::Dispatch): Ditto, when inserting the 'const' empty
699 string into the list, as a component class value.
701 * src/pkgdata.cpp (AppWindowMaker::InitPackageTabControl): Declare all
702 TabLegend[] initialisers as 'const'; cast to 'char *' as required.
704 2013-05-02 Keith Marshall <keithmarshall@users.sourceforge.net>
706 Correct a spin wait thread synchronisation issue.
708 * src/pkgnget.cpp (pkgDownloadMeterGUI::SpinWait): Handle stop
709 requests explicitly; acknowledge when waiting thread has stopped.
710 (pkgDownloadMeterGUI::SpinWaitAction): Raise explicit stop requests;
711 wait for acknowledgement that waiting thread has stopped.
713 2013-04-23 Keith Marshall <keithmarshall@users.sourceforge.net>
715 Select compressed data streaming filters for use by setup tool.
717 * src/pkgstrm.cpp [IMPLEMENTATION_LEVEL != PACKAGE_BASE_COMPONENT]:
718 Exclude the implementations of all decompression filters, except...
719 (pkgXzArchiveStream): ...this, together with its requisite methods...
720 (pkgArchiveStream, pkgLzmaArchiveStream): ...from these.
722 2013-04-23 Keith Marshall <keithmarshall@users.sourceforge.net>
724 Adapt internet download agent for use by setup tool.
726 * src/pkgbase.h: More code rearrangement, exposing...
727 (safe_strcmp): ...this in any implementation context, controlled...
728 [USES_SAFE_STRCMP && ! HAVE_SAFE_STRCMP]: ...by this; when true...
729 (HAVE_SAFE_STRCMP): ...define this to 1, (must be non-zero).
730 [IMPLEMENTATION_LEVEL == PACKAGE_BASE_COMPONENT]: Ensure that...
731 (USES_SAFE_STRCMP): ...this is defined to 1, (i.e. non-zero).
732 (EXTERN_C): Relocate macro definition...
733 * src/pkgimpl.h: ...to here; add complementary implementation of...
734 (BEGIN_C_DECLS, END_C_DECLS): ...these new macros; define them.
736 * src/pkginet.h (pkgDownloadMeter::SpinWait): New static method;
737 declare it as inline, to be implemented elsewhere, delegating to...
738 (pkgDownloadMeter::SpinWaitAction): ...this new protected virtual
739 method; declare and implement it inline, as a "do nothing" base
740 class method, to be optionally overridden in a derived class.
742 * src/pkginet.cpp (pkgDownloadMeter::SpinWait): Implement it.
743 (pkgInternetAgent::OpenURL): Use it to invoke SpinWaitAction().
744 (USES_SAFE_STRCMP): Define as 1; (safe_strcmp() is required).
745 [IMPLEMENTATION_LEVEL != PACKAGE_BASE_COMPONENT]: Filter out code
746 which may not be required in more specialised contexts, then...
747 [IMPLEMENTATION_LEVEL == SETUP_TOOL_COMPONENT]: ...add specialised
748 variants specific to this.
750 * src/pkgnget.cpp [IMPLEMENTATION_LEVEL != PACKAGE_BASE_COMPONENT]:
751 Filter out code which may not be required in more specialised context.
752 (dmh_setpty): Provide locally declared prototype for external function.
753 (pkgDownloadMeterGUI): Add pseudo-terminal diagnostic message window.
754 (pkgDownloadMeterGUI::SpinWaitAction): Declare and implement GUI
755 specific method specialisation; it invokes a thread, running...
756 (pkgDownloadMeterGUI::SpinWait): ...this new static method overload.
758 2013-04-19 Keith Marshall <keithmarshall@users.sourceforge.net>
760 Implement pre-emptive update issue number identification.
762 * src/pkgkeys.h (serial_number): Declare function prototype.
763 * src/pkginet.cpp (serial_number): Implementation remains here;
764 promote from static to extern "C".
766 * src/pkgbind.cpp (value_assumed_new): New char constant; define it.
767 (pkgRepository::expected_issue): New private member var; declare and...
768 (pkgRepository::pkgRepository): ...initialise it, assuming new.
769 (pkgRepository::GetPackageList): Assign pre-emptively declared issue
770 number, (from package-list references), to 'expected_issue'; compare it
771 with 'current_issue' number recorded within locally stored catalogue.
772 [current_issue >= expected_issue]: Suppress redundant download; adjust
773 diagnostic messages as appropriate.
775 2013-04-10 Keith Marshall <keithmarshall@users.sourceforge.net>
777 Fix MinGW-Bug #1601 (on new issues tracker).
779 * aclocal.m4 (makeopts.m4): New build-aux module; include it.
780 (MINGW_AC_PROG_LEX): New macro; implement it.
782 * configure.ac (AC_INIT): Make version number tripartite.
783 (MINGW_AC_MAKE_NO_PRINT_DIRECTORY): Use this new makeopts.m4 macro.
784 (MINGW_AC_PROG_LEX): Use it, in place of...
785 (AC_PROG_LEX): ...this.
787 * Makefile.in (MAKE): New macro; assign using autoconf's SET_MAKE.
788 (QUIET_MAKE): New macro; derive it from $(MAKE) --no-print-directory.
789 (LEX_COMMAND, LEX_COMMAND_ABORT): New macros; define them.
790 (LEX_MISSING, LEX_MISSING_MESSAGE, LEX_OUTPUT): Likewise.
791 (FORMAT_MESSAGE, MESSAGE_FOLD_WIDTH): Likewise; implemented from...
792 (AWK_CLEAR_LINE_BUFFER, AWK_FLUSH_BUFFER, AWK_PRINT_AND_CLEAR_BUFFER):
793 (AWK_COLLECT_MESSAGE, AWK_COLLECT_BLANK_LINE, AWK_PRINT_LINE_BUFFER):
794 ...this collection of internal helper macros; define them.
795 (%.c: %.l): Replacement for built-in rule; it handles "missing lex" in
796 a manner consistent with expectations of autoconf's AC_PROG_LEX.
797 (execute-command): New phoney build goal; it is used with...
798 (WITH_REQUEST): ...this new macro, to invoke commands recursively.
800 2013-03-25 Keith Marshall <keithmarshall@users.sourceforge.net>
802 Adapt DMH for use in setup tool.
804 * src/dmh.cpp: File renamed to...
805 * src/dmhcore.cpp: ...this; some code rearranged, to facilitate...
806 [IMPLEMENTATION_LEVEL == PACKAGE_BASE_COMPONENT]: ...marking of code
807 sections which are required in the base package build, but which may
808 be filtered out of the build context for the setup tool.
810 * src/guidmh.cpp: File renamed to this...
811 * src/dmhguix.cpp: ...this; also add marking for...
812 [IMPLEMENTATION_LEVEL == PACKAGE_BASE_COMPONENT]: ...sections which
813 may be filtered out of the build context for the setup tool.
814 (dmhTypePTY::printf): Improve stratagem for output.
816 * Makefile.in (CORE_DLL_OBJECTS, GUIMAIN_OBJECTS): Adjust references
817 to renamed source files.
819 2013-03-22 Keith Marshall <keithmarshall@users.sourceforge.net>
821 Enable context hooks for build time code filtering.
823 * src/pkgimpl.h: New file; it defines...
824 (PACKAGE_BASE_COMPONENT, SETUP_TOOL_COMPONENT): ...these contexts;
825 either of these may be selected, by defining as manifest value for...
826 (IMPLEMENTATION_LEVEL): ...this; default is PACKAGE_BASE_COMPONENT.
828 * src/pkgbase.h: Include pkgimpl.h
829 [IMPLEMENTATION_LEVEL != PACKAGE_BASE_COMPONENT]: Occlude content.
831 2013-03-21 Keith Marshall <keithmarshall@users.sourceforge.net>
833 Specify additional files for clean-up.
835 * Makefile.in (distclean): Additionally specify...
836 (build.tag, build.time): ...these, as removable files.
838 2013-03-21 Keith Marshall <keithmarshall@users.sourceforge.net>
840 Add a missing distribution dependency.
842 * Makefile.in (srcdist): Explicitly require...
843 (pkginfo.c): ...this; previously, it was only an implicit build time
844 requirement, and may not have persisted until distribution time.
846 2013-03-21 Keith Marshall <keithmarshall@users.sourceforge.net>
848 Implement by-name association of resource scripts with programs.
850 * src/guidata.rc: Renamed as...
851 * src/guimain.rc: ...this, reflecting its association with...
852 * src/guimain.cpp: ...this program source.
854 * Makefile.in (GUIMAIN_OBJECTS): Update dependency...
855 (%.$OBJEXT:%.rc): ...replacing use of this pattern rule...
856 (%.res.$OBJEXT:%.rc): ...with this.
858 2013-01-18 Keith Marshall <keithmarshall@users.sourceforge.net>
860 Make GUI support visual styles in current Windows versions.
862 * src/guidata.rc: Add an appropriate inline manifest resource.
864 * src/guiexec.cpp (AppWindowMaker::Invoked): Ensure UpdateWindow() is
865 called after the initial call to AdjustLayout(); this is required to
866 ensure that all child windows are properly displayed from the outset.
868 * src/pkgview.cpp (AppWindowMaker::LayoutEngine):
869 [ID_PACKAGE_DATASHEET]: Adjust the top position of the frame, to make
870 the border coincide with the bottom border of the tab strip above.
872 2013-01-12 Keith Marshall <keithmarshall@users.sourceforge.net>
874 Merge gui-dev branch head to master; close gui-dev branch.
876 * configure.ac (AC_INIT): Reset version to 0.6; reset all package
877 files to state prevailing at gui-dev branch head.
879 2013-01-11 Keith Marshall <keithmarshall@users.sourceforge.net>
881 Create release branch for further r0.5 development.
883 * configure.ac (AC_INIT): Bump version number to 0.5.1; assign branch
884 label (mercurial bookmark) as "r0-5-1" for all files; (this is not to
885 be released, at this time).
887 2013-01-10 Keith Marshall <keithmarshall@users.sourceforge.net>
889 Implement data sheet compiler for list of installed files.
891 * src/pkgdata.cpp: #include pkgproc.h; it furnishes...
892 (pkgManifest): ...this class declaration, which is required by...
893 (DataSheetMaker::DisplayFilesManifest): ...this new private inline
894 method; declare and implement it; subsequently, invoke it...
895 (DataSheetMaker::OnPaint) [PKG_DATASHEET_INSTALLED_FILES]: ...here.
896 (pkgTroffLayoutEngine::WriteLn): Correct a defect in handling of
897 excess-length unbreakable "words" outside the viewport; previously
898 they were not dropped from the input queue, resulting in repeated
899 reprocessing in an infinite loop.
901 2013-01-09 Keith Marshall <keithmarshall@users.sourceforge.net>
903 Include release tags in GUI displayed package versions.
905 * src/pkglist.cpp (pkgVersionString) [ReleaseStatus != NULL]:
906 Append ReleaseStatus and ReleaseIndex to generated version string.
908 2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
910 Fix enumeration of pending install actions for scheduled upgrades.
912 * src/pkgdata.cpp (pkgActionItem::EnumeratePendingActions):
913 [action == ACTION_UPGRADE && classified == ACTION_INSTALL]: Enumerate
914 upgrade as a special case of the install classification.
916 2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
918 Implement "Mark All Upgrades" GUI capability.
920 * src/guimain.h (IDM_REPO_APPLY): Renumbered; make room for...
921 (IDM_REPO_MARK_UPGRADES): ...this new constant; define it.
923 * src/guidata.rc (IDM_REPO_MARK_UPGRADES): New option; add it...
924 (ID_MAIN_WINDOW_WINDOW) [Installation]: ...to this drop-down menu.
926 * src/pkgbase.h (pkgActionItem::SuppressRedundantUpgrades): New
927 public inline method; declare it.
929 * src/guiexec.cpp (AppWindowMaker::OnCommand):
930 [IDM_REPO_MARK_UPGRADES]: Add case handler for this menu selection.
931 (pkgActionItem::SuppressRedundantUpgrades): New method; implement it.
933 2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
935 Avoid unnecessary reloading of package list.
937 * src/guiexec.cpp (AppWindowMaker::OnCommand) [IDM_REPO_APPLY]:
938 Do not reload package list after processing; update it in place.
940 2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
942 Avoid potential heap corruption in action scheduler.
944 * src/guiexec.cpp (pkgActionItem::Clear): Factor out; relocate to...
945 * src/pkgexec.cpp (pkgActionItem::Clear): ...here; this keeps all use
946 of new and delete operators on the same side of the EXE/DLL boundary
947 as the constructor and destructor for pkgActionItem objects.
948 (pkgActionItem::Schedule): Ensure that all min_wanted and max_wanted
949 references are unique to each allocated pkgActionItem object, so that
950 the destructor may safely release their associated heap memory blocks.
952 2013-01-07 Keith Marshall <keithmarshall@users.sourceforge.net>
954 Update copyright notification for development in new year.
956 * configure.ac (YEARS_OF_ISSUE): Add year 2013.
958 * Makefile.in (version.c, guidata.$OBJEXT): Make them depend on...
959 (Makefile): ...this, so YEARS_OF_ISSUE propagates to built objects.
961 2012-12-24 Keith Marshall <keithmarshall@users.sourceforge.net>
963 Work around a GUI action scheduling instability.
965 * src/guimain.h (AppWindowMaker::UpdateDataSheet): Declare new method.
966 * src/pkgdata.cpp (AppWindowMaker::UpdateDataSheet): Implement it.
967 (AppWindowMaker::OnNotify): Use it.
969 * src/guiexec.cpp (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]:
970 Don't refresh package list view in-place; clear and reload it instead.
972 2012-12-21 Keith Marshall <keithmarshall@users.sourceforge.net>
974 Update distribution build rules.
976 * Makefile.in (SRCDIST_FILES): Remove version.c.in; this was moved
977 to src/version.c.in, and is now automatically included via...
978 (SRCDIST_SUBDIRS): ...this; remove build-aux and build-aux/m4; we want
979 only selected files from these, as filtered by specification in...
980 (BUILD_AUX_DIRS, BUILD_AUX_FILES): ...these new macros; define them.
981 (BLDTAG, SCMTAG, GCMTAG): New release class macros; define them.
982 (bindist, licdist, srcdist): Use them.
984 2012-12-21 Keith Marshall <keithmarshall@users.sourceforge.net>
986 Update CLI implementation hooks for GUI integration.
988 * Makefile.in (LIBEXEC_PROGRAMS): Replace gui$EXEEXT with
989 guistub$EXEEXT; update make goal references accordingly.
991 * src/rites.c (MINGW_GET_GUI): Redefine to be guimain$EXEEXT.
992 (MINGW_GET_GFB): Define new fall-back; let it be guistub$EXEEXT.
993 (RITES_IMPLEMENTATION): Perform rites for MINGW_GET_GUI.
995 * src/clistub.c (main) [cannot exec MINGW_GET_GUI]: Try
996 MINGW_GET_GFB instead.
998 2012-12-21 Keith Marshall <keithmarshall@users.sourceforge.net>
1000 Rename executive core file for GUI implementation.
1002 * src/guixmld.cpp: File renamed...
1003 * src/guiexec.cpp: ...to this; its function exceeds original intent.
1004 * Makefile.in (GUIMAIN_OBJECTS): Update reference accordingly.
1006 2012-12-20 Keith Marshall <keithmarshall@users.sourceforge.net>
1008 Create foundation for implementation of package category tree view.
1010 * Makefile.in (GUIMAIN_OBJECTS): Add pkgtree.$OBJEXT reference to...
1011 * src/pkgtree.cpp: ...incorporate this new file; it implements...
1012 (AppWindowMaker::InitPackageTreeView): ...this new class method...
1013 (pkgInitCategoryTreeGraft): ...and this new extern "C" function.
1015 * src/guimain.h (pkgInitCategoryTreeGraft): Declare prototype.
1016 (AppWindowMaker::InitPackageTreeView): New private method; declare it.
1017 (AppWindowMaker::PackageTreeView): New member variable; declare it.
1019 * src/guixmld.cpp (AppWindowMaker::LoadPackageData): Call
1020 pkgInitCategoryTreeGraft(), after loading profile.xml
1021 (AppWindowMaker::Invoked): Call InitPackageTreeView()
1023 * src/pkgview.cpp (AppWindowMaker::LayoutEngine):
1024 [ID_PACKAGE_TREEVIEW]: Handle it.
1026 2012-12-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1028 Make the "Apply Changes" dialogue "failure-aware".
1030 * src/pkgtask.h (ACTION_APPLY_FAILED): Redefine, in terms of...
1031 (ACTION_INSTALL_FAILED, ACTION_REMOVE_FAILED): New manifest defines.
1032 (ACTION_UNSUCCESSFUL): New manifest constant; define it.
1034 * src/pkgdata.cpp (pkgActionItem::EnumeratePendingActions):
1035 [ACTION_UNSUCCESSFUL]: Make it a special case for enumeration.
1037 * src/guixmld.cpp (pkgApplyChanges): Enumerate...
1038 [ACTION_UNSUCCESSFUL > 0]: ...all such cases; when true...
1039 [IDD_AUTO_CLOSE_OPTION]: ...this; select alternative close-out
1040 messages, as appropriate.
1041 (pkgActionItem::Assert): Factor out; relocate to...
1042 * src/pkgexec.cpp (pkgActionItem::Assert): ...here; this moves its
1043 object code into the mingw-get DLL.
1045 * src/pkgunst.cpp (pkgRemove) [ACTION_REMOVE_FAILED]:
1046 * src/pkginst.cpp (pkgInstall) [ACTION_INSTALL_FAILED]:
1047 Assert as appropriate.
1049 2012-12-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1051 Improve progress reporting in "Apply Changes" dialogue.
1053 * src/pkgstat.h: New header file; it declares...
1054 (pkgSpinWait): ...this new pure abstract base class; it specifies an
1055 infrastructure for posting arbitrary text to dialogue controls.
1057 * src/pkgexec.cpp (pkgSpinWait): Implement its static elements.
1058 (pkgActionItem::Execute): Dispatch progress reports, handled by...
1059 (pkgSpinWait::Report, pkgSpinWait::Indicator): ...these.
1061 * src/guixmld.cpp (pkgDialogueSpinWait): New class; declare it and
1062 implement locally. It is derived from, and provides a listener for...
1063 (pkgSpinWait): ...this abstract class.
1064 (pkgApplyChanges): Use it.
1066 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDataStream): Call...
1067 (pkgSpinWait::Report): ...this, to report extracted files.
1069 * src/pkgunst.cpp (pkg_unst): Call...
1070 (pkgSpinWait::Report): ...this, to report deleted files.
1072 * src/sysroot.cpp (pkgXmlDocument::UpdateSystemMap): Call...
1073 (pkgSpinWait::Report, pkgSpinWait::Indicator): ...these, to confirm
1074 continuing database update activity.
1076 2012-12-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1078 Update tab display on right-click in package list view.
1080 * src/pkgdata.cpp (AppWindowMaker::OnNotify) [NM_RCLICK]:
1081 Call DataSheetMaker::DisplayData(), before invoking pop-up menu.
1083 2012-12-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1085 Add more protection against NULL pointer abuse.
1087 * src/pkgbase.h (pkgActionItem::Reset): Method renamed to...
1088 * src/guixmld.cpp (pkgActionItem::Assert): ...this; also renamed here.
1089 (AppWindowMaker::OnCommand): When calling...
1090 (pkgListViewMaker::MarkScheduledActions): ...this, pass argument as...
1091 (pkgXmlDocument::ClearScheduledActions): ...pointer returned by this.
1093 * src/pkgdata.cpp (AppWindowMaker::MarkSchedule):
1094 [pending_actions == NULL]: Do not propagate invocation request to...
1095 (pkgListViewMaker::MarkScheduledActions): ...this.
1097 * src/pkglist.cpp (pkgListViewMaker::MarkScheduledActions):
1098 [schedule == NULL]: Do nothing.
1100 2012-12-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1102 Implement some additional permanent debugging support.
1104 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
1105 [DEBUG_TRACE_DEPENDENCIES]: Enable DMH digest mode for messages.
1107 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDataStream):
1108 [DEBUG_TRACE_TRANSACTIONS]: Add logging of installed file path names.
1110 2012-12-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1112 Insert a missing snprintf format effector.
1114 * src/pkgnget.cpp (pkgDownloadMeterGUI::Update): Add omitted '%'
1115 format specifier, in "%%", for formatting percentage-complete value.
1116 Rename "size_buf" automatic variable as "buf"; this results in shorter
1117 source lines, and consequently a tidier source code layout.
1118 (pkgDownloadMeterGUI::ResetGUI): Likewise s/size_buf/buf/
1120 2012-12-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1122 Add a missing header reference.
1124 * src/approot.h: Include stdint.h; this ensures that wchar_t is
1125 properly typedef'd, before attempting to use it.
1127 2012-12-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1129 Make a clone of the package menu available as a pop-up.
1131 * src/guimain.h (AppWindowMaker::SelectPackageAction): New private
1134 * src/pkgdata.cpp (AppWindowMaker::SelectPackageAction): Implement it.
1135 (AppWindowMaker::OnNotify) [ID_PACKAGE_LISTVIEW]: Use it.
1137 2012-12-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1139 Improve conditionally enabled state manipulation for menu items.
1141 * src/guidata.rc (IDM_REPO_APPLY): Set its initial state as GRAYED.
1143 * src/pkgdata.cpp (AppWindowMaker::UpdatePackageMenuBindings):
1144 [IDM_PACKAGE_REINSTALL]: Always leave it GRAYED; this is a temporary
1145 provision, until the GUI is updated to support "reinstall" capability.
1146 [IDM_REPO_APPLY && !(EnumeratePendingActions > 0)]: Make it GRAYED.
1147 [IDM_REPO_APPLY && (EnumeratePendingActions > 0)]: Enable it.
1149 2012-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1151 Implement GUI bindings for processing a schedule of actions.
1153 * src/guimain.h (IDD_DMH_CONSOLE): New resource ID; define it.
1154 (IDD_APPLY_EXECUTE): New dialogue template resource ID; define it.
1155 (AppWindowMaker::ExecuteScheduledActions): New method; declare it.
1157 * src/guidata.rc (IDD_APPLY_EXECUTE): Implement dialogue template.
1159 * src/guixmld.cpp (pkgApplyChanges): New thread function; implement it.
1160 (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]: Use it; it is invoked...
1161 (IDD_APPLY_EXECUTE): ...via this dialogue box, subsequently calling...
1162 (AppWindowMaker::ExecuteScheduledActions): ...this; implement it.
1164 * src/pkgexec.cpp (pkgActionItem::Execute): Add argument; use it.
1165 (pkgActionItem::~pkgActionItem): Unlink chained references.
1167 * src/pkgbase.h (pkgActionItem::Execute): Adjust prototype.
1169 2012-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1171 Do not preserve unnecessary download requests.
1173 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles):
1174 [(flags & ACTION_INSTALL) != ACTION_INSTALL]: Actions having no
1175 "install" effect do not require a download; cancel any associated
1178 2012-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1180 Implement GUI bindings for package download agent.
1182 * src/guimain.h (IDD_PROGRESS_VAL, IDD_PROGRESS_MAX):
1183 (IDD_PROGRESS_PCT): New manifest resource IDs; define them. They will
1184 be used to identify dialogue controls, to be associated with...
1185 (IDD_APPLY_DOWNLOAD): ...this new dialogue template ID; define it.
1186 (AppWindowMaker::DownloadArchiveFiles): New inline method; declare it.
1188 * src/guidata.rc (IDD_APPLY_DOWNLOAD): Implement dialogue template.
1190 * src/pkgbase.h (pkgActionItem::DownloadArchiveFiles): New public
1191 inline method; declare it. It overloads an existing private method of
1192 the same name, which it subsequently invokes.
1194 * src/pkginet.h: New header file; it declares...
1195 (pkgInvokeDownload): ...this new extern "C" function prototype, and...
1196 (pkgDownloadMeter): ...this abstract class; it is factored from its
1197 original implementation in pkginet.cpp, augmented by addition of...
1198 (pkgDownloadMeter::primary): New static member variable; declare it.
1199 (pkgDownloadMeter::UseGUI): New public method; implement it inline.
1200 (pkgDownloadMeter::ResetGUI): New public method; declare it, providing
1201 a do-nothing inline default implementation. Any derived class, which
1202 supports GUI capability, should override this.
1204 * src/pkgnget.cpp: New file; it implements...
1205 (pkgDownloadMeterGUI): New class, derived from pkgDownloadMeter.
1206 (pkgActionItem::DownloadArchiveFiles): New overloaded inline method.
1207 (AppWindowMaker::DownloadArchiveFiles): New inline method.
1208 (pkgInvokeDownload): New dialogue box worker thread handler.
1210 * src/pkginet.cpp: Include pkginet.h; hence...
1211 (pkgDownloadMeter): ...remove redundant class declaration.
1212 (pkgDownloadMeter::primary): Define and initialise it.
1213 (pkgInternetStreamingAgent::Get) [pkgDownloadMeter::UseGUI]: Delegate
1214 progress metering to referenced pkgDownloadMeterGUI class instance.
1215 [! pkgDownloadMeter::UseGUI]: Continue to use the existing built-in
1216 pkgDownloadMeterTTY mechanism.
1217 (pkgActionItem::DownloadSingleArchive) [ACTION_DOWLOAD_FAILED]: Assert
1218 this initially; subsequently clear it on successful completion.
1219 (pkgActionItem::DownloadArchiveFiles): Collect diagnostic messages
1220 into a single DMH_BEGIN_DIGEST ... DMH_END_DIGEST group.
1222 * src/guixmld.cpp: Include pkginet.h; it is required by...
1223 (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]: Use pkgInvokeDownload.
1225 * Makefile.in (GUIMAIN_OBJECTS): Include pkgnget.$OBJEXT
1227 2012-12-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1229 Implement "Discard" handler for GUI "Apply Changes" dialogue.
1231 * src/pkgbase.h (pkgActionItem::Reset): New public method; declare it.
1232 (pkgActionItem::Clear): New public method; declare two overloaded
1233 variants, of which implement one inline.
1234 (pkgXmlDocument::ClearScheduledActions): New public method; declare
1235 and implement it inline.
1237 * src/pkgtask.h (ACTION_DOWNLOAD_FAILED, ACTION_APPLY_FAILED): New
1238 manifest bit-flag constants; define them. They provide a mechanism
1239 for blocking the discard event in respect of failed actions.
1241 * src/guixmld.cpp (pkgActionItem::Reset): Implement it.
1242 (pkgActionItem::Clear): Implement second, out-of-line variant.
1243 (ACTION_PRESERVE_FAILED): New local manifest bit-flag constant; define
1244 it as an aggregate of ACTION_DOWNLOAD_FAILED and ACTION_APPLY_FAILED.
1245 (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]: Use them.
1247 2012-12-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1249 Implement GUI dialogue for "Apply Changes" action approval.
1251 * src/guidata.rc (ID_MAIN_WINDOW_MENU): Rename...
1252 ("&Repository"): ...this drop-down menu entry...
1253 ("&Installation"): ...this; add...
1254 ("&Apply Changes"): ...this new selection.
1255 (IDD_APPLY_APPROVE): New dialogue box resource template; define it.
1256 (SS_CTEXTBOX): New aggregate style convenience macro; define it.
1257 (ES_VT100): Likewise.
1259 * src/guimain.h (IDM_REPO_APPLY): New resource ID; define it.
1260 (IDM_REPO_QUIT): Redefined resource ID; was 302; changed to 312.
1261 (IDD_APPLY_APPROVE, IDD_PROGRESS_TXT): New resource IDs; define them.
1262 (IDD_APPLY_REMOVES_PACKAGES, IDD_APPLY_REMOVES_SUMMARY): Likewise.
1263 (IDD_APPLY_INSTALLS_PACKAGES, IDD_APPLY_INSTALLS_SUMMARY): Likewise.
1264 (IDD_APPLY_UPGRADES_PACKAGES, IDD_APPLY_UPGRADES_SUMMARY): Likewise.
1265 (ID_APPLY, ID_DISCARD, ID_DEFER): New response IDs; define them.
1266 (AppWindowMaker::EnumerateActions): New inline method; declare it.
1267 (AppWindowMaker::DialogueResponse): New inline method; declare and
1270 * src/guixmld.cpp (pkglist.h): #included.
1271 (dmh_setpty): Add locally declared prototype.
1272 (AppWindowMaker::EnumerateActions): Implement it.
1273 (pkgActionCount): New static helper function; implement it.
1274 (ACTION_APPLY, APPLIES_TO): New macros; define them.
1275 (FMT_APPLY_REMOVES, FMT_APPLY_INSTALLS, FMT_APPLY_UPGRADES): New
1276 manifest string constants; define them.
1277 (pkgApplyApproved): New static call-back function; implement...
1278 (AppWindowMaker::OnCommand) [IDM_REPO_APPLY]: ...and use it.
1280 2012-12-06 Keith Marshall <keithmarshall@users.sourceforge.net>
1282 Implement enhanced action item enumeration capability.
1284 * src/pkgbase.h (pkgActionItem::EnumeratePendingActions): New public
1285 method; declare it. It provides the capability to enumerate scheduled
1286 actions, filtered by action classification; when invoked such that it
1287 selects all actions, it may be used as a replacement for...
1288 (pkgActionItem::Unapplied): ...this; delete declaration.
1290 * src/pkgdata.cpp (pkgActionItem::EnumeratePendingActions): Implement
1291 it; it is derived, with enhancement, from original implementation...
1292 (pkgActionItem::Unapplied): ...of this; delete it, and...
1293 (AppWindowMaker::OnClose): ...update calling reference accordingly.
1295 2012-12-05 Keith Marshall <keithmarshall@users.sourceforge.net>
1297 Implement PTY display emulation for GUI mode DMH.
1299 * src/dmhcore.h (dmhTypeGeneric::set_console_hook): New public virtual
1300 method; declare it, providing inline default do-nothing implementation.
1301 (dmhTypeGeneric::severity_tag): New protected static method; declare it.
1302 (dmhTypeGeneric::notification_format): New protected static property;
1305 * src/dmh.cpp (dmhTypeGeneric::severity_tag): Implement it.
1306 (dmhTypeGeneric::notification_format): Define and initialise it.
1307 (dmhTypeTTY::notify): Use them.
1308 (dmh_setpty): New function; declare prototype and implement it.
1310 * src/guidmh.cpp (dmhTypePTY): New locally implemented class.
1311 (dmhTypeGUI::set_console_hook): New virtual method; declare and
1312 implement it; it stores a dmhTypePTY reference pointer into...
1313 (dmhTypeGUI::console_hook): ...this new private member variable.
1314 (dmhTypeGUI::dmhTypeGUI): Initialise it.
1315 (dmhTypeGUI::notify) [console_hook != NULL]: Delegate to it.
1316 (dmhTypeGUI::printf) [console_hook != NULL]: Likewise.
1318 2012-12-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1320 Implement generalised API for dialogue boxes with worker threads.
1322 * src/guimain.h (pkgDialogueThread): New typedef; declare it.
1323 (AppWindowMaker::DialogueThread): New static property; declare it.
1324 (AppWindowMaker::DispatchDialogueThread): New method; declare it.
1326 * src/guixmld.cpp: Formatting of several comments adjusted.
1327 (pkgUpdate, pkgInitDataLoad): Defunct functions; replaced by...
1328 (pkgDialogue): ...this new static call-back function; implement it.
1329 (AppWindowMaker::DialogueThread): Instantiate and initialise it.
1330 (AppWindowMaker::DispatchDialogueThread): Implement it.
1331 (AppWindowMaker::Invoked): Use it to invoke pkgInvokeInitDataLoad()...
1332 (AppWindowMaker::OnCommand): ...and pkgInvokeUpdate().
1334 2012-12-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1336 Consolidate GUI implementation for package list view management.
1338 * src/pkglist.h (pkgListViewMaker::GetTitle): Disused overloaded
1339 method; remove all declarations.
1340 (pkgListViewMaker::GetVersionString): Disused method; remove
1342 (pkgListViewMaker::GetItem): New private inline method; declare it.
1343 (pkgListViewMaker::UpdateItem): New private method; declare it.
1344 (pkgListViewMaker::UpdateListView): New public method; declare it.
1345 (pkgListViewMaker::MarkScheduledActions): Likewise.
1347 * src/guimain.h (AppWindowMaker::MarkSchedule): New public inline
1348 method; declare it, but defer implementation to...
1350 * src/pkgdata.cpp (AppWindowMaker::MarkSchedule): ...here; not used
1351 elsewhere, it is derived from, and replaces...
1352 (pkgMarkSchedule): ...this function; factor out redundant code, in
1353 favour of delegation to pkgListViewMaker::MarkScheduledActions(), with
1354 following call to AppWindowMaker::UpdatePackageMenuBindings(); update
1355 calling function references...
1356 (AppWindowMaker::UnmarkSelectedPackage): ...here, and...
1357 (AppWindowMaker::Schedule): ...here.
1359 * src/pkglist.cpp (pkgVersionString): New static function; implement
1360 it as a local replacement for...
1361 (pkgListViewMaker::GetVersionString): ...this defunct class method.
1362 (pkgGetTitle): New overloaded static function; implement two variants,
1363 as local replacements for...
1364 (pkgListViewMaker::GetTitle): ...this defunct overloaded class method.
1365 (pkgListViewMaker::UpdateItem): Implement it; factor code from...
1366 (pkgListViewMaker::InsertItem): ...here, whence use it.
1367 (pkgListViewMaker::MarkScheduledActions): Implement it.
1368 (pkgListViewMaker::UpdateListView): Implement it.
1369 (pkgListViewMaker::pkgListViewMaker): Remove references to...
1370 (LVIF_TEXT): ...this.
1372 2012-11-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1374 Increase width of window sash bars by 50%.
1376 * src/guimain.h (SASH_BAR_THICKNESS): Increase from 4 to 6; this makes
1377 it easier to grab the sash bars, so they may be dragged; IMO, it also
1378 results in a better appearance.
1380 2012-11-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1382 Maintain consistent internal vs. external installation records.
1384 * src/pkginst.cpp (pkgInstall): Set "installed" attribute on internal
1385 package reference, to "yes", after installation; CLI didn't need this,
1386 but GUI will do so, for any package revisited in a single session.
1388 * src/pkgunst.cpp (pkgRemove): Similarly, negate "installed" attribute
1389 after package removal.
1391 2012-11-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1393 Refactor to consolidate three instances of duplicate code.
1395 * src/pkglist.h (pkgGetStatus): New function; declare it.
1396 * src/pkglist.cpp (pkgGetStatus): Implement it; factor out from...
1397 (pkgListViewMaker::InsertItem): ...here, whence use it.
1398 * src/pkgdata.cpp (pkgMarkSchedule): Likewise here...
1399 (DataSheetMaker::DisplayGeneralData): ...and here.
1401 2012-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1403 Add GUI support for install, upgrade, and remove action scheduling.
1405 * src/guimain.h (EXTERN_C): Ensure it is defined.
1406 (pkgActionItem): Add forward declaration of class name.
1407 (pkgMarkSchedule): New EXTERN_C function; declare and prototype it.
1408 (AppWindowMaker::OnClose): New virtual method; declare it.
1409 (AppWindowMaker::Schedule): New public method; declare it.
1410 (AppWindowMaker::UnmarkSelectedPackage): Likewise.
1412 * src/pkgbase.h (pkgActionItem::HasAttribute) [this == NULL]: Add
1413 protective logic; ignore attempts to access non-existent objects.
1414 (pkgActionItem::SelectPackage) [this == NULL]: Likewise.
1415 (pkgActionItem::Selection) [this == NULL]: Likewise.
1416 (pkgActionItem::GetReference): New overloaded public method; declare
1417 prototype variant with argument type of pkgXmlNode*.
1418 (pkgActionItem::Unapplied): New public method; declare it.
1419 (pkgActionItem::CancelScheduledAction): Likewise.
1420 (pkgXmlDocument::Schedule): Change return type from void to
1421 pkgActionItem*; add default argument values.
1423 * src/guixmld.cpp (AppWindowMaker::OnCommand): Add menu case hooks...
1424 [IDM_PACKAGE_INSTALL]: ...to schedule package 'install' action...
1425 [IDM_PACKAGE_UPGRADE]: ...package 'upgrade' action...
1426 [IDM_PACKAGE_REMOVE]: ...package 'remove' action, or...
1427 [IDM_PACKAGE_UNMARK]: ...to cancel any of these scheduling requests.
1428 [IDM_REPO_QUIT]: Correct typo; s/WM_QUIT/WM_CLOSE/ in comment.
1430 * src/pkgdata.cpp (pkgMarkSchedule): Implement it.
1431 (pkgActionItem::CancelScheduledAction): Implement it.
1432 (pkgActionItem::Unapplied): Implement it.
1433 (AppWindowMaker::UpdatePackageMenuBindings): Improve comments.
1434 (AppWindowMaker::UnmarkSelectedPackage): Implement it.
1435 (AppWindowMaker::Schedule): Implement it.
1436 (AppWindowMaker::OnClose): Implement it.
1438 * src/pkgdeps.cpp (pkgActionItem::GetReference): Implement overload.
1439 (pkgXmlDocument::Schedule): Change return type, and return value.
1440 [this == NULL]: Add protective logic; ignore non-existent objects.
1441 [name == NULL]: Do not schedule; just return existing action list.
1443 2012-11-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1445 Add dynamically enabled state control for package menu items.
1447 * src/guimain.h (AppWindowMaker::UpdatePackageMenuBindings): New
1448 private method; declare it.
1450 * src/pkgdata.cpp (AppWindowMaker::UpdatePackageMenuBindings):
1451 Implement it, and...
1452 (AppWindowMaker::OnNotify): ...use it.
1454 2012-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1456 Avoid excessive inter-word spaces in adjusted text.
1458 * src/pkgdata.cpp (pkgTroffLayoutEngine::WriteLn): Check extent of
1459 padding to be added at each inter-word space, when adjusting text; do
1460 not adjust, if it exceeds 5% of available display pane width.
1462 2012-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1464 Elide unbreakable text which will not fit within display width.
1466 * src/pkgdata.cpp (pkgTroffLayoutEngine::WriteLn): Add logic to detect
1467 over-width unbreakable text; elide characters from the right, to make
1468 it fit within the display width, with trailing ellipsis.
1470 2012-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1472 Add content compiler for package data sheet "general" tab.
1474 * src/pkgbase.h (pkgActionItem::PrintURI): Make it public. Add a
1475 call-back reference argument, for output function; assign puts() as
1476 default, where previously had hard coded printf() emulating puts()
1478 * src/pkginet.cpp (pkgActionItem::PrintURI): Use call-back hook.
1480 * src/pkgdata.cpp (DataSheetMaker::Display): New static property; it
1481 stores a reference to the active class instance, so static call-back
1482 methods may delegate processing requests to non-static methods.
1483 (DataSheetMaker::Advance): New static property; it is used to instruct
1484 call-back methods to interpose paragraph leading it the output stream.
1485 (DataSheetMaker::FormatRecord): New private method; implement it.
1486 (DataSheetMaker::FormatText): Don't pass "canvas" as an argument; we
1487 can access it directly as a class property. Update all callers as
1488 necessary, to conform to modified function prototype.
1489 (pkgListSelection): New static function; implement it, and...
1490 (DataSheetMaker::OnPaint): ...use it in switch cases, when calling...
1491 [PKG_DATASHEET_GENERAL]: DataSheetMaker::DisplayGeneralData(), and...
1492 [PKG_DATASHEET_DESCRIPTION]: DataSheetMaker::DisplayDescription().
1493 (DataSheetMaker::DisplayGeneralData): New public method; implement it.
1494 (DataSheetMaker::DisplayPackageURL): New static method; implement it.
1495 (DataSheetMaker::DisplayLicenceURL): Likewise.
1496 (DataSheetMaker::DisplaySourceURL): Likewise.
1498 2012-10-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1500 Fix error in counting of catalogue files during loading.
1502 * src/pkgbind.cpp (pkgRepository::GetPackageList): Increment count
1503 variable once only, at start of each cycle of the catalogue loading
1504 loop; previous strategy of counting in discrete logic paths could
1505 miss several required increments, particularly in CLI mode.
1507 2012-10-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1509 Avoid DMH message digest fragmentation when downloading.
1511 * src/dmh.h (DMH_GET_CONTROL_STATE): New macro; define it.
1512 * src/pkginet.cpp (pkgInternetAgent::OpenURL): Use it; do not close
1513 locally opened message digest, when called with one already open.
1515 2012-10-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1517 Initiate progress metering for catalogue load and update operations.
1519 * src/guidata.rc (IDD_REPO_UPDATE): New dialogue template; define it.
1520 (IDM_REPO_UPDATE): Enable selection from "Repository" drop-down menu.
1522 * src/guimain.h (IDD_REPO_UPDATE, IDD_CLOSE_OPTIONS):
1523 (IDD_AUTO_CLOSE_OPTION, IDD_PROGRESS_BAR, IDD_PROGRESS_MSG): New
1524 resource identification manifest constants; define them.
1525 (pkgXmlNode, pkgProgressMeter): Add forward class declarations.
1526 (AppWindowMaker::AttachedProgressMeter): New private data; define...
1527 (AppWindowMaker::AppWindowMaker): ...and initialise it.
1528 (AppWindowMaker::AttachProgressMeter): New public method; declare it.
1529 (AppWindowMaker::DetachProgressMeter): Likewise.
1530 (AppWindowMaker::LoadPackageData, AppWindowMaker::ClearPackageList):
1531 (AppWindowMaker::UpdatePackageList): Make them public.
1533 * src/pkgbase.h (pkgProgressMeter): New abstract class; declare it.
1534 (AppWindowMaker) [GUIMAIN_H undefined]: Add forward class declaration.
1535 (pkgXmlDocument::progress_meter): New private data member; declare...
1536 (pkgXmlDocument::pkgXmlDocument): ...and initialise it.
1537 (pkgXmlDocument::ProgressMeter, pkgXmlDocument::AttachProgressMeter):
1538 (pkgXmlDocument::DetachProgressMeter): New public inline methods;
1541 * src/pkgview.cpp (WTK::GenericDialogue): Delete disused reference.
1542 (AppWindowMaker::OnCommand): Factor out implementation; relocate it...
1543 * src/guixmld.cpp: ...to here; thus it may utilise dependants of...
1544 (ProgressMeterMaker): ...this new locally implemented class.
1545 (AppWindowMaker::AttachProgressMeter): Implement it.
1546 (AppWindowMaker::AttachProgressMeter): Likewise.
1547 (pkgProgressMeter::~pkgProgressMeter): Likewise.
1548 (pkgUpdate, pkgInvokeUpdate): New static functions; implement them.
1549 (AppWindowMaker::Invoked): Replace direct call to LoadPackageData by
1550 an indirect invocation, via a progress metering dialogue box using...
1551 (pkgInitDataLoad): ...this new static callback function, invoking...
1552 (pkgInvokeInitDataLoad): ...this new static thread function, whence...
1553 (AppWindowMaker::LoadPackageData): ...this; add hook-up call to...
1554 (pkgXmlDocument::AttachProgressMeter): ...incorporate this.
1556 * src/pkgbind.cpp (pkgRepository::total, pkgRepository::count): New
1557 private static properties; declare and instantiate them; provide...
1558 (pkgRepository::Reset, pkgRepository::IncrementTotal): ...new public
1559 static methods to manipulate them; declare and implement them inline.
1560 (pkgRepository::GetPackageList): Use them to manage updates to the
1561 pkgProgressMeter class instance, if any, which has been bound to
1562 the controlling pkgXmlDocument class instance, when invoking...
1563 (pkgXmlXmlDocument::BindRepositories): ...this.
1565 2012-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1567 Associate DMH message boxes with active dialogues.
1569 * src/guidmh.cpp (last_active_popup): New static inline function.
1570 (dmhTypeGUI::dispatch_message): Use it.
1572 2012-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1574 Fix Diagnostic Message Handler initialisation logic.
1576 * src/dmh.cpp (dmh_init) [DMH_SUBSYSTEM_GUI]: Correct a logic error;
1577 it previously fell through after any successful initialisation of the
1578 DMH_SUBSYSTEM_GUI handler, replacing it with a DMH_SUBSYSTEM_TTY type
1579 handler. Also, assign a heap copy of the passed "progname" string
1580 resource, which is volatile, to ensure that the handler retains a
1583 2012-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1585 Implement preliminary GUI mode data sheet compiler.
1587 * src/guimain.h (DataSheetMaker): New class; forward declare it.
1588 (AppWindowMaker::InitPackageTabControl): New private method; declare it.
1589 (AppWindowMaker::DataSheet, AppWindowMaker::PackageTabControl):
1590 (AppWindowMaker::TabDataPane, AppWindowMaker::PackageTabPane): New
1591 private data members; declare them.
1592 (ID_SASH_WINDOW_PANE_CLASS): New string resource identifier; define it.
1593 (ID_PACKAGE_DATASHEET, ID_PACKAGE_TABPANE): New window identifiers;
1596 * src/guidata.rc (ID_SASH_WINDOW_PANE_CLASS): Specify string resource.
1598 * src/pkgview.cpp (AppWindowMaker::OnSize): Add handler for...
1599 (ID_PACKAGE_TABPANE, ID_PACKAGE_TABCONTROL, ID_PACKAGE_DATASHHET):
1600 ...this group of sash pane child window entities.
1601 (AppWindowMaker::OnNotify): Comment out disused stub implementation.
1603 * src/pkgshow.cpp (pkgUTF8Parser): Factor out class declaration...
1604 (UTF32_MAX, UTF32_OVERFLOW, UTF32_INVALID): ...these definitions...
1605 (utf32_t): ...and this typedef; relocate to, and #include...
1606 * src/pkgdata.h: ...this new header file.
1608 * src/pkgdata.cpp (DataSheetMaker): New class; declare and implement it.
1609 (AppWindowMaker::InitPackageTabControl): Implement it.
1610 (AppWindowMaker::OnNotify): Reimplement it.
1612 * Makefile.in (GUIMAIN_OBJECTS): Add pkgdata.OBJEXT
1614 * src/guixmld.cpp (AppWindowMaker::Invoked): Add call to invoke
1615 AppWindowMaker::InitPackageTabControl()
1617 2012-10-09 Keith Marshall <keithmarshall@users.sourceforge.net>
1619 Remove a grossly heuristic list view hack.
1621 * src/pkglist.cpp (pkgListViewMaker::GetTitle): Remove code for the
1622 heuristic deletion of any redundant package name prefixes from package
1623 title attributes; by now, all such prefixes should have been removed
1624 from the catalogue, explicitly, at source.
1626 2012-10-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1628 Implement GUI list view compiler for XML catalogue.
1630 * src/pkgview.cpp (AppWindowMaker::LayoutEngine): Add case handler...
1631 [pane_id == ID_PACKAGE_LISTVIEW]: ...for this window pane class.
1633 * src/guimain.h (ID_PKGLIST_TABLE_HEADINGS):
1634 (ID_PKGNAME_COLUMN_HEADING, ID_PKGTYPE_COLUMN_HEADING):
1635 (ID_INSTVER_COLUMN_HEADING, ID_REPOVER_COLUMN_HEADING):
1636 (ID_PKGDESC_COLUMN_HEADING): New resource identifiers; define them.
1637 (ID_PKGSTATE_AVAILABLE, ID_PKGSTATE_AVAILABLE_NEW):
1638 (ID_PKGSTATE_AVAILABLE_LOCKED, ID_PKGSTATE_AVAILABLE_INSTALL):
1639 (ID_PKGSTATE_INSTALLED_CURRENT, ID_PKGSTATE_INSTALLED_LOCKED):
1640 (ID_PKGSTATE_INSTALLED_OLD, ID_PKGSTATE_UPGRADE, ID_PKGSTATE_REMOVE):
1641 (ID_PKGSTATE_REINSTALL, ID_PKGSTATE_DOWNGRADE, ID_PKGSTATE_BROKEN):
1642 (ID_PKGSTATE_PURGE): New icon resource identifiers; define them.
1643 (AppWindowMaker::InitPackageListView): New private method; declare it.
1644 (AppWindowMaker::UpdatePackageList): New private method; declare it.
1645 (AppWindowMaker::ClearPackageList): New private method; declare and
1646 implement it inline.
1648 * src/guidata.rc (ID_PKGSTATE_AVAILABLE, ID_PKGSTATE_AVAILABLE_NEW):
1649 (ID_PKGSTATE_AVAILABLE_LOCKED, ID_PKGSTATE_AVAILABLE_INSTALL):
1650 (ID_PKGSTATE_INSTALLED_CURRENT, ID_PKGSTATE_INSTALLED_LOCKED):
1651 (ID_PKGSTATE_INSTALLED_OLD, ID_PKGSTATE_UPGRADE, ID_PKGSTATE_REMOVE):
1652 (ID_PKGSTATE_REINSTALL, ID_PKGSTATE_DOWNGRADE, ID_PKGSTATE_BROKEN):
1653 (ID_PKGSTATE_PURGE): New icon resources; implement them.
1655 * icons/state01.ico icons/state02.ico icons/state03.ico:
1656 * icons/state04.ico icons/state05.ico icons/state06.ico:
1657 * icons/state07.ico icons/state08.ico icons/state09.ico:
1658 * icons/state10.ico icons/state11.ico icons/state12.ico:
1659 * icons/state13.ico: New files. All are cloned from synaptic icons;
1660 see src/guimain.rc for symbolic/functional reference names.
1662 * src/pkglist.h [GUIMAIN_H defined] (pkgListViewMaker): New class;
1663 declare it for use in modules which #include guimain.h
1665 * src/pkglist.cpp: New file; it implements...
1666 (pkgListViewMaker): ...this new class, and its clients...
1667 (AppWindowMaker::InitPackageListView): New method.
1668 (AppWindowMaker::UpdatePackageList): Likewise.
1670 * Makefile.in (GUIMAIN_OBJECTS): Add pkglist.OBJEXT
1672 * src/guixmld.cpp (AppWindowMaker::Invoke): Call InitCommonControls(),
1673 as prerequisite to AppWindowMaker::InitPackageListView(); follow up by
1674 calling AppWindowMaker::AdjustLayout().
1676 2012-10-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1678 Add GUI initialiser hook for XML catalogue interface.
1680 * src/guimain.h (AppWindowMaker::Invoke): New public method; declare
1681 it; it overrides the generic WTK::MainWindowMaker::Invoke() method, so
1682 providing the initialiser hook which will invoke this...
1683 (AppWindowMaker::LoadPackageData): ...new private method; declare it.
1685 * src/guixmld.cpp: New file.
1686 (AppWindowMaker::Invoke): Implement it.
1687 (AppWindowMaker::LoadPackageData): Likewise.
1689 * Makefile.in (GUIMAIN_OBJECTS): Add guixmld.OBJEXT
1691 2012-09-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1693 Add initial working GUI mode DMH class implementation.
1695 * src/dmh.h (DMH_SEVERITY_MASK): New manifest constant; define it.
1696 (DMH_DIGEST_MASK, DMH_COMPILE_DIGEST, DMH_DISPATCH_DIGEST): Likewise.
1697 (DMH_BEGIN_DIGEST, DMH_END_DIGEST): Redefine in terms of above.
1699 * src/dmhcore.h: New header file; it declares...
1700 (dmhTypeGeneric): ...this abstract base class, factored from...
1702 * src/dmh.cpp (dmhTypeGeneric): ...here, whence remove it; it is
1703 still required, thus include dmhcore.h so that it remains visible.
1704 (dmh_exception): Remove errant namespace qualifier from constructor.
1705 (dmhTypeGUI): Delete class declaration and original constructor.
1706 (dmh_init): Delete reference to dmhTypeGUI; replace by call to...
1707 (dmh_init_gui): ...this new static function; it is a stub which
1708 invokes a DLL import of the same name, to instantiate a dmhTypeGUI.
1709 (dmhTypeGUI::control, dmhTypeGUI::notify, dmhTypeGUI::printf): Delete
1710 original method stubs.
1712 * src/guidmh.cpp: New file; it reimplements...
1713 (dmhTypeGUI): ...this class; declare it and implement its constructor.
1714 (dmh_init_gui): Provide its DLL exported implementation.
1715 (dmhTypeGUI::dispatch_message): New private method; add it to the
1716 class declaration and implement it; it is a helper method for...
1717 (dmhTypeGUI::control, dmhTypeGUI::notify): ...these; implement them.
1718 (dmhTypeGUI::printf): Provide a replacement stub.
1720 * Makefile.in (GUIMAIN_OBJECTS): Add guidmh.OBJEXT
1722 * src/guimain.h (AppWindowMaker::Create): New method; add it to the
1723 class declaration; it overrides the default Create() method inherited
1724 from WTK::MainWindowMaker
1726 * src/pkgview.cpp (AppWindowMaker::Create): Implement it; it handles
1727 window class registration and dmhTypeGUI initialisation, in addition
1728 to the inherited CreateWindow() behaviour.
1730 * src/guimain.cpp: Include dmh.h
1731 (WinMain): Add catch block for dmh_exception. Remove window class
1732 registration request; it is now delegated to AppWindowMaker::Create()
1734 2012-09-26 Keith Marshall <keithmarshall@users.sourceforge.net>
1736 Add .hgignore as tracked file.
1738 * .hgignore: New file.
1740 2012-09-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1742 Defer generation of version.c until "make" time.
1744 * version.c.in: Move it...
1745 * src/version.c.in: ...to here.
1746 (PACKAGE_NAME, PACKAGE_VERSION, COPYRIGHT_HOLDER, YEARS_OF_ISSUE):
1747 Change substitution field marker character from "@" to "%".
1749 * configure.ac (AC_CONFIG_FILES): Remove version.c
1751 * Makefile.in (TAG_SCRIPT): New macro, factored out from...
1752 (RC_SCRIPT): ...here, whence use it; also use it to implement...
1753 (VERSION_SCRIPT): ...this further new macro; use it in...
1754 (%.c): ...this generic template rule for version.c
1755 (time-stamp, %.time, %.tagged.time, %.tag): New generic build
1756 goals; use them to track package release progression via...
1757 (build.tag): ...this new intermediate; make it a pre-requisite...
1758 (guidata.OBJEXT, version.c): ...of these.
1760 2012-09-21 Keith Marshall <keithmarshall@users.sourceforge.net>
1762 Implement framework for GUI sash window layout controller.
1764 * configure.ac (AC_INIT): Bump version number to 0.6
1765 (CLI_RELEASE_CLASS): New AC_SUBST variable; default to "beta".
1766 (GUI_RELEASE_CLASS): New AC_SUBST variable; default to "alpha".
1767 (SNAPSHOT_CLASS): Recognise as user specified environent variable
1768 override for both CLI_RELEASE_CLASS and GUI_RELEASE_CLASS.
1769 (RC): New AC_CHECK_TOOL substitution variable name; it replaces...
1770 (WINDRES): ...this, as reference name for the resource compiler.
1771 (MINGW_AC_ASSERT_MISSING): Add AC_CHECK_HEADER traps for missing
1772 "lua-dev" and "wtklite-dev" support.
1774 * Makefile.in (CLI_RELEASE_CLASS, GUI_RELEASE_CLASS): Use them.
1775 (BUILD_TAG, RC_SCRIPT, RC_INCLUDES): New macros; define and use...
1776 (RC): ...with this, to implement new target rule for compiling...
1777 (%.rc): ...resource definition files to %.OBJEXT objects.
1778 (GUIMAIN_OBJECTS, GUIMAIN_LIBS): New macros; define and use...
1779 (guimain.EXEEXT): ...to implement build rule for this.
1780 (LIBEXEC_PROGRAMS): Add guimain.EXEEXT
1781 (lastrites.EXEEXT): Use GUI_LDFLAGS.
1783 * src/guimain.h src/guimain.cpp src/guidata.rc: New files.
1784 * src/pkgview.cpp: New file.
1786 2012-09-20 Keith Marshall <keithmarshall@users.sourceforge.net>
1788 Adjust incorrectly resolved 2012-09-14 merge from master.
1790 * src/Makefile.in: Restore lost reference to guistub.cpp
1792 2012-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1794 Implement GUI hooks in "rites of passage" internal API.
1796 * src/pkglock.h: New file; it adds the pkgLock() and pkgRelease()
1797 inline wrapper functions, through which the GUI application acquires
1798 and manages an exclusive access lock for the XML catalogue.
1800 * src/rites.c (lockfile_name): Explicitly cast memory allocated for
1801 the returned name to (char *), so this may be embedded in C++ code.
1802 (pkgInitRites): Factor out lock acquisition failure diagnostics...
1803 (pkgLockFail): ...to this inline helper function; conditionally...
1804 [ifdef GUIMAIN_H]: ...provide one implementation for GUI use...
1805 [ifndef GUIMAIN_H]: ...and an alternative for CLI use.
1807 2012-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1809 Be case agnostic when matching shortcut targets.
1811 * scripts/libexec/unlink.js [ref.TargetPath == chklink]: Apply
1812 toLowerCase() on both sides of the comparison.
1814 2012-09-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1816 Note relocation of m4 when packaging source distribution.
1818 * Makefile.in (SRCDIST_SUBDIRS): Refer to build-aux/m4, not m4.
1820 2012-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1822 Move guimain.cpp out of the way.
1824 * src/guimain.cpp: Rename file as...
1825 * src/guistub.cpp: ...this; we want to keep current features for now,
1826 but to use the guimain.cpp name for main GUI application development.
1827 * Makefile.in: Adjust references accordingly.
1829 2012-09-09 Keith Marshall <keithmarshall@users.sourceforge.net>
1831 Fix typo, and update licensing terms for embedded getopt.c
1833 * src/getopt.c: Incorporate MIT/X style licence; update copyright
1834 notice, to reflect chronology of publication; correct degenerate RCS
1835 keyword usage in EOF marker comment.
1837 2012-09-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1839 Correct omission from copyright notice.
1841 * src/pkgkeys.c: Add year 2012, to reflect 2012-09-02 update.
1843 2012-09-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1845 Redefine paragraph_key with project global scope.
1847 * src/pkgkeys.h (paragraph_key): Declare it.
1848 * src/pkgkeys.c (paragraph_key): Define it.
1850 * src/pkgshow.cpp (pkgDirectoryViewer::EmitDescription): Delete
1851 function local definition; use global definition instead.
1853 2012-09-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1855 Correct defect introduced by 2012-08-03 commit.
1857 * src/approot.c (AppPathNameW): Add omitted 'else', so that tail
1858 pointer isn't moved after the APPROOT prefix is truncated.
1860 2012-09-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1862 Remap Mercurial subrepository reference via local hg-git clone.
1864 * .hgsub (build-aux): Point to ../build-aux; this must be a locally
1865 hosted hg clone of the git origin repository, and it must pre-exist as
1866 a sibling of any created hg clone of the mingw-get repository.
1868 * .hgsubstate: New file, automatically generated by Mercurial.
1870 2012-08-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1872 Add Mercurial subrepository reference for build-aux.
1876 2012-08-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1878 More code refactoring, to facilitate GUI implementation.
1880 * src/clistub.c (AppPathNameW): Factor out; relocate to...
1881 * src/approot.c: ...this new file; it reproduces the original
1882 implementation, modified to also consider any "libexec" directory in
1883 the executable path as the first child of the APPROOT prefix. Note
1884 also, that no longer terminates APPROOT with a trailing backslash.
1886 * src/approot.h: New file; it trivially declares the prototype for...
1887 (AppPathNameW): ...this relocated extern "C" function.
1889 * src/clistub.c (main): Adapt usage of AppPathNameW(), to reinstate
1890 trailing backslash on assignment to APPROOT environment variable.
1892 * Makefile.in (CLI_EXE_OBJECTS): New macro; define it as the original
1893 set of prerequisites, with the addition of approot.OBJEXT, for...
1894 (mingw-get.EXEEXT): ...this; use it.
1896 * src/rites.c: Add comment regarding APPROOT usage.
1898 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
1900 Find missing.m4 in build-aux/m4 directory.
1902 * aclocal.m4: Change path m4/missing.m4 to build-aux/m4/missing.m4.
1904 2012-07-31 Earnie Boyd <earnie@users.sourceforge.net>
1906 Add build-aux as a submodule.
1907 Move .cvsignore to .gitignore.
1909 * .gitmodules: New file.
1910 * build-aux: New submodule directory.
1911 * .cvsignore: Remove.
1912 * .gitignore: New file.
1914 2012-07-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1916 Disable globbing of command line arguments.
1918 * src/clistub.c (_CRT_glob): Define and initialise to zero; we don't
1919 need globbing, and it may cause case transliteration of case-sensitive
1920 action keywords, when a file system entity with a case-insensitively
1921 matching name exists.
1923 2012-06-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1925 Refactor API to facilitate implementation of GUI ListView hooks.
1927 * src/pkgkeys.h (title_key, description_key): Declare them.
1928 * src/pkgkeys.c (title_key, description_key): Define them; relocate...
1929 * src/pkgshow.cpp (pkgDirectoryViewer::EmitDescription): ...from here.
1930 (pkgXmlDocument::CalalogueAllPackages): New public method; factor...
1931 (pkgXmlDocument::DisplayPackageInfo): ...from here, whence use it.
1932 (pkgDirectoryViewerEngine::EnumerateComponents): New private method;
1933 implement as a concrete method of this abstract base class; factor...
1934 (pkgDirectoryViewer::Dispatch): ...from original inline implementation
1935 within this method of the concrete derived class, whence use it.
1936 (pkgDirectoryViewerEngine, pkgDirectory): Factor class declarations...
1937 * src/pkglist.h: ...into this new header file; include it.
1939 * src/pkgbase.h (pkgDirectory): Add forward class declaration.
1940 (pkgXmlDocument::CatalogueAllPackages): Declare it.
1942 2012-05-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1944 Update help text to document package version selection capability.
1946 * src/clistub.c (help_text): Add description of command line syntax
1947 which may be used to specify an alternative to the default package
1948 version selection, for install and upgrade actions.
1950 2012-05-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1952 Support options set by preferences assigned within profile.xml
1954 * xml/profile.xml (preferences): New element; add defaults.
1956 * src/pkgopts.h (OPTION_ASSIGNED_FLAGS, OPTION_DESKTOP_ARGS):
1957 (OPTION_START_MENU_ARGS): New enumerated constants; define them.
1958 (OPTION_DESKTOP, OPTION_START_MENU): New manifest constants.
1959 (OPTION_ASSIGNED, mark_option_as_set): New macros; define them.
1960 (pkgOpts::GetValue, pkgOpts::GetString): Restrict look-up index to
1961 least significant 12-bits of full-range index value.
1962 (pkgOpts::IsSet): New inline method; implement it.
1964 * src/clistub.c (main): Reimplement --desktop and --start-menu
1965 options; each now becomes an OPTION_GENERIC optarg string store.
1966 (set_script_hook): Function no longer used; delete it; delegate to...
1967 * src/pkgbase.h (pkgXmlDocument::EstablishPreferences): ...this new
1968 method; declare it, providing its implementation in...
1969 * src/pkgopts.cpp: ...this new file; invoke it...
1970 * src/climain.cpp (climain): ...here.
1972 * Makefile.in (CORE_DLL_OBJECTS): Add pkgopts.$OBJEXT
1974 2012-04-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1976 Correct sequence of installation/removal progress reporting.
1978 * src/pkgunst.cpp (pkgRemove): Delay output of "removing package ..."
1979 message, until after pre-remove hooks have run; this ensures that any
1980 output from the pre-remove hook scripts appears in correct sequence.
1982 * src/pkginst.cpp (pkgInstall): Likewise, for "installing package ..."
1983 message, in relation to pre-install hooks.
1985 2012-04-26 Keith Marshall <keithmarshall@users.sourceforge.net>
1987 mingw-get-0.5-beta-20120426-1 released.
1989 * configure.ac (AC_INIT): Version number updated.
1990 * srcdist-doc/NEWS.in: Updated; bug-fix notifications added.
1991 * All files (r0-5-beta-20120426-1): Tag assigned.
1993 2012-04-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1995 Interim work-around for MinGW-Bug #3520864.
1997 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
1998 [DEBUG_TRACE_DEPENDENCIES]: Add request flags to messages reporting
1999 the scheduling of installation activities.
2001 * src/pkgexec.cpp (pkgXmlDocument::Schedule): Add temporary diagnostic
2002 hooks to confirm request flags; bracket them with #if 0 ... #endif.
2003 [ACTION_PRIMARY && pre-scheduled request]: Don't trash request flags
2004 when updating the pre-existing action item data.
2006 2012-04-23 Keith Marshall <keithmarshall@users.sourceforge.net>
2008 Fix MinGW-Bug #3520488
2010 * src/pkgexec.cpp (action_code): Check for, and reject NULL pointer
2011 passed as action request string; also reject ambiguous abbreviations.
2013 * src/climain.cpp (climain): Discriminate between NULL pointer and
2014 other forms of invalid action keyword matching failures.
2016 2012-04-16 Keith Marshall <keithmarshall@users.sourceforge.net>
2018 mingw-get-0.5-beta-20120416-1 released.
2020 * configure.ac (AC_INIT): Version number updated.
2021 (YEARS_OF_ISSUE): 2012 added.
2023 * srcdist-doc/NEWS.in: Updated; release notes added.
2024 * All files (r0-5-beta-20120416-1): Tag assigned.
2026 2012-04-16 Keith Marshall <keithmarshall@users.sourceforge.net>
2028 Assign icon to temporary GUI executable file.
2030 * icons/pkgicon.ico: New file, shamelessly copied from synaptic.
2032 * configure.ac: Add identification for windres; propagate it to...
2033 * Makefile.in: ...here; use it to compile object from icon files...
2034 (srcdir/icons) [%.ico]: ...from this new vpath location.
2035 (gui.exe): Link to compiled icon's object file.
2036 (SRCDIST_SUBDIRS): Add icons directory.
2038 2012-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2040 Ensure that package removal requests are correctly scheduled.
2042 * src/pkgdeps.cpp (pkgXmlDocument::Schedule) [ACTION_REMOVE]: Schedule
2043 as a distinct case, when the installed version is not the most recent
2044 available release; consideration of this distinct case was previously
2045 erroneously overlooked.
2047 2012-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2049 Correct scheduling of new prerequisites when upgrading.
2051 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
2052 [ACTION_UPGRADE && ACTION_PRIMARY]: Don't exclude scheduling for this
2053 case of a prerequisite with no previously installed version; it may be
2054 a delegated primary requirement of a meta-package.
2056 2012-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2058 Don't require subsystem within user specified version bounds.
2060 * src/pkgdeps.cpp (pkgActionItem::ApplyBounds): Automatically consider
2061 "*" wild-card matches for subsystem, if user doesn't specify it.
2063 2012-04-09 Charles Wilson <mingw@cwilson.fastmail.fm>
2065 Fix missing include.
2067 * src/pkgdeps.cpp (pkgopts.h): Include unconditionally; do not rely...
2068 (debug.h) [DEBUG_TRACE_DYNAMIC]: ...on this, for indirect inclusion.
2070 2012-04-07 Keith Marshall <keithmarshall@users.sourceforge.net>
2072 Correct a srcdist package construction defect.
2074 * Makefile.in (srcdist) [for SRCDIST_SUBDIRS]: Use...
2075 (mkinstalldirs): ...this, to create package image directories.
2077 2012-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
2079 Add scripting hooks to support creation of MS-Windows shortcuts.
2081 * src/clistub.c (progname): New static variable with file scope; it
2082 replaces former automatic variable, of same name, in main() function.
2083 (set_script_hook): New static function; implement it, and call it...
2084 (main) [--desktop, --start-menu]: ...from here, to interpret these new
2085 command line options; they are propagated to scripts via...
2086 (MINGW_GET_DESKTOP_HOOK, MINGW_GET_START_MENU_HOOK): ...these new
2087 internally assigned environment variables.
2088 (help_text): Document --desktop and --start-menu.
2090 * scripts/libexec/setup.lua scripts/libexec/wsh.lua: New lua module
2091 files; they implement a lua scripting API; they delegate requests to
2092 the Windows Scripting Host, via either of this pair of...
2093 * scripts/libexec/shlink.js: ...new script to create shortcuts, or...
2094 * scripts/libexec/unlink.js: ...its complement, to remove them.
2095 * Makefile.in (SRCDIST_SUBDIRS): Integrate them; enumerate them in...
2096 (scripts_srcdir, LIBEXEC_SCRIPTS): ...these new macros; use to...
2097 (install): ...install them.
2099 2012-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
2101 Initialise $LUA_PATH to locate mingw-get specific scripts.
2103 * src/pkgexec.cpp (lua_path_init): New static inline function.
2104 (pkgXmlNode::DispatchScript): Call it on first time invocation, per...
2105 [lua_path_setup == false]: ...this static function local variable.
2107 2012-04-01 Keith Marshall <keithmarshall@users.sourceforge.net>
2109 Support installation of releases other than latest available.
2111 * src/pkgbase.h (pkgActionItem::ApplyBounds): New method; declare it.
2113 * src/pkgdeps.cpp (pkgActionItem::ApplyBounds): Implement it.
2114 (pkgXmlDocument::Schedule): Use it to interpret user specified version
2115 bounds, and apply them to scheduled action items. Having used...
2116 (get_version_bounds): ...this new static inline function...
2117 ...to acquire any user specified version bounds, check that they can
2118 be honoured, before scheduling any action; delegate diagnostics to...
2119 (dmh_notify_no_match): ...this new local helper function, to report
2120 when they can't, and to indicate viable alternatives.
2122 2012-03-26 Keith Marshall <keithmarshall@users.sourceforge.net>
2124 Rework previously inadequate solution for MinGW-Bug #3424406
2126 * src/pkgtask.h: Update copyright notice for current year.
2127 (ACTION_MAY_SELECT): New manifest constant for use as flag; define it.
2128 * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit): Assign it.
2130 * src/pkgdeps.cpp (STATIC_INLINE): New macro; define it.
2131 (ACTION_RECURSIVE_REINSTALL, ACTION_RECURSIVE_UPGRADE):
2132 (ACTION_RECURSIVE_REPLACE): New action code constants; define them.
2133 (with_flags): Original macro deleted; replace it with...
2134 (with_request_flags): ...this new static inline function.
2135 (if_noref, if_match, if_alias, with_download, promote): New static
2136 inline functions; they replace original macros of the same names.
2137 (is_recursive_action): Function no longer used; delete it.
2138 (action_class): New static inline function; implement and use it...
2139 (pkgXmlDocument::ResolveDependencies): ...here, to identify scheduling
2140 requirements for packages which are already installed; depends on...
2141 (request_mode): ...this new automatic variable; it augments and...
2142 (recursive_mode): ...replaces this one; rename it accordingly.
2143 (viable): Automatic variable no longer used; delete it.
2144 [DEBUG_REQUEST & DEBUG_TRACE_DEPENDENCIES]: Emit notification for
2145 scheduled installation.
2146 (pkgXmlDocument::Schedule): Add an implied...
2147 (ACTION_REMOVE): ...when scheduling a reinstallation.
2149 2012-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
2151 Address reinstallation issues per MinGW-Bugs #3416013 and #3424406
2153 * src/pkgexec.cpp (reinstall_action_scheduled): New inline function.
2154 (pkgActionItem::Execute): Use it to identify cases where...
2155 [--reinstall]: ...implicit package removal is required, and also to
2156 facilitate improved progress reporting in such cases.
2158 * src/pkgdeps.cpp (is_recursive_action): New inline function.
2159 (pkgXmlDocument::ResolveDependencies): Use it in tandem with...
2160 (recursive_mode): ...this new automatic variable, so as to handle...
2161 [meta-package dependency]: ...implicit recursion, to extend the scope
2162 of the current action to the first level of non-meta dependency.
2163 [install --reinstall]: ...reinstall original version of nominated
2164 package, ignoring any available upgrade; extend scope of operation...
2165 [install --reinstall --recursive]: ...to all prerequisite packages.
2166 [upgrade --reinstall]: ...upgrade nominated package if possible; if no
2167 upgrade available, reinstall current version; extend scope...
2168 [upgrade --reinstall --recursive]: ...to all prerequisites.
2169 (pkgXmlDocument::Schedule): Partially revert 2012-03-05 change;
2170 reimplement selectively; never promote...
2171 [install, install --reinstall]: ...these operations to become...
2172 [upgrade]: ...this, even if available; issue diagnostic instead.
2174 2012-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2176 Rationalise implementation and usage of --all-related option.
2178 * src/pkgopts.h: Update copyright notice; add year 2012.
2179 (OPTION_RECURSIVE, OPTION_ALL_RELATED): New constants; define them.
2180 (pkgOpts::SetFlags): New method; declare and implement it inline.
2182 * src/clistub.c: Update copyright notice; add year 2012.
2183 (options) [recursive, all-related]: Redefine in terms of...
2184 (OPTION_RECURSIVE, OPTION_ALL_RELATED): ...these.
2185 (help_text): Update appropriately.
2187 * src/climain.cpp: Update copyright notice; add year 2012.
2188 (climain) [all-related]: Associate its use exclusively with...
2189 (source, licence): ...these package processing operations; use...
2190 (pkgOptions::SetFlags): ...this, to propagate its effect.
2192 2012-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2194 Don't report failed downloads in respect of virtual packages.
2196 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): Clear...
2197 [ACTION_DOWNLOAD]: ...this status flag for any package identified as
2198 a meta-package; this corrects a further regression introduced with the
2199 2011-11-09 update, whereby pending download requests for such virtual
2200 packages were not cancelled, resulting in failure to install due to
2201 failed downloads, when no download is actually required.
2203 2012-03-05 Keith Marshall <keithmarshall@users.sourceforge.net>
2205 Don't suppress implied downloads for top-level actions.
2207 * src/pkgdeps.cpp: Update copyright notice for new year.
2208 (pkgXmlDocument::Schedule) [!OPTION_PRINT_URIS]: Ensure that...
2209 [ACTION_DOWNLOAD]: ...this is enabled, when scheduling an install or
2210 an upgrade action for a package specified as a command line argument;
2211 this corrects a regression introduced on 2011-11-09, which resulted in
2212 ACTION_DOWNLOAD being enabled only for second tier dependent actions.
2214 2012-02-20 Keith Marshall <keithmarshall@users.sourceforge.net>
2216 Copyright notice updates.
2218 * Makefile.in: Add 2012 as year of republication.
2219 * src/pkgbase.h src/sysroot.cpp src/pkgexec.cpp: Likewise.
2220 * src/rites.c src/pkginst.cpp src/pkgunst.cpp: Likewise.
2222 2012-02-20 Keith Marshall <keithmarshall@users.sourceforge.net>
2224 Fix ill-advised optimisation in $APPROOT environment lookup.
2226 * src/rites.c (approot_path): Don't save result of getenv() lookup
2227 across calls; the environment may have been moved in the interim,
2228 making the original result invalid on any subsequent call. Also,
2229 prefer MS-Windows style (with backslashes) for default.
2230 (pkgLastRites): Report full path name for lastrites.exe, on execl()
2231 failure, rather than only the path relative to $APPROOT.
2233 2012-02-20 Keith Marshall <keithmarshall@users.sourceforge.net>
2235 Propagate sysroot path settings to scripts via the environment.
2237 * src/pkgbase.h (PKG_PUTENV_FLAGS_MASK): New constant; it maps...
2238 (PKG_PUTENV_DIRSEP_MSW, PKG_PUTENV_DIRSEP_POSIX): ...these flags...
2239 (PKG_PUTENV_SCAN_VARNAME, PKG_PUTENV_NAME_TOUPPER): ...and these;
2240 they are used to specify optional behavioural choices for...
2241 (pkgPutEnv): ...this new function; declare it.
2243 * src/sysroot.cpp (pkgPutEnv): Implement it.
2244 (pkgXmlDocument::LoadSystemMap): Use it to add $SUBSYSTEM_SYSROOT path
2245 specifications to the environment, for each named subsystem associated
2246 with the active system map.
2248 * src/pkgexec.cpp (pkgActionItem::Execute): Invoke pkgPutEnv() prior
2249 to processing of each package install, upgrade, or remove action, so
2250 as to update environment variable $SYSROOT to represent the sysroot
2251 path for each package processed, during execution of script hooks.
2253 2012-02-17 Keith Marshall <keithmarshall@users.sourceforge.net>
2255 Implement hooks to support lua scripting interface.
2257 * Makefile.in (LIBS): Add -llua.
2259 * src/pkgbase.h (pkgXmlNode::InvokeScript): New method; declare it
2260 as private, and provide overloaded public inline API implementation.
2261 (pkgXmlNode::DispatchScript): New private method; declare it.
2263 * src/pkgexec.cpp (pkgXmlNode::InvokeScript): Implement it.
2264 (pkgXmlNode::DispatchScript): Likewise; it directs InvokeScript to...
2265 (pkgInvokeScript): ...this new static function; implement it.
2267 * src/pkginst.cpp (pkgInstall): Call InvokeScript as appropriate.
2268 * src/pkgunst.cpp (pkgRemove): Likewise.
2270 2011-11-24 Keith Marshall <keithmarshall@users.sourceforge.net>
2272 Avoid implicit cast warnings; reported by Robert Hartmann.
2274 * src/dmh.h (DMH_BEGIN_DIGEST): Explicitly cast to uint16_t.
2275 (DMH_END_DIGEST): Likewise.
2277 2011-11-09 Keith Marshall <keithmarshall@users.sourceforge.net>
2279 Avoid unnecessary downloads for already installed packages.
2281 * src/pkginet.cpp (pkgActionItem::DownloadSingleArchive): Require
2282 external scheduling of ACTION_DOWNLOAD; cancel the scheduled request
2283 on completion, or when not required due to pre-existing local copy.
2285 * src/climain.cpp (pkgActionItem::GetSourceArchive): Must always be
2286 prepared to download the associated archive; enable ACTION_DOWNLOAD.
2288 * src/pkgexec.cpp (pkgActionItem::Schedule) [OPTION_REINSTALL]:
2289 May need to download the archive, even when the requested package was
2290 previously installed; schedule ACTION_DOWNLOAD to enable this.
2292 * src/pkgdeps.cpp (promote): Macro redefined in terms of...
2293 (with_flags, with_download): ...these new macros; implement and...
2294 (pkgXmlDocument::ResolveDependencies): ...use them to enable/schedule
2295 ACTION_DOWNLOAD only when expected that it may be necessary.
2297 2011-11-06 Keith Marshall <keithmarshall@users.sourceforge.net>
2299 Fix packaging anomalies for source and licence distributions.
2301 * Makefile.in (licdist): Link README from ${CURDIR}, not from '..'.
2302 (srcdist): Explicitly link pkginfo.c from ${CURDIR} to src/pkginfo,
2303 rather than as implied prerequisite; this avoids a bogus attempt to
2304 link srcdist-doc into src/pkginfo.
2306 2011-11-06 Keith Marshall <keithmarshall@users.sourceforge.net>
2308 Bump version number for subsequent CVS snapshots.
2310 * configure.ac (AC_INIT): Set version to 0.4-alpha-1.1cvs
2312 2011-11-06 Keith Marshall <keithmarshall@users.sourceforge.net>
2314 mingw-get-0.4-mingw32-alpha-1 released.
2316 * configure.ac (AC_INIT): Adjust version number.
2317 * srcdist-doc/NEWS.in: Updated; document new features and bugs fixed.
2318 * All files (r0-4-alpha-1): Tag assigned.
2320 2011-11-04 Keith Marshall <keithmarshall@users.sourceforge.net>
2322 Don't upgrade installed DLL components to incompatible version.
2323 Provide clearer diagnostics for failed requests on implied packages.
2325 * src/pkgdeps.cpp (is_abi_compatible): New static inline function.
2326 (pkgXmlDocument::ResolveDependencies) [is_installed]: Use it.
2327 (pkgXmlDocument::ResolveDependencies) [DEBUG_TRACE_DEPENDENCIES]:
2328 Clean up and improve diagnostic message content and formatting.
2329 (pkgXmlDocument::Schedule) [(upgrade || remove) && ! installed]:
2330 Downgrade diagnostic to WARNING, for implicitly specified component
2331 packages; provide additional explanatory diagnostics.
2333 * src/pkgspec.cpp (pkgSpecs::VersionComparator):
2334 * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit):
2335 [DEBUG_TRACE_DEPENDENCIES]: Eliminate diagnostic noise.
2337 2011-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2339 Fix --download-only vs. --reinstall conflict.
2341 * src/pkgexec.cpp (pkgActionItem::Execute) [OPTION_DOWNLOAD_ONLY]:
2342 Test for explicit inequality, rather than equality to zero; since the
2343 2011-08-30 update, which made --download-only also imply --reinstall,
2344 it will test as non-zero when --reinstall is specified, even though
2345 --download-only is not.
2347 2011-10-07 Keith Marshall <keithmarshall@users.sourceforge.net>
2349 Add support for non-specific upgrade of all installed packages.
2351 * src/pkgbase.h (pkgXmlDocument::RescheduleInstalledPackages):
2352 New public method; declare it.
2354 * src/pkgdeps.cpp (pkgXmlDocument::RescheduleInstalledPackages):
2357 * src/climain.cpp (climain) [ACTION_UPGRADE && argc < 2]: Invoke
2358 pkgXmlDocument::RescheduleInstalledPackages() to schedule the upgrade
2359 request for all packages currently registered as installed.
2361 2011-10-06 Keith Marshall <keithmarshall@users.sourceforge.net>
2363 Implement "source" and "licence" operations.
2365 * src/pkgopts.h (OPTION_ALL_DEPS): New option code; define it.
2366 * src/clistub.c (main): Associate it with...
2367 (all-related, recursive): ...these synonymous option names...
2368 (options): ...defined within this local structured array.
2369 (help_text): Document them; also document "source" and "licence" as
2370 new operations which may be specified on the command line.
2372 * src/pkgtask.h (action_source, action_licence): Enumerate them.
2373 (ACTION_SOURCE, ACTION_LICENCE): Define their manifest values, and...
2374 * src/pkgexec.cpp (action_name): ...associate with operation names.
2376 * src/pkgbase.h (pkgActionItem::GetScheduledSourceArchives):
2377 (pkgActionItem::GetSourceArchive, pkgXmlDocument::GetSourceArchive):
2378 New public methods; declare them for external implementation.
2379 (pkgXmlDocument::GetScheduledSourceArchives): New public method;
2380 implement it as inline.
2382 * src/climain.cpp (pkgProcessedArchives): New pointer to stack of...
2383 (pkgArchiveNameList): ...this new locally defined class; implement it.
2384 (pkgActionItem::GetSourceArchive, pkgXmlDocument::GetSourceArchive):
2385 (pkgActionItem::GetScheduledSourceArchives): Implement them.
2386 (climain): Add invocation hooks.
2388 2011-10-04 Keith Marshall <keithmarshall@users.sourceforge.net>
2390 Establish mapping from release tarname to source tarname.
2392 * src/pkgreqs.cpp (inherited_requirement): New inline function.
2393 (requirement): Use it; adapt to propagate release archive format and
2394 compression type fields, in addition to version fields, when resolving
2395 "%" wildcard matches within the template for the resultant tarname.
2396 (pkgAssociateName): New public function; implement it for use by...
2397 * src/pkgname.cpp (pkgResolvedName): ...this new inline function.
2398 (pkgXmlNode::SourceArchiveName): Use it; adapt to accept a category
2399 selector, so it may resolve source or licence tarnames on demand.
2401 * src/pkgbase.h (pkgXmlNode::SourceArchiveName): Modify declaration;
2402 add category selector argument to support source/licence choice.
2404 2011-10-02 Keith Marshall <keithmarshall@users.sourceforge.net>
2406 Facilitate downloads using diverse cache directories.
2408 * src/pkgbase.h (pkgActionItem::DownloadSingleArchive): New private
2409 method; declare it; it handles the download for a single named archive
2410 file, and stores it in a specifed cache directory.
2412 * src/pkginet.cpp (pkgActionItem::DownloadSingleArchive): Implement
2413 it; factor its code from the original implementation within...
2414 (pkgActionItem::DownloadArchiveFiles): ...this; adapt to use it.
2416 2011-10-02 Keith Marshall <keithmarshall@users.sourceforge.net>
2418 Establish cache directory for source archive downloads.
2420 * src/mkpath.h (pkgSourceArchivePath): New function; declare it.
2421 * src/mkpath.c (pkgSourceArchivePath): Implement it.
2423 2011-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2425 Support archive extraction to arbitrary destination without install.
2427 * src/pkgproc.h (pkgArchiveProcessor::ExtractFile): New virtual
2428 helper method for use, as core helper, by derived classes; declare it.
2429 (pkgArchiveProcessor::CreateExtractionDirectory): Likewise.
2430 (pkgTarArchiveProcessor): Declare overloaded default constructor.
2431 (pkgTarArchiveExtractor): New class definition; it is derived from
2432 pkgTarArchiveProcessor.
2434 * src/tarproc.cpp (pkgArchiveProcessor::ExtractFile): Implement it.
2435 (pkgArchiveProcessor::CreateExtractionDirectory): Likewise.
2436 (pkgTarArchiveExtractor): Implement constructor, together with...
2437 (pkgTarArchiveExtractor::ProcessDirectory): ...this method, and also...
2438 (pkgTarArchiveExtractor::ProcessDataStream): ...this one; these are
2439 declared as abstract, in the pkgTarArchiveProcessor base class.
2440 (pkgTarArchiveInstaller::ProcessDirectory): Simplify; it now delegates
2441 directory creation to pkgArchiveProcessor::CreateExtractionDirectory.
2442 (pkgTarArchiveInstaller::ProcessDataStream): Simplify; delegate file
2443 handling to pkgArchiveProcessor::ExtractFile, as appropriate.
2445 2011-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2447 Make --download-only and --print-uris imply --reinstall.
2449 * src/pkgopts.h (OPTION_PRINT_URIS): Adjust definition.
2450 (OPTION_DNLOAD_ONLY, OPTION_DOWNLOAD_ONLY): Likewise.
2452 2011-08-07 Keith Marshall <keithmarshall@users.sourceforge.net>
2454 Implement --download-only and --print-uris options.
2456 * src/pkgopts.h (OPTION_DOWNLOAD_ONLY, OPTION_PRINT_URIS):
2457 New manifest constants, identifying flag bits; define them.
2458 (OPTION_DNLOAD_ONLY): Likewise; an alias for OPTION_DOWNLOAD_ONLY.
2460 * src/pkgbase.h (pkgActionItem::PrintURI): New private method.
2461 * src/pkginet.cpp: Implement it.
2463 * src/clistub.c (options): Add "download-only" and "print-uris".
2464 (help_text): Document them.
2465 * src/pkgexec.cpp (pkgActionItem::Execute): Process them.
2467 2011-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2469 mingw-get-0.3-mingw32-alpha-2.1 released.
2471 * configure.ac (AC_INIT): Adjust version number.
2472 * srcdist-doc/NEWS.in: Updated; document bugs fixed.
2473 * All files (r0-3-alpha-2-1): Tag assigned.
2475 2011-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2477 Adopt tar.xz as default package archive format.
2479 * Makefile.in (TARZIP, TAREXT): New macros; define them.
2480 (bindist, licdist, srcdist): Use them in place of hardcoded tar.gz
2481 (maintainer-clean): Expunge tar files of any compression format.
2483 2011-07-27 Keith Marshall <keithmarshall@users.sourceforge.net>
2485 Correct handling of release status in requirements specifications.
2487 * src/debug.h (DEBUG_TRACE_DEPENDENCIES): New tracing hook; define it.
2488 * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit): Use it; add
2489 function entry/exit tracing report hooks.
2490 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): Likewise;
2491 also add internal trace point reporting, which may also require...
2492 (show_required): ...this new static inline DEBUG_INVOKED function.
2494 * src/pkgreqs.cpp (requirement): Propagate release status and release
2495 reference index fields from requirer, when package version requirement
2496 is specified by a '%' token, and no explicit release status override
2497 is included in the requirement specification.
2499 * src/pkgspec.cpp (is_wildcard_spec): New static inline helper.
2500 (pkgSpecs::VersionComparator): Use it to identify any package version
2501 specification which may require the extension of a wildcard match, to
2502 span the package version and release status fields; also add tracing
2503 hooks, triggered on DEBUG_TRACE_DEPENDENCIES, to facilitate debugging.
2505 2011-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2507 Avoid accidental RCS keyword substitutions.
2509 * Makefile.in (DOLLAR): New macro; define it.
2510 (readme.txt, readme.txt.in): Use it, where unexpanded RCS Id keyword
2511 matching is intended.
2513 2011-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2515 Mercurial support revisited.
2517 * .cvsignore (.hgtags): Add to CVS untracked list.
2519 2011-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2521 Update readme.txt ID tag-line to track NEWS rather than README.
2523 * Makefile.in (readme.txt.in): New rule; implement it.
2524 (readme.txt.tag): Likewise; this implements the tag-line tracking.
2525 (readme.txt): Rule redefined in terms of the preceding pair.
2527 2011-06-17 Keith Marshall <keithmarshall@users.sourceforge.net>
2529 mingw-get-0.3-mingw32-alpha-2 released.
2531 * configure.ac (AC_INIT): Adjust version number.
2532 * srcdist-doc/NEWS.in: Updated; document new features and bugs fixed.
2533 * All files (r0-3-alpha-2): Tag assigned.
2535 2011-06-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2537 Add internal documentation for --reinstall option.
2539 * src/clistub.c (help_text): Add description for "--reinstall".
2541 2011-06-14 Keith Marshall <keithmarshall@users.sourceforge.net>
2543 Support use of Mercurial within a CVS working copy.
2545 * .cvsignore (.hg, .hgignore): Don't have CVS track these.
2547 2011-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
2549 Implement --reinstall option.
2551 * src/pkgopts.h (OPTION_REINSTALL): New macro; define it.
2552 (OPTION_GENERIC, OPTION_SHIFT_MASK): Likewise.
2553 (OPTION_EXTRA_FLAGS): New field; declare it.
2555 * src/clistub.c (options): Add "reinstall".
2556 (OPTION_GENERIC): Use it where appropriate; within its scope...
2557 (OPTION_STORAGE_CLASS): Improve descriptive comments; add handling for
2558 default case of flag type options requiring an alignment shift.
2560 * src/pkgexec.cpp: Remove previous "always reinstall" kludge.
2561 (pkgOptionSelected, PKG_OPTION_REINSTALL): Remove obsolete macros.
2562 (pkgActionItem::Execute): Check for "upgrade" request on any package
2563 which is already up to date; report this state, otherwise...
2564 [OPTION_REINSTALL || ACTION_UPGRADE]: Mark package as "removed", to
2565 avoid bail-out on "package already installed", when calling...
2566 (pkgInstall): ...this.
2568 2011-06-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2570 Don't require -vv to report progress of update operation.
2572 * src/pkgbind.cpp (pkgRepository::GetPackageList): Eliminate all
2573 basename() calls; `dname' already tells us what it should return.
2574 [update]: Report progress, irrespective of verbosity setting.
2576 2011-06-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2578 Fix MinGW-Bug #3313806.
2580 * src/pkginfo/pkginfo.l (CMS_KEYWORDS): Do not match them within the
2581 PACKAGE_NAME field; this avoids misinterpretation as a release status
2582 qualifier when intended as part of the package name, as in msys-cvs.
2584 2011-06-07 Keith Marshall <keithmarshall@users.sourceforge.net>
2586 Provisional correction for MinGW-Bug #3309438.
2588 * src/debug.h [DEBUGLEVEL == 0]: Provide defaults for...
2589 (DEBUG_ENABLED, DEBUG_REQUEST): ...these macros.
2591 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDirectory):
2592 (pkgTarArchiveInstaller::ProcessDataStream): Use DEBUG_REQUEST to
2593 enable runtime trace activation for previous compile time choices.
2595 2011-05-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2597 mingw-get-0.3-mingw32-alpha-1 released.
2599 * configure.ac (AC_INIT): Adjust version number.
2600 * srcdist-doc/NEWS.in: Updated; document new features.
2601 * All files (r0-3-alpha-1): Tag assigned.
2603 2011-05-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2605 Support assignment of DEBUGLEVEL at configure time.
2607 * configure.ac (DEBUGLEVEL): Declare as a precious variable, using
2608 AC_ARG_VAR; also declare with AC_SUBST, to ensure it is initialised.
2610 * Makefile.in (DEBUGLEVEL): Let AC_SUBST assign it.
2612 2011-05-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2614 Work around bugs in MinGW and GNU getopt_long_only() implementations.
2616 * src/getopt.c: New file; this is a free-standing replacement for any
2617 implementation provided by system libraries. We will always use this
2618 to ensure correct operation irrespective of system bugs; (different
2619 bug manifestations have been identified in the stock MinGW and GNU
2622 * Makefile.in (mingw-get.EXEEXT): Use it.
2624 * src/clistub.c (options): Remove redundant declaration of `-v' as a
2627 2011-05-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2629 Implement user selection of traceable features at run-time.
2631 * src.pkgopts.h (OPTION_VERBOSE_MAX): New macro; define it.
2633 * src/debug.h (DEBUG_ENABLED): New macro; define it.
2634 (DEBUG_REQUEST, DEBUG_REQUEST_FLAGS, DEBUG_TRACE_DYNAMIC): Likewise.
2636 * src/clistub.c (main) [--trace]: Don't make it available unless...
2637 [DEBUG_ENABLED(DEBUG_TRACE_DYNAMIC)]: ...this is set (at compile-time).
2638 [--verbose]: Limit to OPTION_VERBOSE_MAX, using...
2639 (atmost): ...this new macro; define it.
2640 (options): Declare `-v' as both long and short form, pending bug fix
2641 in MinGW's getopt_long_only() implementation.
2643 * src/pkginet.cpp (pkgInternetAgent::OpenURL): Use DEBUG_REQUEST.
2644 (pkgInternetLzmaStreamingAgent::TransferData): Likewise.
2645 (pkgInternetStreamingAgent::TransferData): Likewise.
2646 (pkgInternetStreamingAgent::Get): Likewise.
2648 * src/pkgunst.cpp (pkgActionItem::SetAuthorities): Use DEBUG_REQUEST.
2649 (pkg_rmdir, pkg_unlink): Likewise.
2651 * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Use DEBUG_REQUEST.
2653 2011-05-21 Keith Marshall <keithmarshall@users.sourceforge.net>
2655 Implement protocol for processing global program options.
2657 * src/pkgopts.h: New file.
2659 * src/climain.cpp (cli_setopts): New function; implement it.
2660 (pkgOptions): Likewise.
2662 * src/clistub.c (xatoi): New function; implement it.
2663 (cli_setargv): New inline helper function; implement it.
2664 (main): Use it. Also incorporate implementation of...
2665 (parsed_options): New structure; it accommodates...
2666 (verbose, trace): New options; interpret them, and...
2667 (help_text): ...document them.
2669 * src/pkgbind.cpp (pkgRepository::GetPackageList): Make catalogue
2670 loading notifications and progress reports conditional on...
2671 [OPTION_VERBOSE > 1]: ...this.
2673 2011-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2675 Augment known development status keywords and accept CMS labels.
2677 * src/pkginfo/pkginfo.l (CMS_KEYWORDS): Define new provisional list;
2678 add transitional state scanner rule and code to interpret them.
2679 (STATUS_KEYWORDS): Add "pre" and "rc" to existing list; modify scanner
2680 code to maintain consistency with CMS_KEYWORDS processing; also extend
2681 this coding strategy to other rules.
2683 * src/pkginfo/driver.c (spec): Strip initial '$' token from displayed
2684 field values; (we expect it only for a CMS_KEYWORDS field value).
2686 * src/pkgreqs.cpp (pkgSpecs::GetTarName): Remove any initial '$' token
2687 from PACKAGE_RELEASE_STATUS field, when performing reverse of tarname
2688 decomposition transformation.
2690 2011-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2692 Correct omission from 2011-02-18 commit.
2694 * src/tarproc.cpp (Copyright Notice): Add 2011 as year of release.
2696 2011-05-14 Keith Marshall <keithmarshall@users.sourceforge.net>
2698 mingw-get-0.2-mingw32-alpha-4 released.
2700 * configure.ac (AC_INIT): Adjust version number.
2701 * srcdist-doc/NEWS.in: Updated; add bug-fix/feature descriptions.
2702 * All files (r0-2-alpha-4): Tag assigned.
2704 2011-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2706 Fix MinGW-Bug #3297660 (reported by Chris Sutcliffe).
2708 * src/pkgbase.h (pkgActionItem::SetAuthorities): Return unsigned long.
2709 (pkgActionItem::HasAttribute): New inline method; implement it.
2711 * src/pkgtask.h (ACTION_DOWNLOAD, ACTION_DOWNLOAD_OK): New macros.
2713 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles):
2714 [ACTION_DOWNLOAD]: Assert it at commencement of each package download;
2715 clear it again, on successful download completion.
2717 * src/pkginst.cpp (pkgtask.h): #include it.
2718 (pkgInstall) [ACTION_DOWNLOAD]: Don't proceed with installation when
2719 set; this indicates failed download; diagnose it.
2721 * src/pkgunst.cpp (pkgRemove) [ACTION_DOWNLOAD && ACTION_UPGRADE]:
2722 Don't proceed with pre-emptive removal when both set; this indicates
2723 failed download of replacement package; diagnose it.
2725 2011-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2727 Fix MinGW-Bug #3295526 (reported by Charles Wilson).
2729 * src/pkgunst.cpp (sys/stat.h): #include it; we need it for...
2730 (pkg_unlink): ...chmod( file, S_IWRITE ), emulating `rm -f' semantics.
2732 2011-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2734 Diagnose and aggressively retry failed download connections.
2736 * src/debug.h (DEBUG_TRACE_INTERNET_REQUESTS): New macro; define it.
2738 * src/pkginet.cpp (debug.h): #include it.
2739 (pkgDownloadMeter): New abstract class; declare it and implement its
2740 default (non-abstract) data and methods; derive...
2741 (pkgDownloadMeterTTY): ...this new class from it; implement it...
2742 (pkgInternetStreamingAgent::Get): ...and instantiate it (naively for
2743 now), as associated pkgDownloadMeter object; add tracing diagnostic.
2744 (pkgInternetAgent::OpenURL): Don't inline it; move implementation out
2745 of line; add retry loops to aggressively retry failed connections.
2746 (pkgInternetAgent::QueryContentLength): New method; implement it.
2747 (pkgInternetStreamingAgent::TransferData): Avoid Microsoft specific
2748 data type `DWORD'; prefer equivalent standard `unsigned long'. Add
2749 tracing diagnostic. Remove progress diagnostic; replace it with an
2750 `Update' request to associated pkgDownloadMeter.
2751 (pkgInternetLzmaStreamingAgent::GetRawData): Avoid `DWORD' data type.
2752 (pkgInternetLzmaStreamingAgent::TransferData): Likewise; add tracing
2753 diagnostic on failure.
2755 2011-03-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2757 mingw-get-0.2-mingw32-alpha-3 released.
2759 * configure.ac (AC_INIT): Adjust version number.
2760 * srcdist-doc/NEWS.in: Updated; add bug-fix description.
2761 * All files (r0-2-alpha-3): Tag assigned.
2763 2011-03-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2765 Provisional handling for http proxy authentication.
2766 (Adapted from patch by Scott Michel <pingbak@users.sourceforge.net>)
2767 (ref: MinGW-Patch #3158453)
2769 * src/pkginet.cpp: Several format/layout adjustments; add comments.
2770 Eliminate several instances of Microsoft specific typedef nastiness.
2771 (dmh_dialogue_context): New macro; kludge definition to support...
2772 (pkgInternetAgent::OpenURL) [HTTP_STATUS_PROXY_AUTH_REQ]: Detect
2775 2011-03-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2777 Expand macros in path names for files and directories to be removed.
2779 * src/pkgunst.cpp (pkgRemove): Format sysroot as a template, so...
2780 (pkg_rmdir, pkg_unlink): ...are able to use mkpath() to construct the
2781 full path name for each file or directory to be removed.
2783 2011-03-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2785 Correct defective activation logic for some debugging hooks.
2787 * src/pkgunst.cpp (pkg_rmdir, pkg_unlink) [DEBUG_INVOKE_IF]:
2788 (pkgActionItem::SetAuthorities) [DEBUG_INVOKE_IF]: Use bit-wise `&'
2789 operator, not `&&', to evaluate DEBUGLEVEL state.
2791 2011-03-22 Keith Marshall <keithmarshall@users.sourceforge.net>
2793 Avoid Unicode hyphens in generated ASCII document files.
2795 * Makefile.in (NROFF): New macro; define it to invoke `nroff -Tascii'.
2796 (%.dist, readme.txt): Use it to ensure that output is pure ASCII.
2798 2011-03-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2800 mingw-get-0.2-mingw32-alpha-2 released.
2802 * configure.ac (AC_INIT): Adjust version number.
2803 * srcdist-doc/NEWS.in: Updated; add bug-fix description.
2804 * All files (r0-2-alpha-2): Tag assigned.
2806 2011-03-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2808 Fix MinGW-Bug 3212246.
2810 * src/keyword.c (has_keyword): Avoid incrementing the comparison
2811 pointers when a significant character in one string is not matched in
2812 the other; previously the pointers were left pointing one character to
2813 the right of the mismatch, and this was overlooked if the mismatch
2814 occurred at the rightmost character in both strings.
2816 2011-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2818 mingw-get-0.2-mingw32-alpha-1 released.
2820 * configure.ac (AC_INIT): Set version number; correct capitalisation
2821 in URI reference to bug reporting instructions.
2823 * srcdist-doc/NEWS.in: Confirm release date.
2824 [bug reporting]: Remove redundant paragraph; the information is
2825 provided, via reference to mingw.org. in the README and INSTALL files.
2827 * All files (r0-2-alpha-1): Tag assigned.
2829 2011-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2831 * srcdist-doc/INSTALL.in [building]: Qualify liblzma.a requirement;
2832 add earliest acceptable snapshot release date.
2834 2011-03-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2836 Remove unused 7zip and boost source code from CVS trunk.
2838 * 7z: Directory and all content removed.
2841 2011-03-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2843 Refactor and update existing installation and usage instructions.
2845 * src/clistub.c (help_text): Updated.
2847 * srcdist-doc: New directory.
2849 * README: Deleted; its content refactored into...
2850 * srcdist-doc/README.in srcdist-doc/INSTALL.in srcdist-doc/NEWS.in:
2851 ...these new template files, updated for current development state.
2853 * srcdist-doc/gendoc.sed.in: New sed script; it directs formatting of
2854 generated text files derived from the srcdist-doc templates.
2856 * Makefile.in (SRCDIST_SUBDIRS): Add srcdist-doc.
2857 (SRCDIST_FILES): Add NEWS and INSTALL.
2858 (srcdist-doc): New build rule to generate README, NEWS and INSTALL.
2859 (srcdist, licdist): Adjust path to locate them.
2860 (readme.txt): New build rule to generate on-line package description.
2862 (distclean): Don't remove Makefile...
2863 (maintainer-clean): ...but do it here instead. Also remove generated
2864 README, NEWS and INSTALL, the autom4te cache, and all distributable
2865 zip files, in addition to tarballs, for the current version.
2867 2011-02-27 Keith Marshall <keithmarshall@users.sourceforge.net>
2869 Initial implementation for "remove" feature.
2871 * src/pkgbase.h: Update copyright notice; add current year.
2872 (pkgActionItem::SetPrimary): New inline public method; declare it.
2873 (pkgActionItem::SetAuthorities): New public method; declare it.
2875 * src/pkgtask.h (ACTION_PREFLIGHT, ACTION_REMOVE_OK): New defines.
2877 * src/pkgproc.h: Update copyright notice; add current year.
2878 (pkgManifest::GetSysRootReference): New public method; declare it.
2879 (pkgManifest::GetRoot): New inline method; declare and implement it.
2880 (pkgManifest::DetachSysRoot): Argument type changed to const char*.
2881 (pkgRemove): New extern "C" function; declare it.
2883 * src/pkgexec.cpp (pkgActionItem::SetPrimary): Implement it, and...
2884 (pkgXmlDocument::Schedule): ...use it to promote actions on all user
2885 specified packages, as listed on the command line, to primary status.
2886 (pkgActionItem::Execute): Repeatedly invoke...
2887 (pkgActionItem::SetAuthorities): ...this; incorporate call of...
2888 (pkgActionItem::DownloadArchiveFiles): ...this, within the loop, so
2889 that we retry failed downloads at least a second time.
2890 [ACTION_REMOVE]: Delete stub; invoke pkgRemove().
2892 * src/pkgunst.cpp: New file.
2893 (pkgActionItem::SetAuthorities): Implement it.
2894 (pkgManifest::GetSysRootReference): Implement it.
2895 (pkgManifest::DetachSysRoot): Implement it per new declaration.
2896 (pkgRemove): Implement it.
2898 * Makefile.in (CORE_DLL_OBJECTS): Add pkgunst.OBJEXT
2900 2011-02-26 Keith Marshall <keithmarshall@users.sourceforge.net>
2902 Work-around for improper stderr buffering in MSYS mintty and rxvt.
2903 (Merged from r0-1-alpha-5 branch).
2905 * src/dmh.cpp (dmhTypeTTY::emit_and_flush): New private method.
2906 (dmhTypeTTY::printf, dmhTypeTTY::notify): Use it to force an fflush()
2907 after each output record is written to stderr.
2909 * README: Update as appropriate.
2911 2011-02-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2913 Tidy up some debugging hooks.
2915 * src/debug.h (DEBUG_INVOKED): New macro; define it.
2916 (DEBUG_INVOKE_IF): Likewise; this takes arguments providing for
2917 conditional invocation of code when DEBUGLEVEL is non-zero; make it
2918 expand to nothing, when DEBUGLEVEL is zero.
2919 (DEBUG_TRACE_INIT): Redefined macro; value changed to 0x0010.
2920 (DEBUG_TRACE_TRANSACTIONS, DEBUG_SUPPRESS_INSTALLATION):
2921 (DEBUG_UPDATE_INVENTORY): New macros; define them.
2923 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDirectory):
2924 (pkgTarArchiveInstaller::ProcessDataStream): Refactor debugging hooks;
2925 implement them in terms of DEBUGLEVEL, with reference to...
2926 (DEBUG_SUPPRESS_INSTALLATION, DEBUG_UPDATE_INVENTORY): ...these.
2928 2011-02-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2930 Make package version comparisons more robust.
2932 Fixes an issue reported by Chris Sutcliffe: previously, version
2933 comparisons were evaluated solely on the basis of differences in the
2934 package version field itself. Henceforth, if this field compares as
2935 equal, then the comparison is extended to also consider differences
2936 between development phase qualifiers, and, if these too compare as
2937 equal, to differences in the target subsystem version fields.
2939 * src/pkginfo/pkginfo.h (pkgSpecs::VersionComparator): New private
2942 * src/pkgspec.cpp (pkgSpecs::VersionComparator): Implement it.
2943 (pkgSpecs::operator<, pkgSpecs::operator<=, pkgSpecs::operator>=):
2944 (pkgSpecs::operator>): Use it, replacing...
2945 (version): ...this static function; now unreferenced; delete it.
2947 * src/vercmp.h (pkgVersionInfo::pkgVersionInfo): Make it inline; it
2948 now delegates the entire class construction operation to...
2949 (pkgVersionInfo::Parse): ...this new private method; declare it. This
2950 is also used to facilitate implementation of...
2951 (pkgVersionInfo::Reset): ...this new inline method, also requiring...
2952 (pkgVersionInfo::FreeAll): ...this new inline method; also now used by
2953 the class destructor, it encapsulates separate calls to...
2954 (pkgVersionInfo::Free): ...this original inline method, renamed...
2955 (pkgVersionInfo::FreeEntry): ...as this.
2957 * src/vercmp.cpp (pkgVersionInfo::Parse): Implement it.
2959 2011-02-13 Keith Marshall <keithmarshall@users.sourceforge.net>
2961 Merge from mingw-get-0.1-mingw32-alpha-5 bug-fix branch.
2963 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): Promote
2964 "install" action on new prerequisites, where a previously uninstalled
2965 package is required to satisfy any "upgrade" dependency.
2967 * src/pkgexec.cpp (pkgActionList::Execute): Don't make misleading
2968 claims concerning package removal.
2970 * src/pkgtask.h (STRICTLY_GT, STRICTLY_LT, ACTION_PRIMARY): Add one
2971 level of parentheses around defining expressions.
2973 2011-02-10 Keith Marshall <keithmarshall@users.sourceforge.net>
2975 Publish mingw-get-0.0-mingw32-alpha-5.1 bug-fix release.
2977 * README: Updated to reflect changes.
2979 2011-02-08 Keith Marshall <keithmarshall@users.sourceforge.net>
2981 Improve diagnostics for failed GUI invocation.
2983 * src/guimain.cpp: New file; currently delivers only a diagnostic
2984 stub, provided by Sze Howe Koh <axfangli@users.sourceforge.net>, to
2985 pop-up a message block explaining why GUI mode cannot be invoked.
2987 * Makefile.in (GUI_LDFLAGS): New macro; it is required by...
2988 (gui$EXEEXT): ...this new build rule; add to prerequisites of...
2989 (all): ...this [default] build rule; redefine this in terms of...
2990 (BIN_PROGRAMS, LIBEXEC_PROGRAMS, LIBEXEC_DATA): ...these new macros;
2991 define them, and also use them as loop iterator objectives for...
2992 (install, install_strip): ...these; also schedule them...
2993 (clean): ...for removal by this.
2995 * src/clistub.c (Copyright): Add new year.
2996 (main): Amend error message, if gui$EXEEXT doesn't start; make it
2997 more intelligible to normal users.
2999 2011-02-07 Keith Marshall <keithmarshall@users.sourceforge.net>
3001 Correct omissions from packaged source tarball.
3003 * Makefile.in (Copyright): Add new year.
3004 (SRCDIST_FILES): Add aclocal.m4
3005 (SRCDIST_SUBDIRS): Add m4
3007 2011-01-05 Keith Marshall <keithmarshall@users.sourceforge.net>
3009 Reduce path names to base names, in some diagnostic message contexts.
3011 * src/climain.cpp: Update copyright notice for new year.
3012 (climain): Extract base name from argv[0], to pass as program name tag
3013 in initialisation of diagnostic message handler.
3015 * src/dmh.h, src/dmh.cpp: Update copyright notices; make some layout
3016 adjustments, for more consistent formatting style.
3018 * src/pkgbind.cpp: Update copyright notice.
3019 (pkgRepository::GetPackageList): Reduce path names for catalogue files
3020 to their base names, when reporting them in diagnostic messages.
3022 2011-01-05 Keith Marshall <keithmarshall@users.sourceforge.net>
3024 Avoid a potential out-of-range action name look-up.
3026 * src/pkgdeps.cpp: Update copyright notice for new year.
3027 (pkgXmlDocument::Schedule): Mask action code with ACTION_MASK, to
3028 determine correct action name when diagnosing uninstalled package.
3030 2011-01-03 Keith Marshall <keithmarshall@users.sourceforge.net>
3032 Make "install" and "remove" notifications symmetric.
3034 * configure.ac (AC_INIT): Bump version to "0.1-alpha-6cvs".
3035 (YEARS_OF_ISSUE): Add new year.
3037 * src/pkginst.cpp: Update copyright notice for new year.
3038 (pkgInstall): Add notification for package being installed.
3040 2010-12-30 Keith Marshall <keithmarshall@users.sourceforge.net>
3042 Add preliminary CLI support for "list" and "show" actions.
3044 * src/pkgtask.h (ACTION_PRIMARY): New manifest constant; define it.
3045 (ACTION_LIST, ACTION_SHOW): Likewise; cast to enumerated values for...
3046 (action_list, action_show): ...these; define them.
3048 * src/pkgexec.cpp (action_name): Add defining text for...
3049 (action_list, action_show): ...these.
3051 * src/climain.cpp: Partially revert 2010-11-01 change...
3052 (climain) [! ACTION_UPDATE]: Reinstate original "if" block, moving
3053 the "switch" block within it, but without the ACTION_UPDATE case.
3054 [ACTION_LIST, ACTION_SHOW]: New "switch" cases; they invoke...
3055 (pkgXmlDocument::DisplayPackageInfo): ...this new method.
3057 * src/pkgbase.h (pkgXmlDocument::DisplayPackageInfo): Declare it.
3058 (pkgActionItem::ConfirmInstallationStatus): New method; declare it.
3059 (pkgXmlNode::GetSysRoot): Make declaration style consistent with
3060 others in the class; do not name arguments in the declaration.
3061 (pkgXmlNode::FindFirstAssociate): Likewise.
3062 (pkgXmlNode::FindNextAssociate): Likewise.
3064 * src/pkgshow.cpp: New file.
3065 (pkgXmlDocument::DisplayPackageInfo): Implement it.
3067 * src/pkgdeps.cpp (pkgMsgUnknownPackage): New extern "C" function;
3068 implement it temporarily, pending a future i18n reimplementation.
3069 (assert_installed): Drop "inline" attribute; leave it as "static".
3070 Set "tarname" correctly, to match the installed package version; (it
3071 previously incorrectly returned the latest available version).
3072 (pkgActionItem::ConfirmInstallationStatus): Implement it.
3073 (pkgXmlDocument::Schedule) [ACTION_PRIMARY]: Set as appropriate.
3074 (pkgXmlDocument::Schedule) [ACTION_REMOVE || ACTION_UPGRADE]: Complain
3075 if requested package is not recorded as having been installed.
3076 (pkgXmlDocument::ResolveDependencies) [! ACTION_INSTALL]: Do not
3077 invoke it recursively.
3079 * Makefile.in (pkgshow.$OBJEXT): Add reference.
3081 2010-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
3083 Lay groundwork for implentation of additional actions.
3085 * src/climain.cpp (climain): Adjust indentation; replace `if' block...
3086 [action != ACTION_UPDATE]: ...with this default `switch' case, and...
3087 [action == ACTION_UPDATE]: ...this as explicit "do nothing" case.
3089 2010-10-29 Keith Marshall <keithmarshall@users.sourceforge.net>
3091 mingw-get-0.1-mingw32-alpha-5 released.
3093 * configure.ac (AC_INIT): Bump version to 0.1-alpha-5.
3094 * README: Update release notes accordingly.
3095 * All files (r0-1-alpha-5): Tag assigned.
3097 2010-10-22 Keith Marshall <keithmarshall@users.sourceforge.net>
3099 Make pkgInitRites/pkgLastRites processing more robust;
3100 avoid a potential race condition in mingw-get-inst.
3102 * src/rites.c: Refactor conditional code to segregate execution of...
3103 [defined IMPLEMENT_INITIATION_RITES]: ...this into distinct phases.
3104 (PHASE_ONE_RITES, PHASE_TWO_RITES): Define constants to identify them.
3105 (do_init_rites): Renamed to...
3106 (invoke_rites): ...this; inline it.
3107 (pkgLastRites): Invoke it, to pre-empt rename action of...
3108 (lastrites.exe): ...this, subsequently exec()ed process.
3109 (perror): Issue more informative diagnostic on exec() failure.
3111 * src/clistub.c (IMPLEMENT_INITIATION_RITES): Stipulate as...
3112 (PHASE_ONE_RITES): ...this phase of implementation only.
3114 * src/pkgexec.cpp (IMPLEMENT_INITIATION_RITES): Define to provide...
3115 (PHASE_TWO_RITES): ...this phase of implementation, facilitated by...
3116 (self_upgrade_rites): ...this locally defined RITES_INLINE function.
3117 (pkgActionItem::Execute): Invoke it, in remove/install loop, while...
3118 [init_rites_pending]: ...new loop local variable remains true.
3120 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
3122 Fix packaging bug in -lic package.
3124 * Makefile.in (licdist): Use directory named
3125 "share", not "shared".
3127 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
3129 mingw-get-0.1-mingw32-alpha-4 released.
3131 * All files (r0-1-alpha-4): Tag assigned.
3133 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
3135 Add rudimentary help option.
3137 * README: Update release notes.
3139 * src/clistub.c: Add --help option.
3141 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
3143 Fix "mingw-get deletes itself" bug in last rites handling.
3145 * README: Add new release notes.
3147 * configure.ac: Bump version to 0.1-alpha-4.
3149 * src/dmh.h: If __cplusplus, include <exception> and
3150 declare dmh_exception class.
3152 * src/dmh.cpp (class dmh_exception): Implement.
3153 (abort_if_fatal): If DMH_FATAL, throw dmh_exception rather
3154 than calling exit().
3156 * src/climain.cpp (climain): Wrap entire function body in try/
3157 catch block. If dmh_exception is caught, return EXIT_FAILURE.
3159 * src/clistub.c (main): Capture return value of climain(). If
3160 non-zero, perform last rites and return EXIT_FAILURE.
3162 2010-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
3164 mingw-get-0.1-mingw32-alpha-3 released.
3166 * README: Add new release notes.
3168 * All files (r0-1-alpha-3): Tag assigned.
3170 2010-08-27 Keith Marshall <keithmarshall@users.sourceforge.net>
3172 Add runtime hooks to support self-upgrade for future releases.
3174 * src/rites.c: New file; compile it free-standing, to provide...
3175 (lastrites.exe): ...this helper application for context clean-up;
3176 alternatively, use it as an include file, with pre-definition of...
3177 (IMPLEMENT_INITIATION_RITES): ...this, to implement...
3178 (pkgInitRites, pkgLastRites): ...these inline functions.
3180 * src/clistub.c (main) [argc > 1]: Use them.
3181 (progname): New local variable within `main'; set it once, then use it
3182 instead of repeated references to `basename(*argv)' in diagnostics.
3183 (MINGW_GET_DLL, MINGW_GET_GUI): Relocate to `src/rites.c'.
3185 * src/debug.h (DEBUG_INHIBIT_RITES_OF_PASSAGE):
3186 (DEBUG_FAIL_FILE_RENAME_RITE, DEBUG_FAIL_FILE_UNLINK_RITE): New
3187 defines; they facilitate debugging of the src/rites.c code.
3189 * Makefile.in (lastrites$EXEEXT): New target; build as prerequisite...
3190 (all): ...of this primary target.
3191 (install, install-strip): Install it.
3192 (SRCDIST_FILES): Remove install-sh; it is now included in...
3193 (build-aux): ...this directory; add it to...
3194 (SRCDIST_SUBDIRS): ...this.
3196 2010-08-24 Keith Marshall <keithmarshall@users.sourceforge.net>
3198 Set default sysroots relative to mingw-get installation directory.
3200 * xml/profile.xml (system-map) [name == default]: For each of...
3201 [subsystem == mingw32]: ...set sysroot path to value of %R macro...
3202 [subsystem == msys]: ...and to its %R/msys/1.0 subdirectory.
3204 2010-08-19 Keith Marshall <keithmarshall@users.sourceforge.net>
3206 Some dependency resolver enhancements and bug fixes.
3208 * src/pkgbase.h (pkgXmlNode::GetContainerAttribute): New method;
3211 * src/pkgdeps.cpp (pkgXmlNode::GetContainerAttribute): Implement it;
3212 it is used to retrieve package name attributes from the containing
3213 'package' element, when given a pointer to a 'release' element by...
3214 (assert_unmatched, assert_installed): ...these new static functions.
3215 (pkgXmlDocument::Schedule): Use them to reconstruct and register
3216 dependency reference data for previously installed packages which are
3217 no longer included in the distribution manifest.
3218 (pkgXmlDocument::ResolveDependencies): Fix a block nesting error;
3219 catch and diagnose unresolved dependencies; don't look beyond the XML
3220 document root node, (tinyxml error not caught?), when searching for
3221 requirements specified on container nodes.
3223 2010-08-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3225 Improve scheduling of package processing requests.
3227 * src/pkgexec.cpp (pkgXmlDocument::Schedule): Inspect entire `actions'
3228 list, when checking for duplicate package processing requests; decline
3229 to schedule any such duplicate, or any request which lacks a package
3232 2010-08-15 Keith Marshall <keithmarshall@users.sourceforge.net>
3234 Lay foundation for selective compilation of debugging code.
3236 * src/debug.h: New file...
3237 * src/sysroot.cpp: Include it.
3238 (pkgXmlDocument::LoadSystemMap): Make debugging output conditional...
3239 [DEBUGLEVEL & DEBUG_TRACE_INIT]: ...on this new debugging state.
3241 2010-08-15 Keith Marshall <keithmarshall@users.sourceforge.net>
3243 * src/pkgkeys.h: Typo in comment: file was previously identified as
3244 pkgkeys.c; corrected.
3246 2010-08-13 Keith Marshall <keithmarshall@users.sourceforge.net>
3248 Improve diagnostics for invalid references to non-release XML nodes.
3250 * src/pkgkeys.h (value_unknown): New global string; declare it.
3251 * src/pkgkeys.c (value_unknown): Implement it.
3253 * src/pkgname.cpp (pkgArchiveName): Identify XML element type when
3254 diagnosing references to elements of types other than release; use...
3255 (value_unknown): ...this, as appropriate.
3257 2010-08-12 Keith Marshall <keithmarshall@users.sourceforge.net>
3259 Guard against a potential buffer overrun.
3261 * src/pkgreqs.cpp (pkgSpecs::SetProperty): Allocate an additional
3262 byte to accommodate an extra field separator, when inserting a new
3263 data value into a previously empty field.
3265 2010-07-27 Cesar Strauss <cestrauss@gmail.com>
3267 Handle the GNU long name tar header format.
3269 * src/pkgproc.h (TAR_ENTITY_TYPE_GNU_LONGNAME): New manifest constant;
3271 (pkgTarArchiveProcessor::EntityDataAsString): New protected method;
3273 * src/tarproc.cpp: ...implement it.
3274 (pkgTarArchiveProcessor::Process): Before building the entry pathname,
3275 check for a GNU long name type header; when found, read pathname from
3276 the entry data area, before fetching the following header, from which
3277 to retrieve the associated entity data.
3279 2010-06-24 Keith Marshall <keithmarshall@users.sourceforge.net>
3281 Work around an autoconf bug (reported by Stefano Sabatini).
3283 * Makefile.in (VPATH): Use @top_srcdir@ instead of ${srcdir}; current
3284 autoconf incorrectly elides references to @srcdir@ and ${srcdir} when
3285 substituting within a VPATH specification for building `in-source'.
3286 Also, prefer colons to blanks as path name separators, for improved
3287 portability to non-GNU implementations of make; (recommendation by
3290 2010-06-24 Keith Marshall <keithmarshall@users.sourceforge.net>
3292 Include alias search, when matching component package name.
3294 * src/keyword.c (has_keyword): Rearrange argument declarations for
3295 more natural order; update all callers accordingly. Simplify; compare
3296 keyword to be matched with each successive candidate from match-list,
3297 character-by-character and in-place, so avoiding memory allocation
3298 for any local duplicate of the passed match-list; thus...
3299 (safe_strdup): ...this static function no longer required; delete it.
3300 (string.h): No references remain; do not include it.
3302 * src/pkgfind.cpp (pkgXmlNode::FindPackageByName): Augment component
3303 package name matching to include potential matches of the look-up name
3304 with trailing component name stripped off, when that matches the class
3305 name of an identified component package, and the initial substring of
3306 the look-up name, after stripping, matches any specified alias name
3307 for the containing package.
3309 2010-06-10 Keith Marshall <keithmarshall@users.sourceforge.net>
3311 Address FIXME relating to identification of distributable files.
3313 * install-sh: Move to...
3314 * build-aux: ...this new directory.
3316 * Makefile.in (PACKAGE_DISTVERSION): Modify `sed' edit sequence; make
3317 it depend on, and ensure that it incorporates the expansion of...
3318 (PACKAGE_SUBSYSTEM): ...this new macro; defined as substitution of...
3319 (host_os): ...this autoconf variable, set by...
3321 * configure.ac (AC_CANONICAL_HOST): ...this; add it, requiring...
3322 (AC_CONFIG_AUX_DIR): ...`build-aux' directory reference, providing...
3324 * build-aux/config.guess, build-aux/config.sub: ...these new standard
3325 files; import them from the standard `build-aux' repository.
3327 2010-05-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3329 Bump version for next release cycle.
3331 * configure.ac (AC_INIT): Bump version suffix to alpha-3.
3333 2010-05-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3335 mingw-get-0.1-mingw32-alpha-2 released.
3337 * README: Add new release notes.
3339 * xml/profile.xml: Update to use default referencing for...
3340 (package-list.xml.lzma): ...this repository master catalogue.
3342 * All files (r0-1-alpha-2): Tag assigned.
3344 2010-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
3346 Make provision to protect user's profile settings during upgrade.
3348 * Makefile.in (install): Remove `profile.xml'; replace it with...
3349 (install-profile): ...this new prerequisite installation goal; it
3350 renames the installed copy of `profile.xml' as `defaults.xml', within
3351 the installed package image.
3353 * src/pkgkeys.h (defaults_key): New key; declare it.
3354 * src/pkgkeys.c: Some cosmetic formatting (tabulation) adjustments.
3355 (defaults_key): Implement it; it refers to the `defaults.xml' file.
3357 * src/climain.cpp (climain): Check `profile_key' for accessibility of
3358 the `profile.xml' file; if [! R_OK] emit a diagnostic warning, fall
3359 back on `defaults_key', and attempt to load configuration from the
3360 distributed `defaults.xml' file.
3362 2010-05-11 Keith Marshall <keithmarshall@users.sourceforge.net>
3364 Add preliminary support for future `-reinstall' option.
3366 * src/pkgexec.cpp (pkgActionItem::Execute) [ACTION_INSTALL]: Force
3367 installation if `-reinstall' option is selected, overriding state of
3368 any prior installation; temporarily assume that this option is always
3369 selected, to permit proper `upgrade' operation in the absence of any
3370 functional `uninstall' capability, and pending implementation of a
3371 mechanism for interpreting user specified options.
3373 2010-05-11 Keith Marshall <keithmarshall@users.sourceforge.net>
3375 Correct handling for "%R" macro in relative sysroot path specs.
3377 * src/tarproc.cpp (pkgTarArchiveProcessor): In constructor, expand the
3378 sysroot path specification a second time, to capture the effect of any
3379 embedded macros, before computing the recorded `sysroot_len' value.
3381 2010-05-05 Keith Marshall <keithmarshall@users.sourceforge.net>
3383 Handle "%" wildcard matches in package and subsystem version strings.
3385 * src/pkgbase.h (pkgSpecs): Forward declare it.
3386 (pkgActionItem::~pkgActionItem): Declare explicit destructor.
3387 (pkgActionItem::SetRequirements): Add extra `pkgSpecs*' argument;
3388 update references, passing additional argument in...
3390 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): ...this.
3392 * src/pkgexec.cpp (pkgActionItem::~pkgActionItem): Implement it.
3393 (pkgActionItem::SetRequirements): Delete obsolete implementation.
3395 * src/pkginfo/pkginfo.h: Update copyright notice; add year 2010.
3396 (pkgSpecs::GetTarName): New public method; declare it.
3397 (pkgSpecs::SetProperty): New private method; declare it.
3398 (pkgSpecs::SetPackageName): New inline method; implement it.
3399 (pkgSpecs::SetPackageVersion, pkgSpecs::SetPackageBuild): Likewise.
3400 (pkgSpecs::SetSubSystemName, pkgSpecs::SetSubSystemVersion): Likewise.
3401 (pkgSpecs::SetSubSystemBuild, pkgSpecs::SetReleaseStatus): Likewise.
3402 (pkgSpecs::SetReleaseIndex, pkgSpecs::SetComponentClass): Likewise.
3403 (pkgSpecs::SetComponentVersion, pkgSpecs::SetPackageFormat): Likewise.
3404 (pkgSpecs::SetCompressionType): Likewise.
3406 * src/pkginfo/pkginfo.l: Update copyright notice; add year 2010.
3407 (TRANS): Interpret "%" as wildcard in version string matches.
3409 * src/pkgreqs.cpp: New file.
3410 (pkgActionItem::SetRequirements): Reimplement per new declaration;
3411 it now always allocates heap memory for requirements specifications.
3412 (pkgSpecs::GetTarName, pkgSpecs::SetProperty): Implement them.
3414 * Makefile.in (CORE_DLL_OBJECTS): Add `pkgreqs.$(OBJEXT)'.
3416 2010-04-30 Keith Marshall <keithmarshall@users.sourceforge.net>
3418 Revert 2010-04-04 refactoring of tarproc.cpp and tarinst.cpp
3420 * src/tarinst.cpp: File removed; its content merged into...
3421 * src/tarproc.cpp: ...this; it cannot be cleanly separated out.
3423 * Makefile.in (tarinst.$OBJEXT): Remove reference.
3425 2010-04-29 Keith Marshall <keithmarshall@users.sourceforge.net>
3427 Handle "*" wildcard matches in package and subsystem version strings.
3429 * src/vercmp.h (pkgVersionInfo::version_string): New private member
3430 variable; it stores a pointer to a dynamically allocated local copy of
3431 the invariant `version' argument, to facilitate correct parsing.
3432 (pkgVersionInfo::build_string): Likewise; it provides similar handling
3433 for the invariant `build' argument.
3434 (pkgVersionInfo::Free): New private inline method; it provides a NULL
3435 pointer safe wrapper, calling the C library `free()' function, (since
3436 some implementations are believed to be unsafe); it is used by...
3437 (pkgVersionInfo::~pkgVersionInfo): ...this new inline destructor, to
3438 release the memory allocated by the constructor, for `version_string'
3441 * src/vercmp.cpp (pkgVersionInfo::pkgVersionInfo): Allocate memory for
3442 `version_string' and `build_string', as required; populate it.
3443 Explicitly handle "*" as a `match anything' wildcard...
3444 (pkgVersionInfo::Compare): ...matching it as `equal' to everything.
3446 2010-04-18 Keith Marshall <keithmarshall@users.sourceforge.net>
3448 Correct omission from configure script prerequisite checks.
3450 * aclocal.m4 (MINGW_AC_OUTPUT): New macro; it wraps AC_OUTPUT itself,
3451 adding a trap to force an abort if any preceding prerequisite check
3452 was handled by MINGW_AC_ASSERT_MISSING.
3454 * configure.ac: Qualify package component types, in prerequisite
3455 checks handled by MINGW_AC_ASSERT_MISSING; invoke MINGW_AC_OUTPUT
3456 in place of AC_OUTPUT.
3458 2010-04-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3460 Add configure script checks for prerequisite library headers.
3461 (Thanks to Cesar Strauss for proposing a rudimentary implementation).
3463 * aclocal.m4: New file; it does no more than include...
3464 * m4/missing.m4: ...this; new file incorporated from build-aux module.
3466 * configure.ac: Add AC_CHECK_HEADER assertions for...
3467 (zlib.h, bzlib.h, lzma.h): ...these; invoke MINGW_AC_ASSERT_MISSING in
3468 respect of each failing assertion.
3470 2010-04-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3472 Case-insensitive subsystem name matching revisited.
3474 * src/pkgfind.cpp (pkgXmlDocument::FindPackageByName): Use...
3475 (subsystem_strcmp): ...this to match subsystem names, instead of...
3476 (match_if_explicit): ...this.
3478 2010-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
3480 Enable recursive processing of repository package lists.
3482 * src/pkgbase.h (pkgXmlDocument::SyncRepository): Make it public.
3484 * src/pkgbind.cpp (pkgRepository): New locally defined and implemented
3485 class; it facilitates recursive loading and parsing of package lists,
3486 replacing much of the original non-recursive functionality within...
3487 (pkgXmlDocument::BindRepositories): ...this; use it.
3489 2010-04-04 Keith Marshall <keithmarshall@users.sourceforge.net>
3491 Implement installer function; use per-package file manifests.
3493 * src/pkgproc.h (pkgManifest): New class; declare it.
3494 (pkgArchiveProcessor::origin): New protected member variable.
3495 (pkgArchiveProcessor::sysroot_len): New protected member variable.
3496 (pkgArchiveProcessor::installed): Type changed to `pkgManifest *'.
3497 (pkgTarArchiveInstaller::Process): Declare specialisation hook.
3498 (pkgTarArchiveInstaller::UpdateInstallationManifest): Disused member
3499 function; remove redundant declaration from class definition.
3500 (pkgInstall): New generalised installation function; declare it.
3501 (pkgRegister): New function; declare it.
3503 * src/pkginst.cpp: New file.
3504 (pkgManifest, pkgInstall, pkgRegister): Implement them.
3506 * src/pkgexec.cpp (pkgActionItem::Execute): Use `pkgInstall' in place
3507 of stub formerly provided here.
3509 * src/pkgkeys.h (manifest_key, reference_key): New keys; declare them.
3510 * src/pkgkeys.c (manifest_key, reference_key): Implement them.
3512 * src/tarproc.cpp: Code refactored.
3513 (pkgTarArchiveProcessor::sysroot_len): Initialise it.
3514 (pkgTarArchiveProcessor::origin): Initialise it.
3515 (pkgTarArchiveProcessor::installed): Initialise; associate it with a
3516 pkgManifest class entity, and populate this as appropriate.
3517 (pkgTarArchiveProcessor::~pkgTarArchiveProcessor): Add explicit clean
3518 up of linked `pkgManifest *' entity referenced by `installed'.
3519 (pkgTarArchiveProcessor::Process) [TAR_ENTITY_TYPE_DIRECTORY]: Add
3520 braces to demarcate localised inner scope of string scan for removal
3521 of trailing directory name separators; (thanks to Cesar Strauss for
3522 reporting invalid local pointer declaration error in GCC >= 4.4).
3523 (pkgTarArchiveInstaller::UpdateInstallationManifest): Deleted.
3524 (pkgTarArchiveInstaller::pkgTarArchiveInstaller): Factor out.
3525 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
3526 (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
3527 (commit_saved_entity): Likewise.
3529 * src/tarinst.cpp: New file; it implements...
3530 (pkgTarArchiveInstaller::Process): ...this new specialisation
3531 of the original pkgTarArchiveProcessor::Process method...
3532 (pkgTarArchiveInstaller::pkgTarArchiveInstaller): ...and this
3533 refactored code, abstracted from src/tarproc.cpp and modified to
3534 use the pkgManifest class for installation tracking.
3535 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
3536 (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
3537 (commit_saved_entity): Relocated from src/tarproc.cpp.
3539 * Makefile.in (CORE_DLL_OBJECTS): Add...
3540 (pkginst.OBJEXT, tarinst.OBJEXT): ...these new object files.
3542 2010-03-31 Keith Marshall <keithmarshall@users.sourceforge.net>
3544 Guard against NULL pointer dereferences in tinyxml code.
3546 * src/pkgbase.h (pkgXmlNode::GetName): Verify `this' pointer is
3547 non-NULL, before invoking the underlying tinyxml method.
3548 (pkgXmlNode::GetParent, pkgXmlNode::GetChildren): Likewise.
3549 (pkgXmlNode::GetNext, pkgXmlNode::GetPropVal): Likewise.
3550 (pkgXmlNode::AddChild, pkgXmlNode::DeleteChild): Likewise.
3551 (pkgXmlNode::GetDocumentRoot): Likewise.
3552 (pkgXmlNode::IsElementOfType): Likewise.
3554 2010-03-28 Cesar Strauss <cestrauss@gmail.com>
3556 Avoid running InternetAttemptConnect in pkgInternetAgent
3557 constructor, since it is called during DLL initialisation.
3559 * src/pkginet.cpp (pkgInternetAgent::pkgInternetAgent): Move the
3560 InternetAttemptConnect call from constructor...
3561 (pkgInternetAgent::OpenURL): ...to here.
3563 2010-03-23 Keith Marshall <keithmarshall@users.sourceforge.net>
3565 Automate object code dependency tracking.
3567 * Makefile.in (DEPFLAGS): New macro; define it.
3568 (%.OBJEXT: %.c, %.OBJEXT: %.cpp): Add dependency generator commands...
3569 (%.d): ...to create these dependency maps; `sinclude' them, and...
3570 (clean): ...remove them.
3572 * .cvsignore (*.d): Add wild card template to match them.
3574 2010-03-22 Keith Marshall <keithmarshall@users.sourceforge.net>
3576 Support case insensitive matching for file and subsystem names.
3578 * src/pkgbase.h (safe_strcmp): New inline function; it provides NULL
3579 argument safe comparison of strings, returning the boolean inverse of
3580 the `strcmp' result, using either case-sensitive or case-insensitive
3581 semantics; derive it from...
3582 (match_if_explicit): ...this; redefine as macro; invoke `safe_strcmp'
3583 using explicitly case-sensitive semantics.
3584 (subsystem_strcmp): New macro; it invokes `safe_strcmp' with either
3585 case-sensitive or case-insensitive semantics, depending on...
3586 (CASE_INSENSITIVE_SUBSYSTEMS): ...this new context selection macro; it
3587 fixes the choice between case-sensitive and case-insensitive matching
3588 semantics for any given implementation, at compile time.
3589 (pkg_strcmp): New macro; it invokes `safe_strcmp' with either
3590 case-sensitive or case-insensitive semantics, depending on...
3591 (CASE_INSENSITIVE_FILESYSTEM): ...this new context selection macro; it
3592 fixes the choice between case-sensitive and case-insensitive matching
3593 semantics for any given implementation, at compile time.
3595 * src/sysroot.cpp (pkgXmlNode::GetSysRoot): Use `subsystem_strcmp'.
3597 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
3599 Add preliminary support for virtual packages.
3601 * src/pkgkeys.h (yes_value, no_value): Redefine as aliases...
3602 (value_yes, value_no): ...for these new global strings; declare them.
3603 (value_none, value_virtual): New global strings; declare them.
3605 * src/pkgkeys.c (yes_value, no_value): Rename...
3606 (value_yes, value_no): ...to implement these, respectively.
3607 (value_none, value_virtual): Implement them.
3609 * src/pkgname.cpp (pkgXmlNode::ArchiveName): Check containing package
3610 node for `class' attribute set to `value_virtual'; if present, always
3611 return the effective `tarname' property as `value_none'.
3613 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): For packages
3614 with an effective `tarname' of `value_none', do not download anything.
3616 * src/pkgexec.cpp (pkgActionItem::Execute): For packages with an
3617 effective `tarname' of `value_none', do not invoke any tar archive
3618 processing function.
3620 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
3622 Don't write installation records for unavailable packages.
3624 * src/tarproc.cpp (pkgTarArchiveInstaller): In constructor, ensure
3625 archive is ready for processing, before initialising an installation
3628 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
3630 Rationalise path identification for XML file locations.
3632 * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Use `xmlfile()'
3633 function to locate `sysroot' map file; free memory when done.
3634 (pkgXmlDocument::UpdateSystemMap): Likewise.
3635 (sigpath): Static global variable disused; delete it.
3637 2010-03-01 Keith Marshall <keithmarshall@users.sourceforge.net>
3639 Extend package name search to include component packages.
3641 * src/pkgfind.cpp (pkgHasMatchingName): Remove; fold it into...
3642 (pkgXmlNode::FindPackageByName): ...this; augment to extend search
3643 within package definition elements, seeking a potential match on an
3644 included component package name or component class-implied name.
3646 * src/pkgkeys.h (class_key): New global string constant; declare it.
3647 * src/pkgkeys.c (class_key): Implement it.
3649 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3651 Bump version for next release cycle.
3653 * configure.ac (AC_INIT): Bump version suffix to alpha-2.
3655 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3657 mingw-get-0.1-mingw32-alpha-1 released.
3659 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3661 Prepare initial package release.
3663 * README: New file; use it to source release notes.
3665 * Makefile.in (SRCDIST_FILES): Use ...
3666 (LICENCE_FILES): ...this new macro; define it.
3667 (licdist): New build goal; implement it.
3668 (bindist): Require it; add alternative `zip' format package.
3670 * xml/profile.xml (repository): Set default `package-index' name.
3671 (system-map): Normalise spelling for default `sysroot' path names.
3673 2010-02-10 Keith Marshall <keithmarshall@users.sourceforge.net>
3675 Add directory/file records in installation manifests.
3677 * src/pkgkeys.h (dirname_key, filename_key): New strings; declare...
3678 * src/pkgkeys.c (dirname_key, filename_key): ...and implement them.
3680 * src/pkgproc.h (pkgArchiveProcessor::installed): New class member
3681 variable; declare it.
3682 (pkgTarArchiveInstaller::UpdateInstallationManifest): New method;
3685 * src/tarproc.cpp: Miscellaneous comment updates.
3686 (pkgTarArchiveInstaller): In constructor...
3687 (pkgTarArchiveInstaller::installed): ...use new member variable...
3688 (pkgArchiveProcessor::installed): ...inherited from this.
3689 (pkgTarArchiveInstaller::UpdateInstallationManifest): Implement and...
3690 (pkgTarArchiveInstaller::ProcessDataStream): ...use it.
3691 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
3693 2010-02-06 Keith Marshall <keithmarshall@users.sourceforge.net>
3695 Work around a deficiency in Microsoft's stat() implementation.
3697 * src/tarproc.cpp (pkgTarArchiveProcessor::ProcessDirectory): Don't
3698 pass a `pathname' argument with trailing slashes; strip them off.
3700 2010-02-06 Keith Marshall <keithmarshall@users.sourceforge.net>
3702 Add machinery for installation and packaging for distribution.
3704 * install-sh: New file; source it from autoconf distribution.
3706 * configure.ac (AC_PREFIX_DEFAULT): Assign it as `C:/MinGW'.
3707 (AC_PROG_MKDIR_P, AC_PROG_INSTALL, AC_PROG_LN_S): Invoke these.
3708 (STRIP): New output variable; use AC_CHECK_TOOL to define it.
3710 * Makefile.in (abs_top_srcdir): Define to AC_SUBST value.
3711 (PACKAGE_TARNAME, PACKAGE_VERSION): Define to AC_SUBST values.
3712 (prefix, exec_prefix, bindir, libexecdir, localstatedir): Likewise.
3713 (INSTALL, INSTALL_PROGRAM, INSTALL_SCRIPT, INSTALL_DATA): Likewise.
3714 (STRIP): New macro; define it using AC_CHECK_TOOL substitution.
3715 (mkinstalldirs): New macro; define it as AC_PROG_MKDIR_P result.
3716 (LN_S): New macro; define it as AC_PROG_LN_S result.
3717 (dist, srcdist, bindist): New build objectives; implement them.
3718 (install, installdirs, install-strip, maintainer-clean): Likewise.
3719 (SRCDIST_FILES, SRCDIST_SUBDIRS): New macros; define them.
3720 (PACKAGE_DISTNAME, PACKAGE_DISTVERSION): Likewise.
3721 (PACKAGE_DISTROOT, PACKAGE_ROOTVERSION): Likewise.
3722 (PACKAGE_CONFIG_DIR): Likewise.
3724 2010-02-02 Keith Marshall <keithmarshall@users.sourceforge.net>
3726 Implement package installer for tar archives.
3728 * src/pkgexec.cpp (pkgXmlDocument::Execute): Replace existing
3729 stub implementation of installer, using methods provided by...
3730 * src/pkgproc.h, src/tarproc.cpp: ...these new files, with trap...
3731 * src/pkgdeps.cpp (pkgXmlDocument::Schedule) [installed]: Add entry...
3732 (pkgActionItem::Selection) [to_remove]: ...for this; use it to detect
3733 `install' requests for packages which are aleady installed.
3735 * Makefile.in (CORE_DLL_OBJECTS): Add tarproc.$(OBJEXT); specify
3736 dependencies as appropriate.
3738 * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Don't commit
3739 newly created `sysroot' mapping records to disk; defer to...
3740 (pkgXmlDocument::UpdateSystemMap): ...this new method.
3741 (sigpath): Make it a global variable, with file (static) scope.
3743 * src/climain.cpp (pkgXmlDocument::UpdateSystemMap): Invoke it.
3745 * src/pkgkeys.h (download_key, modified_key, source_key): New global
3746 string variables; declare them, providing their implementations...
3747 * src/pkgkeys.c (download_key, modified_key, source_key): ...here.
3748 * src/pkgname.cpp (download_key, source_key): Use them.
3750 * src/pkginet.cpp (pkgActionItem::ArchivePath): Delete; replace...
3751 * src/mkpath.c (pkgArchivePath): ...with this free standing function.
3752 * src/mkpath.h (pkgArchivePath): Declare its prototype.
3754 * src/pkgbase.h (pkgActionItem::ArchivePath): Delete declaration.
3755 (pkgXmlDocument): Add a default constructor; implement as `inline'.
3756 (pkgXmlDocument::AddDeclaration): Use heap memory to allocate the new
3757 declaration object, instead of `auto' variable, to avoid scope error.
3758 (pkgXmlDocument::UpdateSystemMap): Declare it.
3760 2010-01-26 Keith Marshall <keithmarshall@users.sourceforge.net>
3762 Implement rudimentary dependency resolver.
3764 * src/pkgdeps.cpp: New file.
3766 * Makefile.in (CORE_DLL_OBJECTS): Add pkgdeps.$(OBJEXT) reference;
3767 establish header file dependencies.
3769 * src/pkgbase.h (to_remove, to_install, selection_types): New enum.
3770 (pkgActionItem::selection): Extend it to store as enumerated pair...
3771 (pkgActionItem::SelectPackage): New inline method; assign them.
3772 (pkgActionItem::Selection): New inline method; retrieve them.
3773 (pkgXmlNode::GetInstallationRecord): New method; declare it.
3775 * src/pkgexec.cpp (pkgActionItem): In constructor...
3776 (selection): ...initialise both references in enumerated pair.
3777 (pkgActionItem::GetReference): Use `Selection()' method.
3778 (pkgActionItem::SelectIfMostRecent): Ditto; also correct logic for
3779 making selection, and assign to `to_install' element.
3780 (pkgXmlDocument::Schedule): Don't update `request'.
3781 (pkgActionItem::Execute): Implement as stub.
3783 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): Use new
3784 `Selection()' method.
3786 * src/pkgkeys.h (yes_value, no_value): Declare new string constants.
3787 * src/pkgkeys.c (yes_value, no_value): Implement them.
3789 * src/vercmp.cpp: Update copyright notice.
3790 (pkgVersionInfo::operator<=): Bug fix; must test for `<', but had `>'.
3792 2010-01-23 Keith Marshall <keithmarshall@users.sourceforge.net>
3794 Avoid segmentation faults when processing invalid data streams.
3796 * src/pkgstrm.h: Update copyright notice.
3797 (pkgArchiveStream::IsReady): New pure virtual method.
3798 (pkgRawArchiveStream::IsReady): Provide inline implementation.
3799 (pkgGzipArchiveStream::IsReady): Likewise.
3800 (pkgBzipArchiveStream::IsReady): Likewise.
3801 (pkgLzmaArchiveStream::IsReady): Likewise.
3802 (pkgXzArchiveStream::IsReady): Likewise.
3804 * src/pkgstrm.cpp: Update copyright notice.
3805 (pkgLzmaArchiveStream, pkgXzArchiveStream) [fd == -1]: Decline to
3806 perform any form of read or decode processing.
3808 * src/pkginet.cpp (pkgInternetLzmaStreamingAgent): Use `fd = -2' as
3809 pseudo-descriptor for the pkgLzmaArchiveStream derived component of
3810 this internet data streaming class.
3812 2010-01-23 Keith Marshall <keithmarshall@users.sourceforge.net>
3814 Require liblzma >= liblzma-4.999.9beta_20091209-3-mingw32-dev
3816 * src/pkgstrm.h (LZMA_API_STATIC): Remove definition and associated
3817 comment; it was required to permit, (but not to enforce), linking to
3818 the static liblzma.a library, with earlier beta releases, but this
3819 anomaly has now been corrected.
3821 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
3823 Remove zlib sources from trunk.
3824 (Application builders should use free standing implementation of
3825 zlib, from MinGW's package distribution page on SourceForge).
3827 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
3829 Remove bzip2 sources from trunk.
3830 (Application builders should use free standing implementation of
3831 bzip2, from MinGW's package distribution page on SourceForge).
3833 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
3835 Add subsystem specific sysroot mapping facility.
3837 * src/pkghash.c: New file; required by...
3838 * src/sysroot.cpp: New file; it implements...
3839 (pkgXmlDocument::LoadSystemMap, pkgXmlNode::GetSysRoot): New methods.
3841 * src/pkgbase.h: Update copyright notice.
3842 (pkgXmlDocument::LoadSystemMap): Declare it.
3843 (pkgXmlDocument::AddDeclaration): New inline method.
3844 (pkgXmlDocument::SetRoot, pkgXmlDocument::Save): Likewise.
3845 (pkgXmlNode::GetSysRoot): Declare it.
3846 (pkgXmlNode::GetDocumentRoot): New inline method.
3847 (pkgXmlNode::AddChild, pkgXmlNode::DeleteChild): Likewise.
3849 * src/climain.cpp: Update copyright notice.
3850 (climain): Invoke pkgXmlDocument::LoadSystemMap() as required.
3852 * Makefile.in (CORE_DLL_OBJECTS): Add ...
3853 (pkghash.$(OBJEXT), sysroot.$(OBJEXT)): ...these; upate dependencies.
3854 (DEBUGLEVEL): New macro; define it.
3857 2010-01-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3859 Assign standardised keys for XML database lookup.
3861 * src/pkgkeys.h: New file; provide public key declarations.
3862 * src/pkgkeys.c: New file; implement them.
3864 * src/pkgbind.cpp: Use them; update copyright notice.
3865 * src/pkgexec.cpp, src/pkgfind.cpp, src/pkginet.cpp: Likewise.
3866 * src/pkgname.cpp, src/pkgspec.cpp: Likewise.
3868 * Makfile.in (CORE_DLL_OBJECTS): Add pkgkeys.$(OBJEXT); update all
3869 dependencies accordingly.
3871 2010-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
3873 Add CLI version reporting option.
3875 * configure.ac: Update copyright notice for new year.
3876 (COPYRIGHT_HOLDER): New AC_SUBST variable; define it.
3877 (YEARS_OF_ISSUE): New AC_SUBST variable; define it.
3878 (AC_CONFIG_FILES): Add `version.c'; source it from...
3880 * version.c.in: ...this new file.
3882 * Makefile.in: Update copyright notice for new year.
3883 (mingw-get$(EXEEXT)): Add dependency on `version.$(OBJEXT)'.
3884 (distclean): Add `version.c'.
3886 * configure: Regenerated.
3888 * src/clistub.c: Update copyright notice for new year.
3889 (options): New array of `struct option'; define and use it as the
3890 reference for `argv' parsing with `getopt_long_only()'.
3892 2009-12-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3894 Add CLI support for "update" action.
3896 * src/pkgtask.h (ACTION_UPDATE): Define it, derived from...
3897 (action_update): ...this new entry in anonymous enumeration.
3899 * src/pkgexec.cpp (action_name): Add "update" keyword identification.
3901 * src/pkgbase.h: Typo in comment; s/xwXmlDocument/wxXmlDocument/.
3902 (pkgXmlDocument::BindRepositories): Add `force_update' parameter...
3903 * src/pkgbind.cpp (pkgXmlDocument::BindRepositories): Use it to...
3904 (pkgXmlDocument::SyncRepository): ...invoke this method when passed as
3905 a `true' flag, in addition to (as previously) first time reference.
3907 * src/climain.cpp (climain): Interpret "update" keyword for...
3908 [ACTION_UPDATE]: ...passing state as `force_update' parameter to...
3909 (pkgXmlDocument::BindRepositories): ...this method, then...
3910 [!ACTION_UPDATE]: Follow with normal action processing.
3912 2009-12-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3914 Add status checking for Internet URL connections.
3916 * src/pkginet.cpp (pkgInternetAgent::QueryStatus): New method.
3917 (pkgInternetStreamingAgent::Get): Use it; set `dl_status' as return
3918 value, deferring failure diagnostics to callers, i.e. to...
3919 (pkgXmlDocument::SyncRepositories): ...this, and to...
3920 (pkgActionItem::DownloadArchiveFiles): ...this.
3922 2009-11-23 Keith Marshall <keithmarshall@users.sourceforge.net>
3924 Add package download and repository synchronisation machinery.
3926 * src/pkgstrm.h: New header file.
3928 * src/pkgbind.cpp, src/pkginet.cpp, src/pkgstrm.cpp,
3929 src/pkgfind.cpp, src/pkgname.cpp, src/keyword.c: New files.
3930 * Makefile.in (CORE_DLL_OBJECTS): Add build goals for them.
3932 * xml: New directory.
3934 * src/climain.cpp (climain): Establish repository bindings from...
3935 * xml/profile.xml: ...this new configuration file.
3937 2009-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3939 Add XML database bindings and preliminary action executive for CLI.
3941 * src/pkgbase.h, src/pkgtask.h,
3942 src/mkpath.h, src/vercmp.h: New header files.
3944 * src/climain.cpp, src/pkgexec.cpp, src/pkgspec.cpp,
3945 src/mkpath.c, src/vercmp.cpp, src/xmlfile.c: New files.
3947 * Makefile.in (CORE_DLL_OBJECTS): Define initial set of files...
3948 (mingw-get-0.dll): ...build them into this new DLL target; add it...
3949 (all): ...as prerequisite for this primary build goal.
3951 2009-11-12 Keith Marshall <keithmarshall@users.sourceforge.net>
3953 Avoid some potential GCC warnings.
3955 * src/clistub.c: Include process.h for `execv' prototype...
3956 (main): Cast `argv' to appropriately matched type when calling it.
3958 * src/pkginfo/driver.c: Include stdlib.h for `free' prototype.
3960 2009-11-11 Keith Marshall <keithmarshall@users.sourceforge.net>
3962 Create diagnostic message handler for CLI usage.
3964 * src/dmh.h: New header file; it defines the public interface.
3965 * src/dmh.cpp: New file; it implements the message handler.
3967 2009-11-05 Keith Marshall <keithmarshall@users.sourceforge.net>
3969 Correct some identified TinyXML issues.
3971 * tinyxml/tinyxml.h (IsWhiteSpace): Add FIXME annotation to flag
3972 probable redundancy of checks for '\n' and '\r'.
3973 * tinyxml/tinyxmlparser.cpp: Revert John E's 2008-08-09 change; remove
3974 all such redundancies in IsWhiteSpace() calls throughout.
3976 * tinyxml/tinyxml.cpp (TiXmlAttribute::SetDoubleValue): Correct format
3977 specification in sprintf()/snprintf() calls; "%lf" is invalid; replace
3980 2009-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
3982 Add CLI loader stub.
3984 * src/clistub.c: New file.
3985 * Makefile.in: Add build rule for it; build as...
3986 (mingw-get.exe): ...this; also add to...
3987 (clean): ...this goal.
3989 2009-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
3991 Set up build mechanism.
3993 * configure.ac, Makefile.in: New files.
3994 * .cvsignore (configure, autom4te.cache): Add to ignored files.
3996 2009-10-30 Keith Marshall <keithmarshall@users.sourceforge.net>
3998 Add GPL-v3 licensing terms.
4000 * COPYING: New file, sourced from gnu.org.
4002 2009-10-12 Keith Marshall <keithmarshall@users.sourceforge.net>
4004 Add pkginfo implementation.
4006 * src, src/pkginfo: New directories.
4007 * src/pkginfo/pkginfo.h, src/pkginfo/pkginfo.l: New files.
4008 * src/pkginfo/driver.c: New file.
4010 2009-10-12 Keith Marshall <keithmarshall@users.sourceforge.net>
4014 * All files (tdm-branch): Assign new branch tag.
4015 * All top-level files: Remove from trunk.
4016 * ChangeLog: New file.