1 2020-06-19 Keith Marshall <keith@users.osdn.me>
3 Support all-static linking with recent GCC versions.
5 * Makefile.in (LDFLAGS): Add "-static" unconditionally.
6 (LIBS, SETUP_TOOL_LIBS): Remove all "-Wl,-Bstatic" and "-Wl,-Bdynamic"
7 references; the latter, in particular, appears to induce dynamic
8 linking of libstdc++-6.dll, overriding "--static-libstdc++".
10 2020-06-12 Keith Marshall <keith@users.osdn.me>
12 Use XML templates to adapt to download host changes.
14 * configure.ac (MINGW_PACKAGE_DIST_URL): Update to OSDN host URL.
16 * xml/profile.xml: Rename it as...
17 * xml/profile.xml.in: ...this; replace hard-coded repository URL...
18 (%PACKAGE_LIST_URL%/%F.xml.lzma): ...this template.
20 * xml/setup.xml: Likewise, rename it as...
21 * xml/setup.xml.in: ...this, with corresponding URL update.
23 * Makefile.in (install-profile): Modify procedure, using...
24 (%.xml: %.xml.in): ...this new pattern rule, to generate installed XML
25 files, from source templates.
27 * src/setup.rc (STRINGTABLE) <ID_DOWNLOAD_HOST_URI>: Remove trailing
28 "?download" qualifier.
30 2020-06-11 Keith Marshall <keith@users.osdn.me>
32 Discontinue formal use of the build-aux submodule.
34 * .gitmodules .hgsub: Files are obsolete; delete them.
35 * .gitignore .hgignore (build-aux): Add to SCM exclusion list.
37 * aclocal.m4 (build_aux_prefix): New macro; define it. This provides
38 a mechanism for informally locating an external, separately maintained
39 implementation of the requisite "build-aux" module; use it in...
40 (aux_include): ...this new macro; define, and use it, to access those
41 "build-aux" M4 macros which are required at configure generation time.
42 (MINGW_AC_CONFIG_AUX_DIR, MINGW_AC_CONFIG_AUX_DIRS): New macros;
43 define them. Together, they implement a replacement for the standard
44 AC_CONFIG_AUX_DIR macro, but offering extended path search capability,
45 at configure run time, in addition to defining...
46 (buildauxdir): ...this new AC_SUBST variable.
48 * configure.ac (build_alias): Define it using...
49 (ac_aux_dir): ...this autoconf path reference, defined by using...
50 (MINGW_AC_CONFIG_AUX_DIR): ...this, instead of...
51 (AC_CONFIG_AUX_DIR): ...this.
53 * Makefile.in (buildauxdir): Use it, for M4 file references.
55 2020-06-02 Keith Marshall <keith@users.osdn.me>
57 Do not use .hgtags for repository tag tracking.
59 * .hgtags: Delete file; it serves no purpose within a git repository,
60 and may actually interfere with tag inheritance, when cloning from git
63 2017-09-05 Keith Marshall <keith@users.osdn.me>
65 mingw-get-0.6.3-mingw32-pre-20170905-1 posted on OSDN.net
67 * All files (r0-6-3-beta-20170905-1): Tag assigned.
69 2017-09-04 Keith Marshall <keith@users.osdn.me>
71 Improve probability of establishing successful URL connections.
73 * src/pkginet.cpp (pkgInternetAgent::OpenURL): Add...
74 (INTERNET_FLAG_KEEP_CONNECTION, INTERNET_FLAG_IGNORE_CERT_CN_INVALID)
75 (INTERNET_FLAG_IGNORE_CERT_DATE_INVALID, INTERNET_FLAG_PRAGMA_NOCACHE)
76 (INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTPS)
77 (INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTP): ...these flags, when calling
78 the InternetOpenUrl() function.
80 2017-09-01 Keith Marshall <keith@users.osdn.me>
82 Increment version for first OSDN hosted release.
84 * VERSION.m4 (VERSION_PATCH): Increment to 3; thus...
85 (__VERSION__): ...this is auto-incremented to 0.6.3
87 2013-11-26 Keith Marshall <keithmarshall@users.sourceforge.net>
89 Conflate name and class columns in GUI package list.
91 * src/pkglist.cpp (AppWindowMaker::InitPackageListView): Remove...
92 <ID_PKGTYPE_COLUMN_HEADING>: ...column with this heading; add its width
93 allocation to the original pixel count alloted for the width of...
94 <ID_PKGNAME_COLUMN_HEADING>: ...this column.
95 (pkgListViewMaker::UpdateItem): Conflate content of original name and
96 class columns into first column; renumber successive columns.
98 2013-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
100 Don't attempt to resolve dependencies for unidentified packages.
102 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
103 [selected == NULL]: Current dependency is unresolved; do not make any
104 recursive call for this unidentified requirement. This avoids posting
105 misleading "can't get 'tarname' for non-release element <<<unknown>>>"
106 diagnostic messages, where the subsequent "unresolved dependency"
107 message is sufficient; include dmhmsgs.h, and add...
108 (PKGMSG_SPECIFICATION_ERROR): ...this preamble instead.
110 2013-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
112 Implement foundation for future NLS enabled diagnostics.
114 * src/dmhmsgs.h: New file; it declares the NLS capable DMH interface.
115 * src/dmhmsgs.c: New file; it implements rudimentary NLS hooks, (but
116 currently does not direct them to any NLS provider), together with an
117 initial subset of a default (compiled in) message catalogue.
119 * Makefile.in (CORE_DLL_OBJECTS): Add dmhmsgs.$OBJEXT
121 * src/pkgname.cpp (pkgArchiveName): Modify diagnostics, to use...
122 (PKGMSG_SPECIFICATION_ERROR): ...this dmhmsgs.h declared message.
124 2013-10-15 Keith Marshall <keithmarshall@users.sourceforge.net>
126 Add automated build time configuration management.
128 * Makefile.in (Makefile): Add regeneration rules, depending on...
129 (VERSION.m4, configure.ac, aclocal.m4, missing.m4, makeopts.m4):
130 ...these, if modified by the package maintainer, directed via...
131 (config.status, configure): ...these, regenerated as required.
133 2013-10-04 Keith Marshall <keithmarshall@users.sourceforge.net>
135 mingw-get-0.6.2-mingw32-beta-20131004-1 released.
137 * VERSION.m4 (VERSION_PATCH): Increment it.
138 * srcdist-doc/NEWS.in: Release notes updated.
139 * All files (r0-6-2-beta-20131004-1): Tag assigned.
141 2013-10-03 Keith Marshall <keithmarshall@users.sourceforge.net>
143 Propagate RELEASE_CLASS setting from mingw-get-setup.
145 * configure.ac (CLI_RELEASE_CLASS, GUI_RELEASE_CLASS): Adopt...
146 (RELEASE_CLASS) [defined]: ...this as default value.
148 2013-10-02 Keith Marshall <keithmarshall@users.sourceforge.net>
150 Support group affiliation with component package granularity.
152 * src/pkglist.cpp (pkgXmlNode::IsVisibleClass): Make it synonymous
153 with IsVisibleGroupMember(); this is a temporary adjustment, pending
154 the planned implementation of component class visibility filtering.
155 (pkgListViewMaker::Dispatch): Defer consideration of visibility until
156 traversal of component package directories, except in the particular
157 case of packages which lack defined components.
159 2013-10-01 Keith Marshall <keithmarshall@users.sourceforge.net>
161 Correct processing of package group associations.
163 * src/pkgtree.cpp (AppWindowMaker::IsPackageGroupAffiliate): Iterate
164 over "affiliate_key" elements in FindNextAssociate() calls; original
165 implementation was incorrectly iterating over "group_key" elements.
167 2013-09-21 Keith Marshall <keithmarshall@users.sourceforge.net>
169 Reorder controls within "Apply Changes" dialogue.
171 * src/guimain.rc (IDD_APPLY_APPROVE): Move definition of the "Okay to
172 proceed?" GROUPBOX, and its contained PUSHBUTTONs, to the top; we want
173 it to get the default focus.
175 2013-09-21 Keith Marshall <keithmarshall@users.sourceforge.net>
177 Reimplement wsh.lua in C/C++; (cf. MinGW-Bug #2057).
179 * src/pkgexec.cpp (LUA_INLINE): New function attribute definition.
180 (init_lua_path): Use it, reproducing the original function attributes.
181 (lua_isstringarg): New LUA_INLINE helper function; implement it.
182 (lua_wsh_libexec_path): New function; it implements wsh.libexec_path
183 (lua_wsh_execute): New function; it implements wsh.execute
184 (luaload_wsh): New function; it wraps references to lua_wsh_execute()
185 and lua_wsh_libexec_path() to provide the wsh module implementation.
186 (pkgXmlNode::DispatchScript): Preload it into the Lua interpreter.
188 * scripts/libexec/setup.lua (M.argwrap): New method; implement it.
189 (M.shlink, M.unlink): Use it to collect their arguments into a single
190 string, to be passed as the command to be invoked by wsh.execute
192 * scripts/libexec/wsh.lua: File is no longer required; delete it.
193 * Makefile.in (LIBEXEC_SCRIPTS): Remove reference to it.
195 2013-09-20 Keith Marshall <keithmarshall@users.sourceforge.net>
197 Establish default preferences for GUI; (cf. MinGW-Feature #2036)
199 * src/pkgbase.h (pkgXmlDocument::EstablishPreferences): Adjust its
200 prototype; add argument identifying prospective client classification.
202 * src/pkgopts.cpp (client_key): New XML property keyword; define it.
203 (pkgXmlDocument::EstablishPreferences): Implement filter, based on new
204 client classification argument, to restrict preference selection to a
205 matching client class specification.
207 * src/climain.cpp (dbase.EstablishPreferences): Filter on class "cli".
208 * src/guiexec.cpp (pkgData->EstablishPreferences): Likewise, on "gui".
210 * xml/profile.xml (preferences): Add client="cli" attribute for the
211 existing specification; add another for client="gui".
213 2013-09-20 Keith Marshall <keithmarshall@users.sourceforge.net>
215 Force canonical comparison of shell links; (cf. MinGW-Bug #2054)
217 * scripts/libexec/unlink.js [FileExists(filename) && (chklink != "")]:
218 The value of 'chklink' may not be canonical; instantiate an (unsaved)
219 link reference from it, then compare the canonicalized reference from
220 within it, to the reference within 'filename', thus avoiding possible
221 lexical mismatch between canonical and non-canonical forms.
223 2013-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
225 Correct LUA_PATH assignment for GUI; (cf. MinGW-Bug #2052)
227 * src/pkgexec.cpp (LUA_LIBEXEC_PATH): New manifest string; define it.
228 (init_lua_path) <LUA_PATH>: Use it; add guimain.exe app directory.
230 2013-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
232 Handle meta-package removal correctly; (cf. MinGW-Bug #2051)
234 * src/pkgunst.cpp (pkgRemove) [archive == none]: Ensure the pending
235 action flag is cleared; previously this was done during manifest clean
236 up, and since a meta-package has no manifest, it was overlooked.
238 2013-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
240 mingw-get-0.6.1-mingw32-beta-20130910-1 released.
242 * srcdist-doc/NEWS.in: Release notes updated.
243 * All files (r0-6-1-beta-20130910-1): Tag assigned.
245 2013-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
249 * src/dmhguix.cpp (DMH_PTY_GUARDBYTES): New manifest constant.
250 (dmhTypePTY::printf) [buffer full]: Use it; it defines a reserved byte
251 count, at end of buffer, where expansion or scroll out is triggered;
252 use memcpy() for scroll out, but avoid overlapping regions.
253 (dmhTypePTY::printf) [output == '\r']: Handle it.
255 * src/tarproc.cpp (create_output_stream): Improve diagnostic messages;
256 discriminate between file collision and other privilege violations.
257 (pkgArchiveProcessor::ExtractFile): Don't return a zero status code,
258 when the output stream could not be successfully opened, so that...
259 (pkgTarArchiveInstaller::ProcessDataStream): ...we may avoid writing a
260 spurious manifest entry here.
262 2013-09-06 Keith Marshall <keithmarshall@users.sourceforge.net>
264 Update version, pre-empting subsequent release.
266 * VERSION.m4 (VERSION_PATCH): Bump from zero to 1.
268 2013-09-04 Keith Marshall <keithmarshall@users.sourceforge.net>
270 mingw-get-0.6.0-mingw32-beta-20130904-1 released.
272 * srcdist-doc/NEWS.in srcdist-doc/README.in: Release notes updated.
273 * srcdist-doc/INSTALL.in: Installation instructions updated.
274 * All files (r0-6-0-beta-20130904-1): Tag assigned.
276 2013-08-26 Keith Marshall <keithmarshall@users.sourceforge.net>
278 Implement retry throttling for failed internet connections.
280 * src/pkginet.h (INTERNET_RETRY_ATTEMPTS): New macro; define it.
281 (INTERNET_RETRY_INTERVAL, INTERNET_DELAY_FACTOR): Likewise.
283 * src/pkginet.cpp (INTERNET_RETRY_REQUESTER): New typedef.
284 (pkgInternetAgent::connection_delay, pkgInternetAgent::delay_factor):
285 (pkgInternetAgent::retries, pkgInternetAgent::retry_interval): New
286 private member variables; declare them.
287 (pkgInternetAgent::OpenURL): Use them; they must be initialised by...
288 (pkgInternetAgent::SetRetryOptions): ...this new method; implement it.
289 (pkgActionItem::DownloadSingleArchive): Invoke it.
290 (pkgXmlDocument::SyncRepository): Likewise.
292 2013-08-24 Keith Marshall <keithmarshall@users.sourceforge.net>
294 Reassign default URL for download of setup tool components.
296 * aclocal.m4 (PACKAGE_DIST_DOMAIN, PACKAGE_DIST_DIR): New precious
297 variables; declare them as such, and assign default values by using...
298 (MINGW_AC_PACKAGE_DIST_URL): ...this new macro; implement it.
300 * configure.ac (MINGW_AC_PACKAGE_DIST_URL): Use it.
301 * Makefile.in (TAG_SCRIPT): Capture assigned URL; substitute it...
302 (PACKAGE_DIST_URL): ...for this replacement text marker...
303 * src/setup.rc (ID_DOWNLOAD_HOST_URI): ...here.
305 2013-08-21 Keith Marshall <keithmarshall@users.sourceforge.net>
307 Simplify guimain.exe duplicate instance prevention.
309 * src/guimain.cpp (WinMain): Delegate requisite checking to...
310 (WTK::RaiseAppWindow): ...this external toolkit function.
312 2013-08-13 Keith Marshall <keithmarshall@users.sourceforge.net>
314 Install licence as standard setup component.
316 * src/guimain.h src/setup.rc (ID_PACKAGE_GUI_DISTNAME): Macro
317 no longer required; delete definition.
319 * src/setup.cpp (pkgSetup::DoFirstTimeInstallation):
320 <pkgSetupAction> [ID_PACKAGE_GUI_DISTNAME]: Delete reference.
321 <pkgSetupAction> [ID_PACKAGE_BASE_DISTNAME]: Update reference; repeat
322 to explicitly address each of "bin", "gui", and "lic" components.
324 * Makefile.in (TAG_SCRIPT) [PACKAGE_GUI_DISTNAME]: Delete reference.
325 (TAG_SCRIPT) [PACKAGE_BASE_DISTNAME]: Redefine as template.
327 2013-08-13 Keith Marshall <keithmarshall@users.sourceforge.net>
329 More dialogue box adjustments.
331 * src/guimain.rc: Generally clean up white-space distribution.
332 (All dialogue templates): Use WS_TABSTOP consistently.
334 2013-08-13 Keith Marshall <keithmarshall@users.sourceforge.net>
336 Circumvent Windows-7 "Program Compatibility Assistant" misbehaviour.
338 * src/manifest.rc (assembly) <compatibility>: Add <supportedOS>
339 declarations for each of Vista, Win7, and (tentatively) Win8.
341 2013-07-30 Keith Marshall <keithmarshall@users.sourceforge.net>
343 Minor modification to "about" dialogue dismissal button.
345 * src/guimain.rc (IDD_HELP_ABOUT) <DEFPUSHBUTTON>: Change label text
346 to "Dismiss"; add WS_TABSTOP style.
348 2013-07-30 Keith Marshall <keithmarshall@users.sourceforge.net>
350 Match "about" dialogue caption to main window.
352 * src/guimain.rc (IDM_HELP_ABOUT) <MENUITEM>: Match it to...
353 (IDD_HELP_ABOUT) <CAPTION>: ...this; make it representative of...
354 (ID_MAIN_WINDOW_CAPTION): ...this.
356 2013-07-30 Keith Marshall <keithmarshall@users.sourceforge.net>
358 Implement "icon legend" display as "help" menu item.
360 * src/guimain.rc (IDM_HELP_LEGEND): Make menu item active; define
361 template for the dialogue box which it is to call out.
363 * src/guiexec.cpp (AppWindowMaker::OnCommand) [IDM_HELP_LEGEND]: New
364 case handler; implement dialogue box call out, as a variation on...
365 [IDM_HELP_ABOUT]: ...this; modify it accordingly.
367 2013-07-30 Keith Marshall <keithmarshall@users.sourceforge.net>
369 Avoid discarding pending changes when catalogue is updated.
371 * src/guimain.h (IDD_CONFIRMATION): New manifest constant; define it.
372 (AppWindowMaker::ConfirmActionDialogue): New static method; declare it.
373 (AppWindowMaker::ConfirmActionRequest): New method; declare it.
375 * src/guimain.rc (IDD_CONFIRMATION): Implement new dialogue template.
377 * src/guiexec.cpp (pkgConfirmAction, pkgConfirmActionClient): New
378 static variables; they are used as pseudo-arguments, together with...
379 (DIALOGUE_DISPATCH, DIALOGUE_RESPONSE, DIALOGUE_CHKSTATE): ...these
380 new macros; define them; they facilitate the implementation of...
381 (AppWindowMaker::ConfirmActionDialogue): ...this; implement it.
382 (AppWindowMaker::ConfirmActionRequest): Implement it; use it...
383 (AppWindowMaker::OnCommand) [IDM_REPO_UPDATE]: ...here, and...
385 * src/pkgdata.cpp (AppWindowMaker::OnClose): ...here.
387 2013-07-26 Keith Marshall <keithmarshall@users.sourceforge.net>
389 Make a minor GUI layout adjustment.
391 * src/pkgview.cpp (VSASH_INIT_POS): Increment from 0.30 to 0.35; this
392 sets the initial height of the package list pane to be 35% of the main
393 window height, which, at the default initial window size, neatly fits
394 the entire "Basic Setup" package group, without scrolling, on my
395 1366x768 pixel Win7-VM display.
397 2013-07-25 Keith Marshall <keithmarshall@users.sourceforge.net>
399 Implement setup tool installer "plugin".
401 * src/setup.h (SETUP_HOOK_RUN_INSTALLER): Define request code.
403 * src/dllhook.cpp (run_basic_system_installer): Implement handler...
404 (setup_hook) [SETUP_HOOK_RUN_INSTALLER]: ...and invoke it.
405 (setup_hook) [default]: Collect diagnostics in common message digest.
406 (AppWindowMaker::SetupHookInvoked): Define and initialise it; in this
407 context, which does not conflict with prior definition in guimain.exe,
408 it must always remain true.
410 * src/setup.cpp (SetupTool) [constructor]: Invoke...
411 (SetupTool::DispatchSetupHookRequest): ...this, on user's request...
412 (SETUP_HOOK_RUN_INSTALLER): ...with this action code; this replaces...
413 (SetupTool::RunInstalledProgram): ...one reference instance for this
414 external program fork, leaving only one such reference remaining;
415 declare it to be "inline".
417 * Makefile.in (GUIMAIN_LIB_OBJECTS): New macro; define it. It
418 abstracts a subset of the object modules originally enumerated...
419 (GUIMAIN_OBJECTS): ...here, whence use it; also incorporate into...
420 (SETUP_DLL_OBJECTS): ...this.
421 (SETUP_DLL_LIBS): Make it equivalent to...
422 (GUIMAIN_LIBS): ...this.
423 (mingw-get-setup-0.dll): Use...
424 (GUI_LDFLAGS): ...this, to specify linking options, rather than...
427 2013-07-25 Keith Marshall <keithmarshall@users.sourceforge.net>
429 Add "Basic Setup" as a built-in standard package group.
431 * src/guimain.h (AppWindowMaker::SetupToolInvoked): New private
432 static member variable; declare it.
434 * src/guimain.cpp (AppWindowMaker::SetupToolInvoked): Define and
435 initialise it; this instance is specific to guimain.exe, where it
436 must always remain false.
438 * src/pkgtree.cpp (PKG_AFFILIATE_ALL): New constant; define it.
439 (load_package_group_hierarchy): Use it to specify those groups which
440 have all packages as affiliates, rather than just first root group.
441 (group_attributes): New static inline function; implement it, then...
442 (is_affiliated) [PKG_AFFILIATE_ALL]: ...use it to identify groups
443 which are specified as having all packages as affiliates.
444 (AppWindowMaker::InitPackageTreeView): Construct a temporary XML
445 specification for the "Basic Setup" package group, thence add it to
446 the package tree view; mark it as default group selection when...
447 [AppWindowMaker::SetupToolInvoked]: ...this is true.
449 2013-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
451 Implement GUI filtering of package list by group selection.
453 * src/pkgbase.h (pkgXmlNode::IsVisibleGroupMember):
454 (pkgXmlNode::IsVisibleClass): New inline methods; declare them.
455 (pkgXmlNode::MapPackageGroupHierarchy): New inline method; declare it.
456 (pkgXmlNode::SetPackageGroupHierarchyMapper): Likewise; it sets up...
457 (pkgXmlNode::PackageGroupHierarchyMapper): ...this new private static
458 function pointer; declare it as a function reference, in terms of...
459 (pkgXmlNode::GroupHierarchyMapper): ...this new typedef; define it.
461 * src/guimain.h (AppWindowMaker::PackageTreeView): Make it static.
462 (AppWindowMaker::IsPackageGroupAffiliate): Declare new static method.
464 * src/pkgbind.cpp (pkgRepository::GetPackageList): Make it invoke...
465 (pkgXmlNode::MapPackageGroupHierarchy): ...this; implement it.
467 * src/pkglist.cpp (pkgXmlNode::IsVisibleGroupMember): Implement it.
468 (pkgXmlNode::IsVisibleClass): Likewise; just provide a stub, for now.
469 (pkgListViewMaker::Dispatch): Use them to filter package list content.
470 (AppWindowMaker::UpdatePackageList): Redraw main window when done.
472 * src/pkgtree.cpp [_WIN32_IE >= 0x0400]: Require this.
473 (AppWindowMaker::PackageTreeView): Define and initialise it.
474 (AppWindowMaker::InitPackageTreeView): Extend implementation; use...
475 (map_package_group_hierarchy_recursive, load package_group_hierarchy):
476 (is_existing_group, map_package_group_hierarchy): ...these; implement
477 them locally, as file scoped static helper functions.
478 (select_key): New static local string constant; define it.
479 (pkgInitCategoryTreeGraft): Use it; also have it invoke...
480 (pkgXmlNode::SetPackageGroupHierarchyMapper): ...this; implement it.
481 (AppWindowMaker::IsPackageGroupAffiliate): Implement it; it uses...
482 (is_affiliated, is_child_affiliate): ...these helpers; provide them as
483 locally implemented, file scoped static functions.
485 * src/pkgdata.cpp (AppWindowMaker::OnNotify): Add handler for...
486 [ID_PACKAGE_TREEVIEW && TVN_SELCHANGED]: ...this notification.
488 2013-07-12 Keith Marshall <keithmarshall@users.sourceforge.net>
490 Correct a static string buffer aliasing issue.
492 * src/setup.cpp (SetupTool::setup_dll): New inline method; it ensures
493 that the buffer within approot_path() refers to the setup helper DLL.
494 (SetupTool::InitialiseSetupHookAPI): Use it, when loading the DLL.
495 (SetupTool::SetupTool): Use it again, when subsequently calling...
496 (_wunlink): ...this; it is now the preferred API, replacing...
497 (DeleteFileW): ...this; do not blindly assume that...
498 (SetupTool::dll_name): ...this remains unchanged between references;
499 it is an alias for the static buffer within approot_path().
501 2013-07-12 Keith Marshall <keithmarshall@users.sourceforge.net>
503 Add a custom profile for use by the setup tool.
505 * xml/setup.xml: New file.
507 2013-07-03 Keith Marshall <keithmarshall@users.sourceforge.net>
509 Improve handling of workspace clean-up requests.
511 * Makefile.in (mostlyclean): New rule; it replaces...
512 (clean): ...original intent delegated to 'mostlyclean'; retained and
513 augmented to remove all content specified by 'mostlyclean', plus...
514 (version.c, verinfo.h): ...these additional generated files.
515 (distclean): Modified; 'version.c' now removed by 'clean'.
517 2013-07-03 Keith Marshall <keithmarshall@users.sourceforge.net>
519 Correct an omission from the source code distribution.
521 * Makefile.in (BUILD_AUX_FILES): Add makeopts.m4; this was omitted
522 from the 2013-04-10 modification to fix MinGW-Bug #1601.
524 2013-07-03 Keith Marshall <keithmarshall@users.sourceforge.net>
526 Incorporate foundation for setup tool implementation.
528 * src/setup.cpp: New file; it implements the setup program.
529 * src/setup.rc: New file; it implements setup program resources.
531 * src/dllhook.cpp: New file; it implements a DLL bridging API to
532 facilitate invocation of mingw-get-0.dll functions from the setup
533 program, after both DLLs have been explicitly loaded at run time.
535 * src/setup.h: New file; it declares the interface between the
536 setup program and the preceding mingw-get bridging DLL.
538 * src/guimain.h: Add filter to exclude declarations specific to...
539 [IMPLEMENTATION_LEVEL == PACKAGE_BASE_COMPONENT]: ...this case, when
540 included by compilation units specific to the setup tool components.
541 (ID_MAIN_DIALOGUE_CAPTION, ID_DOWNLOAD_HOST_URI): New resource IDs.
542 (ID_PACKAGE_BASE_DISTNAME, ID_PACKAGE_DATA_DISTNAME): Likewise.
543 (ID_PACKAGE_GUI_DISTNAME): Likewise; define them.
545 * Makefile.in (all): Respecify it, in terms of...
546 (all-core, all-setup): ...these new rules; define them, and also...
547 (all-setup-exe, all-setup-dll): ...these, to force building of...
548 (mingw-get-setup.$EXEEXT, mingw-get-setup-0.dll): ...these binaries.
549 (setup.res.$OBJEXT): Specify prerequisites, as for guimain.res.$OBJEXT
550 (SETUP_TOOL_OBJECTS, SETUP_TOOL_LIBS): New macros; define them.
551 (SETUP_DLL_OBJECTS, SETUP_DLL_LIBS, SETUP_DISTNAME): Likewise.
552 (TAG_SCRIPT): Add resource script substitution definitions for...
553 (ID_PACKAGE_BASE_DISTNAME, ID_PACKAGE_DATA_DISTNAME): ...these...
554 (ID_PACKAGE_GUI_DISTNAME): ...and this.
556 2013-07-01 Keith Marshall <keithmarshall@users.sourceforge.net>
558 Add subprocess argument vector construction helpers.
560 * src/argwrap.c src/argwrap.h: New files; they implement an API for
561 construction of argument vectors, with appropriate quoting, to be
562 passed to MS-Windows exec'd subprocesses. Rewritten from scratch,
563 without reference to any prior GPL licensed implementation, with MIT
564 style licence, these provide the foundation for a possible future
565 libmingwex.a implementation; they are included here, since no such
566 implementation is currently available.
568 2013-06-28 Keith Marshall <keithmarshall@users.sourceforge.net>
570 Avoid inadvertent overwrite of existing files.
572 * src/mkpath.c (_O_NEWFILE): Conditionally specify attributes...
573 [IMPLEMENTATION_LEVEL == SETUP_TOOL_COMPONENT]: ...as they were...
574 [IMPLEMENTATION_LEVEL != SETUP_TOOL_COMPONENT]: ...else, include
575 _O_EXCL in the specified set; exclude _O_TRUNC.
577 * src/tarproc.cpp (dmh_notify_extraction_failed): New static inline
578 function; it encapsulates the diagnostic message factored out from...
579 (pkgArchiveProcessor::ExtractFile): ...here, whence use it.
580 (create_output_stream): Also used in this new static inline function;
581 it adds an appropriate diagnostic wrapper around set_output_stream(),
582 when _O_EXCL prevents overwrite of an existing file.
583 (pkgArchiveProcessor::SetOutputStream): Use it.
585 2013-06-27 Keith Marshall <keithmarshall@users.sourceforge.net>
587 Improve diagnostics for tar archive processing faults.
589 * src/pkgproc.h (TAR_ARCHIVE_FORMAT_ERROR): New constant; define it.
590 (TAR_ARCHIVE_DATA_READ_ERROR, TAR_ARCHIVE_DATA_WRITE_ERROR): Likewise.
592 * src/tarproc.cpp (dmh_notify_archive_data_exhausted): New static
593 inline function; implement it.
594 (pkgTarArchiveProcessor::GetArchiveEntry) [short header]: Use it.
595 (pkgArchiveProcessor::ExtractFile) [TAR_ARCHIVE_DATA_READ_ERROR]:
596 Likewise, use it here; also explicitlycheck for, and diagnose...
597 [TAR_ARCHIVE_DATA_WRITE_ERROR]: ...this; also add a further catch all
598 case, to diagnose any other unexpected condition.
599 (pkgTarArchiveProcessor::GetArchiveEntry) [bad checksum]: Diagnose it.
600 (pkgTarArchiveProcessor::Process): Return appropriate status codes.
601 (pkgTarArchiveProcessor::ProcessEntityData): Likewise.
603 2013-06-24 Keith Marshall <keithmarshall@users.sourceforge.net>
605 Facilitate version synchronisation for mingw-get-setup.
607 * VERSION.m4: New file.
608 * configure.ac: Include it, and...
609 (AC_INIT): ...use it.
611 2013-06-21 Keith Marshall <keithmarshall@users.sourceforge.net>
613 Keep version strings clean when release class is unspecified.
615 * Makefile.in (RC_SCRIPT, VERSION_SCRIPT): Simplify; assign specified
616 release class to local variable; delegate release tag generation to...
617 (TAG_SCRIPT): ...this; check release class variable is not an empty
618 string, before inserting it into the generated release tag.
620 2013-06-20 Keith Marshall <keithmarshall@users.sourceforge.net>
622 Rework defective assignment of product version resources.
624 * Makefile.in (BUILD_TAG): Avoid creating an empty build.tag file.
625 (PACKAGE_VERINFO_SCRIPT): Ensure that the build tag is generated as a
626 string of non-zero length. Do not assume that it comprises only two
627 elements; extract the final two, as the third and fourth elements
628 of the product version meta-data record.
630 2013-06-19 Keith Marshall <keithmarshall@users.sourceforge.net>
632 Rework defective package build time-stamping logic.
634 * Makefile.in (%.time): Make it explicitly touch its target; the
635 2013-05-15 changes, to reduce redundancy, didn't work as expected.
636 (%.tag): Add a side effect; make it also explicitly touch %.time.
637 (%.tagged.time): This is now redundant; remove it.
639 2013-06-14 Keith Marshall <keithmarshall@users.sourceforge.net>
641 Collect distributable package files in user specified directory.
643 * Makefile.in (distdir): New macro; define default as abs_builddir.
644 (srcdist, bindist, licdist): Use it; direct generated tarballs to it.
645 (%.txt.dist): New pattern rule; define, and use it to make a copy...
646 (readme.txt): ...of this, in distdir, when processing...
647 (dist): ...this build objective.
649 2013-06-14 Keith Marshall <keithmarshall@users.sourceforge.net>
651 Handle Microsoft's 32-bit vs. 64-bit time_t ambiguity.
653 * src/apihook.c: New file; it provides...
654 (have_api): ...this helper; it checks for availability of any specific
655 API function, within a specific system DLL, (MSVCRT.DLL by default).
657 * src/tarproc.cpp (have_utime64_api): New inline function; it wraps...
658 (have_api): ...this, to check whether MSVCRT.DLL provides...
659 (commit_saved_entity) [_utime64]: ...this; use if available, else...
660 (commit_saved_entity) [!_utime64]: ...fall back to using...
663 * Makefile.in (CORE_DLL_OBJECTS): Add apihook.$OBJEXT
665 2013-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
667 Facilitate package extraction and registration at setup time.
669 * src/pkgproc.h (IMPLEMENTATION_LEVEL): Add filters to facilitate
670 implementation of distinct setup time archive processing behaviour.
671 (pkgArchiveProcessor::save_on_extract): New property; declare it.
672 (pkgArchiveProcessor::SaveExtractedFiles): New method; implement it.
673 (pkgArchiveProcessor::SetOutputStream): New method; declare it.
675 * src/tarproc.cpp (IMPLEMENTATION_LEVEL): Add filters to implement
676 distinct setup time specific archive processing behaviour.
677 (pkgArchiveProcessor::SetOutputStream): Implement it.
678 (pkgTarArchiveExtractor::ProcessDataStream): Use it.
679 (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
681 2013-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
683 Implement some GUI progress metering dialogue enhancements.
685 * src/pkgbase.h (pkgProgressMeter): Don't pre-empt private features
686 of derived progress metering classes; hence, we no longer need this...
687 (AppWindowMaker): ...as a forward class declaration; delete it.
689 * src/guimain.rc (IDD_REPO_UPDATE): Resize, and adjust layout.
690 (IDD_PROGRESS_VAL, IDD_PROGRESS_MAX, IDD_PROGRESS_PCT): Add these
691 dialogue box progress counter display elements.
693 * src/pkgbind.cpp (pkgRepository::GetPackageList): Adjust style of
694 progress status messages, to suit reporting via GUI dialogue box or
695 CLI console, as appropriate.
697 * src/guiexec.cpp (ProgressMeterMaker): Redefine class, in terms of...
698 (PROGRESS_METER_CLASS): ...this new generic class name macro.
699 Reimplement private members, previously inherited from base class;
700 adjust class constructor to ensure that they are initialised.
701 Delete explicit destructor; a default destructor is now sufficient.
702 (ProgressMeterMaker::SetRange, ProgressMeterMaker::SetValue):
703 (ProgressMeterMaker::Annotate): Factor out; reimplement them...
705 * src/pmihook.cpp: ...in this new file, as generalised methods of...
706 (PROGRESS_METER_CLASS): ...the class named by this macro.
707 (PROGRESS_METER_CLASS::PutVal): New private method; implement it.
709 2013-05-31 Keith Marshall <keithmarshall@users.sourceforge.net>
711 Avoid a potential macro definition conflict.
713 * src/pkgbase.h (strcasecmp) [__MINGW32__]: Use string.h definition.
715 2013-05-15 Keith Marshall <keithmarshall@users.sourceforge.net>
717 Streamline build-time dependency tracking procedures.
719 * Makefile.in (DEPFLAGS): Adjust for simultaneous .o/.d generation.
720 (RC_DEPFLAGS): New macro; define dependency generation flags for the
721 resource compiler, which can't handle the new DEPFLAGS methodology.
722 (%.c, %.cpp, %.rc): Simplify $OBJEXT generation procedures.
723 (%.time): Remove redundantly replicated build-time procedure from...
724 (%.tagged.time): ...this; just make it a prerequisite.
726 2013-05-15 Keith Marshall <keithmarshall@users.sourceforge.net>
728 Add resources for specification of product version.
730 * src/verinfo.rc src/verinfo.h.in: New files; included by...
731 * src/guimain.rc: ...this, whence also specify version information...
732 (VERINFO_FILE_NAME, VERINFO_INTERNAL_NAME, VERINFO_FILE_DESCRIPTION):
733 (VERINFO_FILE_VERSION, VERINFO_FILE_VERSION_STRING): ...per these new
734 manifest constant macros; define them, with propagation to...
735 (ID_MAIN_WINDOW_CAPTION): ...this; keep it consistent.
737 * Makefile.in (TAG_SCRIPT): Include invocation for...
738 (PACKAGE_VERINFO_SCRIPT): ...this new macro; defined to interpret...
739 (PACKAGE_VERINFO_PRODUCT_VERSION): ...this new substitution template;
740 it is used in src/verinfo.h.in, whence verinfo.h is generated.
741 (RC_INCLUDES): Add current working directory, for...
742 (verinfo.h): ...this; add rule and dependencies to generate it.
744 2013-05-14 Keith Marshall <keithmarshall@users.sourceforge.net>
746 Make application manifest resource definition reusable.
748 * src/manifest.rc: New file; factor content from...
749 * src/guimain.rc: ...here, whence include it.
751 2013-05-08 Keith Marshall <keithmarshall@users.sourceforge.net>
753 Extend DMH services to delay-loaded DLL clients.
755 * src/dmhcore.h (dmh_bind): New function; declare it.
756 * src/dmhcore.cpp (dmh_bind): Implement it; it provides an API through
757 which the setup tool makes its existing DMH services available to post
758 install hooks in mingw-get-0.dll, which cannot be loaded until after
759 the providing package has been downloaded and unpacked.
761 2013-05-08 Keith Marshall <keithmarshall@users.sourceforge.net>
763 Avoid unnecessary command line globbing in GUI applications.
765 * src/guimain.cpp src/guistub.cpp (_CRT_glob): Declare as extern "C";
766 initialise to zero, so overriding the runtime start-up default.
768 * src/rites.c [! IMPLEMENT_INITIATION_RITES] (_CRT_glob): Initialise
769 to zero here too; lastrites.exe doesn't need globbing either.
771 2013-05-04 Keith Marshall <keithmarshall@users.sourceforge.net>
773 Address some GCC-4.7 string initialisation warnings.
775 * src/pkglist.cpp (AppWindowMaker::InitPackageListView): Declare all
776 headings[].text initialisers as 'const'; cast to 'char *' as required.
777 (pkgListViewMaker::Dispatch): Ditto, when inserting the 'const' empty
778 string into the list, as a component class value.
780 * src/pkgdata.cpp (AppWindowMaker::InitPackageTabControl): Declare all
781 TabLegend[] initialisers as 'const'; cast to 'char *' as required.
783 2013-05-02 Keith Marshall <keithmarshall@users.sourceforge.net>
785 Correct a spin wait thread synchronisation issue.
787 * src/pkgnget.cpp (pkgDownloadMeterGUI::SpinWait): Handle stop
788 requests explicitly; acknowledge when waiting thread has stopped.
789 (pkgDownloadMeterGUI::SpinWaitAction): Raise explicit stop requests;
790 wait for acknowledgement that waiting thread has stopped.
792 2013-04-23 Keith Marshall <keithmarshall@users.sourceforge.net>
794 Select compressed data streaming filters for use by setup tool.
796 * src/pkgstrm.cpp [IMPLEMENTATION_LEVEL != PACKAGE_BASE_COMPONENT]:
797 Exclude the implementations of all decompression filters, except...
798 (pkgXzArchiveStream): ...this, together with its requisite methods...
799 (pkgArchiveStream, pkgLzmaArchiveStream): ...from these.
801 2013-04-23 Keith Marshall <keithmarshall@users.sourceforge.net>
803 Adapt internet download agent for use by setup tool.
805 * src/pkgbase.h: More code rearrangement, exposing...
806 (safe_strcmp): ...this in any implementation context, controlled...
807 [USES_SAFE_STRCMP && ! HAVE_SAFE_STRCMP]: ...by this; when true...
808 (HAVE_SAFE_STRCMP): ...define this to 1, (must be non-zero).
809 [IMPLEMENTATION_LEVEL == PACKAGE_BASE_COMPONENT]: Ensure that...
810 (USES_SAFE_STRCMP): ...this is defined to 1, (i.e. non-zero).
811 (EXTERN_C): Relocate macro definition...
812 * src/pkgimpl.h: ...to here; add complementary implementation of...
813 (BEGIN_C_DECLS, END_C_DECLS): ...these new macros; define them.
815 * src/pkginet.h (pkgDownloadMeter::SpinWait): New static method;
816 declare it as inline, to be implemented elsewhere, delegating to...
817 (pkgDownloadMeter::SpinWaitAction): ...this new protected virtual
818 method; declare and implement it inline, as a "do nothing" base
819 class method, to be optionally overridden in a derived class.
821 * src/pkginet.cpp (pkgDownloadMeter::SpinWait): Implement it.
822 (pkgInternetAgent::OpenURL): Use it to invoke SpinWaitAction().
823 (USES_SAFE_STRCMP): Define as 1; (safe_strcmp() is required).
824 [IMPLEMENTATION_LEVEL != PACKAGE_BASE_COMPONENT]: Filter out code
825 which may not be required in more specialised contexts, then...
826 [IMPLEMENTATION_LEVEL == SETUP_TOOL_COMPONENT]: ...add specialised
827 variants specific to this.
829 * src/pkgnget.cpp [IMPLEMENTATION_LEVEL != PACKAGE_BASE_COMPONENT]:
830 Filter out code which may not be required in more specialised context.
831 (dmh_setpty): Provide locally declared prototype for external function.
832 (pkgDownloadMeterGUI): Add pseudo-terminal diagnostic message window.
833 (pkgDownloadMeterGUI::SpinWaitAction): Declare and implement GUI
834 specific method specialisation; it invokes a thread, running...
835 (pkgDownloadMeterGUI::SpinWait): ...this new static method overload.
837 2013-04-19 Keith Marshall <keithmarshall@users.sourceforge.net>
839 Implement pre-emptive update issue number identification.
841 * src/pkgkeys.h (serial_number): Declare function prototype.
842 * src/pkginet.cpp (serial_number): Implementation remains here;
843 promote from static to extern "C".
845 * src/pkgbind.cpp (value_assumed_new): New char constant; define it.
846 (pkgRepository::expected_issue): New private member var; declare and...
847 (pkgRepository::pkgRepository): ...initialise it, assuming new.
848 (pkgRepository::GetPackageList): Assign pre-emptively declared issue
849 number, (from package-list references), to 'expected_issue'; compare it
850 with 'current_issue' number recorded within locally stored catalogue.
851 [current_issue >= expected_issue]: Suppress redundant download; adjust
852 diagnostic messages as appropriate.
854 2013-04-10 Keith Marshall <keithmarshall@users.sourceforge.net>
856 Fix MinGW-Bug #1601 (on new issues tracker).
858 * aclocal.m4 (makeopts.m4): New build-aux module; include it.
859 (MINGW_AC_PROG_LEX): New macro; implement it.
861 * configure.ac (AC_INIT): Make version number tripartite.
862 (MINGW_AC_MAKE_NO_PRINT_DIRECTORY): Use this new makeopts.m4 macro.
863 (MINGW_AC_PROG_LEX): Use it, in place of...
864 (AC_PROG_LEX): ...this.
866 * Makefile.in (MAKE): New macro; assign using autoconf's SET_MAKE.
867 (QUIET_MAKE): New macro; derive it from $(MAKE) --no-print-directory.
868 (LEX_COMMAND, LEX_COMMAND_ABORT): New macros; define them.
869 (LEX_MISSING, LEX_MISSING_MESSAGE, LEX_OUTPUT): Likewise.
870 (FORMAT_MESSAGE, MESSAGE_FOLD_WIDTH): Likewise; implemented from...
871 (AWK_CLEAR_LINE_BUFFER, AWK_FLUSH_BUFFER, AWK_PRINT_AND_CLEAR_BUFFER):
872 (AWK_COLLECT_MESSAGE, AWK_COLLECT_BLANK_LINE, AWK_PRINT_LINE_BUFFER):
873 ...this collection of internal helper macros; define them.
874 (%.c: %.l): Replacement for built-in rule; it handles "missing lex" in
875 a manner consistent with expectations of autoconf's AC_PROG_LEX.
876 (execute-command): New phoney build goal; it is used with...
877 (WITH_REQUEST): ...this new macro, to invoke commands recursively.
879 2013-03-25 Keith Marshall <keithmarshall@users.sourceforge.net>
881 Adapt DMH for use in setup tool.
883 * src/dmh.cpp: File renamed to...
884 * src/dmhcore.cpp: ...this; some code rearranged, to facilitate...
885 [IMPLEMENTATION_LEVEL == PACKAGE_BASE_COMPONENT]: ...marking of code
886 sections which are required in the base package build, but which may
887 be filtered out of the build context for the setup tool.
889 * src/guidmh.cpp: File renamed to this...
890 * src/dmhguix.cpp: ...this; also add marking for...
891 [IMPLEMENTATION_LEVEL == PACKAGE_BASE_COMPONENT]: ...sections which
892 may be filtered out of the build context for the setup tool.
893 (dmhTypePTY::printf): Improve stratagem for output.
895 * Makefile.in (CORE_DLL_OBJECTS, GUIMAIN_OBJECTS): Adjust references
896 to renamed source files.
898 2013-03-22 Keith Marshall <keithmarshall@users.sourceforge.net>
900 Enable context hooks for build time code filtering.
902 * src/pkgimpl.h: New file; it defines...
903 (PACKAGE_BASE_COMPONENT, SETUP_TOOL_COMPONENT): ...these contexts;
904 either of these may be selected, by defining as manifest value for...
905 (IMPLEMENTATION_LEVEL): ...this; default is PACKAGE_BASE_COMPONENT.
907 * src/pkgbase.h: Include pkgimpl.h
908 [IMPLEMENTATION_LEVEL != PACKAGE_BASE_COMPONENT]: Occlude content.
910 2013-03-21 Keith Marshall <keithmarshall@users.sourceforge.net>
912 Specify additional files for clean-up.
914 * Makefile.in (distclean): Additionally specify...
915 (build.tag, build.time): ...these, as removable files.
917 2013-03-21 Keith Marshall <keithmarshall@users.sourceforge.net>
919 Add a missing distribution dependency.
921 * Makefile.in (srcdist): Explicitly require...
922 (pkginfo.c): ...this; previously, it was only an implicit build time
923 requirement, and may not have persisted until distribution time.
925 2013-03-21 Keith Marshall <keithmarshall@users.sourceforge.net>
927 Implement by-name association of resource scripts with programs.
929 * src/guidata.rc: Renamed as...
930 * src/guimain.rc: ...this, reflecting its association with...
931 * src/guimain.cpp: ...this program source.
933 * Makefile.in (GUIMAIN_OBJECTS): Update dependency...
934 (%.$OBJEXT:%.rc): ...replacing use of this pattern rule...
935 (%.res.$OBJEXT:%.rc): ...with this.
937 2013-01-18 Keith Marshall <keithmarshall@users.sourceforge.net>
939 Make GUI support visual styles in current Windows versions.
941 * src/guidata.rc: Add an appropriate inline manifest resource.
943 * src/guiexec.cpp (AppWindowMaker::Invoked): Ensure UpdateWindow() is
944 called after the initial call to AdjustLayout(); this is required to
945 ensure that all child windows are properly displayed from the outset.
947 * src/pkgview.cpp (AppWindowMaker::LayoutEngine):
948 [ID_PACKAGE_DATASHEET]: Adjust the top position of the frame, to make
949 the border coincide with the bottom border of the tab strip above.
951 2013-01-12 Keith Marshall <keithmarshall@users.sourceforge.net>
953 Merge gui-dev branch head to master; close gui-dev branch.
955 * configure.ac (AC_INIT): Reset version to 0.6; reset all package
956 files to state prevailing at gui-dev branch head.
958 2013-01-11 Keith Marshall <keithmarshall@users.sourceforge.net>
960 Create release branch for further r0.5 development.
962 * configure.ac (AC_INIT): Bump version number to 0.5.1; assign branch
963 label (mercurial bookmark) as "r0-5-1" for all files; (this is not to
964 be released, at this time).
966 2013-01-10 Keith Marshall <keithmarshall@users.sourceforge.net>
968 Implement data sheet compiler for list of installed files.
970 * src/pkgdata.cpp: #include pkgproc.h; it furnishes...
971 (pkgManifest): ...this class declaration, which is required by...
972 (DataSheetMaker::DisplayFilesManifest): ...this new private inline
973 method; declare and implement it; subsequently, invoke it...
974 (DataSheetMaker::OnPaint) [PKG_DATASHEET_INSTALLED_FILES]: ...here.
975 (pkgTroffLayoutEngine::WriteLn): Correct a defect in handling of
976 excess-length unbreakable "words" outside the viewport; previously
977 they were not dropped from the input queue, resulting in repeated
978 reprocessing in an infinite loop.
980 2013-01-09 Keith Marshall <keithmarshall@users.sourceforge.net>
982 Include release tags in GUI displayed package versions.
984 * src/pkglist.cpp (pkgVersionString) [ReleaseStatus != NULL]:
985 Append ReleaseStatus and ReleaseIndex to generated version string.
987 2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
989 Fix enumeration of pending install actions for scheduled upgrades.
991 * src/pkgdata.cpp (pkgActionItem::EnumeratePendingActions):
992 [action == ACTION_UPGRADE && classified == ACTION_INSTALL]: Enumerate
993 upgrade as a special case of the install classification.
995 2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
997 Implement "Mark All Upgrades" GUI capability.
999 * src/guimain.h (IDM_REPO_APPLY): Renumbered; make room for...
1000 (IDM_REPO_MARK_UPGRADES): ...this new constant; define it.
1002 * src/guidata.rc (IDM_REPO_MARK_UPGRADES): New option; add it...
1003 (ID_MAIN_WINDOW_WINDOW) [Installation]: ...to this drop-down menu.
1005 * src/pkgbase.h (pkgActionItem::SuppressRedundantUpgrades): New
1006 public inline method; declare it.
1008 * src/guiexec.cpp (AppWindowMaker::OnCommand):
1009 [IDM_REPO_MARK_UPGRADES]: Add case handler for this menu selection.
1010 (pkgActionItem::SuppressRedundantUpgrades): New method; implement it.
1012 2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1014 Avoid unnecessary reloading of package list.
1016 * src/guiexec.cpp (AppWindowMaker::OnCommand) [IDM_REPO_APPLY]:
1017 Do not reload package list after processing; update it in place.
1019 2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1021 Avoid potential heap corruption in action scheduler.
1023 * src/guiexec.cpp (pkgActionItem::Clear): Factor out; relocate to...
1024 * src/pkgexec.cpp (pkgActionItem::Clear): ...here; this keeps all use
1025 of new and delete operators on the same side of the EXE/DLL boundary
1026 as the constructor and destructor for pkgActionItem objects.
1027 (pkgActionItem::Schedule): Ensure that all min_wanted and max_wanted
1028 references are unique to each allocated pkgActionItem object, so that
1029 the destructor may safely release their associated heap memory blocks.
1031 2013-01-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1033 Update copyright notification for development in new year.
1035 * configure.ac (YEARS_OF_ISSUE): Add year 2013.
1037 * Makefile.in (version.c, guidata.$OBJEXT): Make them depend on...
1038 (Makefile): ...this, so YEARS_OF_ISSUE propagates to built objects.
1040 2012-12-24 Keith Marshall <keithmarshall@users.sourceforge.net>
1042 Work around a GUI action scheduling instability.
1044 * src/guimain.h (AppWindowMaker::UpdateDataSheet): Declare new method.
1045 * src/pkgdata.cpp (AppWindowMaker::UpdateDataSheet): Implement it.
1046 (AppWindowMaker::OnNotify): Use it.
1048 * src/guiexec.cpp (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]:
1049 Don't refresh package list view in-place; clear and reload it instead.
1051 2012-12-21 Keith Marshall <keithmarshall@users.sourceforge.net>
1053 Update distribution build rules.
1055 * Makefile.in (SRCDIST_FILES): Remove version.c.in; this was moved
1056 to src/version.c.in, and is now automatically included via...
1057 (SRCDIST_SUBDIRS): ...this; remove build-aux and build-aux/m4; we want
1058 only selected files from these, as filtered by specification in...
1059 (BUILD_AUX_DIRS, BUILD_AUX_FILES): ...these new macros; define them.
1060 (BLDTAG, SCMTAG, GCMTAG): New release class macros; define them.
1061 (bindist, licdist, srcdist): Use them.
1063 2012-12-21 Keith Marshall <keithmarshall@users.sourceforge.net>
1065 Update CLI implementation hooks for GUI integration.
1067 * Makefile.in (LIBEXEC_PROGRAMS): Replace gui$EXEEXT with
1068 guistub$EXEEXT; update make goal references accordingly.
1070 * src/rites.c (MINGW_GET_GUI): Redefine to be guimain$EXEEXT.
1071 (MINGW_GET_GFB): Define new fall-back; let it be guistub$EXEEXT.
1072 (RITES_IMPLEMENTATION): Perform rites for MINGW_GET_GUI.
1074 * src/clistub.c (main) [cannot exec MINGW_GET_GUI]: Try
1075 MINGW_GET_GFB instead.
1077 2012-12-21 Keith Marshall <keithmarshall@users.sourceforge.net>
1079 Rename executive core file for GUI implementation.
1081 * src/guixmld.cpp: File renamed...
1082 * src/guiexec.cpp: ...to this; its function exceeds original intent.
1083 * Makefile.in (GUIMAIN_OBJECTS): Update reference accordingly.
1085 2012-12-20 Keith Marshall <keithmarshall@users.sourceforge.net>
1087 Create foundation for implementation of package category tree view.
1089 * Makefile.in (GUIMAIN_OBJECTS): Add pkgtree.$OBJEXT reference to...
1090 * src/pkgtree.cpp: ...incorporate this new file; it implements...
1091 (AppWindowMaker::InitPackageTreeView): ...this new class method...
1092 (pkgInitCategoryTreeGraft): ...and this new extern "C" function.
1094 * src/guimain.h (pkgInitCategoryTreeGraft): Declare prototype.
1095 (AppWindowMaker::InitPackageTreeView): New private method; declare it.
1096 (AppWindowMaker::PackageTreeView): New member variable; declare it.
1098 * src/guixmld.cpp (AppWindowMaker::LoadPackageData): Call
1099 pkgInitCategoryTreeGraft(), after loading profile.xml
1100 (AppWindowMaker::Invoked): Call InitPackageTreeView()
1102 * src/pkgview.cpp (AppWindowMaker::LayoutEngine):
1103 [ID_PACKAGE_TREEVIEW]: Handle it.
1105 2012-12-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1107 Make the "Apply Changes" dialogue "failure-aware".
1109 * src/pkgtask.h (ACTION_APPLY_FAILED): Redefine, in terms of...
1110 (ACTION_INSTALL_FAILED, ACTION_REMOVE_FAILED): New manifest defines.
1111 (ACTION_UNSUCCESSFUL): New manifest constant; define it.
1113 * src/pkgdata.cpp (pkgActionItem::EnumeratePendingActions):
1114 [ACTION_UNSUCCESSFUL]: Make it a special case for enumeration.
1116 * src/guixmld.cpp (pkgApplyChanges): Enumerate...
1117 [ACTION_UNSUCCESSFUL > 0]: ...all such cases; when true...
1118 [IDD_AUTO_CLOSE_OPTION]: ...this; select alternative close-out
1119 messages, as appropriate.
1120 (pkgActionItem::Assert): Factor out; relocate to...
1121 * src/pkgexec.cpp (pkgActionItem::Assert): ...here; this moves its
1122 object code into the mingw-get DLL.
1124 * src/pkgunst.cpp (pkgRemove) [ACTION_REMOVE_FAILED]:
1125 * src/pkginst.cpp (pkgInstall) [ACTION_INSTALL_FAILED]:
1126 Assert as appropriate.
1128 2012-12-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1130 Improve progress reporting in "Apply Changes" dialogue.
1132 * src/pkgstat.h: New header file; it declares...
1133 (pkgSpinWait): ...this new pure abstract base class; it specifies an
1134 infrastructure for posting arbitrary text to dialogue controls.
1136 * src/pkgexec.cpp (pkgSpinWait): Implement its static elements.
1137 (pkgActionItem::Execute): Dispatch progress reports, handled by...
1138 (pkgSpinWait::Report, pkgSpinWait::Indicator): ...these.
1140 * src/guixmld.cpp (pkgDialogueSpinWait): New class; declare it and
1141 implement locally. It is derived from, and provides a listener for...
1142 (pkgSpinWait): ...this abstract class.
1143 (pkgApplyChanges): Use it.
1145 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDataStream): Call...
1146 (pkgSpinWait::Report): ...this, to report extracted files.
1148 * src/pkgunst.cpp (pkg_unst): Call...
1149 (pkgSpinWait::Report): ...this, to report deleted files.
1151 * src/sysroot.cpp (pkgXmlDocument::UpdateSystemMap): Call...
1152 (pkgSpinWait::Report, pkgSpinWait::Indicator): ...these, to confirm
1153 continuing database update activity.
1155 2012-12-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1157 Update tab display on right-click in package list view.
1159 * src/pkgdata.cpp (AppWindowMaker::OnNotify) [NM_RCLICK]:
1160 Call DataSheetMaker::DisplayData(), before invoking pop-up menu.
1162 2012-12-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1164 Add more protection against NULL pointer abuse.
1166 * src/pkgbase.h (pkgActionItem::Reset): Method renamed to...
1167 * src/guixmld.cpp (pkgActionItem::Assert): ...this; also renamed here.
1168 (AppWindowMaker::OnCommand): When calling...
1169 (pkgListViewMaker::MarkScheduledActions): ...this, pass argument as...
1170 (pkgXmlDocument::ClearScheduledActions): ...pointer returned by this.
1172 * src/pkgdata.cpp (AppWindowMaker::MarkSchedule):
1173 [pending_actions == NULL]: Do not propagate invocation request to...
1174 (pkgListViewMaker::MarkScheduledActions): ...this.
1176 * src/pkglist.cpp (pkgListViewMaker::MarkScheduledActions):
1177 [schedule == NULL]: Do nothing.
1179 2012-12-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1181 Implement some additional permanent debugging support.
1183 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
1184 [DEBUG_TRACE_DEPENDENCIES]: Enable DMH digest mode for messages.
1186 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDataStream):
1187 [DEBUG_TRACE_TRANSACTIONS]: Add logging of installed file path names.
1189 2012-12-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1191 Insert a missing snprintf format effector.
1193 * src/pkgnget.cpp (pkgDownloadMeterGUI::Update): Add omitted '%'
1194 format specifier, in "%%", for formatting percentage-complete value.
1195 Rename "size_buf" automatic variable as "buf"; this results in shorter
1196 source lines, and consequently a tidier source code layout.
1197 (pkgDownloadMeterGUI::ResetGUI): Likewise s/size_buf/buf/
1199 2012-12-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1201 Add a missing header reference.
1203 * src/approot.h: Include stdint.h; this ensures that wchar_t is
1204 properly typedef'd, before attempting to use it.
1206 2012-12-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1208 Make a clone of the package menu available as a pop-up.
1210 * src/guimain.h (AppWindowMaker::SelectPackageAction): New private
1213 * src/pkgdata.cpp (AppWindowMaker::SelectPackageAction): Implement it.
1214 (AppWindowMaker::OnNotify) [ID_PACKAGE_LISTVIEW]: Use it.
1216 2012-12-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1218 Improve conditionally enabled state manipulation for menu items.
1220 * src/guidata.rc (IDM_REPO_APPLY): Set its initial state as GRAYED.
1222 * src/pkgdata.cpp (AppWindowMaker::UpdatePackageMenuBindings):
1223 [IDM_PACKAGE_REINSTALL]: Always leave it GRAYED; this is a temporary
1224 provision, until the GUI is updated to support "reinstall" capability.
1225 [IDM_REPO_APPLY && !(EnumeratePendingActions > 0)]: Make it GRAYED.
1226 [IDM_REPO_APPLY && (EnumeratePendingActions > 0)]: Enable it.
1228 2012-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1230 Implement GUI bindings for processing a schedule of actions.
1232 * src/guimain.h (IDD_DMH_CONSOLE): New resource ID; define it.
1233 (IDD_APPLY_EXECUTE): New dialogue template resource ID; define it.
1234 (AppWindowMaker::ExecuteScheduledActions): New method; declare it.
1236 * src/guidata.rc (IDD_APPLY_EXECUTE): Implement dialogue template.
1238 * src/guixmld.cpp (pkgApplyChanges): New thread function; implement it.
1239 (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]: Use it; it is invoked...
1240 (IDD_APPLY_EXECUTE): ...via this dialogue box, subsequently calling...
1241 (AppWindowMaker::ExecuteScheduledActions): ...this; implement it.
1243 * src/pkgexec.cpp (pkgActionItem::Execute): Add argument; use it.
1244 (pkgActionItem::~pkgActionItem): Unlink chained references.
1246 * src/pkgbase.h (pkgActionItem::Execute): Adjust prototype.
1248 2012-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1250 Do not preserve unnecessary download requests.
1252 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles):
1253 [(flags & ACTION_INSTALL) != ACTION_INSTALL]: Actions having no
1254 "install" effect do not require a download; cancel any associated
1257 2012-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1259 Implement GUI bindings for package download agent.
1261 * src/guimain.h (IDD_PROGRESS_VAL, IDD_PROGRESS_MAX):
1262 (IDD_PROGRESS_PCT): New manifest resource IDs; define them. They will
1263 be used to identify dialogue controls, to be associated with...
1264 (IDD_APPLY_DOWNLOAD): ...this new dialogue template ID; define it.
1265 (AppWindowMaker::DownloadArchiveFiles): New inline method; declare it.
1267 * src/guidata.rc (IDD_APPLY_DOWNLOAD): Implement dialogue template.
1269 * src/pkgbase.h (pkgActionItem::DownloadArchiveFiles): New public
1270 inline method; declare it. It overloads an existing private method of
1271 the same name, which it subsequently invokes.
1273 * src/pkginet.h: New header file; it declares...
1274 (pkgInvokeDownload): ...this new extern "C" function prototype, and...
1275 (pkgDownloadMeter): ...this abstract class; it is factored from its
1276 original implementation in pkginet.cpp, augmented by addition of...
1277 (pkgDownloadMeter::primary): New static member variable; declare it.
1278 (pkgDownloadMeter::UseGUI): New public method; implement it inline.
1279 (pkgDownloadMeter::ResetGUI): New public method; declare it, providing
1280 a do-nothing inline default implementation. Any derived class, which
1281 supports GUI capability, should override this.
1283 * src/pkgnget.cpp: New file; it implements...
1284 (pkgDownloadMeterGUI): New class, derived from pkgDownloadMeter.
1285 (pkgActionItem::DownloadArchiveFiles): New overloaded inline method.
1286 (AppWindowMaker::DownloadArchiveFiles): New inline method.
1287 (pkgInvokeDownload): New dialogue box worker thread handler.
1289 * src/pkginet.cpp: Include pkginet.h; hence...
1290 (pkgDownloadMeter): ...remove redundant class declaration.
1291 (pkgDownloadMeter::primary): Define and initialise it.
1292 (pkgInternetStreamingAgent::Get) [pkgDownloadMeter::UseGUI]: Delegate
1293 progress metering to referenced pkgDownloadMeterGUI class instance.
1294 [! pkgDownloadMeter::UseGUI]: Continue to use the existing built-in
1295 pkgDownloadMeterTTY mechanism.
1296 (pkgActionItem::DownloadSingleArchive) [ACTION_DOWLOAD_FAILED]: Assert
1297 this initially; subsequently clear it on successful completion.
1298 (pkgActionItem::DownloadArchiveFiles): Collect diagnostic messages
1299 into a single DMH_BEGIN_DIGEST ... DMH_END_DIGEST group.
1301 * src/guixmld.cpp: Include pkginet.h; it is required by...
1302 (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]: Use pkgInvokeDownload.
1304 * Makefile.in (GUIMAIN_OBJECTS): Include pkgnget.$OBJEXT
1306 2012-12-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1308 Implement "Discard" handler for GUI "Apply Changes" dialogue.
1310 * src/pkgbase.h (pkgActionItem::Reset): New public method; declare it.
1311 (pkgActionItem::Clear): New public method; declare two overloaded
1312 variants, of which implement one inline.
1313 (pkgXmlDocument::ClearScheduledActions): New public method; declare
1314 and implement it inline.
1316 * src/pkgtask.h (ACTION_DOWNLOAD_FAILED, ACTION_APPLY_FAILED): New
1317 manifest bit-flag constants; define them. They provide a mechanism
1318 for blocking the discard event in respect of failed actions.
1320 * src/guixmld.cpp (pkgActionItem::Reset): Implement it.
1321 (pkgActionItem::Clear): Implement second, out-of-line variant.
1322 (ACTION_PRESERVE_FAILED): New local manifest bit-flag constant; define
1323 it as an aggregate of ACTION_DOWNLOAD_FAILED and ACTION_APPLY_FAILED.
1324 (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]: Use them.
1326 2012-12-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1328 Implement GUI dialogue for "Apply Changes" action approval.
1330 * src/guidata.rc (ID_MAIN_WINDOW_MENU): Rename...
1331 ("&Repository"): ...this drop-down menu entry...
1332 ("&Installation"): ...this; add...
1333 ("&Apply Changes"): ...this new selection.
1334 (IDD_APPLY_APPROVE): New dialogue box resource template; define it.
1335 (SS_CTEXTBOX): New aggregate style convenience macro; define it.
1336 (ES_VT100): Likewise.
1338 * src/guimain.h (IDM_REPO_APPLY): New resource ID; define it.
1339 (IDM_REPO_QUIT): Redefined resource ID; was 302; changed to 312.
1340 (IDD_APPLY_APPROVE, IDD_PROGRESS_TXT): New resource IDs; define them.
1341 (IDD_APPLY_REMOVES_PACKAGES, IDD_APPLY_REMOVES_SUMMARY): Likewise.
1342 (IDD_APPLY_INSTALLS_PACKAGES, IDD_APPLY_INSTALLS_SUMMARY): Likewise.
1343 (IDD_APPLY_UPGRADES_PACKAGES, IDD_APPLY_UPGRADES_SUMMARY): Likewise.
1344 (ID_APPLY, ID_DISCARD, ID_DEFER): New response IDs; define them.
1345 (AppWindowMaker::EnumerateActions): New inline method; declare it.
1346 (AppWindowMaker::DialogueResponse): New inline method; declare and
1349 * src/guixmld.cpp (pkglist.h): #included.
1350 (dmh_setpty): Add locally declared prototype.
1351 (AppWindowMaker::EnumerateActions): Implement it.
1352 (pkgActionCount): New static helper function; implement it.
1353 (ACTION_APPLY, APPLIES_TO): New macros; define them.
1354 (FMT_APPLY_REMOVES, FMT_APPLY_INSTALLS, FMT_APPLY_UPGRADES): New
1355 manifest string constants; define them.
1356 (pkgApplyApproved): New static call-back function; implement...
1357 (AppWindowMaker::OnCommand) [IDM_REPO_APPLY]: ...and use it.
1359 2012-12-06 Keith Marshall <keithmarshall@users.sourceforge.net>
1361 Implement enhanced action item enumeration capability.
1363 * src/pkgbase.h (pkgActionItem::EnumeratePendingActions): New public
1364 method; declare it. It provides the capability to enumerate scheduled
1365 actions, filtered by action classification; when invoked such that it
1366 selects all actions, it may be used as a replacement for...
1367 (pkgActionItem::Unapplied): ...this; delete declaration.
1369 * src/pkgdata.cpp (pkgActionItem::EnumeratePendingActions): Implement
1370 it; it is derived, with enhancement, from original implementation...
1371 (pkgActionItem::Unapplied): ...of this; delete it, and...
1372 (AppWindowMaker::OnClose): ...update calling reference accordingly.
1374 2012-12-05 Keith Marshall <keithmarshall@users.sourceforge.net>
1376 Implement PTY display emulation for GUI mode DMH.
1378 * src/dmhcore.h (dmhTypeGeneric::set_console_hook): New public virtual
1379 method; declare it, providing inline default do-nothing implementation.
1380 (dmhTypeGeneric::severity_tag): New protected static method; declare it.
1381 (dmhTypeGeneric::notification_format): New protected static property;
1384 * src/dmh.cpp (dmhTypeGeneric::severity_tag): Implement it.
1385 (dmhTypeGeneric::notification_format): Define and initialise it.
1386 (dmhTypeTTY::notify): Use them.
1387 (dmh_setpty): New function; declare prototype and implement it.
1389 * src/guidmh.cpp (dmhTypePTY): New locally implemented class.
1390 (dmhTypeGUI::set_console_hook): New virtual method; declare and
1391 implement it; it stores a dmhTypePTY reference pointer into...
1392 (dmhTypeGUI::console_hook): ...this new private member variable.
1393 (dmhTypeGUI::dmhTypeGUI): Initialise it.
1394 (dmhTypeGUI::notify) [console_hook != NULL]: Delegate to it.
1395 (dmhTypeGUI::printf) [console_hook != NULL]: Likewise.
1397 2012-12-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1399 Implement generalised API for dialogue boxes with worker threads.
1401 * src/guimain.h (pkgDialogueThread): New typedef; declare it.
1402 (AppWindowMaker::DialogueThread): New static property; declare it.
1403 (AppWindowMaker::DispatchDialogueThread): New method; declare it.
1405 * src/guixmld.cpp: Formatting of several comments adjusted.
1406 (pkgUpdate, pkgInitDataLoad): Defunct functions; replaced by...
1407 (pkgDialogue): ...this new static call-back function; implement it.
1408 (AppWindowMaker::DialogueThread): Instantiate and initialise it.
1409 (AppWindowMaker::DispatchDialogueThread): Implement it.
1410 (AppWindowMaker::Invoked): Use it to invoke pkgInvokeInitDataLoad()...
1411 (AppWindowMaker::OnCommand): ...and pkgInvokeUpdate().
1413 2012-12-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1415 Consolidate GUI implementation for package list view management.
1417 * src/pkglist.h (pkgListViewMaker::GetTitle): Disused overloaded
1418 method; remove all declarations.
1419 (pkgListViewMaker::GetVersionString): Disused method; remove
1421 (pkgListViewMaker::GetItem): New private inline method; declare it.
1422 (pkgListViewMaker::UpdateItem): New private method; declare it.
1423 (pkgListViewMaker::UpdateListView): New public method; declare it.
1424 (pkgListViewMaker::MarkScheduledActions): Likewise.
1426 * src/guimain.h (AppWindowMaker::MarkSchedule): New public inline
1427 method; declare it, but defer implementation to...
1429 * src/pkgdata.cpp (AppWindowMaker::MarkSchedule): ...here; not used
1430 elsewhere, it is derived from, and replaces...
1431 (pkgMarkSchedule): ...this function; factor out redundant code, in
1432 favour of delegation to pkgListViewMaker::MarkScheduledActions(), with
1433 following call to AppWindowMaker::UpdatePackageMenuBindings(); update
1434 calling function references...
1435 (AppWindowMaker::UnmarkSelectedPackage): ...here, and...
1436 (AppWindowMaker::Schedule): ...here.
1438 * src/pkglist.cpp (pkgVersionString): New static function; implement
1439 it as a local replacement for...
1440 (pkgListViewMaker::GetVersionString): ...this defunct class method.
1441 (pkgGetTitle): New overloaded static function; implement two variants,
1442 as local replacements for...
1443 (pkgListViewMaker::GetTitle): ...this defunct overloaded class method.
1444 (pkgListViewMaker::UpdateItem): Implement it; factor code from...
1445 (pkgListViewMaker::InsertItem): ...here, whence use it.
1446 (pkgListViewMaker::MarkScheduledActions): Implement it.
1447 (pkgListViewMaker::UpdateListView): Implement it.
1448 (pkgListViewMaker::pkgListViewMaker): Remove references to...
1449 (LVIF_TEXT): ...this.
1451 2012-11-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1453 Increase width of window sash bars by 50%.
1455 * src/guimain.h (SASH_BAR_THICKNESS): Increase from 4 to 6; this makes
1456 it easier to grab the sash bars, so they may be dragged; IMO, it also
1457 results in a better appearance.
1459 2012-11-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1461 Maintain consistent internal vs. external installation records.
1463 * src/pkginst.cpp (pkgInstall): Set "installed" attribute on internal
1464 package reference, to "yes", after installation; CLI didn't need this,
1465 but GUI will do so, for any package revisited in a single session.
1467 * src/pkgunst.cpp (pkgRemove): Similarly, negate "installed" attribute
1468 after package removal.
1470 2012-11-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1472 Refactor to consolidate three instances of duplicate code.
1474 * src/pkglist.h (pkgGetStatus): New function; declare it.
1475 * src/pkglist.cpp (pkgGetStatus): Implement it; factor out from...
1476 (pkgListViewMaker::InsertItem): ...here, whence use it.
1477 * src/pkgdata.cpp (pkgMarkSchedule): Likewise here...
1478 (DataSheetMaker::DisplayGeneralData): ...and here.
1480 2012-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1482 Add GUI support for install, upgrade, and remove action scheduling.
1484 * src/guimain.h (EXTERN_C): Ensure it is defined.
1485 (pkgActionItem): Add forward declaration of class name.
1486 (pkgMarkSchedule): New EXTERN_C function; declare and prototype it.
1487 (AppWindowMaker::OnClose): New virtual method; declare it.
1488 (AppWindowMaker::Schedule): New public method; declare it.
1489 (AppWindowMaker::UnmarkSelectedPackage): Likewise.
1491 * src/pkgbase.h (pkgActionItem::HasAttribute) [this == NULL]: Add
1492 protective logic; ignore attempts to access non-existent objects.
1493 (pkgActionItem::SelectPackage) [this == NULL]: Likewise.
1494 (pkgActionItem::Selection) [this == NULL]: Likewise.
1495 (pkgActionItem::GetReference): New overloaded public method; declare
1496 prototype variant with argument type of pkgXmlNode*.
1497 (pkgActionItem::Unapplied): New public method; declare it.
1498 (pkgActionItem::CancelScheduledAction): Likewise.
1499 (pkgXmlDocument::Schedule): Change return type from void to
1500 pkgActionItem*; add default argument values.
1502 * src/guixmld.cpp (AppWindowMaker::OnCommand): Add menu case hooks...
1503 [IDM_PACKAGE_INSTALL]: ...to schedule package 'install' action...
1504 [IDM_PACKAGE_UPGRADE]: ...package 'upgrade' action...
1505 [IDM_PACKAGE_REMOVE]: ...package 'remove' action, or...
1506 [IDM_PACKAGE_UNMARK]: ...to cancel any of these scheduling requests.
1507 [IDM_REPO_QUIT]: Correct typo; s/WM_QUIT/WM_CLOSE/ in comment.
1509 * src/pkgdata.cpp (pkgMarkSchedule): Implement it.
1510 (pkgActionItem::CancelScheduledAction): Implement it.
1511 (pkgActionItem::Unapplied): Implement it.
1512 (AppWindowMaker::UpdatePackageMenuBindings): Improve comments.
1513 (AppWindowMaker::UnmarkSelectedPackage): Implement it.
1514 (AppWindowMaker::Schedule): Implement it.
1515 (AppWindowMaker::OnClose): Implement it.
1517 * src/pkgdeps.cpp (pkgActionItem::GetReference): Implement overload.
1518 (pkgXmlDocument::Schedule): Change return type, and return value.
1519 [this == NULL]: Add protective logic; ignore non-existent objects.
1520 [name == NULL]: Do not schedule; just return existing action list.
1522 2012-11-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1524 Add dynamically enabled state control for package menu items.
1526 * src/guimain.h (AppWindowMaker::UpdatePackageMenuBindings): New
1527 private method; declare it.
1529 * src/pkgdata.cpp (AppWindowMaker::UpdatePackageMenuBindings):
1530 Implement it, and...
1531 (AppWindowMaker::OnNotify): ...use it.
1533 2012-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1535 Avoid excessive inter-word spaces in adjusted text.
1537 * src/pkgdata.cpp (pkgTroffLayoutEngine::WriteLn): Check extent of
1538 padding to be added at each inter-word space, when adjusting text; do
1539 not adjust, if it exceeds 5% of available display pane width.
1541 2012-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1543 Elide unbreakable text which will not fit within display width.
1545 * src/pkgdata.cpp (pkgTroffLayoutEngine::WriteLn): Add logic to detect
1546 over-width unbreakable text; elide characters from the right, to make
1547 it fit within the display width, with trailing ellipsis.
1549 2012-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1551 Add content compiler for package data sheet "general" tab.
1553 * src/pkgbase.h (pkgActionItem::PrintURI): Make it public. Add a
1554 call-back reference argument, for output function; assign puts() as
1555 default, where previously had hard coded printf() emulating puts()
1557 * src/pkginet.cpp (pkgActionItem::PrintURI): Use call-back hook.
1559 * src/pkgdata.cpp (DataSheetMaker::Display): New static property; it
1560 stores a reference to the active class instance, so static call-back
1561 methods may delegate processing requests to non-static methods.
1562 (DataSheetMaker::Advance): New static property; it is used to instruct
1563 call-back methods to interpose paragraph leading it the output stream.
1564 (DataSheetMaker::FormatRecord): New private method; implement it.
1565 (DataSheetMaker::FormatText): Don't pass "canvas" as an argument; we
1566 can access it directly as a class property. Update all callers as
1567 necessary, to conform to modified function prototype.
1568 (pkgListSelection): New static function; implement it, and...
1569 (DataSheetMaker::OnPaint): ...use it in switch cases, when calling...
1570 [PKG_DATASHEET_GENERAL]: DataSheetMaker::DisplayGeneralData(), and...
1571 [PKG_DATASHEET_DESCRIPTION]: DataSheetMaker::DisplayDescription().
1572 (DataSheetMaker::DisplayGeneralData): New public method; implement it.
1573 (DataSheetMaker::DisplayPackageURL): New static method; implement it.
1574 (DataSheetMaker::DisplayLicenceURL): Likewise.
1575 (DataSheetMaker::DisplaySourceURL): Likewise.
1577 2012-10-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1579 Fix error in counting of catalogue files during loading.
1581 * src/pkgbind.cpp (pkgRepository::GetPackageList): Increment count
1582 variable once only, at start of each cycle of the catalogue loading
1583 loop; previous strategy of counting in discrete logic paths could
1584 miss several required increments, particularly in CLI mode.
1586 2012-10-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1588 Avoid DMH message digest fragmentation when downloading.
1590 * src/dmh.h (DMH_GET_CONTROL_STATE): New macro; define it.
1591 * src/pkginet.cpp (pkgInternetAgent::OpenURL): Use it; do not close
1592 locally opened message digest, when called with one already open.
1594 2012-10-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1596 Initiate progress metering for catalogue load and update operations.
1598 * src/guidata.rc (IDD_REPO_UPDATE): New dialogue template; define it.
1599 (IDM_REPO_UPDATE): Enable selection from "Repository" drop-down menu.
1601 * src/guimain.h (IDD_REPO_UPDATE, IDD_CLOSE_OPTIONS):
1602 (IDD_AUTO_CLOSE_OPTION, IDD_PROGRESS_BAR, IDD_PROGRESS_MSG): New
1603 resource identification manifest constants; define them.
1604 (pkgXmlNode, pkgProgressMeter): Add forward class declarations.
1605 (AppWindowMaker::AttachedProgressMeter): New private data; define...
1606 (AppWindowMaker::AppWindowMaker): ...and initialise it.
1607 (AppWindowMaker::AttachProgressMeter): New public method; declare it.
1608 (AppWindowMaker::DetachProgressMeter): Likewise.
1609 (AppWindowMaker::LoadPackageData, AppWindowMaker::ClearPackageList):
1610 (AppWindowMaker::UpdatePackageList): Make them public.
1612 * src/pkgbase.h (pkgProgressMeter): New abstract class; declare it.
1613 (AppWindowMaker) [GUIMAIN_H undefined]: Add forward class declaration.
1614 (pkgXmlDocument::progress_meter): New private data member; declare...
1615 (pkgXmlDocument::pkgXmlDocument): ...and initialise it.
1616 (pkgXmlDocument::ProgressMeter, pkgXmlDocument::AttachProgressMeter):
1617 (pkgXmlDocument::DetachProgressMeter): New public inline methods;
1620 * src/pkgview.cpp (WTK::GenericDialogue): Delete disused reference.
1621 (AppWindowMaker::OnCommand): Factor out implementation; relocate it...
1622 * src/guixmld.cpp: ...to here; thus it may utilise dependants of...
1623 (ProgressMeterMaker): ...this new locally implemented class.
1624 (AppWindowMaker::AttachProgressMeter): Implement it.
1625 (AppWindowMaker::AttachProgressMeter): Likewise.
1626 (pkgProgressMeter::~pkgProgressMeter): Likewise.
1627 (pkgUpdate, pkgInvokeUpdate): New static functions; implement them.
1628 (AppWindowMaker::Invoked): Replace direct call to LoadPackageData by
1629 an indirect invocation, via a progress metering dialogue box using...
1630 (pkgInitDataLoad): ...this new static callback function, invoking...
1631 (pkgInvokeInitDataLoad): ...this new static thread function, whence...
1632 (AppWindowMaker::LoadPackageData): ...this; add hook-up call to...
1633 (pkgXmlDocument::AttachProgressMeter): ...incorporate this.
1635 * src/pkgbind.cpp (pkgRepository::total, pkgRepository::count): New
1636 private static properties; declare and instantiate them; provide...
1637 (pkgRepository::Reset, pkgRepository::IncrementTotal): ...new public
1638 static methods to manipulate them; declare and implement them inline.
1639 (pkgRepository::GetPackageList): Use them to manage updates to the
1640 pkgProgressMeter class instance, if any, which has been bound to
1641 the controlling pkgXmlDocument class instance, when invoking...
1642 (pkgXmlXmlDocument::BindRepositories): ...this.
1644 2012-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1646 Associate DMH message boxes with active dialogues.
1648 * src/guidmh.cpp (last_active_popup): New static inline function.
1649 (dmhTypeGUI::dispatch_message): Use it.
1651 2012-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1653 Fix Diagnostic Message Handler initialisation logic.
1655 * src/dmh.cpp (dmh_init) [DMH_SUBSYSTEM_GUI]: Correct a logic error;
1656 it previously fell through after any successful initialisation of the
1657 DMH_SUBSYSTEM_GUI handler, replacing it with a DMH_SUBSYSTEM_TTY type
1658 handler. Also, assign a heap copy of the passed "progname" string
1659 resource, which is volatile, to ensure that the handler retains a
1662 2012-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1664 Implement preliminary GUI mode data sheet compiler.
1666 * src/guimain.h (DataSheetMaker): New class; forward declare it.
1667 (AppWindowMaker::InitPackageTabControl): New private method; declare it.
1668 (AppWindowMaker::DataSheet, AppWindowMaker::PackageTabControl):
1669 (AppWindowMaker::TabDataPane, AppWindowMaker::PackageTabPane): New
1670 private data members; declare them.
1671 (ID_SASH_WINDOW_PANE_CLASS): New string resource identifier; define it.
1672 (ID_PACKAGE_DATASHEET, ID_PACKAGE_TABPANE): New window identifiers;
1675 * src/guidata.rc (ID_SASH_WINDOW_PANE_CLASS): Specify string resource.
1677 * src/pkgview.cpp (AppWindowMaker::OnSize): Add handler for...
1678 (ID_PACKAGE_TABPANE, ID_PACKAGE_TABCONTROL, ID_PACKAGE_DATASHHET):
1679 ...this group of sash pane child window entities.
1680 (AppWindowMaker::OnNotify): Comment out disused stub implementation.
1682 * src/pkgshow.cpp (pkgUTF8Parser): Factor out class declaration...
1683 (UTF32_MAX, UTF32_OVERFLOW, UTF32_INVALID): ...these definitions...
1684 (utf32_t): ...and this typedef; relocate to, and #include...
1685 * src/pkgdata.h: ...this new header file.
1687 * src/pkgdata.cpp (DataSheetMaker): New class; declare and implement it.
1688 (AppWindowMaker::InitPackageTabControl): Implement it.
1689 (AppWindowMaker::OnNotify): Reimplement it.
1691 * Makefile.in (GUIMAIN_OBJECTS): Add pkgdata.OBJEXT
1693 * src/guixmld.cpp (AppWindowMaker::Invoked): Add call to invoke
1694 AppWindowMaker::InitPackageTabControl()
1696 2012-10-09 Keith Marshall <keithmarshall@users.sourceforge.net>
1698 Remove a grossly heuristic list view hack.
1700 * src/pkglist.cpp (pkgListViewMaker::GetTitle): Remove code for the
1701 heuristic deletion of any redundant package name prefixes from package
1702 title attributes; by now, all such prefixes should have been removed
1703 from the catalogue, explicitly, at source.
1705 2012-10-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1707 Implement GUI list view compiler for XML catalogue.
1709 * src/pkgview.cpp (AppWindowMaker::LayoutEngine): Add case handler...
1710 [pane_id == ID_PACKAGE_LISTVIEW]: ...for this window pane class.
1712 * src/guimain.h (ID_PKGLIST_TABLE_HEADINGS):
1713 (ID_PKGNAME_COLUMN_HEADING, ID_PKGTYPE_COLUMN_HEADING):
1714 (ID_INSTVER_COLUMN_HEADING, ID_REPOVER_COLUMN_HEADING):
1715 (ID_PKGDESC_COLUMN_HEADING): New resource identifiers; define them.
1716 (ID_PKGSTATE_AVAILABLE, ID_PKGSTATE_AVAILABLE_NEW):
1717 (ID_PKGSTATE_AVAILABLE_LOCKED, ID_PKGSTATE_AVAILABLE_INSTALL):
1718 (ID_PKGSTATE_INSTALLED_CURRENT, ID_PKGSTATE_INSTALLED_LOCKED):
1719 (ID_PKGSTATE_INSTALLED_OLD, ID_PKGSTATE_UPGRADE, ID_PKGSTATE_REMOVE):
1720 (ID_PKGSTATE_REINSTALL, ID_PKGSTATE_DOWNGRADE, ID_PKGSTATE_BROKEN):
1721 (ID_PKGSTATE_PURGE): New icon resource identifiers; define them.
1722 (AppWindowMaker::InitPackageListView): New private method; declare it.
1723 (AppWindowMaker::UpdatePackageList): New private method; declare it.
1724 (AppWindowMaker::ClearPackageList): New private method; declare and
1725 implement it inline.
1727 * src/guidata.rc (ID_PKGSTATE_AVAILABLE, ID_PKGSTATE_AVAILABLE_NEW):
1728 (ID_PKGSTATE_AVAILABLE_LOCKED, ID_PKGSTATE_AVAILABLE_INSTALL):
1729 (ID_PKGSTATE_INSTALLED_CURRENT, ID_PKGSTATE_INSTALLED_LOCKED):
1730 (ID_PKGSTATE_INSTALLED_OLD, ID_PKGSTATE_UPGRADE, ID_PKGSTATE_REMOVE):
1731 (ID_PKGSTATE_REINSTALL, ID_PKGSTATE_DOWNGRADE, ID_PKGSTATE_BROKEN):
1732 (ID_PKGSTATE_PURGE): New icon resources; implement them.
1734 * icons/state01.ico icons/state02.ico icons/state03.ico:
1735 * icons/state04.ico icons/state05.ico icons/state06.ico:
1736 * icons/state07.ico icons/state08.ico icons/state09.ico:
1737 * icons/state10.ico icons/state11.ico icons/state12.ico:
1738 * icons/state13.ico: New files. All are cloned from synaptic icons;
1739 see src/guimain.rc for symbolic/functional reference names.
1741 * src/pkglist.h [GUIMAIN_H defined] (pkgListViewMaker): New class;
1742 declare it for use in modules which #include guimain.h
1744 * src/pkglist.cpp: New file; it implements...
1745 (pkgListViewMaker): ...this new class, and its clients...
1746 (AppWindowMaker::InitPackageListView): New method.
1747 (AppWindowMaker::UpdatePackageList): Likewise.
1749 * Makefile.in (GUIMAIN_OBJECTS): Add pkglist.OBJEXT
1751 * src/guixmld.cpp (AppWindowMaker::Invoke): Call InitCommonControls(),
1752 as prerequisite to AppWindowMaker::InitPackageListView(); follow up by
1753 calling AppWindowMaker::AdjustLayout().
1755 2012-10-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1757 Add GUI initialiser hook for XML catalogue interface.
1759 * src/guimain.h (AppWindowMaker::Invoke): New public method; declare
1760 it; it overrides the generic WTK::MainWindowMaker::Invoke() method, so
1761 providing the initialiser hook which will invoke this...
1762 (AppWindowMaker::LoadPackageData): ...new private method; declare it.
1764 * src/guixmld.cpp: New file.
1765 (AppWindowMaker::Invoke): Implement it.
1766 (AppWindowMaker::LoadPackageData): Likewise.
1768 * Makefile.in (GUIMAIN_OBJECTS): Add guixmld.OBJEXT
1770 2012-09-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1772 Add initial working GUI mode DMH class implementation.
1774 * src/dmh.h (DMH_SEVERITY_MASK): New manifest constant; define it.
1775 (DMH_DIGEST_MASK, DMH_COMPILE_DIGEST, DMH_DISPATCH_DIGEST): Likewise.
1776 (DMH_BEGIN_DIGEST, DMH_END_DIGEST): Redefine in terms of above.
1778 * src/dmhcore.h: New header file; it declares...
1779 (dmhTypeGeneric): ...this abstract base class, factored from...
1781 * src/dmh.cpp (dmhTypeGeneric): ...here, whence remove it; it is
1782 still required, thus include dmhcore.h so that it remains visible.
1783 (dmh_exception): Remove errant namespace qualifier from constructor.
1784 (dmhTypeGUI): Delete class declaration and original constructor.
1785 (dmh_init): Delete reference to dmhTypeGUI; replace by call to...
1786 (dmh_init_gui): ...this new static function; it is a stub which
1787 invokes a DLL import of the same name, to instantiate a dmhTypeGUI.
1788 (dmhTypeGUI::control, dmhTypeGUI::notify, dmhTypeGUI::printf): Delete
1789 original method stubs.
1791 * src/guidmh.cpp: New file; it reimplements...
1792 (dmhTypeGUI): ...this class; declare it and implement its constructor.
1793 (dmh_init_gui): Provide its DLL exported implementation.
1794 (dmhTypeGUI::dispatch_message): New private method; add it to the
1795 class declaration and implement it; it is a helper method for...
1796 (dmhTypeGUI::control, dmhTypeGUI::notify): ...these; implement them.
1797 (dmhTypeGUI::printf): Provide a replacement stub.
1799 * Makefile.in (GUIMAIN_OBJECTS): Add guidmh.OBJEXT
1801 * src/guimain.h (AppWindowMaker::Create): New method; add it to the
1802 class declaration; it overrides the default Create() method inherited
1803 from WTK::MainWindowMaker
1805 * src/pkgview.cpp (AppWindowMaker::Create): Implement it; it handles
1806 window class registration and dmhTypeGUI initialisation, in addition
1807 to the inherited CreateWindow() behaviour.
1809 * src/guimain.cpp: Include dmh.h
1810 (WinMain): Add catch block for dmh_exception. Remove window class
1811 registration request; it is now delegated to AppWindowMaker::Create()
1813 2012-09-26 Keith Marshall <keithmarshall@users.sourceforge.net>
1815 Add .hgignore as tracked file.
1817 * .hgignore: New file.
1819 2012-09-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1821 Defer generation of version.c until "make" time.
1823 * version.c.in: Move it...
1824 * src/version.c.in: ...to here.
1825 (PACKAGE_NAME, PACKAGE_VERSION, COPYRIGHT_HOLDER, YEARS_OF_ISSUE):
1826 Change substitution field marker character from "@" to "%".
1828 * configure.ac (AC_CONFIG_FILES): Remove version.c
1830 * Makefile.in (TAG_SCRIPT): New macro, factored out from...
1831 (RC_SCRIPT): ...here, whence use it; also use it to implement...
1832 (VERSION_SCRIPT): ...this further new macro; use it in...
1833 (%.c): ...this generic template rule for version.c
1834 (time-stamp, %.time, %.tagged.time, %.tag): New generic build
1835 goals; use them to track package release progression via...
1836 (build.tag): ...this new intermediate; make it a pre-requisite...
1837 (guidata.OBJEXT, version.c): ...of these.
1839 2012-09-21 Keith Marshall <keithmarshall@users.sourceforge.net>
1841 Implement framework for GUI sash window layout controller.
1843 * configure.ac (AC_INIT): Bump version number to 0.6
1844 (CLI_RELEASE_CLASS): New AC_SUBST variable; default to "beta".
1845 (GUI_RELEASE_CLASS): New AC_SUBST variable; default to "alpha".
1846 (SNAPSHOT_CLASS): Recognise as user specified environent variable
1847 override for both CLI_RELEASE_CLASS and GUI_RELEASE_CLASS.
1848 (RC): New AC_CHECK_TOOL substitution variable name; it replaces...
1849 (WINDRES): ...this, as reference name for the resource compiler.
1850 (MINGW_AC_ASSERT_MISSING): Add AC_CHECK_HEADER traps for missing
1851 "lua-dev" and "wtklite-dev" support.
1853 * Makefile.in (CLI_RELEASE_CLASS, GUI_RELEASE_CLASS): Use them.
1854 (BUILD_TAG, RC_SCRIPT, RC_INCLUDES): New macros; define and use...
1855 (RC): ...with this, to implement new target rule for compiling...
1856 (%.rc): ...resource definition files to %.OBJEXT objects.
1857 (GUIMAIN_OBJECTS, GUIMAIN_LIBS): New macros; define and use...
1858 (guimain.EXEEXT): ...to implement build rule for this.
1859 (LIBEXEC_PROGRAMS): Add guimain.EXEEXT
1860 (lastrites.EXEEXT): Use GUI_LDFLAGS.
1862 * src/guimain.h src/guimain.cpp src/guidata.rc: New files.
1863 * src/pkgview.cpp: New file.
1865 2012-09-20 Keith Marshall <keithmarshall@users.sourceforge.net>
1867 Adjust incorrectly resolved 2012-09-14 merge from master.
1869 * src/Makefile.in: Restore lost reference to guistub.cpp
1871 2012-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1873 Implement GUI hooks in "rites of passage" internal API.
1875 * src/pkglock.h: New file; it adds the pkgLock() and pkgRelease()
1876 inline wrapper functions, through which the GUI application acquires
1877 and manages an exclusive access lock for the XML catalogue.
1879 * src/rites.c (lockfile_name): Explicitly cast memory allocated for
1880 the returned name to (char *), so this may be embedded in C++ code.
1881 (pkgInitRites): Factor out lock acquisition failure diagnostics...
1882 (pkgLockFail): ...to this inline helper function; conditionally...
1883 [ifdef GUIMAIN_H]: ...provide one implementation for GUI use...
1884 [ifndef GUIMAIN_H]: ...and an alternative for CLI use.
1886 2012-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1888 Be case agnostic when matching shortcut targets.
1890 * scripts/libexec/unlink.js [ref.TargetPath == chklink]: Apply
1891 toLowerCase() on both sides of the comparison.
1893 2012-09-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1895 Note relocation of m4 when packaging source distribution.
1897 * Makefile.in (SRCDIST_SUBDIRS): Refer to build-aux/m4, not m4.
1899 2012-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1901 Move guimain.cpp out of the way.
1903 * src/guimain.cpp: Rename file as...
1904 * src/guistub.cpp: ...this; we want to keep current features for now,
1905 but to use the guimain.cpp name for main GUI application development.
1906 * Makefile.in: Adjust references accordingly.
1908 2012-09-09 Keith Marshall <keithmarshall@users.sourceforge.net>
1910 Fix typo, and update licensing terms for embedded getopt.c
1912 * src/getopt.c: Incorporate MIT/X style licence; update copyright
1913 notice, to reflect chronology of publication; correct degenerate RCS
1914 keyword usage in EOF marker comment.
1916 2012-09-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1918 Correct omission from copyright notice.
1920 * src/pkgkeys.c: Add year 2012, to reflect 2012-09-02 update.
1922 2012-09-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1924 Redefine paragraph_key with project global scope.
1926 * src/pkgkeys.h (paragraph_key): Declare it.
1927 * src/pkgkeys.c (paragraph_key): Define it.
1929 * src/pkgshow.cpp (pkgDirectoryViewer::EmitDescription): Delete
1930 function local definition; use global definition instead.
1932 2012-09-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1934 Correct defect introduced by 2012-08-03 commit.
1936 * src/approot.c (AppPathNameW): Add omitted 'else', so that tail
1937 pointer isn't moved after the APPROOT prefix is truncated.
1939 2012-09-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1941 Remap Mercurial subrepository reference via local hg-git clone.
1943 * .hgsub (build-aux): Point to ../build-aux; this must be a locally
1944 hosted hg clone of the git origin repository, and it must pre-exist as
1945 a sibling of any created hg clone of the mingw-get repository.
1947 * .hgsubstate: New file, automatically generated by Mercurial.
1949 2012-08-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1951 Add Mercurial subrepository reference for build-aux.
1955 2012-08-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1957 More code refactoring, to facilitate GUI implementation.
1959 * src/clistub.c (AppPathNameW): Factor out; relocate to...
1960 * src/approot.c: ...this new file; it reproduces the original
1961 implementation, modified to also consider any "libexec" directory in
1962 the executable path as the first child of the APPROOT prefix. Note
1963 also, that no longer terminates APPROOT with a trailing backslash.
1965 * src/approot.h: New file; it trivially declares the prototype for...
1966 (AppPathNameW): ...this relocated extern "C" function.
1968 * src/clistub.c (main): Adapt usage of AppPathNameW(), to reinstate
1969 trailing backslash on assignment to APPROOT environment variable.
1971 * Makefile.in (CLI_EXE_OBJECTS): New macro; define it as the original
1972 set of prerequisites, with the addition of approot.OBJEXT, for...
1973 (mingw-get.EXEEXT): ...this; use it.
1975 * src/rites.c: Add comment regarding APPROOT usage.
1977 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
1979 Find missing.m4 in build-aux/m4 directory.
1981 * aclocal.m4: Change path m4/missing.m4 to build-aux/m4/missing.m4.
1983 2012-07-31 Earnie Boyd <earnie@users.sourceforge.net>
1985 Add build-aux as a submodule.
1986 Move .cvsignore to .gitignore.
1988 * .gitmodules: New file.
1989 * build-aux: New submodule directory.
1990 * .cvsignore: Remove.
1991 * .gitignore: New file.
1993 2012-07-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1995 Disable globbing of command line arguments.
1997 * src/clistub.c (_CRT_glob): Define and initialise to zero; we don't
1998 need globbing, and it may cause case transliteration of case-sensitive
1999 action keywords, when a file system entity with a case-insensitively
2000 matching name exists.
2002 2012-06-02 Keith Marshall <keithmarshall@users.sourceforge.net>
2004 Refactor API to facilitate implementation of GUI ListView hooks.
2006 * src/pkgkeys.h (title_key, description_key): Declare them.
2007 * src/pkgkeys.c (title_key, description_key): Define them; relocate...
2008 * src/pkgshow.cpp (pkgDirectoryViewer::EmitDescription): ...from here.
2009 (pkgXmlDocument::CalalogueAllPackages): New public method; factor...
2010 (pkgXmlDocument::DisplayPackageInfo): ...from here, whence use it.
2011 (pkgDirectoryViewerEngine::EnumerateComponents): New private method;
2012 implement as a concrete method of this abstract base class; factor...
2013 (pkgDirectoryViewer::Dispatch): ...from original inline implementation
2014 within this method of the concrete derived class, whence use it.
2015 (pkgDirectoryViewerEngine, pkgDirectory): Factor class declarations...
2016 * src/pkglist.h: ...into this new header file; include it.
2018 * src/pkgbase.h (pkgDirectory): Add forward class declaration.
2019 (pkgXmlDocument::CatalogueAllPackages): Declare it.
2021 2012-05-02 Keith Marshall <keithmarshall@users.sourceforge.net>
2023 Update help text to document package version selection capability.
2025 * src/clistub.c (help_text): Add description of command line syntax
2026 which may be used to specify an alternative to the default package
2027 version selection, for install and upgrade actions.
2029 2012-05-01 Keith Marshall <keithmarshall@users.sourceforge.net>
2031 Support options set by preferences assigned within profile.xml
2033 * xml/profile.xml (preferences): New element; add defaults.
2035 * src/pkgopts.h (OPTION_ASSIGNED_FLAGS, OPTION_DESKTOP_ARGS):
2036 (OPTION_START_MENU_ARGS): New enumerated constants; define them.
2037 (OPTION_DESKTOP, OPTION_START_MENU): New manifest constants.
2038 (OPTION_ASSIGNED, mark_option_as_set): New macros; define them.
2039 (pkgOpts::GetValue, pkgOpts::GetString): Restrict look-up index to
2040 least significant 12-bits of full-range index value.
2041 (pkgOpts::IsSet): New inline method; implement it.
2043 * src/clistub.c (main): Reimplement --desktop and --start-menu
2044 options; each now becomes an OPTION_GENERIC optarg string store.
2045 (set_script_hook): Function no longer used; delete it; delegate to...
2046 * src/pkgbase.h (pkgXmlDocument::EstablishPreferences): ...this new
2047 method; declare it, providing its implementation in...
2048 * src/pkgopts.cpp: ...this new file; invoke it...
2049 * src/climain.cpp (climain): ...here.
2051 * Makefile.in (CORE_DLL_OBJECTS): Add pkgopts.$OBJEXT
2053 2012-04-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2055 Correct sequence of installation/removal progress reporting.
2057 * src/pkgunst.cpp (pkgRemove): Delay output of "removing package ..."
2058 message, until after pre-remove hooks have run; this ensures that any
2059 output from the pre-remove hook scripts appears in correct sequence.
2061 * src/pkginst.cpp (pkgInstall): Likewise, for "installing package ..."
2062 message, in relation to pre-install hooks.
2064 2012-04-26 Keith Marshall <keithmarshall@users.sourceforge.net>
2066 mingw-get-0.5-beta-20120426-1 released.
2068 * configure.ac (AC_INIT): Version number updated.
2069 * srcdist-doc/NEWS.in: Updated; bug-fix notifications added.
2070 * All files (r0-5-beta-20120426-1): Tag assigned.
2072 2012-04-25 Keith Marshall <keithmarshall@users.sourceforge.net>
2074 Interim work-around for MinGW-Bug #3520864.
2076 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
2077 [DEBUG_TRACE_DEPENDENCIES]: Add request flags to messages reporting
2078 the scheduling of installation activities.
2080 * src/pkgexec.cpp (pkgXmlDocument::Schedule): Add temporary diagnostic
2081 hooks to confirm request flags; bracket them with #if 0 ... #endif.
2082 [ACTION_PRIMARY && pre-scheduled request]: Don't trash request flags
2083 when updating the pre-existing action item data.
2085 2012-04-23 Keith Marshall <keithmarshall@users.sourceforge.net>
2087 Fix MinGW-Bug #3520488
2089 * src/pkgexec.cpp (action_code): Check for, and reject NULL pointer
2090 passed as action request string; also reject ambiguous abbreviations.
2092 * src/climain.cpp (climain): Discriminate between NULL pointer and
2093 other forms of invalid action keyword matching failures.
2095 2012-04-16 Keith Marshall <keithmarshall@users.sourceforge.net>
2097 mingw-get-0.5-beta-20120416-1 released.
2099 * configure.ac (AC_INIT): Version number updated.
2100 (YEARS_OF_ISSUE): 2012 added.
2102 * srcdist-doc/NEWS.in: Updated; release notes added.
2103 * All files (r0-5-beta-20120416-1): Tag assigned.
2105 2012-04-16 Keith Marshall <keithmarshall@users.sourceforge.net>
2107 Assign icon to temporary GUI executable file.
2109 * icons/pkgicon.ico: New file, shamelessly copied from synaptic.
2111 * configure.ac: Add identification for windres; propagate it to...
2112 * Makefile.in: ...here; use it to compile object from icon files...
2113 (srcdir/icons) [%.ico]: ...from this new vpath location.
2114 (gui.exe): Link to compiled icon's object file.
2115 (SRCDIST_SUBDIRS): Add icons directory.
2117 2012-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2119 Ensure that package removal requests are correctly scheduled.
2121 * src/pkgdeps.cpp (pkgXmlDocument::Schedule) [ACTION_REMOVE]: Schedule
2122 as a distinct case, when the installed version is not the most recent
2123 available release; consideration of this distinct case was previously
2124 erroneously overlooked.
2126 2012-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2128 Correct scheduling of new prerequisites when upgrading.
2130 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
2131 [ACTION_UPGRADE && ACTION_PRIMARY]: Don't exclude scheduling for this
2132 case of a prerequisite with no previously installed version; it may be
2133 a delegated primary requirement of a meta-package.
2135 2012-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2137 Don't require subsystem within user specified version bounds.
2139 * src/pkgdeps.cpp (pkgActionItem::ApplyBounds): Automatically consider
2140 "*" wild-card matches for subsystem, if user doesn't specify it.
2142 2012-04-09 Charles Wilson <mingw@cwilson.fastmail.fm>
2144 Fix missing include.
2146 * src/pkgdeps.cpp (pkgopts.h): Include unconditionally; do not rely...
2147 (debug.h) [DEBUG_TRACE_DYNAMIC]: ...on this, for indirect inclusion.
2149 2012-04-07 Keith Marshall <keithmarshall@users.sourceforge.net>
2151 Correct a srcdist package construction defect.
2153 * Makefile.in (srcdist) [for SRCDIST_SUBDIRS]: Use...
2154 (mkinstalldirs): ...this, to create package image directories.
2156 2012-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
2158 Add scripting hooks to support creation of MS-Windows shortcuts.
2160 * src/clistub.c (progname): New static variable with file scope; it
2161 replaces former automatic variable, of same name, in main() function.
2162 (set_script_hook): New static function; implement it, and call it...
2163 (main) [--desktop, --start-menu]: ...from here, to interpret these new
2164 command line options; they are propagated to scripts via...
2165 (MINGW_GET_DESKTOP_HOOK, MINGW_GET_START_MENU_HOOK): ...these new
2166 internally assigned environment variables.
2167 (help_text): Document --desktop and --start-menu.
2169 * scripts/libexec/setup.lua scripts/libexec/wsh.lua: New lua module
2170 files; they implement a lua scripting API; they delegate requests to
2171 the Windows Scripting Host, via either of this pair of...
2172 * scripts/libexec/shlink.js: ...new script to create shortcuts, or...
2173 * scripts/libexec/unlink.js: ...its complement, to remove them.
2174 * Makefile.in (SRCDIST_SUBDIRS): Integrate them; enumerate them in...
2175 (scripts_srcdir, LIBEXEC_SCRIPTS): ...these new macros; use to...
2176 (install): ...install them.
2178 2012-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
2180 Initialise $LUA_PATH to locate mingw-get specific scripts.
2182 * src/pkgexec.cpp (lua_path_init): New static inline function.
2183 (pkgXmlNode::DispatchScript): Call it on first time invocation, per...
2184 [lua_path_setup == false]: ...this static function local variable.
2186 2012-04-01 Keith Marshall <keithmarshall@users.sourceforge.net>
2188 Support installation of releases other than latest available.
2190 * src/pkgbase.h (pkgActionItem::ApplyBounds): New method; declare it.
2192 * src/pkgdeps.cpp (pkgActionItem::ApplyBounds): Implement it.
2193 (pkgXmlDocument::Schedule): Use it to interpret user specified version
2194 bounds, and apply them to scheduled action items. Having used...
2195 (get_version_bounds): ...this new static inline function...
2196 ...to acquire any user specified version bounds, check that they can
2197 be honoured, before scheduling any action; delegate diagnostics to...
2198 (dmh_notify_no_match): ...this new local helper function, to report
2199 when they can't, and to indicate viable alternatives.
2201 2012-03-26 Keith Marshall <keithmarshall@users.sourceforge.net>
2203 Rework previously inadequate solution for MinGW-Bug #3424406
2205 * src/pkgtask.h: Update copyright notice for current year.
2206 (ACTION_MAY_SELECT): New manifest constant for use as flag; define it.
2207 * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit): Assign it.
2209 * src/pkgdeps.cpp (STATIC_INLINE): New macro; define it.
2210 (ACTION_RECURSIVE_REINSTALL, ACTION_RECURSIVE_UPGRADE):
2211 (ACTION_RECURSIVE_REPLACE): New action code constants; define them.
2212 (with_flags): Original macro deleted; replace it with...
2213 (with_request_flags): ...this new static inline function.
2214 (if_noref, if_match, if_alias, with_download, promote): New static
2215 inline functions; they replace original macros of the same names.
2216 (is_recursive_action): Function no longer used; delete it.
2217 (action_class): New static inline function; implement and use it...
2218 (pkgXmlDocument::ResolveDependencies): ...here, to identify scheduling
2219 requirements for packages which are already installed; depends on...
2220 (request_mode): ...this new automatic variable; it augments and...
2221 (recursive_mode): ...replaces this one; rename it accordingly.
2222 (viable): Automatic variable no longer used; delete it.
2223 [DEBUG_REQUEST & DEBUG_TRACE_DEPENDENCIES]: Emit notification for
2224 scheduled installation.
2225 (pkgXmlDocument::Schedule): Add an implied...
2226 (ACTION_REMOVE): ...when scheduling a reinstallation.
2228 2012-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
2230 Address reinstallation issues per MinGW-Bugs #3416013 and #3424406
2232 * src/pkgexec.cpp (reinstall_action_scheduled): New inline function.
2233 (pkgActionItem::Execute): Use it to identify cases where...
2234 [--reinstall]: ...implicit package removal is required, and also to
2235 facilitate improved progress reporting in such cases.
2237 * src/pkgdeps.cpp (is_recursive_action): New inline function.
2238 (pkgXmlDocument::ResolveDependencies): Use it in tandem with...
2239 (recursive_mode): ...this new automatic variable, so as to handle...
2240 [meta-package dependency]: ...implicit recursion, to extend the scope
2241 of the current action to the first level of non-meta dependency.
2242 [install --reinstall]: ...reinstall original version of nominated
2243 package, ignoring any available upgrade; extend scope of operation...
2244 [install --reinstall --recursive]: ...to all prerequisite packages.
2245 [upgrade --reinstall]: ...upgrade nominated package if possible; if no
2246 upgrade available, reinstall current version; extend scope...
2247 [upgrade --reinstall --recursive]: ...to all prerequisites.
2248 (pkgXmlDocument::Schedule): Partially revert 2012-03-05 change;
2249 reimplement selectively; never promote...
2250 [install, install --reinstall]: ...these operations to become...
2251 [upgrade]: ...this, even if available; issue diagnostic instead.
2253 2012-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2255 Rationalise implementation and usage of --all-related option.
2257 * src/pkgopts.h: Update copyright notice; add year 2012.
2258 (OPTION_RECURSIVE, OPTION_ALL_RELATED): New constants; define them.
2259 (pkgOpts::SetFlags): New method; declare and implement it inline.
2261 * src/clistub.c: Update copyright notice; add year 2012.
2262 (options) [recursive, all-related]: Redefine in terms of...
2263 (OPTION_RECURSIVE, OPTION_ALL_RELATED): ...these.
2264 (help_text): Update appropriately.
2266 * src/climain.cpp: Update copyright notice; add year 2012.
2267 (climain) [all-related]: Associate its use exclusively with...
2268 (source, licence): ...these package processing operations; use...
2269 (pkgOptions::SetFlags): ...this, to propagate its effect.
2271 2012-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2273 Don't report failed downloads in respect of virtual packages.
2275 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): Clear...
2276 [ACTION_DOWNLOAD]: ...this status flag for any package identified as
2277 a meta-package; this corrects a further regression introduced with the
2278 2011-11-09 update, whereby pending download requests for such virtual
2279 packages were not cancelled, resulting in failure to install due to
2280 failed downloads, when no download is actually required.
2282 2012-03-05 Keith Marshall <keithmarshall@users.sourceforge.net>
2284 Don't suppress implied downloads for top-level actions.
2286 * src/pkgdeps.cpp: Update copyright notice for new year.
2287 (pkgXmlDocument::Schedule) [!OPTION_PRINT_URIS]: Ensure that...
2288 [ACTION_DOWNLOAD]: ...this is enabled, when scheduling an install or
2289 an upgrade action for a package specified as a command line argument;
2290 this corrects a regression introduced on 2011-11-09, which resulted in
2291 ACTION_DOWNLOAD being enabled only for second tier dependent actions.
2293 2012-02-20 Keith Marshall <keithmarshall@users.sourceforge.net>
2295 Copyright notice updates.
2297 * Makefile.in: Add 2012 as year of republication.
2298 * src/pkgbase.h src/sysroot.cpp src/pkgexec.cpp: Likewise.
2299 * src/rites.c src/pkginst.cpp src/pkgunst.cpp: Likewise.
2301 2012-02-20 Keith Marshall <keithmarshall@users.sourceforge.net>
2303 Fix ill-advised optimisation in $APPROOT environment lookup.
2305 * src/rites.c (approot_path): Don't save result of getenv() lookup
2306 across calls; the environment may have been moved in the interim,
2307 making the original result invalid on any subsequent call. Also,
2308 prefer MS-Windows style (with backslashes) for default.
2309 (pkgLastRites): Report full path name for lastrites.exe, on execl()
2310 failure, rather than only the path relative to $APPROOT.
2312 2012-02-20 Keith Marshall <keithmarshall@users.sourceforge.net>
2314 Propagate sysroot path settings to scripts via the environment.
2316 * src/pkgbase.h (PKG_PUTENV_FLAGS_MASK): New constant; it maps...
2317 (PKG_PUTENV_DIRSEP_MSW, PKG_PUTENV_DIRSEP_POSIX): ...these flags...
2318 (PKG_PUTENV_SCAN_VARNAME, PKG_PUTENV_NAME_TOUPPER): ...and these;
2319 they are used to specify optional behavioural choices for...
2320 (pkgPutEnv): ...this new function; declare it.
2322 * src/sysroot.cpp (pkgPutEnv): Implement it.
2323 (pkgXmlDocument::LoadSystemMap): Use it to add $SUBSYSTEM_SYSROOT path
2324 specifications to the environment, for each named subsystem associated
2325 with the active system map.
2327 * src/pkgexec.cpp (pkgActionItem::Execute): Invoke pkgPutEnv() prior
2328 to processing of each package install, upgrade, or remove action, so
2329 as to update environment variable $SYSROOT to represent the sysroot
2330 path for each package processed, during execution of script hooks.
2332 2012-02-17 Keith Marshall <keithmarshall@users.sourceforge.net>
2334 Implement hooks to support lua scripting interface.
2336 * Makefile.in (LIBS): Add -llua.
2338 * src/pkgbase.h (pkgXmlNode::InvokeScript): New method; declare it
2339 as private, and provide overloaded public inline API implementation.
2340 (pkgXmlNode::DispatchScript): New private method; declare it.
2342 * src/pkgexec.cpp (pkgXmlNode::InvokeScript): Implement it.
2343 (pkgXmlNode::DispatchScript): Likewise; it directs InvokeScript to...
2344 (pkgInvokeScript): ...this new static function; implement it.
2346 * src/pkginst.cpp (pkgInstall): Call InvokeScript as appropriate.
2347 * src/pkgunst.cpp (pkgRemove): Likewise.
2349 2011-11-24 Keith Marshall <keithmarshall@users.sourceforge.net>
2351 Avoid implicit cast warnings; reported by Robert Hartmann.
2353 * src/dmh.h (DMH_BEGIN_DIGEST): Explicitly cast to uint16_t.
2354 (DMH_END_DIGEST): Likewise.
2356 2011-11-09 Keith Marshall <keithmarshall@users.sourceforge.net>
2358 Avoid unnecessary downloads for already installed packages.
2360 * src/pkginet.cpp (pkgActionItem::DownloadSingleArchive): Require
2361 external scheduling of ACTION_DOWNLOAD; cancel the scheduled request
2362 on completion, or when not required due to pre-existing local copy.
2364 * src/climain.cpp (pkgActionItem::GetSourceArchive): Must always be
2365 prepared to download the associated archive; enable ACTION_DOWNLOAD.
2367 * src/pkgexec.cpp (pkgActionItem::Schedule) [OPTION_REINSTALL]:
2368 May need to download the archive, even when the requested package was
2369 previously installed; schedule ACTION_DOWNLOAD to enable this.
2371 * src/pkgdeps.cpp (promote): Macro redefined in terms of...
2372 (with_flags, with_download): ...these new macros; implement and...
2373 (pkgXmlDocument::ResolveDependencies): ...use them to enable/schedule
2374 ACTION_DOWNLOAD only when expected that it may be necessary.
2376 2011-11-06 Keith Marshall <keithmarshall@users.sourceforge.net>
2378 Fix packaging anomalies for source and licence distributions.
2380 * Makefile.in (licdist): Link README from ${CURDIR}, not from '..'.
2381 (srcdist): Explicitly link pkginfo.c from ${CURDIR} to src/pkginfo,
2382 rather than as implied prerequisite; this avoids a bogus attempt to
2383 link srcdist-doc into src/pkginfo.
2385 2011-11-06 Keith Marshall <keithmarshall@users.sourceforge.net>
2387 Bump version number for subsequent CVS snapshots.
2389 * configure.ac (AC_INIT): Set version to 0.4-alpha-1.1cvs
2391 2011-11-06 Keith Marshall <keithmarshall@users.sourceforge.net>
2393 mingw-get-0.4-mingw32-alpha-1 released.
2395 * configure.ac (AC_INIT): Adjust version number.
2396 * srcdist-doc/NEWS.in: Updated; document new features and bugs fixed.
2397 * All files (r0-4-alpha-1): Tag assigned.
2399 2011-11-04 Keith Marshall <keithmarshall@users.sourceforge.net>
2401 Don't upgrade installed DLL components to incompatible version.
2402 Provide clearer diagnostics for failed requests on implied packages.
2404 * src/pkgdeps.cpp (is_abi_compatible): New static inline function.
2405 (pkgXmlDocument::ResolveDependencies) [is_installed]: Use it.
2406 (pkgXmlDocument::ResolveDependencies) [DEBUG_TRACE_DEPENDENCIES]:
2407 Clean up and improve diagnostic message content and formatting.
2408 (pkgXmlDocument::Schedule) [(upgrade || remove) && ! installed]:
2409 Downgrade diagnostic to WARNING, for implicitly specified component
2410 packages; provide additional explanatory diagnostics.
2412 * src/pkgspec.cpp (pkgSpecs::VersionComparator):
2413 * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit):
2414 [DEBUG_TRACE_DEPENDENCIES]: Eliminate diagnostic noise.
2416 2011-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2418 Fix --download-only vs. --reinstall conflict.
2420 * src/pkgexec.cpp (pkgActionItem::Execute) [OPTION_DOWNLOAD_ONLY]:
2421 Test for explicit inequality, rather than equality to zero; since the
2422 2011-08-30 update, which made --download-only also imply --reinstall,
2423 it will test as non-zero when --reinstall is specified, even though
2424 --download-only is not.
2426 2011-10-07 Keith Marshall <keithmarshall@users.sourceforge.net>
2428 Add support for non-specific upgrade of all installed packages.
2430 * src/pkgbase.h (pkgXmlDocument::RescheduleInstalledPackages):
2431 New public method; declare it.
2433 * src/pkgdeps.cpp (pkgXmlDocument::RescheduleInstalledPackages):
2436 * src/climain.cpp (climain) [ACTION_UPGRADE && argc < 2]: Invoke
2437 pkgXmlDocument::RescheduleInstalledPackages() to schedule the upgrade
2438 request for all packages currently registered as installed.
2440 2011-10-06 Keith Marshall <keithmarshall@users.sourceforge.net>
2442 Implement "source" and "licence" operations.
2444 * src/pkgopts.h (OPTION_ALL_DEPS): New option code; define it.
2445 * src/clistub.c (main): Associate it with...
2446 (all-related, recursive): ...these synonymous option names...
2447 (options): ...defined within this local structured array.
2448 (help_text): Document them; also document "source" and "licence" as
2449 new operations which may be specified on the command line.
2451 * src/pkgtask.h (action_source, action_licence): Enumerate them.
2452 (ACTION_SOURCE, ACTION_LICENCE): Define their manifest values, and...
2453 * src/pkgexec.cpp (action_name): ...associate with operation names.
2455 * src/pkgbase.h (pkgActionItem::GetScheduledSourceArchives):
2456 (pkgActionItem::GetSourceArchive, pkgXmlDocument::GetSourceArchive):
2457 New public methods; declare them for external implementation.
2458 (pkgXmlDocument::GetScheduledSourceArchives): New public method;
2459 implement it as inline.
2461 * src/climain.cpp (pkgProcessedArchives): New pointer to stack of...
2462 (pkgArchiveNameList): ...this new locally defined class; implement it.
2463 (pkgActionItem::GetSourceArchive, pkgXmlDocument::GetSourceArchive):
2464 (pkgActionItem::GetScheduledSourceArchives): Implement them.
2465 (climain): Add invocation hooks.
2467 2011-10-04 Keith Marshall <keithmarshall@users.sourceforge.net>
2469 Establish mapping from release tarname to source tarname.
2471 * src/pkgreqs.cpp (inherited_requirement): New inline function.
2472 (requirement): Use it; adapt to propagate release archive format and
2473 compression type fields, in addition to version fields, when resolving
2474 "%" wildcard matches within the template for the resultant tarname.
2475 (pkgAssociateName): New public function; implement it for use by...
2476 * src/pkgname.cpp (pkgResolvedName): ...this new inline function.
2477 (pkgXmlNode::SourceArchiveName): Use it; adapt to accept a category
2478 selector, so it may resolve source or licence tarnames on demand.
2480 * src/pkgbase.h (pkgXmlNode::SourceArchiveName): Modify declaration;
2481 add category selector argument to support source/licence choice.
2483 2011-10-02 Keith Marshall <keithmarshall@users.sourceforge.net>
2485 Facilitate downloads using diverse cache directories.
2487 * src/pkgbase.h (pkgActionItem::DownloadSingleArchive): New private
2488 method; declare it; it handles the download for a single named archive
2489 file, and stores it in a specifed cache directory.
2491 * src/pkginet.cpp (pkgActionItem::DownloadSingleArchive): Implement
2492 it; factor its code from the original implementation within...
2493 (pkgActionItem::DownloadArchiveFiles): ...this; adapt to use it.
2495 2011-10-02 Keith Marshall <keithmarshall@users.sourceforge.net>
2497 Establish cache directory for source archive downloads.
2499 * src/mkpath.h (pkgSourceArchivePath): New function; declare it.
2500 * src/mkpath.c (pkgSourceArchivePath): Implement it.
2502 2011-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2504 Support archive extraction to arbitrary destination without install.
2506 * src/pkgproc.h (pkgArchiveProcessor::ExtractFile): New virtual
2507 helper method for use, as core helper, by derived classes; declare it.
2508 (pkgArchiveProcessor::CreateExtractionDirectory): Likewise.
2509 (pkgTarArchiveProcessor): Declare overloaded default constructor.
2510 (pkgTarArchiveExtractor): New class definition; it is derived from
2511 pkgTarArchiveProcessor.
2513 * src/tarproc.cpp (pkgArchiveProcessor::ExtractFile): Implement it.
2514 (pkgArchiveProcessor::CreateExtractionDirectory): Likewise.
2515 (pkgTarArchiveExtractor): Implement constructor, together with...
2516 (pkgTarArchiveExtractor::ProcessDirectory): ...this method, and also...
2517 (pkgTarArchiveExtractor::ProcessDataStream): ...this one; these are
2518 declared as abstract, in the pkgTarArchiveProcessor base class.
2519 (pkgTarArchiveInstaller::ProcessDirectory): Simplify; it now delegates
2520 directory creation to pkgArchiveProcessor::CreateExtractionDirectory.
2521 (pkgTarArchiveInstaller::ProcessDataStream): Simplify; delegate file
2522 handling to pkgArchiveProcessor::ExtractFile, as appropriate.
2524 2011-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2526 Make --download-only and --print-uris imply --reinstall.
2528 * src/pkgopts.h (OPTION_PRINT_URIS): Adjust definition.
2529 (OPTION_DNLOAD_ONLY, OPTION_DOWNLOAD_ONLY): Likewise.
2531 2011-08-07 Keith Marshall <keithmarshall@users.sourceforge.net>
2533 Implement --download-only and --print-uris options.
2535 * src/pkgopts.h (OPTION_DOWNLOAD_ONLY, OPTION_PRINT_URIS):
2536 New manifest constants, identifying flag bits; define them.
2537 (OPTION_DNLOAD_ONLY): Likewise; an alias for OPTION_DOWNLOAD_ONLY.
2539 * src/pkgbase.h (pkgActionItem::PrintURI): New private method.
2540 * src/pkginet.cpp: Implement it.
2542 * src/clistub.c (options): Add "download-only" and "print-uris".
2543 (help_text): Document them.
2544 * src/pkgexec.cpp (pkgActionItem::Execute): Process them.
2546 2011-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2548 mingw-get-0.3-mingw32-alpha-2.1 released.
2550 * configure.ac (AC_INIT): Adjust version number.
2551 * srcdist-doc/NEWS.in: Updated; document bugs fixed.
2552 * All files (r0-3-alpha-2-1): Tag assigned.
2554 2011-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2556 Adopt tar.xz as default package archive format.
2558 * Makefile.in (TARZIP, TAREXT): New macros; define them.
2559 (bindist, licdist, srcdist): Use them in place of hardcoded tar.gz
2560 (maintainer-clean): Expunge tar files of any compression format.
2562 2011-07-27 Keith Marshall <keithmarshall@users.sourceforge.net>
2564 Correct handling of release status in requirements specifications.
2566 * src/debug.h (DEBUG_TRACE_DEPENDENCIES): New tracing hook; define it.
2567 * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit): Use it; add
2568 function entry/exit tracing report hooks.
2569 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): Likewise;
2570 also add internal trace point reporting, which may also require...
2571 (show_required): ...this new static inline DEBUG_INVOKED function.
2573 * src/pkgreqs.cpp (requirement): Propagate release status and release
2574 reference index fields from requirer, when package version requirement
2575 is specified by a '%' token, and no explicit release status override
2576 is included in the requirement specification.
2578 * src/pkgspec.cpp (is_wildcard_spec): New static inline helper.
2579 (pkgSpecs::VersionComparator): Use it to identify any package version
2580 specification which may require the extension of a wildcard match, to
2581 span the package version and release status fields; also add tracing
2582 hooks, triggered on DEBUG_TRACE_DEPENDENCIES, to facilitate debugging.
2584 2011-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2586 Avoid accidental RCS keyword substitutions.
2588 * Makefile.in (DOLLAR): New macro; define it.
2589 (readme.txt, readme.txt.in): Use it, where unexpanded RCS Id keyword
2590 matching is intended.
2592 2011-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2594 Mercurial support revisited.
2596 * .cvsignore (.hgtags): Add to CVS untracked list.
2598 2011-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2600 Update readme.txt ID tag-line to track NEWS rather than README.
2602 * Makefile.in (readme.txt.in): New rule; implement it.
2603 (readme.txt.tag): Likewise; this implements the tag-line tracking.
2604 (readme.txt): Rule redefined in terms of the preceding pair.
2606 2011-06-17 Keith Marshall <keithmarshall@users.sourceforge.net>
2608 mingw-get-0.3-mingw32-alpha-2 released.
2610 * configure.ac (AC_INIT): Adjust version number.
2611 * srcdist-doc/NEWS.in: Updated; document new features and bugs fixed.
2612 * All files (r0-3-alpha-2): Tag assigned.
2614 2011-06-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2616 Add internal documentation for --reinstall option.
2618 * src/clistub.c (help_text): Add description for "--reinstall".
2620 2011-06-14 Keith Marshall <keithmarshall@users.sourceforge.net>
2622 Support use of Mercurial within a CVS working copy.
2624 * .cvsignore (.hg, .hgignore): Don't have CVS track these.
2626 2011-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
2628 Implement --reinstall option.
2630 * src/pkgopts.h (OPTION_REINSTALL): New macro; define it.
2631 (OPTION_GENERIC, OPTION_SHIFT_MASK): Likewise.
2632 (OPTION_EXTRA_FLAGS): New field; declare it.
2634 * src/clistub.c (options): Add "reinstall".
2635 (OPTION_GENERIC): Use it where appropriate; within its scope...
2636 (OPTION_STORAGE_CLASS): Improve descriptive comments; add handling for
2637 default case of flag type options requiring an alignment shift.
2639 * src/pkgexec.cpp: Remove previous "always reinstall" kludge.
2640 (pkgOptionSelected, PKG_OPTION_REINSTALL): Remove obsolete macros.
2641 (pkgActionItem::Execute): Check for "upgrade" request on any package
2642 which is already up to date; report this state, otherwise...
2643 [OPTION_REINSTALL || ACTION_UPGRADE]: Mark package as "removed", to
2644 avoid bail-out on "package already installed", when calling...
2645 (pkgInstall): ...this.
2647 2011-06-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2649 Don't require -vv to report progress of update operation.
2651 * src/pkgbind.cpp (pkgRepository::GetPackageList): Eliminate all
2652 basename() calls; `dname' already tells us what it should return.
2653 [update]: Report progress, irrespective of verbosity setting.
2655 2011-06-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2657 Fix MinGW-Bug #3313806.
2659 * src/pkginfo/pkginfo.l (CMS_KEYWORDS): Do not match them within the
2660 PACKAGE_NAME field; this avoids misinterpretation as a release status
2661 qualifier when intended as part of the package name, as in msys-cvs.
2663 2011-06-07 Keith Marshall <keithmarshall@users.sourceforge.net>
2665 Provisional correction for MinGW-Bug #3309438.
2667 * src/debug.h [DEBUGLEVEL == 0]: Provide defaults for...
2668 (DEBUG_ENABLED, DEBUG_REQUEST): ...these macros.
2670 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDirectory):
2671 (pkgTarArchiveInstaller::ProcessDataStream): Use DEBUG_REQUEST to
2672 enable runtime trace activation for previous compile time choices.
2674 2011-05-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2676 mingw-get-0.3-mingw32-alpha-1 released.
2678 * configure.ac (AC_INIT): Adjust version number.
2679 * srcdist-doc/NEWS.in: Updated; document new features.
2680 * All files (r0-3-alpha-1): Tag assigned.
2682 2011-05-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2684 Support assignment of DEBUGLEVEL at configure time.
2686 * configure.ac (DEBUGLEVEL): Declare as a precious variable, using
2687 AC_ARG_VAR; also declare with AC_SUBST, to ensure it is initialised.
2689 * Makefile.in (DEBUGLEVEL): Let AC_SUBST assign it.
2691 2011-05-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2693 Work around bugs in MinGW and GNU getopt_long_only() implementations.
2695 * src/getopt.c: New file; this is a free-standing replacement for any
2696 implementation provided by system libraries. We will always use this
2697 to ensure correct operation irrespective of system bugs; (different
2698 bug manifestations have been identified in the stock MinGW and GNU
2701 * Makefile.in (mingw-get.EXEEXT): Use it.
2703 * src/clistub.c (options): Remove redundant declaration of `-v' as a
2706 2011-05-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2708 Implement user selection of traceable features at run-time.
2710 * src.pkgopts.h (OPTION_VERBOSE_MAX): New macro; define it.
2712 * src/debug.h (DEBUG_ENABLED): New macro; define it.
2713 (DEBUG_REQUEST, DEBUG_REQUEST_FLAGS, DEBUG_TRACE_DYNAMIC): Likewise.
2715 * src/clistub.c (main) [--trace]: Don't make it available unless...
2716 [DEBUG_ENABLED(DEBUG_TRACE_DYNAMIC)]: ...this is set (at compile-time).
2717 [--verbose]: Limit to OPTION_VERBOSE_MAX, using...
2718 (atmost): ...this new macro; define it.
2719 (options): Declare `-v' as both long and short form, pending bug fix
2720 in MinGW's getopt_long_only() implementation.
2722 * src/pkginet.cpp (pkgInternetAgent::OpenURL): Use DEBUG_REQUEST.
2723 (pkgInternetLzmaStreamingAgent::TransferData): Likewise.
2724 (pkgInternetStreamingAgent::TransferData): Likewise.
2725 (pkgInternetStreamingAgent::Get): Likewise.
2727 * src/pkgunst.cpp (pkgActionItem::SetAuthorities): Use DEBUG_REQUEST.
2728 (pkg_rmdir, pkg_unlink): Likewise.
2730 * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Use DEBUG_REQUEST.
2732 2011-05-21 Keith Marshall <keithmarshall@users.sourceforge.net>
2734 Implement protocol for processing global program options.
2736 * src/pkgopts.h: New file.
2738 * src/climain.cpp (cli_setopts): New function; implement it.
2739 (pkgOptions): Likewise.
2741 * src/clistub.c (xatoi): New function; implement it.
2742 (cli_setargv): New inline helper function; implement it.
2743 (main): Use it. Also incorporate implementation of...
2744 (parsed_options): New structure; it accommodates...
2745 (verbose, trace): New options; interpret them, and...
2746 (help_text): ...document them.
2748 * src/pkgbind.cpp (pkgRepository::GetPackageList): Make catalogue
2749 loading notifications and progress reports conditional on...
2750 [OPTION_VERBOSE > 1]: ...this.
2752 2011-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2754 Augment known development status keywords and accept CMS labels.
2756 * src/pkginfo/pkginfo.l (CMS_KEYWORDS): Define new provisional list;
2757 add transitional state scanner rule and code to interpret them.
2758 (STATUS_KEYWORDS): Add "pre" and "rc" to existing list; modify scanner
2759 code to maintain consistency with CMS_KEYWORDS processing; also extend
2760 this coding strategy to other rules.
2762 * src/pkginfo/driver.c (spec): Strip initial '$' token from displayed
2763 field values; (we expect it only for a CMS_KEYWORDS field value).
2765 * src/pkgreqs.cpp (pkgSpecs::GetTarName): Remove any initial '$' token
2766 from PACKAGE_RELEASE_STATUS field, when performing reverse of tarname
2767 decomposition transformation.
2769 2011-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2771 Correct omission from 2011-02-18 commit.
2773 * src/tarproc.cpp (Copyright Notice): Add 2011 as year of release.
2775 2011-05-14 Keith Marshall <keithmarshall@users.sourceforge.net>
2777 mingw-get-0.2-mingw32-alpha-4 released.
2779 * configure.ac (AC_INIT): Adjust version number.
2780 * srcdist-doc/NEWS.in: Updated; add bug-fix/feature descriptions.
2781 * All files (r0-2-alpha-4): Tag assigned.
2783 2011-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2785 Fix MinGW-Bug #3297660 (reported by Chris Sutcliffe).
2787 * src/pkgbase.h (pkgActionItem::SetAuthorities): Return unsigned long.
2788 (pkgActionItem::HasAttribute): New inline method; implement it.
2790 * src/pkgtask.h (ACTION_DOWNLOAD, ACTION_DOWNLOAD_OK): New macros.
2792 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles):
2793 [ACTION_DOWNLOAD]: Assert it at commencement of each package download;
2794 clear it again, on successful download completion.
2796 * src/pkginst.cpp (pkgtask.h): #include it.
2797 (pkgInstall) [ACTION_DOWNLOAD]: Don't proceed with installation when
2798 set; this indicates failed download; diagnose it.
2800 * src/pkgunst.cpp (pkgRemove) [ACTION_DOWNLOAD && ACTION_UPGRADE]:
2801 Don't proceed with pre-emptive removal when both set; this indicates
2802 failed download of replacement package; diagnose it.
2804 2011-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2806 Fix MinGW-Bug #3295526 (reported by Charles Wilson).
2808 * src/pkgunst.cpp (sys/stat.h): #include it; we need it for...
2809 (pkg_unlink): ...chmod( file, S_IWRITE ), emulating `rm -f' semantics.
2811 2011-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2813 Diagnose and aggressively retry failed download connections.
2815 * src/debug.h (DEBUG_TRACE_INTERNET_REQUESTS): New macro; define it.
2817 * src/pkginet.cpp (debug.h): #include it.
2818 (pkgDownloadMeter): New abstract class; declare it and implement its
2819 default (non-abstract) data and methods; derive...
2820 (pkgDownloadMeterTTY): ...this new class from it; implement it...
2821 (pkgInternetStreamingAgent::Get): ...and instantiate it (naively for
2822 now), as associated pkgDownloadMeter object; add tracing diagnostic.
2823 (pkgInternetAgent::OpenURL): Don't inline it; move implementation out
2824 of line; add retry loops to aggressively retry failed connections.
2825 (pkgInternetAgent::QueryContentLength): New method; implement it.
2826 (pkgInternetStreamingAgent::TransferData): Avoid Microsoft specific
2827 data type `DWORD'; prefer equivalent standard `unsigned long'. Add
2828 tracing diagnostic. Remove progress diagnostic; replace it with an
2829 `Update' request to associated pkgDownloadMeter.
2830 (pkgInternetLzmaStreamingAgent::GetRawData): Avoid `DWORD' data type.
2831 (pkgInternetLzmaStreamingAgent::TransferData): Likewise; add tracing
2832 diagnostic on failure.
2834 2011-03-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2836 mingw-get-0.2-mingw32-alpha-3 released.
2838 * configure.ac (AC_INIT): Adjust version number.
2839 * srcdist-doc/NEWS.in: Updated; add bug-fix description.
2840 * All files (r0-2-alpha-3): Tag assigned.
2842 2011-03-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2844 Provisional handling for http proxy authentication.
2845 (Adapted from patch by Scott Michel <pingbak@users.sourceforge.net>)
2846 (ref: MinGW-Patch #3158453)
2848 * src/pkginet.cpp: Several format/layout adjustments; add comments.
2849 Eliminate several instances of Microsoft specific typedef nastiness.
2850 (dmh_dialogue_context): New macro; kludge definition to support...
2851 (pkgInternetAgent::OpenURL) [HTTP_STATUS_PROXY_AUTH_REQ]: Detect
2854 2011-03-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2856 Expand macros in path names for files and directories to be removed.
2858 * src/pkgunst.cpp (pkgRemove): Format sysroot as a template, so...
2859 (pkg_rmdir, pkg_unlink): ...are able to use mkpath() to construct the
2860 full path name for each file or directory to be removed.
2862 2011-03-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2864 Correct defective activation logic for some debugging hooks.
2866 * src/pkgunst.cpp (pkg_rmdir, pkg_unlink) [DEBUG_INVOKE_IF]:
2867 (pkgActionItem::SetAuthorities) [DEBUG_INVOKE_IF]: Use bit-wise `&'
2868 operator, not `&&', to evaluate DEBUGLEVEL state.
2870 2011-03-22 Keith Marshall <keithmarshall@users.sourceforge.net>
2872 Avoid Unicode hyphens in generated ASCII document files.
2874 * Makefile.in (NROFF): New macro; define it to invoke `nroff -Tascii'.
2875 (%.dist, readme.txt): Use it to ensure that output is pure ASCII.
2877 2011-03-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2879 mingw-get-0.2-mingw32-alpha-2 released.
2881 * configure.ac (AC_INIT): Adjust version number.
2882 * srcdist-doc/NEWS.in: Updated; add bug-fix description.
2883 * All files (r0-2-alpha-2): Tag assigned.
2885 2011-03-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2887 Fix MinGW-Bug 3212246.
2889 * src/keyword.c (has_keyword): Avoid incrementing the comparison
2890 pointers when a significant character in one string is not matched in
2891 the other; previously the pointers were left pointing one character to
2892 the right of the mismatch, and this was overlooked if the mismatch
2893 occurred at the rightmost character in both strings.
2895 2011-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2897 mingw-get-0.2-mingw32-alpha-1 released.
2899 * configure.ac (AC_INIT): Set version number; correct capitalisation
2900 in URI reference to bug reporting instructions.
2902 * srcdist-doc/NEWS.in: Confirm release date.
2903 [bug reporting]: Remove redundant paragraph; the information is
2904 provided, via reference to mingw.org. in the README and INSTALL files.
2906 * All files (r0-2-alpha-1): Tag assigned.
2908 2011-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2910 * srcdist-doc/INSTALL.in [building]: Qualify liblzma.a requirement;
2911 add earliest acceptable snapshot release date.
2913 2011-03-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2915 Remove unused 7zip and boost source code from CVS trunk.
2917 * 7z: Directory and all content removed.
2920 2011-03-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2922 Refactor and update existing installation and usage instructions.
2924 * src/clistub.c (help_text): Updated.
2926 * srcdist-doc: New directory.
2928 * README: Deleted; its content refactored into...
2929 * srcdist-doc/README.in srcdist-doc/INSTALL.in srcdist-doc/NEWS.in:
2930 ...these new template files, updated for current development state.
2932 * srcdist-doc/gendoc.sed.in: New sed script; it directs formatting of
2933 generated text files derived from the srcdist-doc templates.
2935 * Makefile.in (SRCDIST_SUBDIRS): Add srcdist-doc.
2936 (SRCDIST_FILES): Add NEWS and INSTALL.
2937 (srcdist-doc): New build rule to generate README, NEWS and INSTALL.
2938 (srcdist, licdist): Adjust path to locate them.
2939 (readme.txt): New build rule to generate on-line package description.
2941 (distclean): Don't remove Makefile...
2942 (maintainer-clean): ...but do it here instead. Also remove generated
2943 README, NEWS and INSTALL, the autom4te cache, and all distributable
2944 zip files, in addition to tarballs, for the current version.
2946 2011-02-27 Keith Marshall <keithmarshall@users.sourceforge.net>
2948 Initial implementation for "remove" feature.
2950 * src/pkgbase.h: Update copyright notice; add current year.
2951 (pkgActionItem::SetPrimary): New inline public method; declare it.
2952 (pkgActionItem::SetAuthorities): New public method; declare it.
2954 * src/pkgtask.h (ACTION_PREFLIGHT, ACTION_REMOVE_OK): New defines.
2956 * src/pkgproc.h: Update copyright notice; add current year.
2957 (pkgManifest::GetSysRootReference): New public method; declare it.
2958 (pkgManifest::GetRoot): New inline method; declare and implement it.
2959 (pkgManifest::DetachSysRoot): Argument type changed to const char*.
2960 (pkgRemove): New extern "C" function; declare it.
2962 * src/pkgexec.cpp (pkgActionItem::SetPrimary): Implement it, and...
2963 (pkgXmlDocument::Schedule): ...use it to promote actions on all user
2964 specified packages, as listed on the command line, to primary status.
2965 (pkgActionItem::Execute): Repeatedly invoke...
2966 (pkgActionItem::SetAuthorities): ...this; incorporate call of...
2967 (pkgActionItem::DownloadArchiveFiles): ...this, within the loop, so
2968 that we retry failed downloads at least a second time.
2969 [ACTION_REMOVE]: Delete stub; invoke pkgRemove().
2971 * src/pkgunst.cpp: New file.
2972 (pkgActionItem::SetAuthorities): Implement it.
2973 (pkgManifest::GetSysRootReference): Implement it.
2974 (pkgManifest::DetachSysRoot): Implement it per new declaration.
2975 (pkgRemove): Implement it.
2977 * Makefile.in (CORE_DLL_OBJECTS): Add pkgunst.OBJEXT
2979 2011-02-26 Keith Marshall <keithmarshall@users.sourceforge.net>
2981 Work-around for improper stderr buffering in MSYS mintty and rxvt.
2982 (Merged from r0-1-alpha-5 branch).
2984 * src/dmh.cpp (dmhTypeTTY::emit_and_flush): New private method.
2985 (dmhTypeTTY::printf, dmhTypeTTY::notify): Use it to force an fflush()
2986 after each output record is written to stderr.
2988 * README: Update as appropriate.
2990 2011-02-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2992 Tidy up some debugging hooks.
2994 * src/debug.h (DEBUG_INVOKED): New macro; define it.
2995 (DEBUG_INVOKE_IF): Likewise; this takes arguments providing for
2996 conditional invocation of code when DEBUGLEVEL is non-zero; make it
2997 expand to nothing, when DEBUGLEVEL is zero.
2998 (DEBUG_TRACE_INIT): Redefined macro; value changed to 0x0010.
2999 (DEBUG_TRACE_TRANSACTIONS, DEBUG_SUPPRESS_INSTALLATION):
3000 (DEBUG_UPDATE_INVENTORY): New macros; define them.
3002 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDirectory):
3003 (pkgTarArchiveInstaller::ProcessDataStream): Refactor debugging hooks;
3004 implement them in terms of DEBUGLEVEL, with reference to...
3005 (DEBUG_SUPPRESS_INSTALLATION, DEBUG_UPDATE_INVENTORY): ...these.
3007 2011-02-15 Keith Marshall <keithmarshall@users.sourceforge.net>
3009 Make package version comparisons more robust.
3011 Fixes an issue reported by Chris Sutcliffe: previously, version
3012 comparisons were evaluated solely on the basis of differences in the
3013 package version field itself. Henceforth, if this field compares as
3014 equal, then the comparison is extended to also consider differences
3015 between development phase qualifiers, and, if these too compare as
3016 equal, to differences in the target subsystem version fields.
3018 * src/pkginfo/pkginfo.h (pkgSpecs::VersionComparator): New private
3021 * src/pkgspec.cpp (pkgSpecs::VersionComparator): Implement it.
3022 (pkgSpecs::operator<, pkgSpecs::operator<=, pkgSpecs::operator>=):
3023 (pkgSpecs::operator>): Use it, replacing...
3024 (version): ...this static function; now unreferenced; delete it.
3026 * src/vercmp.h (pkgVersionInfo::pkgVersionInfo): Make it inline; it
3027 now delegates the entire class construction operation to...
3028 (pkgVersionInfo::Parse): ...this new private method; declare it. This
3029 is also used to facilitate implementation of...
3030 (pkgVersionInfo::Reset): ...this new inline method, also requiring...
3031 (pkgVersionInfo::FreeAll): ...this new inline method; also now used by
3032 the class destructor, it encapsulates separate calls to...
3033 (pkgVersionInfo::Free): ...this original inline method, renamed...
3034 (pkgVersionInfo::FreeEntry): ...as this.
3036 * src/vercmp.cpp (pkgVersionInfo::Parse): Implement it.
3038 2011-02-13 Keith Marshall <keithmarshall@users.sourceforge.net>
3040 Merge from mingw-get-0.1-mingw32-alpha-5 bug-fix branch.
3042 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): Promote
3043 "install" action on new prerequisites, where a previously uninstalled
3044 package is required to satisfy any "upgrade" dependency.
3046 * src/pkgexec.cpp (pkgActionList::Execute): Don't make misleading
3047 claims concerning package removal.
3049 * src/pkgtask.h (STRICTLY_GT, STRICTLY_LT, ACTION_PRIMARY): Add one
3050 level of parentheses around defining expressions.
3052 2011-02-10 Keith Marshall <keithmarshall@users.sourceforge.net>
3054 Publish mingw-get-0.0-mingw32-alpha-5.1 bug-fix release.
3056 * README: Updated to reflect changes.
3058 2011-02-08 Keith Marshall <keithmarshall@users.sourceforge.net>
3060 Improve diagnostics for failed GUI invocation.
3062 * src/guimain.cpp: New file; currently delivers only a diagnostic
3063 stub, provided by Sze Howe Koh <axfangli@users.sourceforge.net>, to
3064 pop-up a message block explaining why GUI mode cannot be invoked.
3066 * Makefile.in (GUI_LDFLAGS): New macro; it is required by...
3067 (gui$EXEEXT): ...this new build rule; add to prerequisites of...
3068 (all): ...this [default] build rule; redefine this in terms of...
3069 (BIN_PROGRAMS, LIBEXEC_PROGRAMS, LIBEXEC_DATA): ...these new macros;
3070 define them, and also use them as loop iterator objectives for...
3071 (install, install_strip): ...these; also schedule them...
3072 (clean): ...for removal by this.
3074 * src/clistub.c (Copyright): Add new year.
3075 (main): Amend error message, if gui$EXEEXT doesn't start; make it
3076 more intelligible to normal users.
3078 2011-02-07 Keith Marshall <keithmarshall@users.sourceforge.net>
3080 Correct omissions from packaged source tarball.
3082 * Makefile.in (Copyright): Add new year.
3083 (SRCDIST_FILES): Add aclocal.m4
3084 (SRCDIST_SUBDIRS): Add m4
3086 2011-01-05 Keith Marshall <keithmarshall@users.sourceforge.net>
3088 Reduce path names to base names, in some diagnostic message contexts.
3090 * src/climain.cpp: Update copyright notice for new year.
3091 (climain): Extract base name from argv[0], to pass as program name tag
3092 in initialisation of diagnostic message handler.
3094 * src/dmh.h, src/dmh.cpp: Update copyright notices; make some layout
3095 adjustments, for more consistent formatting style.
3097 * src/pkgbind.cpp: Update copyright notice.
3098 (pkgRepository::GetPackageList): Reduce path names for catalogue files
3099 to their base names, when reporting them in diagnostic messages.
3101 2011-01-05 Keith Marshall <keithmarshall@users.sourceforge.net>
3103 Avoid a potential out-of-range action name look-up.
3105 * src/pkgdeps.cpp: Update copyright notice for new year.
3106 (pkgXmlDocument::Schedule): Mask action code with ACTION_MASK, to
3107 determine correct action name when diagnosing uninstalled package.
3109 2011-01-03 Keith Marshall <keithmarshall@users.sourceforge.net>
3111 Make "install" and "remove" notifications symmetric.
3113 * configure.ac (AC_INIT): Bump version to "0.1-alpha-6cvs".
3114 (YEARS_OF_ISSUE): Add new year.
3116 * src/pkginst.cpp: Update copyright notice for new year.
3117 (pkgInstall): Add notification for package being installed.
3119 2010-12-30 Keith Marshall <keithmarshall@users.sourceforge.net>
3121 Add preliminary CLI support for "list" and "show" actions.
3123 * src/pkgtask.h (ACTION_PRIMARY): New manifest constant; define it.
3124 (ACTION_LIST, ACTION_SHOW): Likewise; cast to enumerated values for...
3125 (action_list, action_show): ...these; define them.
3127 * src/pkgexec.cpp (action_name): Add defining text for...
3128 (action_list, action_show): ...these.
3130 * src/climain.cpp: Partially revert 2010-11-01 change...
3131 (climain) [! ACTION_UPDATE]: Reinstate original "if" block, moving
3132 the "switch" block within it, but without the ACTION_UPDATE case.
3133 [ACTION_LIST, ACTION_SHOW]: New "switch" cases; they invoke...
3134 (pkgXmlDocument::DisplayPackageInfo): ...this new method.
3136 * src/pkgbase.h (pkgXmlDocument::DisplayPackageInfo): Declare it.
3137 (pkgActionItem::ConfirmInstallationStatus): New method; declare it.
3138 (pkgXmlNode::GetSysRoot): Make declaration style consistent with
3139 others in the class; do not name arguments in the declaration.
3140 (pkgXmlNode::FindFirstAssociate): Likewise.
3141 (pkgXmlNode::FindNextAssociate): Likewise.
3143 * src/pkgshow.cpp: New file.
3144 (pkgXmlDocument::DisplayPackageInfo): Implement it.
3146 * src/pkgdeps.cpp (pkgMsgUnknownPackage): New extern "C" function;
3147 implement it temporarily, pending a future i18n reimplementation.
3148 (assert_installed): Drop "inline" attribute; leave it as "static".
3149 Set "tarname" correctly, to match the installed package version; (it
3150 previously incorrectly returned the latest available version).
3151 (pkgActionItem::ConfirmInstallationStatus): Implement it.
3152 (pkgXmlDocument::Schedule) [ACTION_PRIMARY]: Set as appropriate.
3153 (pkgXmlDocument::Schedule) [ACTION_REMOVE || ACTION_UPGRADE]: Complain
3154 if requested package is not recorded as having been installed.
3155 (pkgXmlDocument::ResolveDependencies) [! ACTION_INSTALL]: Do not
3156 invoke it recursively.
3158 * Makefile.in (pkgshow.$OBJEXT): Add reference.
3160 2010-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
3162 Lay groundwork for implentation of additional actions.
3164 * src/climain.cpp (climain): Adjust indentation; replace `if' block...
3165 [action != ACTION_UPDATE]: ...with this default `switch' case, and...
3166 [action == ACTION_UPDATE]: ...this as explicit "do nothing" case.
3168 2010-10-29 Keith Marshall <keithmarshall@users.sourceforge.net>
3170 mingw-get-0.1-mingw32-alpha-5 released.
3172 * configure.ac (AC_INIT): Bump version to 0.1-alpha-5.
3173 * README: Update release notes accordingly.
3174 * All files (r0-1-alpha-5): Tag assigned.
3176 2010-10-22 Keith Marshall <keithmarshall@users.sourceforge.net>
3178 Make pkgInitRites/pkgLastRites processing more robust;
3179 avoid a potential race condition in mingw-get-inst.
3181 * src/rites.c: Refactor conditional code to segregate execution of...
3182 [defined IMPLEMENT_INITIATION_RITES]: ...this into distinct phases.
3183 (PHASE_ONE_RITES, PHASE_TWO_RITES): Define constants to identify them.
3184 (do_init_rites): Renamed to...
3185 (invoke_rites): ...this; inline it.
3186 (pkgLastRites): Invoke it, to pre-empt rename action of...
3187 (lastrites.exe): ...this, subsequently exec()ed process.
3188 (perror): Issue more informative diagnostic on exec() failure.
3190 * src/clistub.c (IMPLEMENT_INITIATION_RITES): Stipulate as...
3191 (PHASE_ONE_RITES): ...this phase of implementation only.
3193 * src/pkgexec.cpp (IMPLEMENT_INITIATION_RITES): Define to provide...
3194 (PHASE_TWO_RITES): ...this phase of implementation, facilitated by...
3195 (self_upgrade_rites): ...this locally defined RITES_INLINE function.
3196 (pkgActionItem::Execute): Invoke it, in remove/install loop, while...
3197 [init_rites_pending]: ...new loop local variable remains true.
3199 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
3201 Fix packaging bug in -lic package.
3203 * Makefile.in (licdist): Use directory named
3204 "share", not "shared".
3206 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
3208 mingw-get-0.1-mingw32-alpha-4 released.
3210 * All files (r0-1-alpha-4): Tag assigned.
3212 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
3214 Add rudimentary help option.
3216 * README: Update release notes.
3218 * src/clistub.c: Add --help option.
3220 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
3222 Fix "mingw-get deletes itself" bug in last rites handling.
3224 * README: Add new release notes.
3226 * configure.ac: Bump version to 0.1-alpha-4.
3228 * src/dmh.h: If __cplusplus, include <exception> and
3229 declare dmh_exception class.
3231 * src/dmh.cpp (class dmh_exception): Implement.
3232 (abort_if_fatal): If DMH_FATAL, throw dmh_exception rather
3233 than calling exit().
3235 * src/climain.cpp (climain): Wrap entire function body in try/
3236 catch block. If dmh_exception is caught, return EXIT_FAILURE.
3238 * src/clistub.c (main): Capture return value of climain(). If
3239 non-zero, perform last rites and return EXIT_FAILURE.
3241 2010-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
3243 mingw-get-0.1-mingw32-alpha-3 released.
3245 * README: Add new release notes.
3247 * All files (r0-1-alpha-3): Tag assigned.
3249 2010-08-27 Keith Marshall <keithmarshall@users.sourceforge.net>
3251 Add runtime hooks to support self-upgrade for future releases.
3253 * src/rites.c: New file; compile it free-standing, to provide...
3254 (lastrites.exe): ...this helper application for context clean-up;
3255 alternatively, use it as an include file, with pre-definition of...
3256 (IMPLEMENT_INITIATION_RITES): ...this, to implement...
3257 (pkgInitRites, pkgLastRites): ...these inline functions.
3259 * src/clistub.c (main) [argc > 1]: Use them.
3260 (progname): New local variable within `main'; set it once, then use it
3261 instead of repeated references to `basename(*argv)' in diagnostics.
3262 (MINGW_GET_DLL, MINGW_GET_GUI): Relocate to `src/rites.c'.
3264 * src/debug.h (DEBUG_INHIBIT_RITES_OF_PASSAGE):
3265 (DEBUG_FAIL_FILE_RENAME_RITE, DEBUG_FAIL_FILE_UNLINK_RITE): New
3266 defines; they facilitate debugging of the src/rites.c code.
3268 * Makefile.in (lastrites$EXEEXT): New target; build as prerequisite...
3269 (all): ...of this primary target.
3270 (install, install-strip): Install it.
3271 (SRCDIST_FILES): Remove install-sh; it is now included in...
3272 (build-aux): ...this directory; add it to...
3273 (SRCDIST_SUBDIRS): ...this.
3275 2010-08-24 Keith Marshall <keithmarshall@users.sourceforge.net>
3277 Set default sysroots relative to mingw-get installation directory.
3279 * xml/profile.xml (system-map) [name == default]: For each of...
3280 [subsystem == mingw32]: ...set sysroot path to value of %R macro...
3281 [subsystem == msys]: ...and to its %R/msys/1.0 subdirectory.
3283 2010-08-19 Keith Marshall <keithmarshall@users.sourceforge.net>
3285 Some dependency resolver enhancements and bug fixes.
3287 * src/pkgbase.h (pkgXmlNode::GetContainerAttribute): New method;
3290 * src/pkgdeps.cpp (pkgXmlNode::GetContainerAttribute): Implement it;
3291 it is used to retrieve package name attributes from the containing
3292 'package' element, when given a pointer to a 'release' element by...
3293 (assert_unmatched, assert_installed): ...these new static functions.
3294 (pkgXmlDocument::Schedule): Use them to reconstruct and register
3295 dependency reference data for previously installed packages which are
3296 no longer included in the distribution manifest.
3297 (pkgXmlDocument::ResolveDependencies): Fix a block nesting error;
3298 catch and diagnose unresolved dependencies; don't look beyond the XML
3299 document root node, (tinyxml error not caught?), when searching for
3300 requirements specified on container nodes.
3302 2010-08-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3304 Improve scheduling of package processing requests.
3306 * src/pkgexec.cpp (pkgXmlDocument::Schedule): Inspect entire `actions'
3307 list, when checking for duplicate package processing requests; decline
3308 to schedule any such duplicate, or any request which lacks a package
3311 2010-08-15 Keith Marshall <keithmarshall@users.sourceforge.net>
3313 Lay foundation for selective compilation of debugging code.
3315 * src/debug.h: New file...
3316 * src/sysroot.cpp: Include it.
3317 (pkgXmlDocument::LoadSystemMap): Make debugging output conditional...
3318 [DEBUGLEVEL & DEBUG_TRACE_INIT]: ...on this new debugging state.
3320 2010-08-15 Keith Marshall <keithmarshall@users.sourceforge.net>
3322 * src/pkgkeys.h: Typo in comment: file was previously identified as
3323 pkgkeys.c; corrected.
3325 2010-08-13 Keith Marshall <keithmarshall@users.sourceforge.net>
3327 Improve diagnostics for invalid references to non-release XML nodes.
3329 * src/pkgkeys.h (value_unknown): New global string; declare it.
3330 * src/pkgkeys.c (value_unknown): Implement it.
3332 * src/pkgname.cpp (pkgArchiveName): Identify XML element type when
3333 diagnosing references to elements of types other than release; use...
3334 (value_unknown): ...this, as appropriate.
3336 2010-08-12 Keith Marshall <keithmarshall@users.sourceforge.net>
3338 Guard against a potential buffer overrun.
3340 * src/pkgreqs.cpp (pkgSpecs::SetProperty): Allocate an additional
3341 byte to accommodate an extra field separator, when inserting a new
3342 data value into a previously empty field.
3344 2010-07-27 Cesar Strauss <cestrauss@gmail.com>
3346 Handle the GNU long name tar header format.
3348 * src/pkgproc.h (TAR_ENTITY_TYPE_GNU_LONGNAME): New manifest constant;
3350 (pkgTarArchiveProcessor::EntityDataAsString): New protected method;
3352 * src/tarproc.cpp: ...implement it.
3353 (pkgTarArchiveProcessor::Process): Before building the entry pathname,
3354 check for a GNU long name type header; when found, read pathname from
3355 the entry data area, before fetching the following header, from which
3356 to retrieve the associated entity data.
3358 2010-06-24 Keith Marshall <keithmarshall@users.sourceforge.net>
3360 Work around an autoconf bug (reported by Stefano Sabatini).
3362 * Makefile.in (VPATH): Use @top_srcdir@ instead of ${srcdir}; current
3363 autoconf incorrectly elides references to @srcdir@ and ${srcdir} when
3364 substituting within a VPATH specification for building `in-source'.
3365 Also, prefer colons to blanks as path name separators, for improved
3366 portability to non-GNU implementations of make; (recommendation by
3369 2010-06-24 Keith Marshall <keithmarshall@users.sourceforge.net>
3371 Include alias search, when matching component package name.
3373 * src/keyword.c (has_keyword): Rearrange argument declarations for
3374 more natural order; update all callers accordingly. Simplify; compare
3375 keyword to be matched with each successive candidate from match-list,
3376 character-by-character and in-place, so avoiding memory allocation
3377 for any local duplicate of the passed match-list; thus...
3378 (safe_strdup): ...this static function no longer required; delete it.
3379 (string.h): No references remain; do not include it.
3381 * src/pkgfind.cpp (pkgXmlNode::FindPackageByName): Augment component
3382 package name matching to include potential matches of the look-up name
3383 with trailing component name stripped off, when that matches the class
3384 name of an identified component package, and the initial substring of
3385 the look-up name, after stripping, matches any specified alias name
3386 for the containing package.
3388 2010-06-10 Keith Marshall <keithmarshall@users.sourceforge.net>
3390 Address FIXME relating to identification of distributable files.
3392 * install-sh: Move to...
3393 * build-aux: ...this new directory.
3395 * Makefile.in (PACKAGE_DISTVERSION): Modify `sed' edit sequence; make
3396 it depend on, and ensure that it incorporates the expansion of...
3397 (PACKAGE_SUBSYSTEM): ...this new macro; defined as substitution of...
3398 (host_os): ...this autoconf variable, set by...
3400 * configure.ac (AC_CANONICAL_HOST): ...this; add it, requiring...
3401 (AC_CONFIG_AUX_DIR): ...`build-aux' directory reference, providing...
3403 * build-aux/config.guess, build-aux/config.sub: ...these new standard
3404 files; import them from the standard `build-aux' repository.
3406 2010-05-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3408 Bump version for next release cycle.
3410 * configure.ac (AC_INIT): Bump version suffix to alpha-3.
3412 2010-05-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3414 mingw-get-0.1-mingw32-alpha-2 released.
3416 * README: Add new release notes.
3418 * xml/profile.xml: Update to use default referencing for...
3419 (package-list.xml.lzma): ...this repository master catalogue.
3421 * All files (r0-1-alpha-2): Tag assigned.
3423 2010-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
3425 Make provision to protect user's profile settings during upgrade.
3427 * Makefile.in (install): Remove `profile.xml'; replace it with...
3428 (install-profile): ...this new prerequisite installation goal; it
3429 renames the installed copy of `profile.xml' as `defaults.xml', within
3430 the installed package image.
3432 * src/pkgkeys.h (defaults_key): New key; declare it.
3433 * src/pkgkeys.c: Some cosmetic formatting (tabulation) adjustments.
3434 (defaults_key): Implement it; it refers to the `defaults.xml' file.
3436 * src/climain.cpp (climain): Check `profile_key' for accessibility of
3437 the `profile.xml' file; if [! R_OK] emit a diagnostic warning, fall
3438 back on `defaults_key', and attempt to load configuration from the
3439 distributed `defaults.xml' file.
3441 2010-05-11 Keith Marshall <keithmarshall@users.sourceforge.net>
3443 Add preliminary support for future `-reinstall' option.
3445 * src/pkgexec.cpp (pkgActionItem::Execute) [ACTION_INSTALL]: Force
3446 installation if `-reinstall' option is selected, overriding state of
3447 any prior installation; temporarily assume that this option is always
3448 selected, to permit proper `upgrade' operation in the absence of any
3449 functional `uninstall' capability, and pending implementation of a
3450 mechanism for interpreting user specified options.
3452 2010-05-11 Keith Marshall <keithmarshall@users.sourceforge.net>
3454 Correct handling for "%R" macro in relative sysroot path specs.
3456 * src/tarproc.cpp (pkgTarArchiveProcessor): In constructor, expand the
3457 sysroot path specification a second time, to capture the effect of any
3458 embedded macros, before computing the recorded `sysroot_len' value.
3460 2010-05-05 Keith Marshall <keithmarshall@users.sourceforge.net>
3462 Handle "%" wildcard matches in package and subsystem version strings.
3464 * src/pkgbase.h (pkgSpecs): Forward declare it.
3465 (pkgActionItem::~pkgActionItem): Declare explicit destructor.
3466 (pkgActionItem::SetRequirements): Add extra `pkgSpecs*' argument;
3467 update references, passing additional argument in...
3469 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): ...this.
3471 * src/pkgexec.cpp (pkgActionItem::~pkgActionItem): Implement it.
3472 (pkgActionItem::SetRequirements): Delete obsolete implementation.
3474 * src/pkginfo/pkginfo.h: Update copyright notice; add year 2010.
3475 (pkgSpecs::GetTarName): New public method; declare it.
3476 (pkgSpecs::SetProperty): New private method; declare it.
3477 (pkgSpecs::SetPackageName): New inline method; implement it.
3478 (pkgSpecs::SetPackageVersion, pkgSpecs::SetPackageBuild): Likewise.
3479 (pkgSpecs::SetSubSystemName, pkgSpecs::SetSubSystemVersion): Likewise.
3480 (pkgSpecs::SetSubSystemBuild, pkgSpecs::SetReleaseStatus): Likewise.
3481 (pkgSpecs::SetReleaseIndex, pkgSpecs::SetComponentClass): Likewise.
3482 (pkgSpecs::SetComponentVersion, pkgSpecs::SetPackageFormat): Likewise.
3483 (pkgSpecs::SetCompressionType): Likewise.
3485 * src/pkginfo/pkginfo.l: Update copyright notice; add year 2010.
3486 (TRANS): Interpret "%" as wildcard in version string matches.
3488 * src/pkgreqs.cpp: New file.
3489 (pkgActionItem::SetRequirements): Reimplement per new declaration;
3490 it now always allocates heap memory for requirements specifications.
3491 (pkgSpecs::GetTarName, pkgSpecs::SetProperty): Implement them.
3493 * Makefile.in (CORE_DLL_OBJECTS): Add `pkgreqs.$(OBJEXT)'.
3495 2010-04-30 Keith Marshall <keithmarshall@users.sourceforge.net>
3497 Revert 2010-04-04 refactoring of tarproc.cpp and tarinst.cpp
3499 * src/tarinst.cpp: File removed; its content merged into...
3500 * src/tarproc.cpp: ...this; it cannot be cleanly separated out.
3502 * Makefile.in (tarinst.$OBJEXT): Remove reference.
3504 2010-04-29 Keith Marshall <keithmarshall@users.sourceforge.net>
3506 Handle "*" wildcard matches in package and subsystem version strings.
3508 * src/vercmp.h (pkgVersionInfo::version_string): New private member
3509 variable; it stores a pointer to a dynamically allocated local copy of
3510 the invariant `version' argument, to facilitate correct parsing.
3511 (pkgVersionInfo::build_string): Likewise; it provides similar handling
3512 for the invariant `build' argument.
3513 (pkgVersionInfo::Free): New private inline method; it provides a NULL
3514 pointer safe wrapper, calling the C library `free()' function, (since
3515 some implementations are believed to be unsafe); it is used by...
3516 (pkgVersionInfo::~pkgVersionInfo): ...this new inline destructor, to
3517 release the memory allocated by the constructor, for `version_string'
3520 * src/vercmp.cpp (pkgVersionInfo::pkgVersionInfo): Allocate memory for
3521 `version_string' and `build_string', as required; populate it.
3522 Explicitly handle "*" as a `match anything' wildcard...
3523 (pkgVersionInfo::Compare): ...matching it as `equal' to everything.
3525 2010-04-18 Keith Marshall <keithmarshall@users.sourceforge.net>
3527 Correct omission from configure script prerequisite checks.
3529 * aclocal.m4 (MINGW_AC_OUTPUT): New macro; it wraps AC_OUTPUT itself,
3530 adding a trap to force an abort if any preceding prerequisite check
3531 was handled by MINGW_AC_ASSERT_MISSING.
3533 * configure.ac: Qualify package component types, in prerequisite
3534 checks handled by MINGW_AC_ASSERT_MISSING; invoke MINGW_AC_OUTPUT
3535 in place of AC_OUTPUT.
3537 2010-04-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3539 Add configure script checks for prerequisite library headers.
3540 (Thanks to Cesar Strauss for proposing a rudimentary implementation).
3542 * aclocal.m4: New file; it does no more than include...
3543 * m4/missing.m4: ...this; new file incorporated from build-aux module.
3545 * configure.ac: Add AC_CHECK_HEADER assertions for...
3546 (zlib.h, bzlib.h, lzma.h): ...these; invoke MINGW_AC_ASSERT_MISSING in
3547 respect of each failing assertion.
3549 2010-04-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3551 Case-insensitive subsystem name matching revisited.
3553 * src/pkgfind.cpp (pkgXmlDocument::FindPackageByName): Use...
3554 (subsystem_strcmp): ...this to match subsystem names, instead of...
3555 (match_if_explicit): ...this.
3557 2010-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
3559 Enable recursive processing of repository package lists.
3561 * src/pkgbase.h (pkgXmlDocument::SyncRepository): Make it public.
3563 * src/pkgbind.cpp (pkgRepository): New locally defined and implemented
3564 class; it facilitates recursive loading and parsing of package lists,
3565 replacing much of the original non-recursive functionality within...
3566 (pkgXmlDocument::BindRepositories): ...this; use it.
3568 2010-04-04 Keith Marshall <keithmarshall@users.sourceforge.net>
3570 Implement installer function; use per-package file manifests.
3572 * src/pkgproc.h (pkgManifest): New class; declare it.
3573 (pkgArchiveProcessor::origin): New protected member variable.
3574 (pkgArchiveProcessor::sysroot_len): New protected member variable.
3575 (pkgArchiveProcessor::installed): Type changed to `pkgManifest *'.
3576 (pkgTarArchiveInstaller::Process): Declare specialisation hook.
3577 (pkgTarArchiveInstaller::UpdateInstallationManifest): Disused member
3578 function; remove redundant declaration from class definition.
3579 (pkgInstall): New generalised installation function; declare it.
3580 (pkgRegister): New function; declare it.
3582 * src/pkginst.cpp: New file.
3583 (pkgManifest, pkgInstall, pkgRegister): Implement them.
3585 * src/pkgexec.cpp (pkgActionItem::Execute): Use `pkgInstall' in place
3586 of stub formerly provided here.
3588 * src/pkgkeys.h (manifest_key, reference_key): New keys; declare them.
3589 * src/pkgkeys.c (manifest_key, reference_key): Implement them.
3591 * src/tarproc.cpp: Code refactored.
3592 (pkgTarArchiveProcessor::sysroot_len): Initialise it.
3593 (pkgTarArchiveProcessor::origin): Initialise it.
3594 (pkgTarArchiveProcessor::installed): Initialise; associate it with a
3595 pkgManifest class entity, and populate this as appropriate.
3596 (pkgTarArchiveProcessor::~pkgTarArchiveProcessor): Add explicit clean
3597 up of linked `pkgManifest *' entity referenced by `installed'.
3598 (pkgTarArchiveProcessor::Process) [TAR_ENTITY_TYPE_DIRECTORY]: Add
3599 braces to demarcate localised inner scope of string scan for removal
3600 of trailing directory name separators; (thanks to Cesar Strauss for
3601 reporting invalid local pointer declaration error in GCC >= 4.4).
3602 (pkgTarArchiveInstaller::UpdateInstallationManifest): Deleted.
3603 (pkgTarArchiveInstaller::pkgTarArchiveInstaller): Factor out.
3604 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
3605 (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
3606 (commit_saved_entity): Likewise.
3608 * src/tarinst.cpp: New file; it implements...
3609 (pkgTarArchiveInstaller::Process): ...this new specialisation
3610 of the original pkgTarArchiveProcessor::Process method...
3611 (pkgTarArchiveInstaller::pkgTarArchiveInstaller): ...and this
3612 refactored code, abstracted from src/tarproc.cpp and modified to
3613 use the pkgManifest class for installation tracking.
3614 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
3615 (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
3616 (commit_saved_entity): Relocated from src/tarproc.cpp.
3618 * Makefile.in (CORE_DLL_OBJECTS): Add...
3619 (pkginst.OBJEXT, tarinst.OBJEXT): ...these new object files.
3621 2010-03-31 Keith Marshall <keithmarshall@users.sourceforge.net>
3623 Guard against NULL pointer dereferences in tinyxml code.
3625 * src/pkgbase.h (pkgXmlNode::GetName): Verify `this' pointer is
3626 non-NULL, before invoking the underlying tinyxml method.
3627 (pkgXmlNode::GetParent, pkgXmlNode::GetChildren): Likewise.
3628 (pkgXmlNode::GetNext, pkgXmlNode::GetPropVal): Likewise.
3629 (pkgXmlNode::AddChild, pkgXmlNode::DeleteChild): Likewise.
3630 (pkgXmlNode::GetDocumentRoot): Likewise.
3631 (pkgXmlNode::IsElementOfType): Likewise.
3633 2010-03-28 Cesar Strauss <cestrauss@gmail.com>
3635 Avoid running InternetAttemptConnect in pkgInternetAgent
3636 constructor, since it is called during DLL initialisation.
3638 * src/pkginet.cpp (pkgInternetAgent::pkgInternetAgent): Move the
3639 InternetAttemptConnect call from constructor...
3640 (pkgInternetAgent::OpenURL): ...to here.
3642 2010-03-23 Keith Marshall <keithmarshall@users.sourceforge.net>
3644 Automate object code dependency tracking.
3646 * Makefile.in (DEPFLAGS): New macro; define it.
3647 (%.OBJEXT: %.c, %.OBJEXT: %.cpp): Add dependency generator commands...
3648 (%.d): ...to create these dependency maps; `sinclude' them, and...
3649 (clean): ...remove them.
3651 * .cvsignore (*.d): Add wild card template to match them.
3653 2010-03-22 Keith Marshall <keithmarshall@users.sourceforge.net>
3655 Support case insensitive matching for file and subsystem names.
3657 * src/pkgbase.h (safe_strcmp): New inline function; it provides NULL
3658 argument safe comparison of strings, returning the boolean inverse of
3659 the `strcmp' result, using either case-sensitive or case-insensitive
3660 semantics; derive it from...
3661 (match_if_explicit): ...this; redefine as macro; invoke `safe_strcmp'
3662 using explicitly case-sensitive semantics.
3663 (subsystem_strcmp): New macro; it invokes `safe_strcmp' with either
3664 case-sensitive or case-insensitive semantics, depending on...
3665 (CASE_INSENSITIVE_SUBSYSTEMS): ...this new context selection macro; it
3666 fixes the choice between case-sensitive and case-insensitive matching
3667 semantics for any given implementation, at compile time.
3668 (pkg_strcmp): New macro; it invokes `safe_strcmp' with either
3669 case-sensitive or case-insensitive semantics, depending on...
3670 (CASE_INSENSITIVE_FILESYSTEM): ...this new context selection macro; it
3671 fixes the choice between case-sensitive and case-insensitive matching
3672 semantics for any given implementation, at compile time.
3674 * src/sysroot.cpp (pkgXmlNode::GetSysRoot): Use `subsystem_strcmp'.
3676 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
3678 Add preliminary support for virtual packages.
3680 * src/pkgkeys.h (yes_value, no_value): Redefine as aliases...
3681 (value_yes, value_no): ...for these new global strings; declare them.
3682 (value_none, value_virtual): New global strings; declare them.
3684 * src/pkgkeys.c (yes_value, no_value): Rename...
3685 (value_yes, value_no): ...to implement these, respectively.
3686 (value_none, value_virtual): Implement them.
3688 * src/pkgname.cpp (pkgXmlNode::ArchiveName): Check containing package
3689 node for `class' attribute set to `value_virtual'; if present, always
3690 return the effective `tarname' property as `value_none'.
3692 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): For packages
3693 with an effective `tarname' of `value_none', do not download anything.
3695 * src/pkgexec.cpp (pkgActionItem::Execute): For packages with an
3696 effective `tarname' of `value_none', do not invoke any tar archive
3697 processing function.
3699 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
3701 Don't write installation records for unavailable packages.
3703 * src/tarproc.cpp (pkgTarArchiveInstaller): In constructor, ensure
3704 archive is ready for processing, before initialising an installation
3707 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
3709 Rationalise path identification for XML file locations.
3711 * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Use `xmlfile()'
3712 function to locate `sysroot' map file; free memory when done.
3713 (pkgXmlDocument::UpdateSystemMap): Likewise.
3714 (sigpath): Static global variable disused; delete it.
3716 2010-03-01 Keith Marshall <keithmarshall@users.sourceforge.net>
3718 Extend package name search to include component packages.
3720 * src/pkgfind.cpp (pkgHasMatchingName): Remove; fold it into...
3721 (pkgXmlNode::FindPackageByName): ...this; augment to extend search
3722 within package definition elements, seeking a potential match on an
3723 included component package name or component class-implied name.
3725 * src/pkgkeys.h (class_key): New global string constant; declare it.
3726 * src/pkgkeys.c (class_key): Implement it.
3728 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3730 Bump version for next release cycle.
3732 * configure.ac (AC_INIT): Bump version suffix to alpha-2.
3734 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3736 mingw-get-0.1-mingw32-alpha-1 released.
3738 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3740 Prepare initial package release.
3742 * README: New file; use it to source release notes.
3744 * Makefile.in (SRCDIST_FILES): Use ...
3745 (LICENCE_FILES): ...this new macro; define it.
3746 (licdist): New build goal; implement it.
3747 (bindist): Require it; add alternative `zip' format package.
3749 * xml/profile.xml (repository): Set default `package-index' name.
3750 (system-map): Normalise spelling for default `sysroot' path names.
3752 2010-02-10 Keith Marshall <keithmarshall@users.sourceforge.net>
3754 Add directory/file records in installation manifests.
3756 * src/pkgkeys.h (dirname_key, filename_key): New strings; declare...
3757 * src/pkgkeys.c (dirname_key, filename_key): ...and implement them.
3759 * src/pkgproc.h (pkgArchiveProcessor::installed): New class member
3760 variable; declare it.
3761 (pkgTarArchiveInstaller::UpdateInstallationManifest): New method;
3764 * src/tarproc.cpp: Miscellaneous comment updates.
3765 (pkgTarArchiveInstaller): In constructor...
3766 (pkgTarArchiveInstaller::installed): ...use new member variable...
3767 (pkgArchiveProcessor::installed): ...inherited from this.
3768 (pkgTarArchiveInstaller::UpdateInstallationManifest): Implement and...
3769 (pkgTarArchiveInstaller::ProcessDataStream): ...use it.
3770 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
3772 2010-02-06 Keith Marshall <keithmarshall@users.sourceforge.net>
3774 Work around a deficiency in Microsoft's stat() implementation.
3776 * src/tarproc.cpp (pkgTarArchiveProcessor::ProcessDirectory): Don't
3777 pass a `pathname' argument with trailing slashes; strip them off.
3779 2010-02-06 Keith Marshall <keithmarshall@users.sourceforge.net>
3781 Add machinery for installation and packaging for distribution.
3783 * install-sh: New file; source it from autoconf distribution.
3785 * configure.ac (AC_PREFIX_DEFAULT): Assign it as `C:/MinGW'.
3786 (AC_PROG_MKDIR_P, AC_PROG_INSTALL, AC_PROG_LN_S): Invoke these.
3787 (STRIP): New output variable; use AC_CHECK_TOOL to define it.
3789 * Makefile.in (abs_top_srcdir): Define to AC_SUBST value.
3790 (PACKAGE_TARNAME, PACKAGE_VERSION): Define to AC_SUBST values.
3791 (prefix, exec_prefix, bindir, libexecdir, localstatedir): Likewise.
3792 (INSTALL, INSTALL_PROGRAM, INSTALL_SCRIPT, INSTALL_DATA): Likewise.
3793 (STRIP): New macro; define it using AC_CHECK_TOOL substitution.
3794 (mkinstalldirs): New macro; define it as AC_PROG_MKDIR_P result.
3795 (LN_S): New macro; define it as AC_PROG_LN_S result.
3796 (dist, srcdist, bindist): New build objectives; implement them.
3797 (install, installdirs, install-strip, maintainer-clean): Likewise.
3798 (SRCDIST_FILES, SRCDIST_SUBDIRS): New macros; define them.
3799 (PACKAGE_DISTNAME, PACKAGE_DISTVERSION): Likewise.
3800 (PACKAGE_DISTROOT, PACKAGE_ROOTVERSION): Likewise.
3801 (PACKAGE_CONFIG_DIR): Likewise.
3803 2010-02-02 Keith Marshall <keithmarshall@users.sourceforge.net>
3805 Implement package installer for tar archives.
3807 * src/pkgexec.cpp (pkgXmlDocument::Execute): Replace existing
3808 stub implementation of installer, using methods provided by...
3809 * src/pkgproc.h, src/tarproc.cpp: ...these new files, with trap...
3810 * src/pkgdeps.cpp (pkgXmlDocument::Schedule) [installed]: Add entry...
3811 (pkgActionItem::Selection) [to_remove]: ...for this; use it to detect
3812 `install' requests for packages which are aleady installed.
3814 * Makefile.in (CORE_DLL_OBJECTS): Add tarproc.$(OBJEXT); specify
3815 dependencies as appropriate.
3817 * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Don't commit
3818 newly created `sysroot' mapping records to disk; defer to...
3819 (pkgXmlDocument::UpdateSystemMap): ...this new method.
3820 (sigpath): Make it a global variable, with file (static) scope.
3822 * src/climain.cpp (pkgXmlDocument::UpdateSystemMap): Invoke it.
3824 * src/pkgkeys.h (download_key, modified_key, source_key): New global
3825 string variables; declare them, providing their implementations...
3826 * src/pkgkeys.c (download_key, modified_key, source_key): ...here.
3827 * src/pkgname.cpp (download_key, source_key): Use them.
3829 * src/pkginet.cpp (pkgActionItem::ArchivePath): Delete; replace...
3830 * src/mkpath.c (pkgArchivePath): ...with this free standing function.
3831 * src/mkpath.h (pkgArchivePath): Declare its prototype.
3833 * src/pkgbase.h (pkgActionItem::ArchivePath): Delete declaration.
3834 (pkgXmlDocument): Add a default constructor; implement as `inline'.
3835 (pkgXmlDocument::AddDeclaration): Use heap memory to allocate the new
3836 declaration object, instead of `auto' variable, to avoid scope error.
3837 (pkgXmlDocument::UpdateSystemMap): Declare it.
3839 2010-01-26 Keith Marshall <keithmarshall@users.sourceforge.net>
3841 Implement rudimentary dependency resolver.
3843 * src/pkgdeps.cpp: New file.
3845 * Makefile.in (CORE_DLL_OBJECTS): Add pkgdeps.$(OBJEXT) reference;
3846 establish header file dependencies.
3848 * src/pkgbase.h (to_remove, to_install, selection_types): New enum.
3849 (pkgActionItem::selection): Extend it to store as enumerated pair...
3850 (pkgActionItem::SelectPackage): New inline method; assign them.
3851 (pkgActionItem::Selection): New inline method; retrieve them.
3852 (pkgXmlNode::GetInstallationRecord): New method; declare it.
3854 * src/pkgexec.cpp (pkgActionItem): In constructor...
3855 (selection): ...initialise both references in enumerated pair.
3856 (pkgActionItem::GetReference): Use `Selection()' method.
3857 (pkgActionItem::SelectIfMostRecent): Ditto; also correct logic for
3858 making selection, and assign to `to_install' element.
3859 (pkgXmlDocument::Schedule): Don't update `request'.
3860 (pkgActionItem::Execute): Implement as stub.
3862 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): Use new
3863 `Selection()' method.
3865 * src/pkgkeys.h (yes_value, no_value): Declare new string constants.
3866 * src/pkgkeys.c (yes_value, no_value): Implement them.
3868 * src/vercmp.cpp: Update copyright notice.
3869 (pkgVersionInfo::operator<=): Bug fix; must test for `<', but had `>'.
3871 2010-01-23 Keith Marshall <keithmarshall@users.sourceforge.net>
3873 Avoid segmentation faults when processing invalid data streams.
3875 * src/pkgstrm.h: Update copyright notice.
3876 (pkgArchiveStream::IsReady): New pure virtual method.
3877 (pkgRawArchiveStream::IsReady): Provide inline implementation.
3878 (pkgGzipArchiveStream::IsReady): Likewise.
3879 (pkgBzipArchiveStream::IsReady): Likewise.
3880 (pkgLzmaArchiveStream::IsReady): Likewise.
3881 (pkgXzArchiveStream::IsReady): Likewise.
3883 * src/pkgstrm.cpp: Update copyright notice.
3884 (pkgLzmaArchiveStream, pkgXzArchiveStream) [fd == -1]: Decline to
3885 perform any form of read or decode processing.
3887 * src/pkginet.cpp (pkgInternetLzmaStreamingAgent): Use `fd = -2' as
3888 pseudo-descriptor for the pkgLzmaArchiveStream derived component of
3889 this internet data streaming class.
3891 2010-01-23 Keith Marshall <keithmarshall@users.sourceforge.net>
3893 Require liblzma >= liblzma-4.999.9beta_20091209-3-mingw32-dev
3895 * src/pkgstrm.h (LZMA_API_STATIC): Remove definition and associated
3896 comment; it was required to permit, (but not to enforce), linking to
3897 the static liblzma.a library, with earlier beta releases, but this
3898 anomaly has now been corrected.
3900 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
3902 Remove zlib sources from trunk.
3903 (Application builders should use free standing implementation of
3904 zlib, from MinGW's package distribution page on SourceForge).
3906 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
3908 Remove bzip2 sources from trunk.
3909 (Application builders should use free standing implementation of
3910 bzip2, from MinGW's package distribution page on SourceForge).
3912 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
3914 Add subsystem specific sysroot mapping facility.
3916 * src/pkghash.c: New file; required by...
3917 * src/sysroot.cpp: New file; it implements...
3918 (pkgXmlDocument::LoadSystemMap, pkgXmlNode::GetSysRoot): New methods.
3920 * src/pkgbase.h: Update copyright notice.
3921 (pkgXmlDocument::LoadSystemMap): Declare it.
3922 (pkgXmlDocument::AddDeclaration): New inline method.
3923 (pkgXmlDocument::SetRoot, pkgXmlDocument::Save): Likewise.
3924 (pkgXmlNode::GetSysRoot): Declare it.
3925 (pkgXmlNode::GetDocumentRoot): New inline method.
3926 (pkgXmlNode::AddChild, pkgXmlNode::DeleteChild): Likewise.
3928 * src/climain.cpp: Update copyright notice.
3929 (climain): Invoke pkgXmlDocument::LoadSystemMap() as required.
3931 * Makefile.in (CORE_DLL_OBJECTS): Add ...
3932 (pkghash.$(OBJEXT), sysroot.$(OBJEXT)): ...these; upate dependencies.
3933 (DEBUGLEVEL): New macro; define it.
3936 2010-01-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3938 Assign standardised keys for XML database lookup.
3940 * src/pkgkeys.h: New file; provide public key declarations.
3941 * src/pkgkeys.c: New file; implement them.
3943 * src/pkgbind.cpp: Use them; update copyright notice.
3944 * src/pkgexec.cpp, src/pkgfind.cpp, src/pkginet.cpp: Likewise.
3945 * src/pkgname.cpp, src/pkgspec.cpp: Likewise.
3947 * Makfile.in (CORE_DLL_OBJECTS): Add pkgkeys.$(OBJEXT); update all
3948 dependencies accordingly.
3950 2010-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
3952 Add CLI version reporting option.
3954 * configure.ac: Update copyright notice for new year.
3955 (COPYRIGHT_HOLDER): New AC_SUBST variable; define it.
3956 (YEARS_OF_ISSUE): New AC_SUBST variable; define it.
3957 (AC_CONFIG_FILES): Add `version.c'; source it from...
3959 * version.c.in: ...this new file.
3961 * Makefile.in: Update copyright notice for new year.
3962 (mingw-get$(EXEEXT)): Add dependency on `version.$(OBJEXT)'.
3963 (distclean): Add `version.c'.
3965 * configure: Regenerated.
3967 * src/clistub.c: Update copyright notice for new year.
3968 (options): New array of `struct option'; define and use it as the
3969 reference for `argv' parsing with `getopt_long_only()'.
3971 2009-12-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3973 Add CLI support for "update" action.
3975 * src/pkgtask.h (ACTION_UPDATE): Define it, derived from...
3976 (action_update): ...this new entry in anonymous enumeration.
3978 * src/pkgexec.cpp (action_name): Add "update" keyword identification.
3980 * src/pkgbase.h: Typo in comment; s/xwXmlDocument/wxXmlDocument/.
3981 (pkgXmlDocument::BindRepositories): Add `force_update' parameter...
3982 * src/pkgbind.cpp (pkgXmlDocument::BindRepositories): Use it to...
3983 (pkgXmlDocument::SyncRepository): ...invoke this method when passed as
3984 a `true' flag, in addition to (as previously) first time reference.
3986 * src/climain.cpp (climain): Interpret "update" keyword for...
3987 [ACTION_UPDATE]: ...passing state as `force_update' parameter to...
3988 (pkgXmlDocument::BindRepositories): ...this method, then...
3989 [!ACTION_UPDATE]: Follow with normal action processing.
3991 2009-12-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3993 Add status checking for Internet URL connections.
3995 * src/pkginet.cpp (pkgInternetAgent::QueryStatus): New method.
3996 (pkgInternetStreamingAgent::Get): Use it; set `dl_status' as return
3997 value, deferring failure diagnostics to callers, i.e. to...
3998 (pkgXmlDocument::SyncRepositories): ...this, and to...
3999 (pkgActionItem::DownloadArchiveFiles): ...this.
4001 2009-11-23 Keith Marshall <keithmarshall@users.sourceforge.net>
4003 Add package download and repository synchronisation machinery.
4005 * src/pkgstrm.h: New header file.
4007 * src/pkgbind.cpp, src/pkginet.cpp, src/pkgstrm.cpp,
4008 src/pkgfind.cpp, src/pkgname.cpp, src/keyword.c: New files.
4009 * Makefile.in (CORE_DLL_OBJECTS): Add build goals for them.
4011 * xml: New directory.
4013 * src/climain.cpp (climain): Establish repository bindings from...
4014 * xml/profile.xml: ...this new configuration file.
4016 2009-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
4018 Add XML database bindings and preliminary action executive for CLI.
4020 * src/pkgbase.h, src/pkgtask.h,
4021 src/mkpath.h, src/vercmp.h: New header files.
4023 * src/climain.cpp, src/pkgexec.cpp, src/pkgspec.cpp,
4024 src/mkpath.c, src/vercmp.cpp, src/xmlfile.c: New files.
4026 * Makefile.in (CORE_DLL_OBJECTS): Define initial set of files...
4027 (mingw-get-0.dll): ...build them into this new DLL target; add it...
4028 (all): ...as prerequisite for this primary build goal.
4030 2009-11-12 Keith Marshall <keithmarshall@users.sourceforge.net>
4032 Avoid some potential GCC warnings.
4034 * src/clistub.c: Include process.h for `execv' prototype...
4035 (main): Cast `argv' to appropriately matched type when calling it.
4037 * src/pkginfo/driver.c: Include stdlib.h for `free' prototype.
4039 2009-11-11 Keith Marshall <keithmarshall@users.sourceforge.net>
4041 Create diagnostic message handler for CLI usage.
4043 * src/dmh.h: New header file; it defines the public interface.
4044 * src/dmh.cpp: New file; it implements the message handler.
4046 2009-11-05 Keith Marshall <keithmarshall@users.sourceforge.net>
4048 Correct some identified TinyXML issues.
4050 * tinyxml/tinyxml.h (IsWhiteSpace): Add FIXME annotation to flag
4051 probable redundancy of checks for '\n' and '\r'.
4052 * tinyxml/tinyxmlparser.cpp: Revert John E's 2008-08-09 change; remove
4053 all such redundancies in IsWhiteSpace() calls throughout.
4055 * tinyxml/tinyxml.cpp (TiXmlAttribute::SetDoubleValue): Correct format
4056 specification in sprintf()/snprintf() calls; "%lf" is invalid; replace
4059 2009-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
4061 Add CLI loader stub.
4063 * src/clistub.c: New file.
4064 * Makefile.in: Add build rule for it; build as...
4065 (mingw-get.exe): ...this; also add to...
4066 (clean): ...this goal.
4068 2009-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
4070 Set up build mechanism.
4072 * configure.ac, Makefile.in: New files.
4073 * .cvsignore (configure, autom4te.cache): Add to ignored files.
4075 2009-10-30 Keith Marshall <keithmarshall@users.sourceforge.net>
4077 Add GPL-v3 licensing terms.
4079 * COPYING: New file, sourced from gnu.org.
4081 2009-10-12 Keith Marshall <keithmarshall@users.sourceforge.net>
4083 Add pkginfo implementation.
4085 * src, src/pkginfo: New directories.
4086 * src/pkginfo/pkginfo.h, src/pkginfo/pkginfo.l: New files.
4087 * src/pkginfo/driver.c: New file.
4089 2009-10-12 Keith Marshall <keithmarshall@users.sourceforge.net>
4093 * All files (tdm-branch): Assign new branch tag.
4094 * All top-level files: Remove from trunk.
4095 * ChangeLog: New file.