1 2013-09-21 Keith Marshall <keithmarshall@users.sourceforge.net>
3 Reimplement wsh.lua in C/C++; (cf. MinGW-Bug #2057).
5 * src/pkgexec.cpp (LUA_INLINE): New function attribute definition.
6 (init_lua_path): Use it, reproducing the original function attributes.
7 (lua_isstringarg): New LUA_INLINE helper function; implement it.
8 (lua_wsh_libexec_path): New function; it implements wsh.libexec_path
9 (lua_wsh_execute): New function; it implements wsh.execute
10 (luaload_wsh): New function; it wraps references to lua_wsh_execute()
11 and lua_wsh_libexec_path() to provide the wsh module implementation.
12 (pkgXmlNode::DispatchScript): Preload it into the Lua interpreter.
14 * scripts/libexec/setup.lua (M.argwrap): New method; implement it.
15 (M.shlink, M.unlink): Use it to collect their arguments into a single
16 string, to be passed as the command to be invoked by wsh.execute
18 * scripts/libexec/wsh.lua: File is no longer required; delete it.
19 * Makefile.in (LIBEXEC_SCRIPTS): Remove reference to it.
21 2013-09-20 Keith Marshall <keithmarshall@users.sourceforge.net>
23 Establish default preferences for GUI; (cf. MinGW-Feature #2036)
25 * src/pkgbase.h (pkgXmlDocument::EstablishPreferences): Adjust its
26 prototype; add argument identifying prospective client classification.
28 * src/pkgopts.cpp (client_key): New XML property keyword; define it.
29 (pkgXmlDocument::EstablishPreferences): Implement filter, based on new
30 client classification argument, to restrict preference selection to a
31 matching client class specification.
33 * src/climain.cpp (dbase.EstablishPreferences): Filter on class "cli".
34 * src/guiexec.cpp (pkgData->EstablishPreferences): Likewise, on "gui".
36 * xml/profile.xml (preferences): Add client="cli" attribute for the
37 existing specification; add another for client="gui".
39 2013-09-20 Keith Marshall <keithmarshall@users.sourceforge.net>
41 Force canonical comparison of shell links; (cf. MinGW-Bug #2054)
43 * scripts/libexec/unlink.js [FileExists(filename) && (chklink != "")]:
44 The value of 'chklink' may not be canonical; instantiate an (unsaved)
45 link reference from it, then compare the canonicalized reference from
46 within it, to the reference within 'filename', thus avoiding possible
47 lexical mismatch between canonical and non-canonical forms.
49 2013-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
51 Correct LUA_PATH assignment for GUI; (cf. MinGW-Bug #2052)
53 * src/pkgexec.cpp (LUA_LIBEXEC_PATH): New manifest string; define it.
54 (init_lua_path) <LUA_PATH>: Use it; add guimain.exe app directory.
56 2013-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
58 Handle meta-package removal correctly; (cf. MinGW-Bug #2051)
60 * src/pkgunst.cpp (pkgRemove) [archive == none]: Ensure the pending
61 action flag is cleared; previously this was done during manifest clean
62 up, and since a meta-package has no manifest, it was overlooked.
64 2013-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
66 mingw-get-0.6.1-mingw32-beta-20130910-1 released.
68 * srcdist-doc/NEWS.in: Release notes updated.
69 * All files (r0-6-1-beta-20130910-1): Tag assigned.
71 2013-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
75 * src/dmhguix.cpp (DMH_PTY_GUARDBYTES): New manifest constant.
76 (dmhTypePTY::printf) [buffer full]: Use it; it defines a reserved byte
77 count, at end of buffer, where expansion or scroll out is triggered;
78 use memcpy() for scroll out, but avoid overlapping regions.
79 (dmhTypePTY::printf) [output == '\r']: Handle it.
81 * src/tarproc.cpp (create_output_stream): Improve diagnostic messages;
82 discriminate between file collision and other privilege violations.
83 (pkgArchiveProcessor::ExtractFile): Don't return a zero status code,
84 when the output stream could not be successfully opened, so that...
85 (pkgTarArchiveInstaller::ProcessDataStream): ...we may avoid writing a
86 spurious manifest entry here.
88 2013-09-06 Keith Marshall <keithmarshall@users.sourceforge.net>
90 Update version, pre-empting subsequent release.
92 * VERSION.m4 (VERSION_PATCH): Bump from zero to 1.
94 2013-09-04 Keith Marshall <keithmarshall@users.sourceforge.net>
96 mingw-get-0.6.0-mingw32-beta-20130904-1 released.
98 * srcdist-doc/NEWS.in srcdist-doc/README.in: Release notes updated.
99 * srcdist-doc/INSTALL.in: Installation instructions updated.
100 * All files (r0-6-0-beta-20130904-1): Tag assigned.
102 2013-08-26 Keith Marshall <keithmarshall@users.sourceforge.net>
104 Implement retry throttling for failed internet connections.
106 * src/pkginet.h (INTERNET_RETRY_ATTEMPTS): New macro; define it.
107 (INTERNET_RETRY_INTERVAL, INTERNET_DELAY_FACTOR): Likewise.
109 * src/pkginet.cpp (INTERNET_RETRY_REQUESTER): New typedef.
110 (pkgInternetAgent::connection_delay, pkgInternetAgent::delay_factor):
111 (pkgInternetAgent::retries, pkgInternetAgent::retry_interval): New
112 private member variables; declare them.
113 (pkgInternetAgent::OpenURL): Use them; they must be initialised by...
114 (pkgInternetAgent::SetRetryOptions): ...this new method; implement it.
115 (pkgActionItem::DownloadSingleArchive): Invoke it.
116 (pkgXmlDocument::SyncRepository): Likewise.
118 2013-08-24 Keith Marshall <keithmarshall@users.sourceforge.net>
120 Reassign default URL for download of setup tool components.
122 * aclocal.m4 (PACKAGE_DIST_DOMAIN, PACKAGE_DIST_DIR): New precious
123 variables; declare them as such, and assign default values by using...
124 (MINGW_AC_PACKAGE_DIST_URL): ...this new macro; implement it.
126 * configure.ac (MINGW_AC_PACKAGE_DIST_URL): Use it.
127 * Makefile.in (TAG_SCRIPT): Capture assigned URL; substitute it...
128 (PACKAGE_DIST_URL): ...for this replacement text marker...
129 * src/setup.rc (ID_DOWNLOAD_HOST_URI): ...here.
131 2013-08-21 Keith Marshall <keithmarshall@users.sourceforge.net>
133 Simplify guimain.exe duplicate instance prevention.
135 * src/guimain.cpp (WinMain): Delegate requisite checking to...
136 (WTK::RaiseAppWindow): ...this external toolkit function.
138 2013-08-13 Keith Marshall <keithmarshall@users.sourceforge.net>
140 Install licence as standard setup component.
142 * src/guimain.h src/setup.rc (ID_PACKAGE_GUI_DISTNAME): Macro
143 no longer required; delete definition.
145 * src/setup.cpp (pkgSetup::DoFirstTimeInstallation):
146 <pkgSetupAction> [ID_PACKAGE_GUI_DISTNAME]: Delete reference.
147 <pkgSetupAction> [ID_PACKAGE_BASE_DISTNAME]: Update reference; repeat
148 to explicitly address each of "bin", "gui", and "lic" components.
150 * Makefile.in (TAG_SCRIPT) [PACKAGE_GUI_DISTNAME]: Delete reference.
151 (TAG_SCRIPT) [PACKAGE_BASE_DISTNAME]: Redefine as template.
153 2013-08-13 Keith Marshall <keithmarshall@users.sourceforge.net>
155 More dialogue box adjustments.
157 * src/guimain.rc: Generally clean up white-space distribution.
158 (All dialogue templates): Use WS_TABSTOP consistently.
160 2013-08-13 Keith Marshall <keithmarshall@users.sourceforge.net>
162 Circumvent Windows-7 "Program Compatibility Assistant" misbehaviour.
164 * src/manifest.rc (assembly) <compatibility>: Add <supportedOS>
165 declarations for each of Vista, Win7, and (tentatively) Win8.
167 2013-07-30 Keith Marshall <keithmarshall@users.sourceforge.net>
169 Minor modification to "about" dialogue dismissal button.
171 * src/guimain.rc (IDD_HELP_ABOUT) <DEFPUSHBUTTON>: Change label text
172 to "Dismiss"; add WS_TABSTOP style.
174 2013-07-30 Keith Marshall <keithmarshall@users.sourceforge.net>
176 Match "about" dialogue caption to main window.
178 * src/guimain.rc (IDM_HELP_ABOUT) <MENUITEM>: Match it to...
179 (IDD_HELP_ABOUT) <CAPTION>: ...this; make it representative of...
180 (ID_MAIN_WINDOW_CAPTION): ...this.
182 2013-07-30 Keith Marshall <keithmarshall@users.sourceforge.net>
184 Implement "icon legend" display as "help" menu item.
186 * src/guimain.rc (IDM_HELP_LEGEND): Make menu item active; define
187 template for the dialogue box which it is to call out.
189 * src/guiexec.cpp (AppWindowMaker::OnCommand) [IDM_HELP_LEGEND]: New
190 case handler; implement dialogue box call out, as a variation on...
191 [IDM_HELP_ABOUT]: ...this; modify it accordingly.
193 2013-07-30 Keith Marshall <keithmarshall@users.sourceforge.net>
195 Avoid discarding pending changes when catalogue is updated.
197 * src/guimain.h (IDD_CONFIRMATION): New manifest constant; define it.
198 (AppWindowMaker::ConfirmActionDialogue): New static method; declare it.
199 (AppWindowMaker::ConfirmActionRequest): New method; declare it.
201 * src/guimain.rc (IDD_CONFIRMATION): Implement new dialogue template.
203 * src/guiexec.cpp (pkgConfirmAction, pkgConfirmActionClient): New
204 static variables; they are used as pseudo-arguments, together with...
205 (DIALOGUE_DISPATCH, DIALOGUE_RESPONSE, DIALOGUE_CHKSTATE): ...these
206 new macros; define them; they facilitate the implementation of...
207 (AppWindowMaker::ConfirmActionDialogue): ...this; implement it.
208 (AppWindowMaker::ConfirmActionRequest): Implement it; use it...
209 (AppWindowMaker::OnCommand) [IDM_REPO_UPDATE]: ...here, and...
211 * src/pkgdata.cpp (AppWindowMaker::OnClose): ...here.
213 2013-07-26 Keith Marshall <keithmarshall@users.sourceforge.net>
215 Make a minor GUI layout adjustment.
217 * src/pkgview.cpp (VSASH_INIT_POS): Increment from 0.30 to 0.35; this
218 sets the initial height of the package list pane to be 35% of the main
219 window height, which, at the default initial window size, neatly fits
220 the entire "Basic Setup" package group, without scrolling, on my
221 1366x768 pixel Win7-VM display.
223 2013-07-25 Keith Marshall <keithmarshall@users.sourceforge.net>
225 Implement setup tool installer "plugin".
227 * src/setup.h (SETUP_HOOK_RUN_INSTALLER): Define request code.
229 * src/dllhook.cpp (run_basic_system_installer): Implement handler...
230 (setup_hook) [SETUP_HOOK_RUN_INSTALLER]: ...and invoke it.
231 (setup_hook) [default]: Collect diagnostics in common message digest.
232 (AppWindowMaker::SetupHookInvoked): Define and initialise it; in this
233 context, which does not conflict with prior definition in guimain.exe,
234 it must always remain true.
236 * src/setup.cpp (SetupTool) [constructor]: Invoke...
237 (SetupTool::DispatchSetupHookRequest): ...this, on user's request...
238 (SETUP_HOOK_RUN_INSTALLER): ...with this action code; this replaces...
239 (SetupTool::RunInstalledProgram): ...one reference instance for this
240 external program fork, leaving only one such reference remaining;
241 declare it to be "inline".
243 * Makefile.in (GUIMAIN_LIB_OBJECTS): New macro; define it. It
244 abstracts a subset of the object modules originally enumerated...
245 (GUIMAIN_OBJECTS): ...here, whence use it; also incorporate into...
246 (SETUP_DLL_OBJECTS): ...this.
247 (SETUP_DLL_LIBS): Make it equivalent to...
248 (GUIMAIN_LIBS): ...this.
249 (mingw-get-setup-0.dll): Use...
250 (GUI_LDFLAGS): ...this, to specify linking options, rather than...
253 2013-07-25 Keith Marshall <keithmarshall@users.sourceforge.net>
255 Add "Basic Setup" as a built-in standard package group.
257 * src/guimain.h (AppWindowMaker::SetupToolInvoked): New private
258 static member variable; declare it.
260 * src/guimain.cpp (AppWindowMaker::SetupToolInvoked): Define and
261 initialise it; this instance is specific to guimain.exe, where it
262 must always remain false.
264 * src/pkgtree.cpp (PKG_AFFILIATE_ALL): New constant; define it.
265 (load_package_group_hierarchy): Use it to specify those groups which
266 have all packages as affiliates, rather than just first root group.
267 (group_attributes): New static inline function; implement it, then...
268 (is_affiliated) [PKG_AFFILIATE_ALL]: ...use it to identify groups
269 which are specified as having all packages as affiliates.
270 (AppWindowMaker::InitPackageTreeView): Construct a temporary XML
271 specification for the "Basic Setup" package group, thence add it to
272 the package tree view; mark it as default group selection when...
273 [AppWindowMaker::SetupToolInvoked]: ...this is true.
275 2013-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
277 Implement GUI filtering of package list by group selection.
279 * src/pkgbase.h (pkgXmlNode::IsVisibleGroupMember):
280 (pkgXmlNode::IsVisibleClass): New inline methods; declare them.
281 (pkgXmlNode::MapPackageGroupHierarchy): New inline method; declare it.
282 (pkgXmlNode::SetPackageGroupHierarchyMapper): Likewise; it sets up...
283 (pkgXmlNode::PackageGroupHierarchyMapper): ...this new private static
284 function pointer; declare it as a function reference, in terms of...
285 (pkgXmlNode::GroupHierarchyMapper): ...this new typedef; define it.
287 * src/guimain.h (AppWindowMaker::PackageTreeView): Make it static.
288 (AppWindowMaker::IsPackageGroupAffiliate): Declare new static method.
290 * src/pkgbind.cpp (pkgRepository::GetPackageList): Make it invoke...
291 (pkgXmlNode::MapPackageGroupHierarchy): ...this; implement it.
293 * src/pkglist.cpp (pkgXmlNode::IsVisibleGroupMember): Implement it.
294 (pkgXmlNode::IsVisibleClass): Likewise; just provide a stub, for now.
295 (pkgListViewMaker::Dispatch): Use them to filter package list content.
296 (AppWindowMaker::UpdatePackageList): Redraw main window when done.
298 * src/pkgtree.cpp [_WIN32_IE >= 0x0400]: Require this.
299 (AppWindowMaker::PackageTreeView): Define and initialise it.
300 (AppWindowMaker::InitPackageTreeView): Extend implementation; use...
301 (map_package_group_hierarchy_recursive, load package_group_hierarchy):
302 (is_existing_group, map_package_group_hierarchy): ...these; implement
303 them locally, as file scoped static helper functions.
304 (select_key): New static local string constant; define it.
305 (pkgInitCategoryTreeGraft): Use it; also have it invoke...
306 (pkgXmlNode::SetPackageGroupHierarchyMapper): ...this; implement it.
307 (AppWindowMaker::IsPackageGroupAffiliate): Implement it; it uses...
308 (is_affiliated, is_child_affiliate): ...these helpers; provide them as
309 locally implemented, file scoped static functions.
311 * src/pkgdata.cpp (AppWindowMaker::OnNotify): Add handler for...
312 [ID_PACKAGE_TREEVIEW && TVN_SELCHANGED]: ...this notification.
314 2013-07-12 Keith Marshall <keithmarshall@users.sourceforge.net>
316 Correct a static string buffer aliasing issue.
318 * src/setup.cpp (SetupTool::setup_dll): New inline method; it ensures
319 that the buffer within approot_path() refers to the setup helper DLL.
320 (SetupTool::InitialiseSetupHookAPI): Use it, when loading the DLL.
321 (SetupTool::SetupTool): Use it again, when subsequently calling...
322 (_wunlink): ...this; it is now the preferred API, replacing...
323 (DeleteFileW): ...this; do not blindly assume that...
324 (SetupTool::dll_name): ...this remains unchanged between references;
325 it is an alias for the static buffer within approot_path().
327 2013-07-12 Keith Marshall <keithmarshall@users.sourceforge.net>
329 Add a custom profile for use by the setup tool.
331 * xml/setup.xml: New file.
333 2013-07-03 Keith Marshall <keithmarshall@users.sourceforge.net>
335 Improve handling of workspace clean-up requests.
337 * Makefile.in (mostlyclean): New rule; it replaces...
338 (clean): ...original intent delegated to 'mostlyclean'; retained and
339 augmented to remove all content specified by 'mostlyclean', plus...
340 (version.c, verinfo.h): ...these additional generated files.
341 (distclean): Modified; 'version.c' now removed by 'clean'.
343 2013-07-03 Keith Marshall <keithmarshall@users.sourceforge.net>
345 Correct an omission from the source code distribution.
347 * Makefile.in (BUILD_AUX_FILES): Add makeopts.m4; this was omitted
348 from the 2013-04-10 modification to fix MinGW-Bug #1601.
350 2013-07-03 Keith Marshall <keithmarshall@users.sourceforge.net>
352 Incorporate foundation for setup tool implementation.
354 * src/setup.cpp: New file; it implements the setup program.
355 * src/setup.rc: New file; it implements setup program resources.
357 * src/dllhook.cpp: New file; it implements a DLL bridging API to
358 facilitate invocation of mingw-get-0.dll functions from the setup
359 program, after both DLLs have been explicitly loaded at run time.
361 * src/setup.h: New file; it declares the interface between the
362 setup program and the preceding mingw-get bridging DLL.
364 * src/guimain.h: Add filter to exclude declarations specific to...
365 [IMPLEMENTATION_LEVEL == PACKAGE_BASE_COMPONENT]: ...this case, when
366 included by compilation units specific to the setup tool components.
367 (ID_MAIN_DIALOGUE_CAPTION, ID_DOWNLOAD_HOST_URI): New resource IDs.
368 (ID_PACKAGE_BASE_DISTNAME, ID_PACKAGE_DATA_DISTNAME): Likewise.
369 (ID_PACKAGE_GUI_DISTNAME): Likewise; define them.
371 * Makefile.in (all): Respecify it, in terms of...
372 (all-core, all-setup): ...these new rules; define them, and also...
373 (all-setup-exe, all-setup-dll): ...these, to force building of...
374 (mingw-get-setup.$EXEEXT, mingw-get-setup-0.dll): ...these binaries.
375 (setup.res.$OBJEXT): Specify prerequisites, as for guimain.res.$OBJEXT
376 (SETUP_TOOL_OBJECTS, SETUP_TOOL_LIBS): New macros; define them.
377 (SETUP_DLL_OBJECTS, SETUP_DLL_LIBS, SETUP_DISTNAME): Likewise.
378 (TAG_SCRIPT): Add resource script substitution definitions for...
379 (ID_PACKAGE_BASE_DISTNAME, ID_PACKAGE_DATA_DISTNAME): ...these...
380 (ID_PACKAGE_GUI_DISTNAME): ...and this.
382 2013-07-01 Keith Marshall <keithmarshall@users.sourceforge.net>
384 Add subprocess argument vector construction helpers.
386 * src/argwrap.c src/argwrap.h: New files; they implement an API for
387 construction of argument vectors, with appropriate quoting, to be
388 passed to MS-Windows exec'd subprocesses. Rewritten from scratch,
389 without reference to any prior GPL licensed implementation, with MIT
390 style licence, these provide the foundation for a possible future
391 libmingwex.a implementation; they are included here, since no such
392 implementation is currently available.
394 2013-06-28 Keith Marshall <keithmarshall@users.sourceforge.net>
396 Avoid inadvertent overwrite of existing files.
398 * src/mkpath.c (_O_NEWFILE): Conditionally specify attributes...
399 [IMPLEMENTATION_LEVEL == SETUP_TOOL_COMPONENT]: ...as they were...
400 [IMPLEMENTATION_LEVEL != SETUP_TOOL_COMPONENT]: ...else, include
401 _O_EXCL in the specified set; exclude _O_TRUNC.
403 * src/tarproc.cpp (dmh_notify_extraction_failed): New static inline
404 function; it encapsulates the diagnostic message factored out from...
405 (pkgArchiveProcessor::ExtractFile): ...here, whence use it.
406 (create_output_stream): Also used in this new static inline function;
407 it adds an appropriate diagnostic wrapper around set_output_stream(),
408 when _O_EXCL prevents overwrite of an existing file.
409 (pkgArchiveProcessor::SetOutputStream): Use it.
411 2013-06-27 Keith Marshall <keithmarshall@users.sourceforge.net>
413 Improve diagnostics for tar archive processing faults.
415 * src/pkgproc.h (TAR_ARCHIVE_FORMAT_ERROR): New constant; define it.
416 (TAR_ARCHIVE_DATA_READ_ERROR, TAR_ARCHIVE_DATA_WRITE_ERROR): Likewise.
418 * src/tarproc.cpp (dmh_notify_archive_data_exhausted): New static
419 inline function; implement it.
420 (pkgTarArchiveProcessor::GetArchiveEntry) [short header]: Use it.
421 (pkgArchiveProcessor::ExtractFile) [TAR_ARCHIVE_DATA_READ_ERROR]:
422 Likewise, use it here; also explicitlycheck for, and diagnose...
423 [TAR_ARCHIVE_DATA_WRITE_ERROR]: ...this; also add a further catch all
424 case, to diagnose any other unexpected condition.
425 (pkgTarArchiveProcessor::GetArchiveEntry) [bad checksum]: Diagnose it.
426 (pkgTarArchiveProcessor::Process): Return appropriate status codes.
427 (pkgTarArchiveProcessor::ProcessEntityData): Likewise.
429 2013-06-24 Keith Marshall <keithmarshall@users.sourceforge.net>
431 Facilitate version synchronisation for mingw-get-setup.
433 * VERSION.m4: New file.
434 * configure.ac: Include it, and...
435 (AC_INIT): ...use it.
437 2013-06-21 Keith Marshall <keithmarshall@users.sourceforge.net>
439 Keep version strings clean when release class is unspecified.
441 * Makefile.in (RC_SCRIPT, VERSION_SCRIPT): Simplify; assign specified
442 release class to local variable; delegate release tag generation to...
443 (TAG_SCRIPT): ...this; check release class variable is not an empty
444 string, before inserting it into the generated release tag.
446 2013-06-20 Keith Marshall <keithmarshall@users.sourceforge.net>
448 Rework defective assignment of product version resources.
450 * Makefile.in (BUILD_TAG): Avoid creating an empty build.tag file.
451 (PACKAGE_VERINFO_SCRIPT): Ensure that the build tag is generated as a
452 string of non-zero length. Do not assume that it comprises only two
453 elements; extract the final two, as the third and fourth elements
454 of the product version meta-data record.
456 2013-06-19 Keith Marshall <keithmarshall@users.sourceforge.net>
458 Rework defective package build time-stamping logic.
460 * Makefile.in (%.time): Make it explicitly touch its target; the
461 2013-05-15 changes, to reduce redundancy, didn't work as expected.
462 (%.tag): Add a side effect; make it also explicitly touch %.time.
463 (%.tagged.time): This is now redundant; remove it.
465 2013-06-14 Keith Marshall <keithmarshall@users.sourceforge.net>
467 Collect distributable package files in user specified directory.
469 * Makefile.in (distdir): New macro; define default as abs_builddir.
470 (srcdist, bindist, licdist): Use it; direct generated tarballs to it.
471 (%.txt.dist): New pattern rule; define, and use it to make a copy...
472 (readme.txt): ...of this, in distdir, when processing...
473 (dist): ...this build objective.
475 2013-06-14 Keith Marshall <keithmarshall@users.sourceforge.net>
477 Handle Microsoft's 32-bit vs. 64-bit time_t ambiguity.
479 * src/apihook.c: New file; it provides...
480 (have_api): ...this helper; it checks for availability of any specific
481 API function, within a specific system DLL, (MSVCRT.DLL by default).
483 * src/tarproc.cpp (have_utime64_api): New inline function; it wraps...
484 (have_api): ...this, to check whether MSVCRT.DLL provides...
485 (commit_saved_entity) [_utime64]: ...this; use if available, else...
486 (commit_saved_entity) [!_utime64]: ...fall back to using...
489 * Makefile.in (CORE_DLL_OBJECTS): Add apihook.$OBJEXT
491 2013-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
493 Facilitate package extraction and registration at setup time.
495 * src/pkgproc.h (IMPLEMENTATION_LEVEL): Add filters to facilitate
496 implementation of distinct setup time archive processing behaviour.
497 (pkgArchiveProcessor::save_on_extract): New property; declare it.
498 (pkgArchiveProcessor::SaveExtractedFiles): New method; implement it.
499 (pkgArchiveProcessor::SetOutputStream): New method; declare it.
501 * src/tarproc.cpp (IMPLEMENTATION_LEVEL): Add filters to implement
502 distinct setup time specific archive processing behaviour.
503 (pkgArchiveProcessor::SetOutputStream): Implement it.
504 (pkgTarArchiveExtractor::ProcessDataStream): Use it.
505 (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
507 2013-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
509 Implement some GUI progress metering dialogue enhancements.
511 * src/pkgbase.h (pkgProgressMeter): Don't pre-empt private features
512 of derived progress metering classes; hence, we no longer need this...
513 (AppWindowMaker): ...as a forward class declaration; delete it.
515 * src/guimain.rc (IDD_REPO_UPDATE): Resize, and adjust layout.
516 (IDD_PROGRESS_VAL, IDD_PROGRESS_MAX, IDD_PROGRESS_PCT): Add these
517 dialogue box progress counter display elements.
519 * src/pkgbind.cpp (pkgRepository::GetPackageList): Adjust style of
520 progress status messages, to suit reporting via GUI dialogue box or
521 CLI console, as appropriate.
523 * src/guiexec.cpp (ProgressMeterMaker): Redefine class, in terms of...
524 (PROGRESS_METER_CLASS): ...this new generic class name macro.
525 Reimplement private members, previously inherited from base class;
526 adjust class constructor to ensure that they are initialised.
527 Delete explicit destructor; a default destructor is now sufficient.
528 (ProgressMeterMaker::SetRange, ProgressMeterMaker::SetValue):
529 (ProgressMeterMaker::Annotate): Factor out; reimplement them...
531 * src/pmihook.cpp: ...in this new file, as generalised methods of...
532 (PROGRESS_METER_CLASS): ...the class named by this macro.
533 (PROGRESS_METER_CLASS::PutVal): New private method; implement it.
535 2013-05-31 Keith Marshall <keithmarshall@users.sourceforge.net>
537 Avoid a potential macro definition conflict.
539 * src/pkgbase.h (strcasecmp) [__MINGW32__]: Use string.h definition.
541 2013-05-15 Keith Marshall <keithmarshall@users.sourceforge.net>
543 Streamline build-time dependency tracking procedures.
545 * Makefile.in (DEPFLAGS): Adjust for simultaneous .o/.d generation.
546 (RC_DEPFLAGS): New macro; define dependency generation flags for the
547 resource compiler, which can't handle the new DEPFLAGS methodology.
548 (%.c, %.cpp, %.rc): Simplify $OBJEXT generation procedures.
549 (%.time): Remove redundantly replicated build-time procedure from...
550 (%.tagged.time): ...this; just make it a prerequisite.
552 2013-05-15 Keith Marshall <keithmarshall@users.sourceforge.net>
554 Add resources for specification of product version.
556 * src/verinfo.rc src/verinfo.h.in: New files; included by...
557 * src/guimain.rc: ...this, whence also specify version information...
558 (VERINFO_FILE_NAME, VERINFO_INTERNAL_NAME, VERINFO_FILE_DESCRIPTION):
559 (VERINFO_FILE_VERSION, VERINFO_FILE_VERSION_STRING): ...per these new
560 manifest constant macros; define them, with propagation to...
561 (ID_MAIN_WINDOW_CAPTION): ...this; keep it consistent.
563 * Makefile.in (TAG_SCRIPT): Include invocation for...
564 (PACKAGE_VERINFO_SCRIPT): ...this new macro; defined to interpret...
565 (PACKAGE_VERINFO_PRODUCT_VERSION): ...this new substitution template;
566 it is used in src/verinfo.h.in, whence verinfo.h is generated.
567 (RC_INCLUDES): Add current working directory, for...
568 (verinfo.h): ...this; add rule and dependencies to generate it.
570 2013-05-14 Keith Marshall <keithmarshall@users.sourceforge.net>
572 Make application manifest resource definition reusable.
574 * src/manifest.rc: New file; factor content from...
575 * src/guimain.rc: ...here, whence include it.
577 2013-05-08 Keith Marshall <keithmarshall@users.sourceforge.net>
579 Extend DMH services to delay-loaded DLL clients.
581 * src/dmhcore.h (dmh_bind): New function; declare it.
582 * src/dmhcore.cpp (dmh_bind): Implement it; it provides an API through
583 which the setup tool makes its existing DMH services available to post
584 install hooks in mingw-get-0.dll, which cannot be loaded until after
585 the providing package has been downloaded and unpacked.
587 2013-05-08 Keith Marshall <keithmarshall@users.sourceforge.net>
589 Avoid unnecessary command line globbing in GUI applications.
591 * src/guimain.cpp src/guistub.cpp (_CRT_glob): Declare as extern "C";
592 initialise to zero, so overriding the runtime start-up default.
594 * src/rites.c [! IMPLEMENT_INITIATION_RITES] (_CRT_glob): Initialise
595 to zero here too; lastrites.exe doesn't need globbing either.
597 2013-05-04 Keith Marshall <keithmarshall@users.sourceforge.net>
599 Address some GCC-4.7 string initialisation warnings.
601 * src/pkglist.cpp (AppWindowMaker::InitPackageListView): Declare all
602 headings[].text initialisers as 'const'; cast to 'char *' as required.
603 (pkgListViewMaker::Dispatch): Ditto, when inserting the 'const' empty
604 string into the list, as a component class value.
606 * src/pkgdata.cpp (AppWindowMaker::InitPackageTabControl): Declare all
607 TabLegend[] initialisers as 'const'; cast to 'char *' as required.
609 2013-05-02 Keith Marshall <keithmarshall@users.sourceforge.net>
611 Correct a spin wait thread synchronisation issue.
613 * src/pkgnget.cpp (pkgDownloadMeterGUI::SpinWait): Handle stop
614 requests explicitly; acknowledge when waiting thread has stopped.
615 (pkgDownloadMeterGUI::SpinWaitAction): Raise explicit stop requests;
616 wait for acknowledgement that waiting thread has stopped.
618 2013-04-23 Keith Marshall <keithmarshall@users.sourceforge.net>
620 Select compressed data streaming filters for use by setup tool.
622 * src/pkgstrm.cpp [IMPLEMENTATION_LEVEL != PACKAGE_BASE_COMPONENT]:
623 Exclude the implementations of all decompression filters, except...
624 (pkgXzArchiveStream): ...this, together with its requisite methods...
625 (pkgArchiveStream, pkgLzmaArchiveStream): ...from these.
627 2013-04-23 Keith Marshall <keithmarshall@users.sourceforge.net>
629 Adapt internet download agent for use by setup tool.
631 * src/pkgbase.h: More code rearrangement, exposing...
632 (safe_strcmp): ...this in any implementation context, controlled...
633 [USES_SAFE_STRCMP && ! HAVE_SAFE_STRCMP]: ...by this; when true...
634 (HAVE_SAFE_STRCMP): ...define this to 1, (must be non-zero).
635 [IMPLEMENTATION_LEVEL == PACKAGE_BASE_COMPONENT]: Ensure that...
636 (USES_SAFE_STRCMP): ...this is defined to 1, (i.e. non-zero).
637 (EXTERN_C): Relocate macro definition...
638 * src/pkgimpl.h: ...to here; add complementary implementation of...
639 (BEGIN_C_DECLS, END_C_DECLS): ...these new macros; define them.
641 * src/pkginet.h (pkgDownloadMeter::SpinWait): New static method;
642 declare it as inline, to be implemented elsewhere, delegating to...
643 (pkgDownloadMeter::SpinWaitAction): ...this new protected virtual
644 method; declare and implement it inline, as a "do nothing" base
645 class method, to be optionally overridden in a derived class.
647 * src/pkginet.cpp (pkgDownloadMeter::SpinWait): Implement it.
648 (pkgInternetAgent::OpenURL): Use it to invoke SpinWaitAction().
649 (USES_SAFE_STRCMP): Define as 1; (safe_strcmp() is required).
650 [IMPLEMENTATION_LEVEL != PACKAGE_BASE_COMPONENT]: Filter out code
651 which may not be required in more specialised contexts, then...
652 [IMPLEMENTATION_LEVEL == SETUP_TOOL_COMPONENT]: ...add specialised
653 variants specific to this.
655 * src/pkgnget.cpp [IMPLEMENTATION_LEVEL != PACKAGE_BASE_COMPONENT]:
656 Filter out code which may not be required in more specialised context.
657 (dmh_setpty): Provide locally declared prototype for external function.
658 (pkgDownloadMeterGUI): Add pseudo-terminal diagnostic message window.
659 (pkgDownloadMeterGUI::SpinWaitAction): Declare and implement GUI
660 specific method specialisation; it invokes a thread, running...
661 (pkgDownloadMeterGUI::SpinWait): ...this new static method overload.
663 2013-04-19 Keith Marshall <keithmarshall@users.sourceforge.net>
665 Implement pre-emptive update issue number identification.
667 * src/pkgkeys.h (serial_number): Declare function prototype.
668 * src/pkginet.cpp (serial_number): Implementation remains here;
669 promote from static to extern "C".
671 * src/pkgbind.cpp (value_assumed_new): New char constant; define it.
672 (pkgRepository::expected_issue): New private member var; declare and...
673 (pkgRepository::pkgRepository): ...initialise it, assuming new.
674 (pkgRepository::GetPackageList): Assign pre-emptively declared issue
675 number, (from package-list references), to 'expected_issue'; compare it
676 with 'current_issue' number recorded within locally stored catalogue.
677 [current_issue >= expected_issue]: Suppress redundant download; adjust
678 diagnostic messages as appropriate.
680 2013-04-10 Keith Marshall <keithmarshall@users.sourceforge.net>
682 Fix MinGW-Bug #1601 (on new issues tracker).
684 * aclocal.m4 (makeopts.m4): New build-aux module; include it.
685 (MINGW_AC_PROG_LEX): New macro; implement it.
687 * configure.ac (AC_INIT): Make version number tripartite.
688 (MINGW_AC_MAKE_NO_PRINT_DIRECTORY): Use this new makeopts.m4 macro.
689 (MINGW_AC_PROG_LEX): Use it, in place of...
690 (AC_PROG_LEX): ...this.
692 * Makefile.in (MAKE): New macro; assign using autoconf's SET_MAKE.
693 (QUIET_MAKE): New macro; derive it from $(MAKE) --no-print-directory.
694 (LEX_COMMAND, LEX_COMMAND_ABORT): New macros; define them.
695 (LEX_MISSING, LEX_MISSING_MESSAGE, LEX_OUTPUT): Likewise.
696 (FORMAT_MESSAGE, MESSAGE_FOLD_WIDTH): Likewise; implemented from...
697 (AWK_CLEAR_LINE_BUFFER, AWK_FLUSH_BUFFER, AWK_PRINT_AND_CLEAR_BUFFER):
698 (AWK_COLLECT_MESSAGE, AWK_COLLECT_BLANK_LINE, AWK_PRINT_LINE_BUFFER):
699 ...this collection of internal helper macros; define them.
700 (%.c: %.l): Replacement for built-in rule; it handles "missing lex" in
701 a manner consistent with expectations of autoconf's AC_PROG_LEX.
702 (execute-command): New phoney build goal; it is used with...
703 (WITH_REQUEST): ...this new macro, to invoke commands recursively.
705 2013-03-25 Keith Marshall <keithmarshall@users.sourceforge.net>
707 Adapt DMH for use in setup tool.
709 * src/dmh.cpp: File renamed to...
710 * src/dmhcore.cpp: ...this; some code rearranged, to facilitate...
711 [IMPLEMENTATION_LEVEL == PACKAGE_BASE_COMPONENT]: ...marking of code
712 sections which are required in the base package build, but which may
713 be filtered out of the build context for the setup tool.
715 * src/guidmh.cpp: File renamed to this...
716 * src/dmhguix.cpp: ...this; also add marking for...
717 [IMPLEMENTATION_LEVEL == PACKAGE_BASE_COMPONENT]: ...sections which
718 may be filtered out of the build context for the setup tool.
719 (dmhTypePTY::printf): Improve stratagem for output.
721 * Makefile.in (CORE_DLL_OBJECTS, GUIMAIN_OBJECTS): Adjust references
722 to renamed source files.
724 2013-03-22 Keith Marshall <keithmarshall@users.sourceforge.net>
726 Enable context hooks for build time code filtering.
728 * src/pkgimpl.h: New file; it defines...
729 (PACKAGE_BASE_COMPONENT, SETUP_TOOL_COMPONENT): ...these contexts;
730 either of these may be selected, by defining as manifest value for...
731 (IMPLEMENTATION_LEVEL): ...this; default is PACKAGE_BASE_COMPONENT.
733 * src/pkgbase.h: Include pkgimpl.h
734 [IMPLEMENTATION_LEVEL != PACKAGE_BASE_COMPONENT]: Occlude content.
736 2013-03-21 Keith Marshall <keithmarshall@users.sourceforge.net>
738 Specify additional files for clean-up.
740 * Makefile.in (distclean): Additionally specify...
741 (build.tag, build.time): ...these, as removable files.
743 2013-03-21 Keith Marshall <keithmarshall@users.sourceforge.net>
745 Add a missing distribution dependency.
747 * Makefile.in (srcdist): Explicitly require...
748 (pkginfo.c): ...this; previously, it was only an implicit build time
749 requirement, and may not have persisted until distribution time.
751 2013-03-21 Keith Marshall <keithmarshall@users.sourceforge.net>
753 Implement by-name association of resource scripts with programs.
755 * src/guidata.rc: Renamed as...
756 * src/guimain.rc: ...this, reflecting its association with...
757 * src/guimain.cpp: ...this program source.
759 * Makefile.in (GUIMAIN_OBJECTS): Update dependency...
760 (%.$OBJEXT:%.rc): ...replacing use of this pattern rule...
761 (%.res.$OBJEXT:%.rc): ...with this.
763 2013-01-18 Keith Marshall <keithmarshall@users.sourceforge.net>
765 Make GUI support visual styles in current Windows versions.
767 * src/guidata.rc: Add an appropriate inline manifest resource.
769 * src/guiexec.cpp (AppWindowMaker::Invoked): Ensure UpdateWindow() is
770 called after the initial call to AdjustLayout(); this is required to
771 ensure that all child windows are properly displayed from the outset.
773 * src/pkgview.cpp (AppWindowMaker::LayoutEngine):
774 [ID_PACKAGE_DATASHEET]: Adjust the top position of the frame, to make
775 the border coincide with the bottom border of the tab strip above.
777 2013-01-12 Keith Marshall <keithmarshall@users.sourceforge.net>
779 Merge gui-dev branch head to master; close gui-dev branch.
781 * configure.ac (AC_INIT): Reset version to 0.6; reset all package
782 files to state prevailing at gui-dev branch head.
784 2013-01-11 Keith Marshall <keithmarshall@users.sourceforge.net>
786 Create release branch for further r0.5 development.
788 * configure.ac (AC_INIT): Bump version number to 0.5.1; assign branch
789 label (mercurial bookmark) as "r0-5-1" for all files; (this is not to
790 be released, at this time).
792 2013-01-10 Keith Marshall <keithmarshall@users.sourceforge.net>
794 Implement data sheet compiler for list of installed files.
796 * src/pkgdata.cpp: #include pkgproc.h; it furnishes...
797 (pkgManifest): ...this class declaration, which is required by...
798 (DataSheetMaker::DisplayFilesManifest): ...this new private inline
799 method; declare and implement it; subsequently, invoke it...
800 (DataSheetMaker::OnPaint) [PKG_DATASHEET_INSTALLED_FILES]: ...here.
801 (pkgTroffLayoutEngine::WriteLn): Correct a defect in handling of
802 excess-length unbreakable "words" outside the viewport; previously
803 they were not dropped from the input queue, resulting in repeated
804 reprocessing in an infinite loop.
806 2013-01-09 Keith Marshall <keithmarshall@users.sourceforge.net>
808 Include release tags in GUI displayed package versions.
810 * src/pkglist.cpp (pkgVersionString) [ReleaseStatus != NULL]:
811 Append ReleaseStatus and ReleaseIndex to generated version string.
813 2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
815 Fix enumeration of pending install actions for scheduled upgrades.
817 * src/pkgdata.cpp (pkgActionItem::EnumeratePendingActions):
818 [action == ACTION_UPGRADE && classified == ACTION_INSTALL]: Enumerate
819 upgrade as a special case of the install classification.
821 2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
823 Implement "Mark All Upgrades" GUI capability.
825 * src/guimain.h (IDM_REPO_APPLY): Renumbered; make room for...
826 (IDM_REPO_MARK_UPGRADES): ...this new constant; define it.
828 * src/guidata.rc (IDM_REPO_MARK_UPGRADES): New option; add it...
829 (ID_MAIN_WINDOW_WINDOW) [Installation]: ...to this drop-down menu.
831 * src/pkgbase.h (pkgActionItem::SuppressRedundantUpgrades): New
832 public inline method; declare it.
834 * src/guiexec.cpp (AppWindowMaker::OnCommand):
835 [IDM_REPO_MARK_UPGRADES]: Add case handler for this menu selection.
836 (pkgActionItem::SuppressRedundantUpgrades): New method; implement it.
838 2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
840 Avoid unnecessary reloading of package list.
842 * src/guiexec.cpp (AppWindowMaker::OnCommand) [IDM_REPO_APPLY]:
843 Do not reload package list after processing; update it in place.
845 2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
847 Avoid potential heap corruption in action scheduler.
849 * src/guiexec.cpp (pkgActionItem::Clear): Factor out; relocate to...
850 * src/pkgexec.cpp (pkgActionItem::Clear): ...here; this keeps all use
851 of new and delete operators on the same side of the EXE/DLL boundary
852 as the constructor and destructor for pkgActionItem objects.
853 (pkgActionItem::Schedule): Ensure that all min_wanted and max_wanted
854 references are unique to each allocated pkgActionItem object, so that
855 the destructor may safely release their associated heap memory blocks.
857 2013-01-07 Keith Marshall <keithmarshall@users.sourceforge.net>
859 Update copyright notification for development in new year.
861 * configure.ac (YEARS_OF_ISSUE): Add year 2013.
863 * Makefile.in (version.c, guidata.$OBJEXT): Make them depend on...
864 (Makefile): ...this, so YEARS_OF_ISSUE propagates to built objects.
866 2012-12-24 Keith Marshall <keithmarshall@users.sourceforge.net>
868 Work around a GUI action scheduling instability.
870 * src/guimain.h (AppWindowMaker::UpdateDataSheet): Declare new method.
871 * src/pkgdata.cpp (AppWindowMaker::UpdateDataSheet): Implement it.
872 (AppWindowMaker::OnNotify): Use it.
874 * src/guiexec.cpp (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]:
875 Don't refresh package list view in-place; clear and reload it instead.
877 2012-12-21 Keith Marshall <keithmarshall@users.sourceforge.net>
879 Update distribution build rules.
881 * Makefile.in (SRCDIST_FILES): Remove version.c.in; this was moved
882 to src/version.c.in, and is now automatically included via...
883 (SRCDIST_SUBDIRS): ...this; remove build-aux and build-aux/m4; we want
884 only selected files from these, as filtered by specification in...
885 (BUILD_AUX_DIRS, BUILD_AUX_FILES): ...these new macros; define them.
886 (BLDTAG, SCMTAG, GCMTAG): New release class macros; define them.
887 (bindist, licdist, srcdist): Use them.
889 2012-12-21 Keith Marshall <keithmarshall@users.sourceforge.net>
891 Update CLI implementation hooks for GUI integration.
893 * Makefile.in (LIBEXEC_PROGRAMS): Replace gui$EXEEXT with
894 guistub$EXEEXT; update make goal references accordingly.
896 * src/rites.c (MINGW_GET_GUI): Redefine to be guimain$EXEEXT.
897 (MINGW_GET_GFB): Define new fall-back; let it be guistub$EXEEXT.
898 (RITES_IMPLEMENTATION): Perform rites for MINGW_GET_GUI.
900 * src/clistub.c (main) [cannot exec MINGW_GET_GUI]: Try
901 MINGW_GET_GFB instead.
903 2012-12-21 Keith Marshall <keithmarshall@users.sourceforge.net>
905 Rename executive core file for GUI implementation.
907 * src/guixmld.cpp: File renamed...
908 * src/guiexec.cpp: ...to this; its function exceeds original intent.
909 * Makefile.in (GUIMAIN_OBJECTS): Update reference accordingly.
911 2012-12-20 Keith Marshall <keithmarshall@users.sourceforge.net>
913 Create foundation for implementation of package category tree view.
915 * Makefile.in (GUIMAIN_OBJECTS): Add pkgtree.$OBJEXT reference to...
916 * src/pkgtree.cpp: ...incorporate this new file; it implements...
917 (AppWindowMaker::InitPackageTreeView): ...this new class method...
918 (pkgInitCategoryTreeGraft): ...and this new extern "C" function.
920 * src/guimain.h (pkgInitCategoryTreeGraft): Declare prototype.
921 (AppWindowMaker::InitPackageTreeView): New private method; declare it.
922 (AppWindowMaker::PackageTreeView): New member variable; declare it.
924 * src/guixmld.cpp (AppWindowMaker::LoadPackageData): Call
925 pkgInitCategoryTreeGraft(), after loading profile.xml
926 (AppWindowMaker::Invoked): Call InitPackageTreeView()
928 * src/pkgview.cpp (AppWindowMaker::LayoutEngine):
929 [ID_PACKAGE_TREEVIEW]: Handle it.
931 2012-12-19 Keith Marshall <keithmarshall@users.sourceforge.net>
933 Make the "Apply Changes" dialogue "failure-aware".
935 * src/pkgtask.h (ACTION_APPLY_FAILED): Redefine, in terms of...
936 (ACTION_INSTALL_FAILED, ACTION_REMOVE_FAILED): New manifest defines.
937 (ACTION_UNSUCCESSFUL): New manifest constant; define it.
939 * src/pkgdata.cpp (pkgActionItem::EnumeratePendingActions):
940 [ACTION_UNSUCCESSFUL]: Make it a special case for enumeration.
942 * src/guixmld.cpp (pkgApplyChanges): Enumerate...
943 [ACTION_UNSUCCESSFUL > 0]: ...all such cases; when true...
944 [IDD_AUTO_CLOSE_OPTION]: ...this; select alternative close-out
945 messages, as appropriate.
946 (pkgActionItem::Assert): Factor out; relocate to...
947 * src/pkgexec.cpp (pkgActionItem::Assert): ...here; this moves its
948 object code into the mingw-get DLL.
950 * src/pkgunst.cpp (pkgRemove) [ACTION_REMOVE_FAILED]:
951 * src/pkginst.cpp (pkgInstall) [ACTION_INSTALL_FAILED]:
952 Assert as appropriate.
954 2012-12-19 Keith Marshall <keithmarshall@users.sourceforge.net>
956 Improve progress reporting in "Apply Changes" dialogue.
958 * src/pkgstat.h: New header file; it declares...
959 (pkgSpinWait): ...this new pure abstract base class; it specifies an
960 infrastructure for posting arbitrary text to dialogue controls.
962 * src/pkgexec.cpp (pkgSpinWait): Implement its static elements.
963 (pkgActionItem::Execute): Dispatch progress reports, handled by...
964 (pkgSpinWait::Report, pkgSpinWait::Indicator): ...these.
966 * src/guixmld.cpp (pkgDialogueSpinWait): New class; declare it and
967 implement locally. It is derived from, and provides a listener for...
968 (pkgSpinWait): ...this abstract class.
969 (pkgApplyChanges): Use it.
971 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDataStream): Call...
972 (pkgSpinWait::Report): ...this, to report extracted files.
974 * src/pkgunst.cpp (pkg_unst): Call...
975 (pkgSpinWait::Report): ...this, to report deleted files.
977 * src/sysroot.cpp (pkgXmlDocument::UpdateSystemMap): Call...
978 (pkgSpinWait::Report, pkgSpinWait::Indicator): ...these, to confirm
979 continuing database update activity.
981 2012-12-18 Keith Marshall <keithmarshall@users.sourceforge.net>
983 Update tab display on right-click in package list view.
985 * src/pkgdata.cpp (AppWindowMaker::OnNotify) [NM_RCLICK]:
986 Call DataSheetMaker::DisplayData(), before invoking pop-up menu.
988 2012-12-17 Keith Marshall <keithmarshall@users.sourceforge.net>
990 Add more protection against NULL pointer abuse.
992 * src/pkgbase.h (pkgActionItem::Reset): Method renamed to...
993 * src/guixmld.cpp (pkgActionItem::Assert): ...this; also renamed here.
994 (AppWindowMaker::OnCommand): When calling...
995 (pkgListViewMaker::MarkScheduledActions): ...this, pass argument as...
996 (pkgXmlDocument::ClearScheduledActions): ...pointer returned by this.
998 * src/pkgdata.cpp (AppWindowMaker::MarkSchedule):
999 [pending_actions == NULL]: Do not propagate invocation request to...
1000 (pkgListViewMaker::MarkScheduledActions): ...this.
1002 * src/pkglist.cpp (pkgListViewMaker::MarkScheduledActions):
1003 [schedule == NULL]: Do nothing.
1005 2012-12-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1007 Implement some additional permanent debugging support.
1009 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
1010 [DEBUG_TRACE_DEPENDENCIES]: Enable DMH digest mode for messages.
1012 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDataStream):
1013 [DEBUG_TRACE_TRANSACTIONS]: Add logging of installed file path names.
1015 2012-12-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1017 Insert a missing snprintf format effector.
1019 * src/pkgnget.cpp (pkgDownloadMeterGUI::Update): Add omitted '%'
1020 format specifier, in "%%", for formatting percentage-complete value.
1021 Rename "size_buf" automatic variable as "buf"; this results in shorter
1022 source lines, and consequently a tidier source code layout.
1023 (pkgDownloadMeterGUI::ResetGUI): Likewise s/size_buf/buf/
1025 2012-12-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1027 Add a missing header reference.
1029 * src/approot.h: Include stdint.h; this ensures that wchar_t is
1030 properly typedef'd, before attempting to use it.
1032 2012-12-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1034 Make a clone of the package menu available as a pop-up.
1036 * src/guimain.h (AppWindowMaker::SelectPackageAction): New private
1039 * src/pkgdata.cpp (AppWindowMaker::SelectPackageAction): Implement it.
1040 (AppWindowMaker::OnNotify) [ID_PACKAGE_LISTVIEW]: Use it.
1042 2012-12-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1044 Improve conditionally enabled state manipulation for menu items.
1046 * src/guidata.rc (IDM_REPO_APPLY): Set its initial state as GRAYED.
1048 * src/pkgdata.cpp (AppWindowMaker::UpdatePackageMenuBindings):
1049 [IDM_PACKAGE_REINSTALL]: Always leave it GRAYED; this is a temporary
1050 provision, until the GUI is updated to support "reinstall" capability.
1051 [IDM_REPO_APPLY && !(EnumeratePendingActions > 0)]: Make it GRAYED.
1052 [IDM_REPO_APPLY && (EnumeratePendingActions > 0)]: Enable it.
1054 2012-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1056 Implement GUI bindings for processing a schedule of actions.
1058 * src/guimain.h (IDD_DMH_CONSOLE): New resource ID; define it.
1059 (IDD_APPLY_EXECUTE): New dialogue template resource ID; define it.
1060 (AppWindowMaker::ExecuteScheduledActions): New method; declare it.
1062 * src/guidata.rc (IDD_APPLY_EXECUTE): Implement dialogue template.
1064 * src/guixmld.cpp (pkgApplyChanges): New thread function; implement it.
1065 (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]: Use it; it is invoked...
1066 (IDD_APPLY_EXECUTE): ...via this dialogue box, subsequently calling...
1067 (AppWindowMaker::ExecuteScheduledActions): ...this; implement it.
1069 * src/pkgexec.cpp (pkgActionItem::Execute): Add argument; use it.
1070 (pkgActionItem::~pkgActionItem): Unlink chained references.
1072 * src/pkgbase.h (pkgActionItem::Execute): Adjust prototype.
1074 2012-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1076 Do not preserve unnecessary download requests.
1078 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles):
1079 [(flags & ACTION_INSTALL) != ACTION_INSTALL]: Actions having no
1080 "install" effect do not require a download; cancel any associated
1083 2012-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1085 Implement GUI bindings for package download agent.
1087 * src/guimain.h (IDD_PROGRESS_VAL, IDD_PROGRESS_MAX):
1088 (IDD_PROGRESS_PCT): New manifest resource IDs; define them. They will
1089 be used to identify dialogue controls, to be associated with...
1090 (IDD_APPLY_DOWNLOAD): ...this new dialogue template ID; define it.
1091 (AppWindowMaker::DownloadArchiveFiles): New inline method; declare it.
1093 * src/guidata.rc (IDD_APPLY_DOWNLOAD): Implement dialogue template.
1095 * src/pkgbase.h (pkgActionItem::DownloadArchiveFiles): New public
1096 inline method; declare it. It overloads an existing private method of
1097 the same name, which it subsequently invokes.
1099 * src/pkginet.h: New header file; it declares...
1100 (pkgInvokeDownload): ...this new extern "C" function prototype, and...
1101 (pkgDownloadMeter): ...this abstract class; it is factored from its
1102 original implementation in pkginet.cpp, augmented by addition of...
1103 (pkgDownloadMeter::primary): New static member variable; declare it.
1104 (pkgDownloadMeter::UseGUI): New public method; implement it inline.
1105 (pkgDownloadMeter::ResetGUI): New public method; declare it, providing
1106 a do-nothing inline default implementation. Any derived class, which
1107 supports GUI capability, should override this.
1109 * src/pkgnget.cpp: New file; it implements...
1110 (pkgDownloadMeterGUI): New class, derived from pkgDownloadMeter.
1111 (pkgActionItem::DownloadArchiveFiles): New overloaded inline method.
1112 (AppWindowMaker::DownloadArchiveFiles): New inline method.
1113 (pkgInvokeDownload): New dialogue box worker thread handler.
1115 * src/pkginet.cpp: Include pkginet.h; hence...
1116 (pkgDownloadMeter): ...remove redundant class declaration.
1117 (pkgDownloadMeter::primary): Define and initialise it.
1118 (pkgInternetStreamingAgent::Get) [pkgDownloadMeter::UseGUI]: Delegate
1119 progress metering to referenced pkgDownloadMeterGUI class instance.
1120 [! pkgDownloadMeter::UseGUI]: Continue to use the existing built-in
1121 pkgDownloadMeterTTY mechanism.
1122 (pkgActionItem::DownloadSingleArchive) [ACTION_DOWLOAD_FAILED]: Assert
1123 this initially; subsequently clear it on successful completion.
1124 (pkgActionItem::DownloadArchiveFiles): Collect diagnostic messages
1125 into a single DMH_BEGIN_DIGEST ... DMH_END_DIGEST group.
1127 * src/guixmld.cpp: Include pkginet.h; it is required by...
1128 (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]: Use pkgInvokeDownload.
1130 * Makefile.in (GUIMAIN_OBJECTS): Include pkgnget.$OBJEXT
1132 2012-12-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1134 Implement "Discard" handler for GUI "Apply Changes" dialogue.
1136 * src/pkgbase.h (pkgActionItem::Reset): New public method; declare it.
1137 (pkgActionItem::Clear): New public method; declare two overloaded
1138 variants, of which implement one inline.
1139 (pkgXmlDocument::ClearScheduledActions): New public method; declare
1140 and implement it inline.
1142 * src/pkgtask.h (ACTION_DOWNLOAD_FAILED, ACTION_APPLY_FAILED): New
1143 manifest bit-flag constants; define them. They provide a mechanism
1144 for blocking the discard event in respect of failed actions.
1146 * src/guixmld.cpp (pkgActionItem::Reset): Implement it.
1147 (pkgActionItem::Clear): Implement second, out-of-line variant.
1148 (ACTION_PRESERVE_FAILED): New local manifest bit-flag constant; define
1149 it as an aggregate of ACTION_DOWNLOAD_FAILED and ACTION_APPLY_FAILED.
1150 (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]: Use them.
1152 2012-12-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1154 Implement GUI dialogue for "Apply Changes" action approval.
1156 * src/guidata.rc (ID_MAIN_WINDOW_MENU): Rename...
1157 ("&Repository"): ...this drop-down menu entry...
1158 ("&Installation"): ...this; add...
1159 ("&Apply Changes"): ...this new selection.
1160 (IDD_APPLY_APPROVE): New dialogue box resource template; define it.
1161 (SS_CTEXTBOX): New aggregate style convenience macro; define it.
1162 (ES_VT100): Likewise.
1164 * src/guimain.h (IDM_REPO_APPLY): New resource ID; define it.
1165 (IDM_REPO_QUIT): Redefined resource ID; was 302; changed to 312.
1166 (IDD_APPLY_APPROVE, IDD_PROGRESS_TXT): New resource IDs; define them.
1167 (IDD_APPLY_REMOVES_PACKAGES, IDD_APPLY_REMOVES_SUMMARY): Likewise.
1168 (IDD_APPLY_INSTALLS_PACKAGES, IDD_APPLY_INSTALLS_SUMMARY): Likewise.
1169 (IDD_APPLY_UPGRADES_PACKAGES, IDD_APPLY_UPGRADES_SUMMARY): Likewise.
1170 (ID_APPLY, ID_DISCARD, ID_DEFER): New response IDs; define them.
1171 (AppWindowMaker::EnumerateActions): New inline method; declare it.
1172 (AppWindowMaker::DialogueResponse): New inline method; declare and
1175 * src/guixmld.cpp (pkglist.h): #included.
1176 (dmh_setpty): Add locally declared prototype.
1177 (AppWindowMaker::EnumerateActions): Implement it.
1178 (pkgActionCount): New static helper function; implement it.
1179 (ACTION_APPLY, APPLIES_TO): New macros; define them.
1180 (FMT_APPLY_REMOVES, FMT_APPLY_INSTALLS, FMT_APPLY_UPGRADES): New
1181 manifest string constants; define them.
1182 (pkgApplyApproved): New static call-back function; implement...
1183 (AppWindowMaker::OnCommand) [IDM_REPO_APPLY]: ...and use it.
1185 2012-12-06 Keith Marshall <keithmarshall@users.sourceforge.net>
1187 Implement enhanced action item enumeration capability.
1189 * src/pkgbase.h (pkgActionItem::EnumeratePendingActions): New public
1190 method; declare it. It provides the capability to enumerate scheduled
1191 actions, filtered by action classification; when invoked such that it
1192 selects all actions, it may be used as a replacement for...
1193 (pkgActionItem::Unapplied): ...this; delete declaration.
1195 * src/pkgdata.cpp (pkgActionItem::EnumeratePendingActions): Implement
1196 it; it is derived, with enhancement, from original implementation...
1197 (pkgActionItem::Unapplied): ...of this; delete it, and...
1198 (AppWindowMaker::OnClose): ...update calling reference accordingly.
1200 2012-12-05 Keith Marshall <keithmarshall@users.sourceforge.net>
1202 Implement PTY display emulation for GUI mode DMH.
1204 * src/dmhcore.h (dmhTypeGeneric::set_console_hook): New public virtual
1205 method; declare it, providing inline default do-nothing implementation.
1206 (dmhTypeGeneric::severity_tag): New protected static method; declare it.
1207 (dmhTypeGeneric::notification_format): New protected static property;
1210 * src/dmh.cpp (dmhTypeGeneric::severity_tag): Implement it.
1211 (dmhTypeGeneric::notification_format): Define and initialise it.
1212 (dmhTypeTTY::notify): Use them.
1213 (dmh_setpty): New function; declare prototype and implement it.
1215 * src/guidmh.cpp (dmhTypePTY): New locally implemented class.
1216 (dmhTypeGUI::set_console_hook): New virtual method; declare and
1217 implement it; it stores a dmhTypePTY reference pointer into...
1218 (dmhTypeGUI::console_hook): ...this new private member variable.
1219 (dmhTypeGUI::dmhTypeGUI): Initialise it.
1220 (dmhTypeGUI::notify) [console_hook != NULL]: Delegate to it.
1221 (dmhTypeGUI::printf) [console_hook != NULL]: Likewise.
1223 2012-12-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1225 Implement generalised API for dialogue boxes with worker threads.
1227 * src/guimain.h (pkgDialogueThread): New typedef; declare it.
1228 (AppWindowMaker::DialogueThread): New static property; declare it.
1229 (AppWindowMaker::DispatchDialogueThread): New method; declare it.
1231 * src/guixmld.cpp: Formatting of several comments adjusted.
1232 (pkgUpdate, pkgInitDataLoad): Defunct functions; replaced by...
1233 (pkgDialogue): ...this new static call-back function; implement it.
1234 (AppWindowMaker::DialogueThread): Instantiate and initialise it.
1235 (AppWindowMaker::DispatchDialogueThread): Implement it.
1236 (AppWindowMaker::Invoked): Use it to invoke pkgInvokeInitDataLoad()...
1237 (AppWindowMaker::OnCommand): ...and pkgInvokeUpdate().
1239 2012-12-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1241 Consolidate GUI implementation for package list view management.
1243 * src/pkglist.h (pkgListViewMaker::GetTitle): Disused overloaded
1244 method; remove all declarations.
1245 (pkgListViewMaker::GetVersionString): Disused method; remove
1247 (pkgListViewMaker::GetItem): New private inline method; declare it.
1248 (pkgListViewMaker::UpdateItem): New private method; declare it.
1249 (pkgListViewMaker::UpdateListView): New public method; declare it.
1250 (pkgListViewMaker::MarkScheduledActions): Likewise.
1252 * src/guimain.h (AppWindowMaker::MarkSchedule): New public inline
1253 method; declare it, but defer implementation to...
1255 * src/pkgdata.cpp (AppWindowMaker::MarkSchedule): ...here; not used
1256 elsewhere, it is derived from, and replaces...
1257 (pkgMarkSchedule): ...this function; factor out redundant code, in
1258 favour of delegation to pkgListViewMaker::MarkScheduledActions(), with
1259 following call to AppWindowMaker::UpdatePackageMenuBindings(); update
1260 calling function references...
1261 (AppWindowMaker::UnmarkSelectedPackage): ...here, and...
1262 (AppWindowMaker::Schedule): ...here.
1264 * src/pkglist.cpp (pkgVersionString): New static function; implement
1265 it as a local replacement for...
1266 (pkgListViewMaker::GetVersionString): ...this defunct class method.
1267 (pkgGetTitle): New overloaded static function; implement two variants,
1268 as local replacements for...
1269 (pkgListViewMaker::GetTitle): ...this defunct overloaded class method.
1270 (pkgListViewMaker::UpdateItem): Implement it; factor code from...
1271 (pkgListViewMaker::InsertItem): ...here, whence use it.
1272 (pkgListViewMaker::MarkScheduledActions): Implement it.
1273 (pkgListViewMaker::UpdateListView): Implement it.
1274 (pkgListViewMaker::pkgListViewMaker): Remove references to...
1275 (LVIF_TEXT): ...this.
1277 2012-11-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1279 Increase width of window sash bars by 50%.
1281 * src/guimain.h (SASH_BAR_THICKNESS): Increase from 4 to 6; this makes
1282 it easier to grab the sash bars, so they may be dragged; IMO, it also
1283 results in a better appearance.
1285 2012-11-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1287 Maintain consistent internal vs. external installation records.
1289 * src/pkginst.cpp (pkgInstall): Set "installed" attribute on internal
1290 package reference, to "yes", after installation; CLI didn't need this,
1291 but GUI will do so, for any package revisited in a single session.
1293 * src/pkgunst.cpp (pkgRemove): Similarly, negate "installed" attribute
1294 after package removal.
1296 2012-11-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1298 Refactor to consolidate three instances of duplicate code.
1300 * src/pkglist.h (pkgGetStatus): New function; declare it.
1301 * src/pkglist.cpp (pkgGetStatus): Implement it; factor out from...
1302 (pkgListViewMaker::InsertItem): ...here, whence use it.
1303 * src/pkgdata.cpp (pkgMarkSchedule): Likewise here...
1304 (DataSheetMaker::DisplayGeneralData): ...and here.
1306 2012-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1308 Add GUI support for install, upgrade, and remove action scheduling.
1310 * src/guimain.h (EXTERN_C): Ensure it is defined.
1311 (pkgActionItem): Add forward declaration of class name.
1312 (pkgMarkSchedule): New EXTERN_C function; declare and prototype it.
1313 (AppWindowMaker::OnClose): New virtual method; declare it.
1314 (AppWindowMaker::Schedule): New public method; declare it.
1315 (AppWindowMaker::UnmarkSelectedPackage): Likewise.
1317 * src/pkgbase.h (pkgActionItem::HasAttribute) [this == NULL]: Add
1318 protective logic; ignore attempts to access non-existent objects.
1319 (pkgActionItem::SelectPackage) [this == NULL]: Likewise.
1320 (pkgActionItem::Selection) [this == NULL]: Likewise.
1321 (pkgActionItem::GetReference): New overloaded public method; declare
1322 prototype variant with argument type of pkgXmlNode*.
1323 (pkgActionItem::Unapplied): New public method; declare it.
1324 (pkgActionItem::CancelScheduledAction): Likewise.
1325 (pkgXmlDocument::Schedule): Change return type from void to
1326 pkgActionItem*; add default argument values.
1328 * src/guixmld.cpp (AppWindowMaker::OnCommand): Add menu case hooks...
1329 [IDM_PACKAGE_INSTALL]: ...to schedule package 'install' action...
1330 [IDM_PACKAGE_UPGRADE]: ...package 'upgrade' action...
1331 [IDM_PACKAGE_REMOVE]: ...package 'remove' action, or...
1332 [IDM_PACKAGE_UNMARK]: ...to cancel any of these scheduling requests.
1333 [IDM_REPO_QUIT]: Correct typo; s/WM_QUIT/WM_CLOSE/ in comment.
1335 * src/pkgdata.cpp (pkgMarkSchedule): Implement it.
1336 (pkgActionItem::CancelScheduledAction): Implement it.
1337 (pkgActionItem::Unapplied): Implement it.
1338 (AppWindowMaker::UpdatePackageMenuBindings): Improve comments.
1339 (AppWindowMaker::UnmarkSelectedPackage): Implement it.
1340 (AppWindowMaker::Schedule): Implement it.
1341 (AppWindowMaker::OnClose): Implement it.
1343 * src/pkgdeps.cpp (pkgActionItem::GetReference): Implement overload.
1344 (pkgXmlDocument::Schedule): Change return type, and return value.
1345 [this == NULL]: Add protective logic; ignore non-existent objects.
1346 [name == NULL]: Do not schedule; just return existing action list.
1348 2012-11-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1350 Add dynamically enabled state control for package menu items.
1352 * src/guimain.h (AppWindowMaker::UpdatePackageMenuBindings): New
1353 private method; declare it.
1355 * src/pkgdata.cpp (AppWindowMaker::UpdatePackageMenuBindings):
1356 Implement it, and...
1357 (AppWindowMaker::OnNotify): ...use it.
1359 2012-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1361 Avoid excessive inter-word spaces in adjusted text.
1363 * src/pkgdata.cpp (pkgTroffLayoutEngine::WriteLn): Check extent of
1364 padding to be added at each inter-word space, when adjusting text; do
1365 not adjust, if it exceeds 5% of available display pane width.
1367 2012-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1369 Elide unbreakable text which will not fit within display width.
1371 * src/pkgdata.cpp (pkgTroffLayoutEngine::WriteLn): Add logic to detect
1372 over-width unbreakable text; elide characters from the right, to make
1373 it fit within the display width, with trailing ellipsis.
1375 2012-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1377 Add content compiler for package data sheet "general" tab.
1379 * src/pkgbase.h (pkgActionItem::PrintURI): Make it public. Add a
1380 call-back reference argument, for output function; assign puts() as
1381 default, where previously had hard coded printf() emulating puts()
1383 * src/pkginet.cpp (pkgActionItem::PrintURI): Use call-back hook.
1385 * src/pkgdata.cpp (DataSheetMaker::Display): New static property; it
1386 stores a reference to the active class instance, so static call-back
1387 methods may delegate processing requests to non-static methods.
1388 (DataSheetMaker::Advance): New static property; it is used to instruct
1389 call-back methods to interpose paragraph leading it the output stream.
1390 (DataSheetMaker::FormatRecord): New private method; implement it.
1391 (DataSheetMaker::FormatText): Don't pass "canvas" as an argument; we
1392 can access it directly as a class property. Update all callers as
1393 necessary, to conform to modified function prototype.
1394 (pkgListSelection): New static function; implement it, and...
1395 (DataSheetMaker::OnPaint): ...use it in switch cases, when calling...
1396 [PKG_DATASHEET_GENERAL]: DataSheetMaker::DisplayGeneralData(), and...
1397 [PKG_DATASHEET_DESCRIPTION]: DataSheetMaker::DisplayDescription().
1398 (DataSheetMaker::DisplayGeneralData): New public method; implement it.
1399 (DataSheetMaker::DisplayPackageURL): New static method; implement it.
1400 (DataSheetMaker::DisplayLicenceURL): Likewise.
1401 (DataSheetMaker::DisplaySourceURL): Likewise.
1403 2012-10-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1405 Fix error in counting of catalogue files during loading.
1407 * src/pkgbind.cpp (pkgRepository::GetPackageList): Increment count
1408 variable once only, at start of each cycle of the catalogue loading
1409 loop; previous strategy of counting in discrete logic paths could
1410 miss several required increments, particularly in CLI mode.
1412 2012-10-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1414 Avoid DMH message digest fragmentation when downloading.
1416 * src/dmh.h (DMH_GET_CONTROL_STATE): New macro; define it.
1417 * src/pkginet.cpp (pkgInternetAgent::OpenURL): Use it; do not close
1418 locally opened message digest, when called with one already open.
1420 2012-10-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1422 Initiate progress metering for catalogue load and update operations.
1424 * src/guidata.rc (IDD_REPO_UPDATE): New dialogue template; define it.
1425 (IDM_REPO_UPDATE): Enable selection from "Repository" drop-down menu.
1427 * src/guimain.h (IDD_REPO_UPDATE, IDD_CLOSE_OPTIONS):
1428 (IDD_AUTO_CLOSE_OPTION, IDD_PROGRESS_BAR, IDD_PROGRESS_MSG): New
1429 resource identification manifest constants; define them.
1430 (pkgXmlNode, pkgProgressMeter): Add forward class declarations.
1431 (AppWindowMaker::AttachedProgressMeter): New private data; define...
1432 (AppWindowMaker::AppWindowMaker): ...and initialise it.
1433 (AppWindowMaker::AttachProgressMeter): New public method; declare it.
1434 (AppWindowMaker::DetachProgressMeter): Likewise.
1435 (AppWindowMaker::LoadPackageData, AppWindowMaker::ClearPackageList):
1436 (AppWindowMaker::UpdatePackageList): Make them public.
1438 * src/pkgbase.h (pkgProgressMeter): New abstract class; declare it.
1439 (AppWindowMaker) [GUIMAIN_H undefined]: Add forward class declaration.
1440 (pkgXmlDocument::progress_meter): New private data member; declare...
1441 (pkgXmlDocument::pkgXmlDocument): ...and initialise it.
1442 (pkgXmlDocument::ProgressMeter, pkgXmlDocument::AttachProgressMeter):
1443 (pkgXmlDocument::DetachProgressMeter): New public inline methods;
1446 * src/pkgview.cpp (WTK::GenericDialogue): Delete disused reference.
1447 (AppWindowMaker::OnCommand): Factor out implementation; relocate it...
1448 * src/guixmld.cpp: ...to here; thus it may utilise dependants of...
1449 (ProgressMeterMaker): ...this new locally implemented class.
1450 (AppWindowMaker::AttachProgressMeter): Implement it.
1451 (AppWindowMaker::AttachProgressMeter): Likewise.
1452 (pkgProgressMeter::~pkgProgressMeter): Likewise.
1453 (pkgUpdate, pkgInvokeUpdate): New static functions; implement them.
1454 (AppWindowMaker::Invoked): Replace direct call to LoadPackageData by
1455 an indirect invocation, via a progress metering dialogue box using...
1456 (pkgInitDataLoad): ...this new static callback function, invoking...
1457 (pkgInvokeInitDataLoad): ...this new static thread function, whence...
1458 (AppWindowMaker::LoadPackageData): ...this; add hook-up call to...
1459 (pkgXmlDocument::AttachProgressMeter): ...incorporate this.
1461 * src/pkgbind.cpp (pkgRepository::total, pkgRepository::count): New
1462 private static properties; declare and instantiate them; provide...
1463 (pkgRepository::Reset, pkgRepository::IncrementTotal): ...new public
1464 static methods to manipulate them; declare and implement them inline.
1465 (pkgRepository::GetPackageList): Use them to manage updates to the
1466 pkgProgressMeter class instance, if any, which has been bound to
1467 the controlling pkgXmlDocument class instance, when invoking...
1468 (pkgXmlXmlDocument::BindRepositories): ...this.
1470 2012-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1472 Associate DMH message boxes with active dialogues.
1474 * src/guidmh.cpp (last_active_popup): New static inline function.
1475 (dmhTypeGUI::dispatch_message): Use it.
1477 2012-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1479 Fix Diagnostic Message Handler initialisation logic.
1481 * src/dmh.cpp (dmh_init) [DMH_SUBSYSTEM_GUI]: Correct a logic error;
1482 it previously fell through after any successful initialisation of the
1483 DMH_SUBSYSTEM_GUI handler, replacing it with a DMH_SUBSYSTEM_TTY type
1484 handler. Also, assign a heap copy of the passed "progname" string
1485 resource, which is volatile, to ensure that the handler retains a
1488 2012-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1490 Implement preliminary GUI mode data sheet compiler.
1492 * src/guimain.h (DataSheetMaker): New class; forward declare it.
1493 (AppWindowMaker::InitPackageTabControl): New private method; declare it.
1494 (AppWindowMaker::DataSheet, AppWindowMaker::PackageTabControl):
1495 (AppWindowMaker::TabDataPane, AppWindowMaker::PackageTabPane): New
1496 private data members; declare them.
1497 (ID_SASH_WINDOW_PANE_CLASS): New string resource identifier; define it.
1498 (ID_PACKAGE_DATASHEET, ID_PACKAGE_TABPANE): New window identifiers;
1501 * src/guidata.rc (ID_SASH_WINDOW_PANE_CLASS): Specify string resource.
1503 * src/pkgview.cpp (AppWindowMaker::OnSize): Add handler for...
1504 (ID_PACKAGE_TABPANE, ID_PACKAGE_TABCONTROL, ID_PACKAGE_DATASHHET):
1505 ...this group of sash pane child window entities.
1506 (AppWindowMaker::OnNotify): Comment out disused stub implementation.
1508 * src/pkgshow.cpp (pkgUTF8Parser): Factor out class declaration...
1509 (UTF32_MAX, UTF32_OVERFLOW, UTF32_INVALID): ...these definitions...
1510 (utf32_t): ...and this typedef; relocate to, and #include...
1511 * src/pkgdata.h: ...this new header file.
1513 * src/pkgdata.cpp (DataSheetMaker): New class; declare and implement it.
1514 (AppWindowMaker::InitPackageTabControl): Implement it.
1515 (AppWindowMaker::OnNotify): Reimplement it.
1517 * Makefile.in (GUIMAIN_OBJECTS): Add pkgdata.OBJEXT
1519 * src/guixmld.cpp (AppWindowMaker::Invoked): Add call to invoke
1520 AppWindowMaker::InitPackageTabControl()
1522 2012-10-09 Keith Marshall <keithmarshall@users.sourceforge.net>
1524 Remove a grossly heuristic list view hack.
1526 * src/pkglist.cpp (pkgListViewMaker::GetTitle): Remove code for the
1527 heuristic deletion of any redundant package name prefixes from package
1528 title attributes; by now, all such prefixes should have been removed
1529 from the catalogue, explicitly, at source.
1531 2012-10-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1533 Implement GUI list view compiler for XML catalogue.
1535 * src/pkgview.cpp (AppWindowMaker::LayoutEngine): Add case handler...
1536 [pane_id == ID_PACKAGE_LISTVIEW]: ...for this window pane class.
1538 * src/guimain.h (ID_PKGLIST_TABLE_HEADINGS):
1539 (ID_PKGNAME_COLUMN_HEADING, ID_PKGTYPE_COLUMN_HEADING):
1540 (ID_INSTVER_COLUMN_HEADING, ID_REPOVER_COLUMN_HEADING):
1541 (ID_PKGDESC_COLUMN_HEADING): New resource identifiers; define them.
1542 (ID_PKGSTATE_AVAILABLE, ID_PKGSTATE_AVAILABLE_NEW):
1543 (ID_PKGSTATE_AVAILABLE_LOCKED, ID_PKGSTATE_AVAILABLE_INSTALL):
1544 (ID_PKGSTATE_INSTALLED_CURRENT, ID_PKGSTATE_INSTALLED_LOCKED):
1545 (ID_PKGSTATE_INSTALLED_OLD, ID_PKGSTATE_UPGRADE, ID_PKGSTATE_REMOVE):
1546 (ID_PKGSTATE_REINSTALL, ID_PKGSTATE_DOWNGRADE, ID_PKGSTATE_BROKEN):
1547 (ID_PKGSTATE_PURGE): New icon resource identifiers; define them.
1548 (AppWindowMaker::InitPackageListView): New private method; declare it.
1549 (AppWindowMaker::UpdatePackageList): New private method; declare it.
1550 (AppWindowMaker::ClearPackageList): New private method; declare and
1551 implement it inline.
1553 * src/guidata.rc (ID_PKGSTATE_AVAILABLE, ID_PKGSTATE_AVAILABLE_NEW):
1554 (ID_PKGSTATE_AVAILABLE_LOCKED, ID_PKGSTATE_AVAILABLE_INSTALL):
1555 (ID_PKGSTATE_INSTALLED_CURRENT, ID_PKGSTATE_INSTALLED_LOCKED):
1556 (ID_PKGSTATE_INSTALLED_OLD, ID_PKGSTATE_UPGRADE, ID_PKGSTATE_REMOVE):
1557 (ID_PKGSTATE_REINSTALL, ID_PKGSTATE_DOWNGRADE, ID_PKGSTATE_BROKEN):
1558 (ID_PKGSTATE_PURGE): New icon resources; implement them.
1560 * icons/state01.ico icons/state02.ico icons/state03.ico:
1561 * icons/state04.ico icons/state05.ico icons/state06.ico:
1562 * icons/state07.ico icons/state08.ico icons/state09.ico:
1563 * icons/state10.ico icons/state11.ico icons/state12.ico:
1564 * icons/state13.ico: New files. All are cloned from synaptic icons;
1565 see src/guimain.rc for symbolic/functional reference names.
1567 * src/pkglist.h [GUIMAIN_H defined] (pkgListViewMaker): New class;
1568 declare it for use in modules which #include guimain.h
1570 * src/pkglist.cpp: New file; it implements...
1571 (pkgListViewMaker): ...this new class, and its clients...
1572 (AppWindowMaker::InitPackageListView): New method.
1573 (AppWindowMaker::UpdatePackageList): Likewise.
1575 * Makefile.in (GUIMAIN_OBJECTS): Add pkglist.OBJEXT
1577 * src/guixmld.cpp (AppWindowMaker::Invoke): Call InitCommonControls(),
1578 as prerequisite to AppWindowMaker::InitPackageListView(); follow up by
1579 calling AppWindowMaker::AdjustLayout().
1581 2012-10-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1583 Add GUI initialiser hook for XML catalogue interface.
1585 * src/guimain.h (AppWindowMaker::Invoke): New public method; declare
1586 it; it overrides the generic WTK::MainWindowMaker::Invoke() method, so
1587 providing the initialiser hook which will invoke this...
1588 (AppWindowMaker::LoadPackageData): ...new private method; declare it.
1590 * src/guixmld.cpp: New file.
1591 (AppWindowMaker::Invoke): Implement it.
1592 (AppWindowMaker::LoadPackageData): Likewise.
1594 * Makefile.in (GUIMAIN_OBJECTS): Add guixmld.OBJEXT
1596 2012-09-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1598 Add initial working GUI mode DMH class implementation.
1600 * src/dmh.h (DMH_SEVERITY_MASK): New manifest constant; define it.
1601 (DMH_DIGEST_MASK, DMH_COMPILE_DIGEST, DMH_DISPATCH_DIGEST): Likewise.
1602 (DMH_BEGIN_DIGEST, DMH_END_DIGEST): Redefine in terms of above.
1604 * src/dmhcore.h: New header file; it declares...
1605 (dmhTypeGeneric): ...this abstract base class, factored from...
1607 * src/dmh.cpp (dmhTypeGeneric): ...here, whence remove it; it is
1608 still required, thus include dmhcore.h so that it remains visible.
1609 (dmh_exception): Remove errant namespace qualifier from constructor.
1610 (dmhTypeGUI): Delete class declaration and original constructor.
1611 (dmh_init): Delete reference to dmhTypeGUI; replace by call to...
1612 (dmh_init_gui): ...this new static function; it is a stub which
1613 invokes a DLL import of the same name, to instantiate a dmhTypeGUI.
1614 (dmhTypeGUI::control, dmhTypeGUI::notify, dmhTypeGUI::printf): Delete
1615 original method stubs.
1617 * src/guidmh.cpp: New file; it reimplements...
1618 (dmhTypeGUI): ...this class; declare it and implement its constructor.
1619 (dmh_init_gui): Provide its DLL exported implementation.
1620 (dmhTypeGUI::dispatch_message): New private method; add it to the
1621 class declaration and implement it; it is a helper method for...
1622 (dmhTypeGUI::control, dmhTypeGUI::notify): ...these; implement them.
1623 (dmhTypeGUI::printf): Provide a replacement stub.
1625 * Makefile.in (GUIMAIN_OBJECTS): Add guidmh.OBJEXT
1627 * src/guimain.h (AppWindowMaker::Create): New method; add it to the
1628 class declaration; it overrides the default Create() method inherited
1629 from WTK::MainWindowMaker
1631 * src/pkgview.cpp (AppWindowMaker::Create): Implement it; it handles
1632 window class registration and dmhTypeGUI initialisation, in addition
1633 to the inherited CreateWindow() behaviour.
1635 * src/guimain.cpp: Include dmh.h
1636 (WinMain): Add catch block for dmh_exception. Remove window class
1637 registration request; it is now delegated to AppWindowMaker::Create()
1639 2012-09-26 Keith Marshall <keithmarshall@users.sourceforge.net>
1641 Add .hgignore as tracked file.
1643 * .hgignore: New file.
1645 2012-09-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1647 Defer generation of version.c until "make" time.
1649 * version.c.in: Move it...
1650 * src/version.c.in: ...to here.
1651 (PACKAGE_NAME, PACKAGE_VERSION, COPYRIGHT_HOLDER, YEARS_OF_ISSUE):
1652 Change substitution field marker character from "@" to "%".
1654 * configure.ac (AC_CONFIG_FILES): Remove version.c
1656 * Makefile.in (TAG_SCRIPT): New macro, factored out from...
1657 (RC_SCRIPT): ...here, whence use it; also use it to implement...
1658 (VERSION_SCRIPT): ...this further new macro; use it in...
1659 (%.c): ...this generic template rule for version.c
1660 (time-stamp, %.time, %.tagged.time, %.tag): New generic build
1661 goals; use them to track package release progression via...
1662 (build.tag): ...this new intermediate; make it a pre-requisite...
1663 (guidata.OBJEXT, version.c): ...of these.
1665 2012-09-21 Keith Marshall <keithmarshall@users.sourceforge.net>
1667 Implement framework for GUI sash window layout controller.
1669 * configure.ac (AC_INIT): Bump version number to 0.6
1670 (CLI_RELEASE_CLASS): New AC_SUBST variable; default to "beta".
1671 (GUI_RELEASE_CLASS): New AC_SUBST variable; default to "alpha".
1672 (SNAPSHOT_CLASS): Recognise as user specified environent variable
1673 override for both CLI_RELEASE_CLASS and GUI_RELEASE_CLASS.
1674 (RC): New AC_CHECK_TOOL substitution variable name; it replaces...
1675 (WINDRES): ...this, as reference name for the resource compiler.
1676 (MINGW_AC_ASSERT_MISSING): Add AC_CHECK_HEADER traps for missing
1677 "lua-dev" and "wtklite-dev" support.
1679 * Makefile.in (CLI_RELEASE_CLASS, GUI_RELEASE_CLASS): Use them.
1680 (BUILD_TAG, RC_SCRIPT, RC_INCLUDES): New macros; define and use...
1681 (RC): ...with this, to implement new target rule for compiling...
1682 (%.rc): ...resource definition files to %.OBJEXT objects.
1683 (GUIMAIN_OBJECTS, GUIMAIN_LIBS): New macros; define and use...
1684 (guimain.EXEEXT): ...to implement build rule for this.
1685 (LIBEXEC_PROGRAMS): Add guimain.EXEEXT
1686 (lastrites.EXEEXT): Use GUI_LDFLAGS.
1688 * src/guimain.h src/guimain.cpp src/guidata.rc: New files.
1689 * src/pkgview.cpp: New file.
1691 2012-09-20 Keith Marshall <keithmarshall@users.sourceforge.net>
1693 Adjust incorrectly resolved 2012-09-14 merge from master.
1695 * src/Makefile.in: Restore lost reference to guistub.cpp
1697 2012-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1699 Implement GUI hooks in "rites of passage" internal API.
1701 * src/pkglock.h: New file; it adds the pkgLock() and pkgRelease()
1702 inline wrapper functions, through which the GUI application acquires
1703 and manages an exclusive access lock for the XML catalogue.
1705 * src/rites.c (lockfile_name): Explicitly cast memory allocated for
1706 the returned name to (char *), so this may be embedded in C++ code.
1707 (pkgInitRites): Factor out lock acquisition failure diagnostics...
1708 (pkgLockFail): ...to this inline helper function; conditionally...
1709 [ifdef GUIMAIN_H]: ...provide one implementation for GUI use...
1710 [ifndef GUIMAIN_H]: ...and an alternative for CLI use.
1712 2012-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1714 Be case agnostic when matching shortcut targets.
1716 * scripts/libexec/unlink.js [ref.TargetPath == chklink]: Apply
1717 toLowerCase() on both sides of the comparison.
1719 2012-09-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1721 Note relocation of m4 when packaging source distribution.
1723 * Makefile.in (SRCDIST_SUBDIRS): Refer to build-aux/m4, not m4.
1725 2012-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1727 Move guimain.cpp out of the way.
1729 * src/guimain.cpp: Rename file as...
1730 * src/guistub.cpp: ...this; we want to keep current features for now,
1731 but to use the guimain.cpp name for main GUI application development.
1732 * Makefile.in: Adjust references accordingly.
1734 2012-09-09 Keith Marshall <keithmarshall@users.sourceforge.net>
1736 Fix typo, and update licensing terms for embedded getopt.c
1738 * src/getopt.c: Incorporate MIT/X style licence; update copyright
1739 notice, to reflect chronology of publication; correct degenerate RCS
1740 keyword usage in EOF marker comment.
1742 2012-09-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1744 Correct omission from copyright notice.
1746 * src/pkgkeys.c: Add year 2012, to reflect 2012-09-02 update.
1748 2012-09-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1750 Redefine paragraph_key with project global scope.
1752 * src/pkgkeys.h (paragraph_key): Declare it.
1753 * src/pkgkeys.c (paragraph_key): Define it.
1755 * src/pkgshow.cpp (pkgDirectoryViewer::EmitDescription): Delete
1756 function local definition; use global definition instead.
1758 2012-09-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1760 Correct defect introduced by 2012-08-03 commit.
1762 * src/approot.c (AppPathNameW): Add omitted 'else', so that tail
1763 pointer isn't moved after the APPROOT prefix is truncated.
1765 2012-09-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1767 Remap Mercurial subrepository reference via local hg-git clone.
1769 * .hgsub (build-aux): Point to ../build-aux; this must be a locally
1770 hosted hg clone of the git origin repository, and it must pre-exist as
1771 a sibling of any created hg clone of the mingw-get repository.
1773 * .hgsubstate: New file, automatically generated by Mercurial.
1775 2012-08-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1777 Add Mercurial subrepository reference for build-aux.
1781 2012-08-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1783 More code refactoring, to facilitate GUI implementation.
1785 * src/clistub.c (AppPathNameW): Factor out; relocate to...
1786 * src/approot.c: ...this new file; it reproduces the original
1787 implementation, modified to also consider any "libexec" directory in
1788 the executable path as the first child of the APPROOT prefix. Note
1789 also, that no longer terminates APPROOT with a trailing backslash.
1791 * src/approot.h: New file; it trivially declares the prototype for...
1792 (AppPathNameW): ...this relocated extern "C" function.
1794 * src/clistub.c (main): Adapt usage of AppPathNameW(), to reinstate
1795 trailing backslash on assignment to APPROOT environment variable.
1797 * Makefile.in (CLI_EXE_OBJECTS): New macro; define it as the original
1798 set of prerequisites, with the addition of approot.OBJEXT, for...
1799 (mingw-get.EXEEXT): ...this; use it.
1801 * src/rites.c: Add comment regarding APPROOT usage.
1803 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
1805 Find missing.m4 in build-aux/m4 directory.
1807 * aclocal.m4: Change path m4/missing.m4 to build-aux/m4/missing.m4.
1809 2012-07-31 Earnie Boyd <earnie@users.sourceforge.net>
1811 Add build-aux as a submodule.
1812 Move .cvsignore to .gitignore.
1814 * .gitmodules: New file.
1815 * build-aux: New submodule directory.
1816 * .cvsignore: Remove.
1817 * .gitignore: New file.
1819 2012-07-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1821 Disable globbing of command line arguments.
1823 * src/clistub.c (_CRT_glob): Define and initialise to zero; we don't
1824 need globbing, and it may cause case transliteration of case-sensitive
1825 action keywords, when a file system entity with a case-insensitively
1826 matching name exists.
1828 2012-06-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1830 Refactor API to facilitate implementation of GUI ListView hooks.
1832 * src/pkgkeys.h (title_key, description_key): Declare them.
1833 * src/pkgkeys.c (title_key, description_key): Define them; relocate...
1834 * src/pkgshow.cpp (pkgDirectoryViewer::EmitDescription): ...from here.
1835 (pkgXmlDocument::CalalogueAllPackages): New public method; factor...
1836 (pkgXmlDocument::DisplayPackageInfo): ...from here, whence use it.
1837 (pkgDirectoryViewerEngine::EnumerateComponents): New private method;
1838 implement as a concrete method of this abstract base class; factor...
1839 (pkgDirectoryViewer::Dispatch): ...from original inline implementation
1840 within this method of the concrete derived class, whence use it.
1841 (pkgDirectoryViewerEngine, pkgDirectory): Factor class declarations...
1842 * src/pkglist.h: ...into this new header file; include it.
1844 * src/pkgbase.h (pkgDirectory): Add forward class declaration.
1845 (pkgXmlDocument::CatalogueAllPackages): Declare it.
1847 2012-05-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1849 Update help text to document package version selection capability.
1851 * src/clistub.c (help_text): Add description of command line syntax
1852 which may be used to specify an alternative to the default package
1853 version selection, for install and upgrade actions.
1855 2012-05-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1857 Support options set by preferences assigned within profile.xml
1859 * xml/profile.xml (preferences): New element; add defaults.
1861 * src/pkgopts.h (OPTION_ASSIGNED_FLAGS, OPTION_DESKTOP_ARGS):
1862 (OPTION_START_MENU_ARGS): New enumerated constants; define them.
1863 (OPTION_DESKTOP, OPTION_START_MENU): New manifest constants.
1864 (OPTION_ASSIGNED, mark_option_as_set): New macros; define them.
1865 (pkgOpts::GetValue, pkgOpts::GetString): Restrict look-up index to
1866 least significant 12-bits of full-range index value.
1867 (pkgOpts::IsSet): New inline method; implement it.
1869 * src/clistub.c (main): Reimplement --desktop and --start-menu
1870 options; each now becomes an OPTION_GENERIC optarg string store.
1871 (set_script_hook): Function no longer used; delete it; delegate to...
1872 * src/pkgbase.h (pkgXmlDocument::EstablishPreferences): ...this new
1873 method; declare it, providing its implementation in...
1874 * src/pkgopts.cpp: ...this new file; invoke it...
1875 * src/climain.cpp (climain): ...here.
1877 * Makefile.in (CORE_DLL_OBJECTS): Add pkgopts.$OBJEXT
1879 2012-04-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1881 Correct sequence of installation/removal progress reporting.
1883 * src/pkgunst.cpp (pkgRemove): Delay output of "removing package ..."
1884 message, until after pre-remove hooks have run; this ensures that any
1885 output from the pre-remove hook scripts appears in correct sequence.
1887 * src/pkginst.cpp (pkgInstall): Likewise, for "installing package ..."
1888 message, in relation to pre-install hooks.
1890 2012-04-26 Keith Marshall <keithmarshall@users.sourceforge.net>
1892 mingw-get-0.5-beta-20120426-1 released.
1894 * configure.ac (AC_INIT): Version number updated.
1895 * srcdist-doc/NEWS.in: Updated; bug-fix notifications added.
1896 * All files (r0-5-beta-20120426-1): Tag assigned.
1898 2012-04-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1900 Interim work-around for MinGW-Bug #3520864.
1902 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
1903 [DEBUG_TRACE_DEPENDENCIES]: Add request flags to messages reporting
1904 the scheduling of installation activities.
1906 * src/pkgexec.cpp (pkgXmlDocument::Schedule): Add temporary diagnostic
1907 hooks to confirm request flags; bracket them with #if 0 ... #endif.
1908 [ACTION_PRIMARY && pre-scheduled request]: Don't trash request flags
1909 when updating the pre-existing action item data.
1911 2012-04-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1913 Fix MinGW-Bug #3520488
1915 * src/pkgexec.cpp (action_code): Check for, and reject NULL pointer
1916 passed as action request string; also reject ambiguous abbreviations.
1918 * src/climain.cpp (climain): Discriminate between NULL pointer and
1919 other forms of invalid action keyword matching failures.
1921 2012-04-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1923 mingw-get-0.5-beta-20120416-1 released.
1925 * configure.ac (AC_INIT): Version number updated.
1926 (YEARS_OF_ISSUE): 2012 added.
1928 * srcdist-doc/NEWS.in: Updated; release notes added.
1929 * All files (r0-5-beta-20120416-1): Tag assigned.
1931 2012-04-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1933 Assign icon to temporary GUI executable file.
1935 * icons/pkgicon.ico: New file, shamelessly copied from synaptic.
1937 * configure.ac: Add identification for windres; propagate it to...
1938 * Makefile.in: ...here; use it to compile object from icon files...
1939 (srcdir/icons) [%.ico]: ...from this new vpath location.
1940 (gui.exe): Link to compiled icon's object file.
1941 (SRCDIST_SUBDIRS): Add icons directory.
1943 2012-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
1945 Ensure that package removal requests are correctly scheduled.
1947 * src/pkgdeps.cpp (pkgXmlDocument::Schedule) [ACTION_REMOVE]: Schedule
1948 as a distinct case, when the installed version is not the most recent
1949 available release; consideration of this distinct case was previously
1950 erroneously overlooked.
1952 2012-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
1954 Correct scheduling of new prerequisites when upgrading.
1956 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
1957 [ACTION_UPGRADE && ACTION_PRIMARY]: Don't exclude scheduling for this
1958 case of a prerequisite with no previously installed version; it may be
1959 a delegated primary requirement of a meta-package.
1961 2012-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
1963 Don't require subsystem within user specified version bounds.
1965 * src/pkgdeps.cpp (pkgActionItem::ApplyBounds): Automatically consider
1966 "*" wild-card matches for subsystem, if user doesn't specify it.
1968 2012-04-09 Charles Wilson <mingw@cwilson.fastmail.fm>
1970 Fix missing include.
1972 * src/pkgdeps.cpp (pkgopts.h): Include unconditionally; do not rely...
1973 (debug.h) [DEBUG_TRACE_DYNAMIC]: ...on this, for indirect inclusion.
1975 2012-04-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1977 Correct a srcdist package construction defect.
1979 * Makefile.in (srcdist) [for SRCDIST_SUBDIRS]: Use...
1980 (mkinstalldirs): ...this, to create package image directories.
1982 2012-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
1984 Add scripting hooks to support creation of MS-Windows shortcuts.
1986 * src/clistub.c (progname): New static variable with file scope; it
1987 replaces former automatic variable, of same name, in main() function.
1988 (set_script_hook): New static function; implement it, and call it...
1989 (main) [--desktop, --start-menu]: ...from here, to interpret these new
1990 command line options; they are propagated to scripts via...
1991 (MINGW_GET_DESKTOP_HOOK, MINGW_GET_START_MENU_HOOK): ...these new
1992 internally assigned environment variables.
1993 (help_text): Document --desktop and --start-menu.
1995 * scripts/libexec/setup.lua scripts/libexec/wsh.lua: New lua module
1996 files; they implement a lua scripting API; they delegate requests to
1997 the Windows Scripting Host, via either of this pair of...
1998 * scripts/libexec/shlink.js: ...new script to create shortcuts, or...
1999 * scripts/libexec/unlink.js: ...its complement, to remove them.
2000 * Makefile.in (SRCDIST_SUBDIRS): Integrate them; enumerate them in...
2001 (scripts_srcdir, LIBEXEC_SCRIPTS): ...these new macros; use to...
2002 (install): ...install them.
2004 2012-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
2006 Initialise $LUA_PATH to locate mingw-get specific scripts.
2008 * src/pkgexec.cpp (lua_path_init): New static inline function.
2009 (pkgXmlNode::DispatchScript): Call it on first time invocation, per...
2010 [lua_path_setup == false]: ...this static function local variable.
2012 2012-04-01 Keith Marshall <keithmarshall@users.sourceforge.net>
2014 Support installation of releases other than latest available.
2016 * src/pkgbase.h (pkgActionItem::ApplyBounds): New method; declare it.
2018 * src/pkgdeps.cpp (pkgActionItem::ApplyBounds): Implement it.
2019 (pkgXmlDocument::Schedule): Use it to interpret user specified version
2020 bounds, and apply them to scheduled action items. Having used...
2021 (get_version_bounds): ...this new static inline function...
2022 ...to acquire any user specified version bounds, check that they can
2023 be honoured, before scheduling any action; delegate diagnostics to...
2024 (dmh_notify_no_match): ...this new local helper function, to report
2025 when they can't, and to indicate viable alternatives.
2027 2012-03-26 Keith Marshall <keithmarshall@users.sourceforge.net>
2029 Rework previously inadequate solution for MinGW-Bug #3424406
2031 * src/pkgtask.h: Update copyright notice for current year.
2032 (ACTION_MAY_SELECT): New manifest constant for use as flag; define it.
2033 * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit): Assign it.
2035 * src/pkgdeps.cpp (STATIC_INLINE): New macro; define it.
2036 (ACTION_RECURSIVE_REINSTALL, ACTION_RECURSIVE_UPGRADE):
2037 (ACTION_RECURSIVE_REPLACE): New action code constants; define them.
2038 (with_flags): Original macro deleted; replace it with...
2039 (with_request_flags): ...this new static inline function.
2040 (if_noref, if_match, if_alias, with_download, promote): New static
2041 inline functions; they replace original macros of the same names.
2042 (is_recursive_action): Function no longer used; delete it.
2043 (action_class): New static inline function; implement and use it...
2044 (pkgXmlDocument::ResolveDependencies): ...here, to identify scheduling
2045 requirements for packages which are already installed; depends on...
2046 (request_mode): ...this new automatic variable; it augments and...
2047 (recursive_mode): ...replaces this one; rename it accordingly.
2048 (viable): Automatic variable no longer used; delete it.
2049 [DEBUG_REQUEST & DEBUG_TRACE_DEPENDENCIES]: Emit notification for
2050 scheduled installation.
2051 (pkgXmlDocument::Schedule): Add an implied...
2052 (ACTION_REMOVE): ...when scheduling a reinstallation.
2054 2012-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
2056 Address reinstallation issues per MinGW-Bugs #3416013 and #3424406
2058 * src/pkgexec.cpp (reinstall_action_scheduled): New inline function.
2059 (pkgActionItem::Execute): Use it to identify cases where...
2060 [--reinstall]: ...implicit package removal is required, and also to
2061 facilitate improved progress reporting in such cases.
2063 * src/pkgdeps.cpp (is_recursive_action): New inline function.
2064 (pkgXmlDocument::ResolveDependencies): Use it in tandem with...
2065 (recursive_mode): ...this new automatic variable, so as to handle...
2066 [meta-package dependency]: ...implicit recursion, to extend the scope
2067 of the current action to the first level of non-meta dependency.
2068 [install --reinstall]: ...reinstall original version of nominated
2069 package, ignoring any available upgrade; extend scope of operation...
2070 [install --reinstall --recursive]: ...to all prerequisite packages.
2071 [upgrade --reinstall]: ...upgrade nominated package if possible; if no
2072 upgrade available, reinstall current version; extend scope...
2073 [upgrade --reinstall --recursive]: ...to all prerequisites.
2074 (pkgXmlDocument::Schedule): Partially revert 2012-03-05 change;
2075 reimplement selectively; never promote...
2076 [install, install --reinstall]: ...these operations to become...
2077 [upgrade]: ...this, even if available; issue diagnostic instead.
2079 2012-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2081 Rationalise implementation and usage of --all-related option.
2083 * src/pkgopts.h: Update copyright notice; add year 2012.
2084 (OPTION_RECURSIVE, OPTION_ALL_RELATED): New constants; define them.
2085 (pkgOpts::SetFlags): New method; declare and implement it inline.
2087 * src/clistub.c: Update copyright notice; add year 2012.
2088 (options) [recursive, all-related]: Redefine in terms of...
2089 (OPTION_RECURSIVE, OPTION_ALL_RELATED): ...these.
2090 (help_text): Update appropriately.
2092 * src/climain.cpp: Update copyright notice; add year 2012.
2093 (climain) [all-related]: Associate its use exclusively with...
2094 (source, licence): ...these package processing operations; use...
2095 (pkgOptions::SetFlags): ...this, to propagate its effect.
2097 2012-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2099 Don't report failed downloads in respect of virtual packages.
2101 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): Clear...
2102 [ACTION_DOWNLOAD]: ...this status flag for any package identified as
2103 a meta-package; this corrects a further regression introduced with the
2104 2011-11-09 update, whereby pending download requests for such virtual
2105 packages were not cancelled, resulting in failure to install due to
2106 failed downloads, when no download is actually required.
2108 2012-03-05 Keith Marshall <keithmarshall@users.sourceforge.net>
2110 Don't suppress implied downloads for top-level actions.
2112 * src/pkgdeps.cpp: Update copyright notice for new year.
2113 (pkgXmlDocument::Schedule) [!OPTION_PRINT_URIS]: Ensure that...
2114 [ACTION_DOWNLOAD]: ...this is enabled, when scheduling an install or
2115 an upgrade action for a package specified as a command line argument;
2116 this corrects a regression introduced on 2011-11-09, which resulted in
2117 ACTION_DOWNLOAD being enabled only for second tier dependent actions.
2119 2012-02-20 Keith Marshall <keithmarshall@users.sourceforge.net>
2121 Copyright notice updates.
2123 * Makefile.in: Add 2012 as year of republication.
2124 * src/pkgbase.h src/sysroot.cpp src/pkgexec.cpp: Likewise.
2125 * src/rites.c src/pkginst.cpp src/pkgunst.cpp: Likewise.
2127 2012-02-20 Keith Marshall <keithmarshall@users.sourceforge.net>
2129 Fix ill-advised optimisation in $APPROOT environment lookup.
2131 * src/rites.c (approot_path): Don't save result of getenv() lookup
2132 across calls; the environment may have been moved in the interim,
2133 making the original result invalid on any subsequent call. Also,
2134 prefer MS-Windows style (with backslashes) for default.
2135 (pkgLastRites): Report full path name for lastrites.exe, on execl()
2136 failure, rather than only the path relative to $APPROOT.
2138 2012-02-20 Keith Marshall <keithmarshall@users.sourceforge.net>
2140 Propagate sysroot path settings to scripts via the environment.
2142 * src/pkgbase.h (PKG_PUTENV_FLAGS_MASK): New constant; it maps...
2143 (PKG_PUTENV_DIRSEP_MSW, PKG_PUTENV_DIRSEP_POSIX): ...these flags...
2144 (PKG_PUTENV_SCAN_VARNAME, PKG_PUTENV_NAME_TOUPPER): ...and these;
2145 they are used to specify optional behavioural choices for...
2146 (pkgPutEnv): ...this new function; declare it.
2148 * src/sysroot.cpp (pkgPutEnv): Implement it.
2149 (pkgXmlDocument::LoadSystemMap): Use it to add $SUBSYSTEM_SYSROOT path
2150 specifications to the environment, for each named subsystem associated
2151 with the active system map.
2153 * src/pkgexec.cpp (pkgActionItem::Execute): Invoke pkgPutEnv() prior
2154 to processing of each package install, upgrade, or remove action, so
2155 as to update environment variable $SYSROOT to represent the sysroot
2156 path for each package processed, during execution of script hooks.
2158 2012-02-17 Keith Marshall <keithmarshall@users.sourceforge.net>
2160 Implement hooks to support lua scripting interface.
2162 * Makefile.in (LIBS): Add -llua.
2164 * src/pkgbase.h (pkgXmlNode::InvokeScript): New method; declare it
2165 as private, and provide overloaded public inline API implementation.
2166 (pkgXmlNode::DispatchScript): New private method; declare it.
2168 * src/pkgexec.cpp (pkgXmlNode::InvokeScript): Implement it.
2169 (pkgXmlNode::DispatchScript): Likewise; it directs InvokeScript to...
2170 (pkgInvokeScript): ...this new static function; implement it.
2172 * src/pkginst.cpp (pkgInstall): Call InvokeScript as appropriate.
2173 * src/pkgunst.cpp (pkgRemove): Likewise.
2175 2011-11-24 Keith Marshall <keithmarshall@users.sourceforge.net>
2177 Avoid implicit cast warnings; reported by Robert Hartmann.
2179 * src/dmh.h (DMH_BEGIN_DIGEST): Explicitly cast to uint16_t.
2180 (DMH_END_DIGEST): Likewise.
2182 2011-11-09 Keith Marshall <keithmarshall@users.sourceforge.net>
2184 Avoid unnecessary downloads for already installed packages.
2186 * src/pkginet.cpp (pkgActionItem::DownloadSingleArchive): Require
2187 external scheduling of ACTION_DOWNLOAD; cancel the scheduled request
2188 on completion, or when not required due to pre-existing local copy.
2190 * src/climain.cpp (pkgActionItem::GetSourceArchive): Must always be
2191 prepared to download the associated archive; enable ACTION_DOWNLOAD.
2193 * src/pkgexec.cpp (pkgActionItem::Schedule) [OPTION_REINSTALL]:
2194 May need to download the archive, even when the requested package was
2195 previously installed; schedule ACTION_DOWNLOAD to enable this.
2197 * src/pkgdeps.cpp (promote): Macro redefined in terms of...
2198 (with_flags, with_download): ...these new macros; implement and...
2199 (pkgXmlDocument::ResolveDependencies): ...use them to enable/schedule
2200 ACTION_DOWNLOAD only when expected that it may be necessary.
2202 2011-11-06 Keith Marshall <keithmarshall@users.sourceforge.net>
2204 Fix packaging anomalies for source and licence distributions.
2206 * Makefile.in (licdist): Link README from ${CURDIR}, not from '..'.
2207 (srcdist): Explicitly link pkginfo.c from ${CURDIR} to src/pkginfo,
2208 rather than as implied prerequisite; this avoids a bogus attempt to
2209 link srcdist-doc into src/pkginfo.
2211 2011-11-06 Keith Marshall <keithmarshall@users.sourceforge.net>
2213 Bump version number for subsequent CVS snapshots.
2215 * configure.ac (AC_INIT): Set version to 0.4-alpha-1.1cvs
2217 2011-11-06 Keith Marshall <keithmarshall@users.sourceforge.net>
2219 mingw-get-0.4-mingw32-alpha-1 released.
2221 * configure.ac (AC_INIT): Adjust version number.
2222 * srcdist-doc/NEWS.in: Updated; document new features and bugs fixed.
2223 * All files (r0-4-alpha-1): Tag assigned.
2225 2011-11-04 Keith Marshall <keithmarshall@users.sourceforge.net>
2227 Don't upgrade installed DLL components to incompatible version.
2228 Provide clearer diagnostics for failed requests on implied packages.
2230 * src/pkgdeps.cpp (is_abi_compatible): New static inline function.
2231 (pkgXmlDocument::ResolveDependencies) [is_installed]: Use it.
2232 (pkgXmlDocument::ResolveDependencies) [DEBUG_TRACE_DEPENDENCIES]:
2233 Clean up and improve diagnostic message content and formatting.
2234 (pkgXmlDocument::Schedule) [(upgrade || remove) && ! installed]:
2235 Downgrade diagnostic to WARNING, for implicitly specified component
2236 packages; provide additional explanatory diagnostics.
2238 * src/pkgspec.cpp (pkgSpecs::VersionComparator):
2239 * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit):
2240 [DEBUG_TRACE_DEPENDENCIES]: Eliminate diagnostic noise.
2242 2011-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2244 Fix --download-only vs. --reinstall conflict.
2246 * src/pkgexec.cpp (pkgActionItem::Execute) [OPTION_DOWNLOAD_ONLY]:
2247 Test for explicit inequality, rather than equality to zero; since the
2248 2011-08-30 update, which made --download-only also imply --reinstall,
2249 it will test as non-zero when --reinstall is specified, even though
2250 --download-only is not.
2252 2011-10-07 Keith Marshall <keithmarshall@users.sourceforge.net>
2254 Add support for non-specific upgrade of all installed packages.
2256 * src/pkgbase.h (pkgXmlDocument::RescheduleInstalledPackages):
2257 New public method; declare it.
2259 * src/pkgdeps.cpp (pkgXmlDocument::RescheduleInstalledPackages):
2262 * src/climain.cpp (climain) [ACTION_UPGRADE && argc < 2]: Invoke
2263 pkgXmlDocument::RescheduleInstalledPackages() to schedule the upgrade
2264 request for all packages currently registered as installed.
2266 2011-10-06 Keith Marshall <keithmarshall@users.sourceforge.net>
2268 Implement "source" and "licence" operations.
2270 * src/pkgopts.h (OPTION_ALL_DEPS): New option code; define it.
2271 * src/clistub.c (main): Associate it with...
2272 (all-related, recursive): ...these synonymous option names...
2273 (options): ...defined within this local structured array.
2274 (help_text): Document them; also document "source" and "licence" as
2275 new operations which may be specified on the command line.
2277 * src/pkgtask.h (action_source, action_licence): Enumerate them.
2278 (ACTION_SOURCE, ACTION_LICENCE): Define their manifest values, and...
2279 * src/pkgexec.cpp (action_name): ...associate with operation names.
2281 * src/pkgbase.h (pkgActionItem::GetScheduledSourceArchives):
2282 (pkgActionItem::GetSourceArchive, pkgXmlDocument::GetSourceArchive):
2283 New public methods; declare them for external implementation.
2284 (pkgXmlDocument::GetScheduledSourceArchives): New public method;
2285 implement it as inline.
2287 * src/climain.cpp (pkgProcessedArchives): New pointer to stack of...
2288 (pkgArchiveNameList): ...this new locally defined class; implement it.
2289 (pkgActionItem::GetSourceArchive, pkgXmlDocument::GetSourceArchive):
2290 (pkgActionItem::GetScheduledSourceArchives): Implement them.
2291 (climain): Add invocation hooks.
2293 2011-10-04 Keith Marshall <keithmarshall@users.sourceforge.net>
2295 Establish mapping from release tarname to source tarname.
2297 * src/pkgreqs.cpp (inherited_requirement): New inline function.
2298 (requirement): Use it; adapt to propagate release archive format and
2299 compression type fields, in addition to version fields, when resolving
2300 "%" wildcard matches within the template for the resultant tarname.
2301 (pkgAssociateName): New public function; implement it for use by...
2302 * src/pkgname.cpp (pkgResolvedName): ...this new inline function.
2303 (pkgXmlNode::SourceArchiveName): Use it; adapt to accept a category
2304 selector, so it may resolve source or licence tarnames on demand.
2306 * src/pkgbase.h (pkgXmlNode::SourceArchiveName): Modify declaration;
2307 add category selector argument to support source/licence choice.
2309 2011-10-02 Keith Marshall <keithmarshall@users.sourceforge.net>
2311 Facilitate downloads using diverse cache directories.
2313 * src/pkgbase.h (pkgActionItem::DownloadSingleArchive): New private
2314 method; declare it; it handles the download for a single named archive
2315 file, and stores it in a specifed cache directory.
2317 * src/pkginet.cpp (pkgActionItem::DownloadSingleArchive): Implement
2318 it; factor its code from the original implementation within...
2319 (pkgActionItem::DownloadArchiveFiles): ...this; adapt to use it.
2321 2011-10-02 Keith Marshall <keithmarshall@users.sourceforge.net>
2323 Establish cache directory for source archive downloads.
2325 * src/mkpath.h (pkgSourceArchivePath): New function; declare it.
2326 * src/mkpath.c (pkgSourceArchivePath): Implement it.
2328 2011-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2330 Support archive extraction to arbitrary destination without install.
2332 * src/pkgproc.h (pkgArchiveProcessor::ExtractFile): New virtual
2333 helper method for use, as core helper, by derived classes; declare it.
2334 (pkgArchiveProcessor::CreateExtractionDirectory): Likewise.
2335 (pkgTarArchiveProcessor): Declare overloaded default constructor.
2336 (pkgTarArchiveExtractor): New class definition; it is derived from
2337 pkgTarArchiveProcessor.
2339 * src/tarproc.cpp (pkgArchiveProcessor::ExtractFile): Implement it.
2340 (pkgArchiveProcessor::CreateExtractionDirectory): Likewise.
2341 (pkgTarArchiveExtractor): Implement constructor, together with...
2342 (pkgTarArchiveExtractor::ProcessDirectory): ...this method, and also...
2343 (pkgTarArchiveExtractor::ProcessDataStream): ...this one; these are
2344 declared as abstract, in the pkgTarArchiveProcessor base class.
2345 (pkgTarArchiveInstaller::ProcessDirectory): Simplify; it now delegates
2346 directory creation to pkgArchiveProcessor::CreateExtractionDirectory.
2347 (pkgTarArchiveInstaller::ProcessDataStream): Simplify; delegate file
2348 handling to pkgArchiveProcessor::ExtractFile, as appropriate.
2350 2011-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2352 Make --download-only and --print-uris imply --reinstall.
2354 * src/pkgopts.h (OPTION_PRINT_URIS): Adjust definition.
2355 (OPTION_DNLOAD_ONLY, OPTION_DOWNLOAD_ONLY): Likewise.
2357 2011-08-07 Keith Marshall <keithmarshall@users.sourceforge.net>
2359 Implement --download-only and --print-uris options.
2361 * src/pkgopts.h (OPTION_DOWNLOAD_ONLY, OPTION_PRINT_URIS):
2362 New manifest constants, identifying flag bits; define them.
2363 (OPTION_DNLOAD_ONLY): Likewise; an alias for OPTION_DOWNLOAD_ONLY.
2365 * src/pkgbase.h (pkgActionItem::PrintURI): New private method.
2366 * src/pkginet.cpp: Implement it.
2368 * src/clistub.c (options): Add "download-only" and "print-uris".
2369 (help_text): Document them.
2370 * src/pkgexec.cpp (pkgActionItem::Execute): Process them.
2372 2011-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2374 mingw-get-0.3-mingw32-alpha-2.1 released.
2376 * configure.ac (AC_INIT): Adjust version number.
2377 * srcdist-doc/NEWS.in: Updated; document bugs fixed.
2378 * All files (r0-3-alpha-2-1): Tag assigned.
2380 2011-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2382 Adopt tar.xz as default package archive format.
2384 * Makefile.in (TARZIP, TAREXT): New macros; define them.
2385 (bindist, licdist, srcdist): Use them in place of hardcoded tar.gz
2386 (maintainer-clean): Expunge tar files of any compression format.
2388 2011-07-27 Keith Marshall <keithmarshall@users.sourceforge.net>
2390 Correct handling of release status in requirements specifications.
2392 * src/debug.h (DEBUG_TRACE_DEPENDENCIES): New tracing hook; define it.
2393 * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit): Use it; add
2394 function entry/exit tracing report hooks.
2395 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): Likewise;
2396 also add internal trace point reporting, which may also require...
2397 (show_required): ...this new static inline DEBUG_INVOKED function.
2399 * src/pkgreqs.cpp (requirement): Propagate release status and release
2400 reference index fields from requirer, when package version requirement
2401 is specified by a '%' token, and no explicit release status override
2402 is included in the requirement specification.
2404 * src/pkgspec.cpp (is_wildcard_spec): New static inline helper.
2405 (pkgSpecs::VersionComparator): Use it to identify any package version
2406 specification which may require the extension of a wildcard match, to
2407 span the package version and release status fields; also add tracing
2408 hooks, triggered on DEBUG_TRACE_DEPENDENCIES, to facilitate debugging.
2410 2011-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2412 Avoid accidental RCS keyword substitutions.
2414 * Makefile.in (DOLLAR): New macro; define it.
2415 (readme.txt, readme.txt.in): Use it, where unexpanded RCS Id keyword
2416 matching is intended.
2418 2011-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2420 Mercurial support revisited.
2422 * .cvsignore (.hgtags): Add to CVS untracked list.
2424 2011-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2426 Update readme.txt ID tag-line to track NEWS rather than README.
2428 * Makefile.in (readme.txt.in): New rule; implement it.
2429 (readme.txt.tag): Likewise; this implements the tag-line tracking.
2430 (readme.txt): Rule redefined in terms of the preceding pair.
2432 2011-06-17 Keith Marshall <keithmarshall@users.sourceforge.net>
2434 mingw-get-0.3-mingw32-alpha-2 released.
2436 * configure.ac (AC_INIT): Adjust version number.
2437 * srcdist-doc/NEWS.in: Updated; document new features and bugs fixed.
2438 * All files (r0-3-alpha-2): Tag assigned.
2440 2011-06-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2442 Add internal documentation for --reinstall option.
2444 * src/clistub.c (help_text): Add description for "--reinstall".
2446 2011-06-14 Keith Marshall <keithmarshall@users.sourceforge.net>
2448 Support use of Mercurial within a CVS working copy.
2450 * .cvsignore (.hg, .hgignore): Don't have CVS track these.
2452 2011-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
2454 Implement --reinstall option.
2456 * src/pkgopts.h (OPTION_REINSTALL): New macro; define it.
2457 (OPTION_GENERIC, OPTION_SHIFT_MASK): Likewise.
2458 (OPTION_EXTRA_FLAGS): New field; declare it.
2460 * src/clistub.c (options): Add "reinstall".
2461 (OPTION_GENERIC): Use it where appropriate; within its scope...
2462 (OPTION_STORAGE_CLASS): Improve descriptive comments; add handling for
2463 default case of flag type options requiring an alignment shift.
2465 * src/pkgexec.cpp: Remove previous "always reinstall" kludge.
2466 (pkgOptionSelected, PKG_OPTION_REINSTALL): Remove obsolete macros.
2467 (pkgActionItem::Execute): Check for "upgrade" request on any package
2468 which is already up to date; report this state, otherwise...
2469 [OPTION_REINSTALL || ACTION_UPGRADE]: Mark package as "removed", to
2470 avoid bail-out on "package already installed", when calling...
2471 (pkgInstall): ...this.
2473 2011-06-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2475 Don't require -vv to report progress of update operation.
2477 * src/pkgbind.cpp (pkgRepository::GetPackageList): Eliminate all
2478 basename() calls; `dname' already tells us what it should return.
2479 [update]: Report progress, irrespective of verbosity setting.
2481 2011-06-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2483 Fix MinGW-Bug #3313806.
2485 * src/pkginfo/pkginfo.l (CMS_KEYWORDS): Do not match them within the
2486 PACKAGE_NAME field; this avoids misinterpretation as a release status
2487 qualifier when intended as part of the package name, as in msys-cvs.
2489 2011-06-07 Keith Marshall <keithmarshall@users.sourceforge.net>
2491 Provisional correction for MinGW-Bug #3309438.
2493 * src/debug.h [DEBUGLEVEL == 0]: Provide defaults for...
2494 (DEBUG_ENABLED, DEBUG_REQUEST): ...these macros.
2496 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDirectory):
2497 (pkgTarArchiveInstaller::ProcessDataStream): Use DEBUG_REQUEST to
2498 enable runtime trace activation for previous compile time choices.
2500 2011-05-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2502 mingw-get-0.3-mingw32-alpha-1 released.
2504 * configure.ac (AC_INIT): Adjust version number.
2505 * srcdist-doc/NEWS.in: Updated; document new features.
2506 * All files (r0-3-alpha-1): Tag assigned.
2508 2011-05-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2510 Support assignment of DEBUGLEVEL at configure time.
2512 * configure.ac (DEBUGLEVEL): Declare as a precious variable, using
2513 AC_ARG_VAR; also declare with AC_SUBST, to ensure it is initialised.
2515 * Makefile.in (DEBUGLEVEL): Let AC_SUBST assign it.
2517 2011-05-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2519 Work around bugs in MinGW and GNU getopt_long_only() implementations.
2521 * src/getopt.c: New file; this is a free-standing replacement for any
2522 implementation provided by system libraries. We will always use this
2523 to ensure correct operation irrespective of system bugs; (different
2524 bug manifestations have been identified in the stock MinGW and GNU
2527 * Makefile.in (mingw-get.EXEEXT): Use it.
2529 * src/clistub.c (options): Remove redundant declaration of `-v' as a
2532 2011-05-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2534 Implement user selection of traceable features at run-time.
2536 * src.pkgopts.h (OPTION_VERBOSE_MAX): New macro; define it.
2538 * src/debug.h (DEBUG_ENABLED): New macro; define it.
2539 (DEBUG_REQUEST, DEBUG_REQUEST_FLAGS, DEBUG_TRACE_DYNAMIC): Likewise.
2541 * src/clistub.c (main) [--trace]: Don't make it available unless...
2542 [DEBUG_ENABLED(DEBUG_TRACE_DYNAMIC)]: ...this is set (at compile-time).
2543 [--verbose]: Limit to OPTION_VERBOSE_MAX, using...
2544 (atmost): ...this new macro; define it.
2545 (options): Declare `-v' as both long and short form, pending bug fix
2546 in MinGW's getopt_long_only() implementation.
2548 * src/pkginet.cpp (pkgInternetAgent::OpenURL): Use DEBUG_REQUEST.
2549 (pkgInternetLzmaStreamingAgent::TransferData): Likewise.
2550 (pkgInternetStreamingAgent::TransferData): Likewise.
2551 (pkgInternetStreamingAgent::Get): Likewise.
2553 * src/pkgunst.cpp (pkgActionItem::SetAuthorities): Use DEBUG_REQUEST.
2554 (pkg_rmdir, pkg_unlink): Likewise.
2556 * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Use DEBUG_REQUEST.
2558 2011-05-21 Keith Marshall <keithmarshall@users.sourceforge.net>
2560 Implement protocol for processing global program options.
2562 * src/pkgopts.h: New file.
2564 * src/climain.cpp (cli_setopts): New function; implement it.
2565 (pkgOptions): Likewise.
2567 * src/clistub.c (xatoi): New function; implement it.
2568 (cli_setargv): New inline helper function; implement it.
2569 (main): Use it. Also incorporate implementation of...
2570 (parsed_options): New structure; it accommodates...
2571 (verbose, trace): New options; interpret them, and...
2572 (help_text): ...document them.
2574 * src/pkgbind.cpp (pkgRepository::GetPackageList): Make catalogue
2575 loading notifications and progress reports conditional on...
2576 [OPTION_VERBOSE > 1]: ...this.
2578 2011-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2580 Augment known development status keywords and accept CMS labels.
2582 * src/pkginfo/pkginfo.l (CMS_KEYWORDS): Define new provisional list;
2583 add transitional state scanner rule and code to interpret them.
2584 (STATUS_KEYWORDS): Add "pre" and "rc" to existing list; modify scanner
2585 code to maintain consistency with CMS_KEYWORDS processing; also extend
2586 this coding strategy to other rules.
2588 * src/pkginfo/driver.c (spec): Strip initial '$' token from displayed
2589 field values; (we expect it only for a CMS_KEYWORDS field value).
2591 * src/pkgreqs.cpp (pkgSpecs::GetTarName): Remove any initial '$' token
2592 from PACKAGE_RELEASE_STATUS field, when performing reverse of tarname
2593 decomposition transformation.
2595 2011-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2597 Correct omission from 2011-02-18 commit.
2599 * src/tarproc.cpp (Copyright Notice): Add 2011 as year of release.
2601 2011-05-14 Keith Marshall <keithmarshall@users.sourceforge.net>
2603 mingw-get-0.2-mingw32-alpha-4 released.
2605 * configure.ac (AC_INIT): Adjust version number.
2606 * srcdist-doc/NEWS.in: Updated; add bug-fix/feature descriptions.
2607 * All files (r0-2-alpha-4): Tag assigned.
2609 2011-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2611 Fix MinGW-Bug #3297660 (reported by Chris Sutcliffe).
2613 * src/pkgbase.h (pkgActionItem::SetAuthorities): Return unsigned long.
2614 (pkgActionItem::HasAttribute): New inline method; implement it.
2616 * src/pkgtask.h (ACTION_DOWNLOAD, ACTION_DOWNLOAD_OK): New macros.
2618 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles):
2619 [ACTION_DOWNLOAD]: Assert it at commencement of each package download;
2620 clear it again, on successful download completion.
2622 * src/pkginst.cpp (pkgtask.h): #include it.
2623 (pkgInstall) [ACTION_DOWNLOAD]: Don't proceed with installation when
2624 set; this indicates failed download; diagnose it.
2626 * src/pkgunst.cpp (pkgRemove) [ACTION_DOWNLOAD && ACTION_UPGRADE]:
2627 Don't proceed with pre-emptive removal when both set; this indicates
2628 failed download of replacement package; diagnose it.
2630 2011-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2632 Fix MinGW-Bug #3295526 (reported by Charles Wilson).
2634 * src/pkgunst.cpp (sys/stat.h): #include it; we need it for...
2635 (pkg_unlink): ...chmod( file, S_IWRITE ), emulating `rm -f' semantics.
2637 2011-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2639 Diagnose and aggressively retry failed download connections.
2641 * src/debug.h (DEBUG_TRACE_INTERNET_REQUESTS): New macro; define it.
2643 * src/pkginet.cpp (debug.h): #include it.
2644 (pkgDownloadMeter): New abstract class; declare it and implement its
2645 default (non-abstract) data and methods; derive...
2646 (pkgDownloadMeterTTY): ...this new class from it; implement it...
2647 (pkgInternetStreamingAgent::Get): ...and instantiate it (naively for
2648 now), as associated pkgDownloadMeter object; add tracing diagnostic.
2649 (pkgInternetAgent::OpenURL): Don't inline it; move implementation out
2650 of line; add retry loops to aggressively retry failed connections.
2651 (pkgInternetAgent::QueryContentLength): New method; implement it.
2652 (pkgInternetStreamingAgent::TransferData): Avoid Microsoft specific
2653 data type `DWORD'; prefer equivalent standard `unsigned long'. Add
2654 tracing diagnostic. Remove progress diagnostic; replace it with an
2655 `Update' request to associated pkgDownloadMeter.
2656 (pkgInternetLzmaStreamingAgent::GetRawData): Avoid `DWORD' data type.
2657 (pkgInternetLzmaStreamingAgent::TransferData): Likewise; add tracing
2658 diagnostic on failure.
2660 2011-03-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2662 mingw-get-0.2-mingw32-alpha-3 released.
2664 * configure.ac (AC_INIT): Adjust version number.
2665 * srcdist-doc/NEWS.in: Updated; add bug-fix description.
2666 * All files (r0-2-alpha-3): Tag assigned.
2668 2011-03-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2670 Provisional handling for http proxy authentication.
2671 (Adapted from patch by Scott Michel <pingbak@users.sourceforge.net>)
2672 (ref: MinGW-Patch #3158453)
2674 * src/pkginet.cpp: Several format/layout adjustments; add comments.
2675 Eliminate several instances of Microsoft specific typedef nastiness.
2676 (dmh_dialogue_context): New macro; kludge definition to support...
2677 (pkgInternetAgent::OpenURL) [HTTP_STATUS_PROXY_AUTH_REQ]: Detect
2680 2011-03-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2682 Expand macros in path names for files and directories to be removed.
2684 * src/pkgunst.cpp (pkgRemove): Format sysroot as a template, so...
2685 (pkg_rmdir, pkg_unlink): ...are able to use mkpath() to construct the
2686 full path name for each file or directory to be removed.
2688 2011-03-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2690 Correct defective activation logic for some debugging hooks.
2692 * src/pkgunst.cpp (pkg_rmdir, pkg_unlink) [DEBUG_INVOKE_IF]:
2693 (pkgActionItem::SetAuthorities) [DEBUG_INVOKE_IF]: Use bit-wise `&'
2694 operator, not `&&', to evaluate DEBUGLEVEL state.
2696 2011-03-22 Keith Marshall <keithmarshall@users.sourceforge.net>
2698 Avoid Unicode hyphens in generated ASCII document files.
2700 * Makefile.in (NROFF): New macro; define it to invoke `nroff -Tascii'.
2701 (%.dist, readme.txt): Use it to ensure that output is pure ASCII.
2703 2011-03-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2705 mingw-get-0.2-mingw32-alpha-2 released.
2707 * configure.ac (AC_INIT): Adjust version number.
2708 * srcdist-doc/NEWS.in: Updated; add bug-fix description.
2709 * All files (r0-2-alpha-2): Tag assigned.
2711 2011-03-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2713 Fix MinGW-Bug 3212246.
2715 * src/keyword.c (has_keyword): Avoid incrementing the comparison
2716 pointers when a significant character in one string is not matched in
2717 the other; previously the pointers were left pointing one character to
2718 the right of the mismatch, and this was overlooked if the mismatch
2719 occurred at the rightmost character in both strings.
2721 2011-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2723 mingw-get-0.2-mingw32-alpha-1 released.
2725 * configure.ac (AC_INIT): Set version number; correct capitalisation
2726 in URI reference to bug reporting instructions.
2728 * srcdist-doc/NEWS.in: Confirm release date.
2729 [bug reporting]: Remove redundant paragraph; the information is
2730 provided, via reference to mingw.org. in the README and INSTALL files.
2732 * All files (r0-2-alpha-1): Tag assigned.
2734 2011-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2736 * srcdist-doc/INSTALL.in [building]: Qualify liblzma.a requirement;
2737 add earliest acceptable snapshot release date.
2739 2011-03-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2741 Remove unused 7zip and boost source code from CVS trunk.
2743 * 7z: Directory and all content removed.
2746 2011-03-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2748 Refactor and update existing installation and usage instructions.
2750 * src/clistub.c (help_text): Updated.
2752 * srcdist-doc: New directory.
2754 * README: Deleted; its content refactored into...
2755 * srcdist-doc/README.in srcdist-doc/INSTALL.in srcdist-doc/NEWS.in:
2756 ...these new template files, updated for current development state.
2758 * srcdist-doc/gendoc.sed.in: New sed script; it directs formatting of
2759 generated text files derived from the srcdist-doc templates.
2761 * Makefile.in (SRCDIST_SUBDIRS): Add srcdist-doc.
2762 (SRCDIST_FILES): Add NEWS and INSTALL.
2763 (srcdist-doc): New build rule to generate README, NEWS and INSTALL.
2764 (srcdist, licdist): Adjust path to locate them.
2765 (readme.txt): New build rule to generate on-line package description.
2767 (distclean): Don't remove Makefile...
2768 (maintainer-clean): ...but do it here instead. Also remove generated
2769 README, NEWS and INSTALL, the autom4te cache, and all distributable
2770 zip files, in addition to tarballs, for the current version.
2772 2011-02-27 Keith Marshall <keithmarshall@users.sourceforge.net>
2774 Initial implementation for "remove" feature.
2776 * src/pkgbase.h: Update copyright notice; add current year.
2777 (pkgActionItem::SetPrimary): New inline public method; declare it.
2778 (pkgActionItem::SetAuthorities): New public method; declare it.
2780 * src/pkgtask.h (ACTION_PREFLIGHT, ACTION_REMOVE_OK): New defines.
2782 * src/pkgproc.h: Update copyright notice; add current year.
2783 (pkgManifest::GetSysRootReference): New public method; declare it.
2784 (pkgManifest::GetRoot): New inline method; declare and implement it.
2785 (pkgManifest::DetachSysRoot): Argument type changed to const char*.
2786 (pkgRemove): New extern "C" function; declare it.
2788 * src/pkgexec.cpp (pkgActionItem::SetPrimary): Implement it, and...
2789 (pkgXmlDocument::Schedule): ...use it to promote actions on all user
2790 specified packages, as listed on the command line, to primary status.
2791 (pkgActionItem::Execute): Repeatedly invoke...
2792 (pkgActionItem::SetAuthorities): ...this; incorporate call of...
2793 (pkgActionItem::DownloadArchiveFiles): ...this, within the loop, so
2794 that we retry failed downloads at least a second time.
2795 [ACTION_REMOVE]: Delete stub; invoke pkgRemove().
2797 * src/pkgunst.cpp: New file.
2798 (pkgActionItem::SetAuthorities): Implement it.
2799 (pkgManifest::GetSysRootReference): Implement it.
2800 (pkgManifest::DetachSysRoot): Implement it per new declaration.
2801 (pkgRemove): Implement it.
2803 * Makefile.in (CORE_DLL_OBJECTS): Add pkgunst.OBJEXT
2805 2011-02-26 Keith Marshall <keithmarshall@users.sourceforge.net>
2807 Work-around for improper stderr buffering in MSYS mintty and rxvt.
2808 (Merged from r0-1-alpha-5 branch).
2810 * src/dmh.cpp (dmhTypeTTY::emit_and_flush): New private method.
2811 (dmhTypeTTY::printf, dmhTypeTTY::notify): Use it to force an fflush()
2812 after each output record is written to stderr.
2814 * README: Update as appropriate.
2816 2011-02-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2818 Tidy up some debugging hooks.
2820 * src/debug.h (DEBUG_INVOKED): New macro; define it.
2821 (DEBUG_INVOKE_IF): Likewise; this takes arguments providing for
2822 conditional invocation of code when DEBUGLEVEL is non-zero; make it
2823 expand to nothing, when DEBUGLEVEL is zero.
2824 (DEBUG_TRACE_INIT): Redefined macro; value changed to 0x0010.
2825 (DEBUG_TRACE_TRANSACTIONS, DEBUG_SUPPRESS_INSTALLATION):
2826 (DEBUG_UPDATE_INVENTORY): New macros; define them.
2828 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDirectory):
2829 (pkgTarArchiveInstaller::ProcessDataStream): Refactor debugging hooks;
2830 implement them in terms of DEBUGLEVEL, with reference to...
2831 (DEBUG_SUPPRESS_INSTALLATION, DEBUG_UPDATE_INVENTORY): ...these.
2833 2011-02-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2835 Make package version comparisons more robust.
2837 Fixes an issue reported by Chris Sutcliffe: previously, version
2838 comparisons were evaluated solely on the basis of differences in the
2839 package version field itself. Henceforth, if this field compares as
2840 equal, then the comparison is extended to also consider differences
2841 between development phase qualifiers, and, if these too compare as
2842 equal, to differences in the target subsystem version fields.
2844 * src/pkginfo/pkginfo.h (pkgSpecs::VersionComparator): New private
2847 * src/pkgspec.cpp (pkgSpecs::VersionComparator): Implement it.
2848 (pkgSpecs::operator<, pkgSpecs::operator<=, pkgSpecs::operator>=):
2849 (pkgSpecs::operator>): Use it, replacing...
2850 (version): ...this static function; now unreferenced; delete it.
2852 * src/vercmp.h (pkgVersionInfo::pkgVersionInfo): Make it inline; it
2853 now delegates the entire class construction operation to...
2854 (pkgVersionInfo::Parse): ...this new private method; declare it. This
2855 is also used to facilitate implementation of...
2856 (pkgVersionInfo::Reset): ...this new inline method, also requiring...
2857 (pkgVersionInfo::FreeAll): ...this new inline method; also now used by
2858 the class destructor, it encapsulates separate calls to...
2859 (pkgVersionInfo::Free): ...this original inline method, renamed...
2860 (pkgVersionInfo::FreeEntry): ...as this.
2862 * src/vercmp.cpp (pkgVersionInfo::Parse): Implement it.
2864 2011-02-13 Keith Marshall <keithmarshall@users.sourceforge.net>
2866 Merge from mingw-get-0.1-mingw32-alpha-5 bug-fix branch.
2868 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): Promote
2869 "install" action on new prerequisites, where a previously uninstalled
2870 package is required to satisfy any "upgrade" dependency.
2872 * src/pkgexec.cpp (pkgActionList::Execute): Don't make misleading
2873 claims concerning package removal.
2875 * src/pkgtask.h (STRICTLY_GT, STRICTLY_LT, ACTION_PRIMARY): Add one
2876 level of parentheses around defining expressions.
2878 2011-02-10 Keith Marshall <keithmarshall@users.sourceforge.net>
2880 Publish mingw-get-0.0-mingw32-alpha-5.1 bug-fix release.
2882 * README: Updated to reflect changes.
2884 2011-02-08 Keith Marshall <keithmarshall@users.sourceforge.net>
2886 Improve diagnostics for failed GUI invocation.
2888 * src/guimain.cpp: New file; currently delivers only a diagnostic
2889 stub, provided by Sze Howe Koh <axfangli@users.sourceforge.net>, to
2890 pop-up a message block explaining why GUI mode cannot be invoked.
2892 * Makefile.in (GUI_LDFLAGS): New macro; it is required by...
2893 (gui$EXEEXT): ...this new build rule; add to prerequisites of...
2894 (all): ...this [default] build rule; redefine this in terms of...
2895 (BIN_PROGRAMS, LIBEXEC_PROGRAMS, LIBEXEC_DATA): ...these new macros;
2896 define them, and also use them as loop iterator objectives for...
2897 (install, install_strip): ...these; also schedule them...
2898 (clean): ...for removal by this.
2900 * src/clistub.c (Copyright): Add new year.
2901 (main): Amend error message, if gui$EXEEXT doesn't start; make it
2902 more intelligible to normal users.
2904 2011-02-07 Keith Marshall <keithmarshall@users.sourceforge.net>
2906 Correct omissions from packaged source tarball.
2908 * Makefile.in (Copyright): Add new year.
2909 (SRCDIST_FILES): Add aclocal.m4
2910 (SRCDIST_SUBDIRS): Add m4
2912 2011-01-05 Keith Marshall <keithmarshall@users.sourceforge.net>
2914 Reduce path names to base names, in some diagnostic message contexts.
2916 * src/climain.cpp: Update copyright notice for new year.
2917 (climain): Extract base name from argv[0], to pass as program name tag
2918 in initialisation of diagnostic message handler.
2920 * src/dmh.h, src/dmh.cpp: Update copyright notices; make some layout
2921 adjustments, for more consistent formatting style.
2923 * src/pkgbind.cpp: Update copyright notice.
2924 (pkgRepository::GetPackageList): Reduce path names for catalogue files
2925 to their base names, when reporting them in diagnostic messages.
2927 2011-01-05 Keith Marshall <keithmarshall@users.sourceforge.net>
2929 Avoid a potential out-of-range action name look-up.
2931 * src/pkgdeps.cpp: Update copyright notice for new year.
2932 (pkgXmlDocument::Schedule): Mask action code with ACTION_MASK, to
2933 determine correct action name when diagnosing uninstalled package.
2935 2011-01-03 Keith Marshall <keithmarshall@users.sourceforge.net>
2937 Make "install" and "remove" notifications symmetric.
2939 * configure.ac (AC_INIT): Bump version to "0.1-alpha-6cvs".
2940 (YEARS_OF_ISSUE): Add new year.
2942 * src/pkginst.cpp: Update copyright notice for new year.
2943 (pkgInstall): Add notification for package being installed.
2945 2010-12-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2947 Add preliminary CLI support for "list" and "show" actions.
2949 * src/pkgtask.h (ACTION_PRIMARY): New manifest constant; define it.
2950 (ACTION_LIST, ACTION_SHOW): Likewise; cast to enumerated values for...
2951 (action_list, action_show): ...these; define them.
2953 * src/pkgexec.cpp (action_name): Add defining text for...
2954 (action_list, action_show): ...these.
2956 * src/climain.cpp: Partially revert 2010-11-01 change...
2957 (climain) [! ACTION_UPDATE]: Reinstate original "if" block, moving
2958 the "switch" block within it, but without the ACTION_UPDATE case.
2959 [ACTION_LIST, ACTION_SHOW]: New "switch" cases; they invoke...
2960 (pkgXmlDocument::DisplayPackageInfo): ...this new method.
2962 * src/pkgbase.h (pkgXmlDocument::DisplayPackageInfo): Declare it.
2963 (pkgActionItem::ConfirmInstallationStatus): New method; declare it.
2964 (pkgXmlNode::GetSysRoot): Make declaration style consistent with
2965 others in the class; do not name arguments in the declaration.
2966 (pkgXmlNode::FindFirstAssociate): Likewise.
2967 (pkgXmlNode::FindNextAssociate): Likewise.
2969 * src/pkgshow.cpp: New file.
2970 (pkgXmlDocument::DisplayPackageInfo): Implement it.
2972 * src/pkgdeps.cpp (pkgMsgUnknownPackage): New extern "C" function;
2973 implement it temporarily, pending a future i18n reimplementation.
2974 (assert_installed): Drop "inline" attribute; leave it as "static".
2975 Set "tarname" correctly, to match the installed package version; (it
2976 previously incorrectly returned the latest available version).
2977 (pkgActionItem::ConfirmInstallationStatus): Implement it.
2978 (pkgXmlDocument::Schedule) [ACTION_PRIMARY]: Set as appropriate.
2979 (pkgXmlDocument::Schedule) [ACTION_REMOVE || ACTION_UPGRADE]: Complain
2980 if requested package is not recorded as having been installed.
2981 (pkgXmlDocument::ResolveDependencies) [! ACTION_INSTALL]: Do not
2982 invoke it recursively.
2984 * Makefile.in (pkgshow.$OBJEXT): Add reference.
2986 2010-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
2988 Lay groundwork for implentation of additional actions.
2990 * src/climain.cpp (climain): Adjust indentation; replace `if' block...
2991 [action != ACTION_UPDATE]: ...with this default `switch' case, and...
2992 [action == ACTION_UPDATE]: ...this as explicit "do nothing" case.
2994 2010-10-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2996 mingw-get-0.1-mingw32-alpha-5 released.
2998 * configure.ac (AC_INIT): Bump version to 0.1-alpha-5.
2999 * README: Update release notes accordingly.
3000 * All files (r0-1-alpha-5): Tag assigned.
3002 2010-10-22 Keith Marshall <keithmarshall@users.sourceforge.net>
3004 Make pkgInitRites/pkgLastRites processing more robust;
3005 avoid a potential race condition in mingw-get-inst.
3007 * src/rites.c: Refactor conditional code to segregate execution of...
3008 [defined IMPLEMENT_INITIATION_RITES]: ...this into distinct phases.
3009 (PHASE_ONE_RITES, PHASE_TWO_RITES): Define constants to identify them.
3010 (do_init_rites): Renamed to...
3011 (invoke_rites): ...this; inline it.
3012 (pkgLastRites): Invoke it, to pre-empt rename action of...
3013 (lastrites.exe): ...this, subsequently exec()ed process.
3014 (perror): Issue more informative diagnostic on exec() failure.
3016 * src/clistub.c (IMPLEMENT_INITIATION_RITES): Stipulate as...
3017 (PHASE_ONE_RITES): ...this phase of implementation only.
3019 * src/pkgexec.cpp (IMPLEMENT_INITIATION_RITES): Define to provide...
3020 (PHASE_TWO_RITES): ...this phase of implementation, facilitated by...
3021 (self_upgrade_rites): ...this locally defined RITES_INLINE function.
3022 (pkgActionItem::Execute): Invoke it, in remove/install loop, while...
3023 [init_rites_pending]: ...new loop local variable remains true.
3025 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
3027 Fix packaging bug in -lic package.
3029 * Makefile.in (licdist): Use directory named
3030 "share", not "shared".
3032 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
3034 mingw-get-0.1-mingw32-alpha-4 released.
3036 * All files (r0-1-alpha-4): Tag assigned.
3038 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
3040 Add rudimentary help option.
3042 * README: Update release notes.
3044 * src/clistub.c: Add --help option.
3046 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
3048 Fix "mingw-get deletes itself" bug in last rites handling.
3050 * README: Add new release notes.
3052 * configure.ac: Bump version to 0.1-alpha-4.
3054 * src/dmh.h: If __cplusplus, include <exception> and
3055 declare dmh_exception class.
3057 * src/dmh.cpp (class dmh_exception): Implement.
3058 (abort_if_fatal): If DMH_FATAL, throw dmh_exception rather
3059 than calling exit().
3061 * src/climain.cpp (climain): Wrap entire function body in try/
3062 catch block. If dmh_exception is caught, return EXIT_FAILURE.
3064 * src/clistub.c (main): Capture return value of climain(). If
3065 non-zero, perform last rites and return EXIT_FAILURE.
3067 2010-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
3069 mingw-get-0.1-mingw32-alpha-3 released.
3071 * README: Add new release notes.
3073 * All files (r0-1-alpha-3): Tag assigned.
3075 2010-08-27 Keith Marshall <keithmarshall@users.sourceforge.net>
3077 Add runtime hooks to support self-upgrade for future releases.
3079 * src/rites.c: New file; compile it free-standing, to provide...
3080 (lastrites.exe): ...this helper application for context clean-up;
3081 alternatively, use it as an include file, with pre-definition of...
3082 (IMPLEMENT_INITIATION_RITES): ...this, to implement...
3083 (pkgInitRites, pkgLastRites): ...these inline functions.
3085 * src/clistub.c (main) [argc > 1]: Use them.
3086 (progname): New local variable within `main'; set it once, then use it
3087 instead of repeated references to `basename(*argv)' in diagnostics.
3088 (MINGW_GET_DLL, MINGW_GET_GUI): Relocate to `src/rites.c'.
3090 * src/debug.h (DEBUG_INHIBIT_RITES_OF_PASSAGE):
3091 (DEBUG_FAIL_FILE_RENAME_RITE, DEBUG_FAIL_FILE_UNLINK_RITE): New
3092 defines; they facilitate debugging of the src/rites.c code.
3094 * Makefile.in (lastrites$EXEEXT): New target; build as prerequisite...
3095 (all): ...of this primary target.
3096 (install, install-strip): Install it.
3097 (SRCDIST_FILES): Remove install-sh; it is now included in...
3098 (build-aux): ...this directory; add it to...
3099 (SRCDIST_SUBDIRS): ...this.
3101 2010-08-24 Keith Marshall <keithmarshall@users.sourceforge.net>
3103 Set default sysroots relative to mingw-get installation directory.
3105 * xml/profile.xml (system-map) [name == default]: For each of...
3106 [subsystem == mingw32]: ...set sysroot path to value of %R macro...
3107 [subsystem == msys]: ...and to its %R/msys/1.0 subdirectory.
3109 2010-08-19 Keith Marshall <keithmarshall@users.sourceforge.net>
3111 Some dependency resolver enhancements and bug fixes.
3113 * src/pkgbase.h (pkgXmlNode::GetContainerAttribute): New method;
3116 * src/pkgdeps.cpp (pkgXmlNode::GetContainerAttribute): Implement it;
3117 it is used to retrieve package name attributes from the containing
3118 'package' element, when given a pointer to a 'release' element by...
3119 (assert_unmatched, assert_installed): ...these new static functions.
3120 (pkgXmlDocument::Schedule): Use them to reconstruct and register
3121 dependency reference data for previously installed packages which are
3122 no longer included in the distribution manifest.
3123 (pkgXmlDocument::ResolveDependencies): Fix a block nesting error;
3124 catch and diagnose unresolved dependencies; don't look beyond the XML
3125 document root node, (tinyxml error not caught?), when searching for
3126 requirements specified on container nodes.
3128 2010-08-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3130 Improve scheduling of package processing requests.
3132 * src/pkgexec.cpp (pkgXmlDocument::Schedule): Inspect entire `actions'
3133 list, when checking for duplicate package processing requests; decline
3134 to schedule any such duplicate, or any request which lacks a package
3137 2010-08-15 Keith Marshall <keithmarshall@users.sourceforge.net>
3139 Lay foundation for selective compilation of debugging code.
3141 * src/debug.h: New file...
3142 * src/sysroot.cpp: Include it.
3143 (pkgXmlDocument::LoadSystemMap): Make debugging output conditional...
3144 [DEBUGLEVEL & DEBUG_TRACE_INIT]: ...on this new debugging state.
3146 2010-08-15 Keith Marshall <keithmarshall@users.sourceforge.net>
3148 * src/pkgkeys.h: Typo in comment: file was previously identified as
3149 pkgkeys.c; corrected.
3151 2010-08-13 Keith Marshall <keithmarshall@users.sourceforge.net>
3153 Improve diagnostics for invalid references to non-release XML nodes.
3155 * src/pkgkeys.h (value_unknown): New global string; declare it.
3156 * src/pkgkeys.c (value_unknown): Implement it.
3158 * src/pkgname.cpp (pkgArchiveName): Identify XML element type when
3159 diagnosing references to elements of types other than release; use...
3160 (value_unknown): ...this, as appropriate.
3162 2010-08-12 Keith Marshall <keithmarshall@users.sourceforge.net>
3164 Guard against a potential buffer overrun.
3166 * src/pkgreqs.cpp (pkgSpecs::SetProperty): Allocate an additional
3167 byte to accommodate an extra field separator, when inserting a new
3168 data value into a previously empty field.
3170 2010-07-27 Cesar Strauss <cestrauss@gmail.com>
3172 Handle the GNU long name tar header format.
3174 * src/pkgproc.h (TAR_ENTITY_TYPE_GNU_LONGNAME): New manifest constant;
3176 (pkgTarArchiveProcessor::EntityDataAsString): New protected method;
3178 * src/tarproc.cpp: ...implement it.
3179 (pkgTarArchiveProcessor::Process): Before building the entry pathname,
3180 check for a GNU long name type header; when found, read pathname from
3181 the entry data area, before fetching the following header, from which
3182 to retrieve the associated entity data.
3184 2010-06-24 Keith Marshall <keithmarshall@users.sourceforge.net>
3186 Work around an autoconf bug (reported by Stefano Sabatini).
3188 * Makefile.in (VPATH): Use @top_srcdir@ instead of ${srcdir}; current
3189 autoconf incorrectly elides references to @srcdir@ and ${srcdir} when
3190 substituting within a VPATH specification for building `in-source'.
3191 Also, prefer colons to blanks as path name separators, for improved
3192 portability to non-GNU implementations of make; (recommendation by
3195 2010-06-24 Keith Marshall <keithmarshall@users.sourceforge.net>
3197 Include alias search, when matching component package name.
3199 * src/keyword.c (has_keyword): Rearrange argument declarations for
3200 more natural order; update all callers accordingly. Simplify; compare
3201 keyword to be matched with each successive candidate from match-list,
3202 character-by-character and in-place, so avoiding memory allocation
3203 for any local duplicate of the passed match-list; thus...
3204 (safe_strdup): ...this static function no longer required; delete it.
3205 (string.h): No references remain; do not include it.
3207 * src/pkgfind.cpp (pkgXmlNode::FindPackageByName): Augment component
3208 package name matching to include potential matches of the look-up name
3209 with trailing component name stripped off, when that matches the class
3210 name of an identified component package, and the initial substring of
3211 the look-up name, after stripping, matches any specified alias name
3212 for the containing package.
3214 2010-06-10 Keith Marshall <keithmarshall@users.sourceforge.net>
3216 Address FIXME relating to identification of distributable files.
3218 * install-sh: Move to...
3219 * build-aux: ...this new directory.
3221 * Makefile.in (PACKAGE_DISTVERSION): Modify `sed' edit sequence; make
3222 it depend on, and ensure that it incorporates the expansion of...
3223 (PACKAGE_SUBSYSTEM): ...this new macro; defined as substitution of...
3224 (host_os): ...this autoconf variable, set by...
3226 * configure.ac (AC_CANONICAL_HOST): ...this; add it, requiring...
3227 (AC_CONFIG_AUX_DIR): ...`build-aux' directory reference, providing...
3229 * build-aux/config.guess, build-aux/config.sub: ...these new standard
3230 files; import them from the standard `build-aux' repository.
3232 2010-05-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3234 Bump version for next release cycle.
3236 * configure.ac (AC_INIT): Bump version suffix to alpha-3.
3238 2010-05-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3240 mingw-get-0.1-mingw32-alpha-2 released.
3242 * README: Add new release notes.
3244 * xml/profile.xml: Update to use default referencing for...
3245 (package-list.xml.lzma): ...this repository master catalogue.
3247 * All files (r0-1-alpha-2): Tag assigned.
3249 2010-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
3251 Make provision to protect user's profile settings during upgrade.
3253 * Makefile.in (install): Remove `profile.xml'; replace it with...
3254 (install-profile): ...this new prerequisite installation goal; it
3255 renames the installed copy of `profile.xml' as `defaults.xml', within
3256 the installed package image.
3258 * src/pkgkeys.h (defaults_key): New key; declare it.
3259 * src/pkgkeys.c: Some cosmetic formatting (tabulation) adjustments.
3260 (defaults_key): Implement it; it refers to the `defaults.xml' file.
3262 * src/climain.cpp (climain): Check `profile_key' for accessibility of
3263 the `profile.xml' file; if [! R_OK] emit a diagnostic warning, fall
3264 back on `defaults_key', and attempt to load configuration from the
3265 distributed `defaults.xml' file.
3267 2010-05-11 Keith Marshall <keithmarshall@users.sourceforge.net>
3269 Add preliminary support for future `-reinstall' option.
3271 * src/pkgexec.cpp (pkgActionItem::Execute) [ACTION_INSTALL]: Force
3272 installation if `-reinstall' option is selected, overriding state of
3273 any prior installation; temporarily assume that this option is always
3274 selected, to permit proper `upgrade' operation in the absence of any
3275 functional `uninstall' capability, and pending implementation of a
3276 mechanism for interpreting user specified options.
3278 2010-05-11 Keith Marshall <keithmarshall@users.sourceforge.net>
3280 Correct handling for "%R" macro in relative sysroot path specs.
3282 * src/tarproc.cpp (pkgTarArchiveProcessor): In constructor, expand the
3283 sysroot path specification a second time, to capture the effect of any
3284 embedded macros, before computing the recorded `sysroot_len' value.
3286 2010-05-05 Keith Marshall <keithmarshall@users.sourceforge.net>
3288 Handle "%" wildcard matches in package and subsystem version strings.
3290 * src/pkgbase.h (pkgSpecs): Forward declare it.
3291 (pkgActionItem::~pkgActionItem): Declare explicit destructor.
3292 (pkgActionItem::SetRequirements): Add extra `pkgSpecs*' argument;
3293 update references, passing additional argument in...
3295 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): ...this.
3297 * src/pkgexec.cpp (pkgActionItem::~pkgActionItem): Implement it.
3298 (pkgActionItem::SetRequirements): Delete obsolete implementation.
3300 * src/pkginfo/pkginfo.h: Update copyright notice; add year 2010.
3301 (pkgSpecs::GetTarName): New public method; declare it.
3302 (pkgSpecs::SetProperty): New private method; declare it.
3303 (pkgSpecs::SetPackageName): New inline method; implement it.
3304 (pkgSpecs::SetPackageVersion, pkgSpecs::SetPackageBuild): Likewise.
3305 (pkgSpecs::SetSubSystemName, pkgSpecs::SetSubSystemVersion): Likewise.
3306 (pkgSpecs::SetSubSystemBuild, pkgSpecs::SetReleaseStatus): Likewise.
3307 (pkgSpecs::SetReleaseIndex, pkgSpecs::SetComponentClass): Likewise.
3308 (pkgSpecs::SetComponentVersion, pkgSpecs::SetPackageFormat): Likewise.
3309 (pkgSpecs::SetCompressionType): Likewise.
3311 * src/pkginfo/pkginfo.l: Update copyright notice; add year 2010.
3312 (TRANS): Interpret "%" as wildcard in version string matches.
3314 * src/pkgreqs.cpp: New file.
3315 (pkgActionItem::SetRequirements): Reimplement per new declaration;
3316 it now always allocates heap memory for requirements specifications.
3317 (pkgSpecs::GetTarName, pkgSpecs::SetProperty): Implement them.
3319 * Makefile.in (CORE_DLL_OBJECTS): Add `pkgreqs.$(OBJEXT)'.
3321 2010-04-30 Keith Marshall <keithmarshall@users.sourceforge.net>
3323 Revert 2010-04-04 refactoring of tarproc.cpp and tarinst.cpp
3325 * src/tarinst.cpp: File removed; its content merged into...
3326 * src/tarproc.cpp: ...this; it cannot be cleanly separated out.
3328 * Makefile.in (tarinst.$OBJEXT): Remove reference.
3330 2010-04-29 Keith Marshall <keithmarshall@users.sourceforge.net>
3332 Handle "*" wildcard matches in package and subsystem version strings.
3334 * src/vercmp.h (pkgVersionInfo::version_string): New private member
3335 variable; it stores a pointer to a dynamically allocated local copy of
3336 the invariant `version' argument, to facilitate correct parsing.
3337 (pkgVersionInfo::build_string): Likewise; it provides similar handling
3338 for the invariant `build' argument.
3339 (pkgVersionInfo::Free): New private inline method; it provides a NULL
3340 pointer safe wrapper, calling the C library `free()' function, (since
3341 some implementations are believed to be unsafe); it is used by...
3342 (pkgVersionInfo::~pkgVersionInfo): ...this new inline destructor, to
3343 release the memory allocated by the constructor, for `version_string'
3346 * src/vercmp.cpp (pkgVersionInfo::pkgVersionInfo): Allocate memory for
3347 `version_string' and `build_string', as required; populate it.
3348 Explicitly handle "*" as a `match anything' wildcard...
3349 (pkgVersionInfo::Compare): ...matching it as `equal' to everything.
3351 2010-04-18 Keith Marshall <keithmarshall@users.sourceforge.net>
3353 Correct omission from configure script prerequisite checks.
3355 * aclocal.m4 (MINGW_AC_OUTPUT): New macro; it wraps AC_OUTPUT itself,
3356 adding a trap to force an abort if any preceding prerequisite check
3357 was handled by MINGW_AC_ASSERT_MISSING.
3359 * configure.ac: Qualify package component types, in prerequisite
3360 checks handled by MINGW_AC_ASSERT_MISSING; invoke MINGW_AC_OUTPUT
3361 in place of AC_OUTPUT.
3363 2010-04-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3365 Add configure script checks for prerequisite library headers.
3366 (Thanks to Cesar Strauss for proposing a rudimentary implementation).
3368 * aclocal.m4: New file; it does no more than include...
3369 * m4/missing.m4: ...this; new file incorporated from build-aux module.
3371 * configure.ac: Add AC_CHECK_HEADER assertions for...
3372 (zlib.h, bzlib.h, lzma.h): ...these; invoke MINGW_AC_ASSERT_MISSING in
3373 respect of each failing assertion.
3375 2010-04-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3377 Case-insensitive subsystem name matching revisited.
3379 * src/pkgfind.cpp (pkgXmlDocument::FindPackageByName): Use...
3380 (subsystem_strcmp): ...this to match subsystem names, instead of...
3381 (match_if_explicit): ...this.
3383 2010-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
3385 Enable recursive processing of repository package lists.
3387 * src/pkgbase.h (pkgXmlDocument::SyncRepository): Make it public.
3389 * src/pkgbind.cpp (pkgRepository): New locally defined and implemented
3390 class; it facilitates recursive loading and parsing of package lists,
3391 replacing much of the original non-recursive functionality within...
3392 (pkgXmlDocument::BindRepositories): ...this; use it.
3394 2010-04-04 Keith Marshall <keithmarshall@users.sourceforge.net>
3396 Implement installer function; use per-package file manifests.
3398 * src/pkgproc.h (pkgManifest): New class; declare it.
3399 (pkgArchiveProcessor::origin): New protected member variable.
3400 (pkgArchiveProcessor::sysroot_len): New protected member variable.
3401 (pkgArchiveProcessor::installed): Type changed to `pkgManifest *'.
3402 (pkgTarArchiveInstaller::Process): Declare specialisation hook.
3403 (pkgTarArchiveInstaller::UpdateInstallationManifest): Disused member
3404 function; remove redundant declaration from class definition.
3405 (pkgInstall): New generalised installation function; declare it.
3406 (pkgRegister): New function; declare it.
3408 * src/pkginst.cpp: New file.
3409 (pkgManifest, pkgInstall, pkgRegister): Implement them.
3411 * src/pkgexec.cpp (pkgActionItem::Execute): Use `pkgInstall' in place
3412 of stub formerly provided here.
3414 * src/pkgkeys.h (manifest_key, reference_key): New keys; declare them.
3415 * src/pkgkeys.c (manifest_key, reference_key): Implement them.
3417 * src/tarproc.cpp: Code refactored.
3418 (pkgTarArchiveProcessor::sysroot_len): Initialise it.
3419 (pkgTarArchiveProcessor::origin): Initialise it.
3420 (pkgTarArchiveProcessor::installed): Initialise; associate it with a
3421 pkgManifest class entity, and populate this as appropriate.
3422 (pkgTarArchiveProcessor::~pkgTarArchiveProcessor): Add explicit clean
3423 up of linked `pkgManifest *' entity referenced by `installed'.
3424 (pkgTarArchiveProcessor::Process) [TAR_ENTITY_TYPE_DIRECTORY]: Add
3425 braces to demarcate localised inner scope of string scan for removal
3426 of trailing directory name separators; (thanks to Cesar Strauss for
3427 reporting invalid local pointer declaration error in GCC >= 4.4).
3428 (pkgTarArchiveInstaller::UpdateInstallationManifest): Deleted.
3429 (pkgTarArchiveInstaller::pkgTarArchiveInstaller): Factor out.
3430 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
3431 (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
3432 (commit_saved_entity): Likewise.
3434 * src/tarinst.cpp: New file; it implements...
3435 (pkgTarArchiveInstaller::Process): ...this new specialisation
3436 of the original pkgTarArchiveProcessor::Process method...
3437 (pkgTarArchiveInstaller::pkgTarArchiveInstaller): ...and this
3438 refactored code, abstracted from src/tarproc.cpp and modified to
3439 use the pkgManifest class for installation tracking.
3440 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
3441 (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
3442 (commit_saved_entity): Relocated from src/tarproc.cpp.
3444 * Makefile.in (CORE_DLL_OBJECTS): Add...
3445 (pkginst.OBJEXT, tarinst.OBJEXT): ...these new object files.
3447 2010-03-31 Keith Marshall <keithmarshall@users.sourceforge.net>
3449 Guard against NULL pointer dereferences in tinyxml code.
3451 * src/pkgbase.h (pkgXmlNode::GetName): Verify `this' pointer is
3452 non-NULL, before invoking the underlying tinyxml method.
3453 (pkgXmlNode::GetParent, pkgXmlNode::GetChildren): Likewise.
3454 (pkgXmlNode::GetNext, pkgXmlNode::GetPropVal): Likewise.
3455 (pkgXmlNode::AddChild, pkgXmlNode::DeleteChild): Likewise.
3456 (pkgXmlNode::GetDocumentRoot): Likewise.
3457 (pkgXmlNode::IsElementOfType): Likewise.
3459 2010-03-28 Cesar Strauss <cestrauss@gmail.com>
3461 Avoid running InternetAttemptConnect in pkgInternetAgent
3462 constructor, since it is called during DLL initialisation.
3464 * src/pkginet.cpp (pkgInternetAgent::pkgInternetAgent): Move the
3465 InternetAttemptConnect call from constructor...
3466 (pkgInternetAgent::OpenURL): ...to here.
3468 2010-03-23 Keith Marshall <keithmarshall@users.sourceforge.net>
3470 Automate object code dependency tracking.
3472 * Makefile.in (DEPFLAGS): New macro; define it.
3473 (%.OBJEXT: %.c, %.OBJEXT: %.cpp): Add dependency generator commands...
3474 (%.d): ...to create these dependency maps; `sinclude' them, and...
3475 (clean): ...remove them.
3477 * .cvsignore (*.d): Add wild card template to match them.
3479 2010-03-22 Keith Marshall <keithmarshall@users.sourceforge.net>
3481 Support case insensitive matching for file and subsystem names.
3483 * src/pkgbase.h (safe_strcmp): New inline function; it provides NULL
3484 argument safe comparison of strings, returning the boolean inverse of
3485 the `strcmp' result, using either case-sensitive or case-insensitive
3486 semantics; derive it from...
3487 (match_if_explicit): ...this; redefine as macro; invoke `safe_strcmp'
3488 using explicitly case-sensitive semantics.
3489 (subsystem_strcmp): New macro; it invokes `safe_strcmp' with either
3490 case-sensitive or case-insensitive semantics, depending on...
3491 (CASE_INSENSITIVE_SUBSYSTEMS): ...this new context selection macro; it
3492 fixes the choice between case-sensitive and case-insensitive matching
3493 semantics for any given implementation, at compile time.
3494 (pkg_strcmp): New macro; it invokes `safe_strcmp' with either
3495 case-sensitive or case-insensitive semantics, depending on...
3496 (CASE_INSENSITIVE_FILESYSTEM): ...this new context selection macro; it
3497 fixes the choice between case-sensitive and case-insensitive matching
3498 semantics for any given implementation, at compile time.
3500 * src/sysroot.cpp (pkgXmlNode::GetSysRoot): Use `subsystem_strcmp'.
3502 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
3504 Add preliminary support for virtual packages.
3506 * src/pkgkeys.h (yes_value, no_value): Redefine as aliases...
3507 (value_yes, value_no): ...for these new global strings; declare them.
3508 (value_none, value_virtual): New global strings; declare them.
3510 * src/pkgkeys.c (yes_value, no_value): Rename...
3511 (value_yes, value_no): ...to implement these, respectively.
3512 (value_none, value_virtual): Implement them.
3514 * src/pkgname.cpp (pkgXmlNode::ArchiveName): Check containing package
3515 node for `class' attribute set to `value_virtual'; if present, always
3516 return the effective `tarname' property as `value_none'.
3518 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): For packages
3519 with an effective `tarname' of `value_none', do not download anything.
3521 * src/pkgexec.cpp (pkgActionItem::Execute): For packages with an
3522 effective `tarname' of `value_none', do not invoke any tar archive
3523 processing function.
3525 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
3527 Don't write installation records for unavailable packages.
3529 * src/tarproc.cpp (pkgTarArchiveInstaller): In constructor, ensure
3530 archive is ready for processing, before initialising an installation
3533 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
3535 Rationalise path identification for XML file locations.
3537 * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Use `xmlfile()'
3538 function to locate `sysroot' map file; free memory when done.
3539 (pkgXmlDocument::UpdateSystemMap): Likewise.
3540 (sigpath): Static global variable disused; delete it.
3542 2010-03-01 Keith Marshall <keithmarshall@users.sourceforge.net>
3544 Extend package name search to include component packages.
3546 * src/pkgfind.cpp (pkgHasMatchingName): Remove; fold it into...
3547 (pkgXmlNode::FindPackageByName): ...this; augment to extend search
3548 within package definition elements, seeking a potential match on an
3549 included component package name or component class-implied name.
3551 * src/pkgkeys.h (class_key): New global string constant; declare it.
3552 * src/pkgkeys.c (class_key): Implement it.
3554 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3556 Bump version for next release cycle.
3558 * configure.ac (AC_INIT): Bump version suffix to alpha-2.
3560 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3562 mingw-get-0.1-mingw32-alpha-1 released.
3564 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3566 Prepare initial package release.
3568 * README: New file; use it to source release notes.
3570 * Makefile.in (SRCDIST_FILES): Use ...
3571 (LICENCE_FILES): ...this new macro; define it.
3572 (licdist): New build goal; implement it.
3573 (bindist): Require it; add alternative `zip' format package.
3575 * xml/profile.xml (repository): Set default `package-index' name.
3576 (system-map): Normalise spelling for default `sysroot' path names.
3578 2010-02-10 Keith Marshall <keithmarshall@users.sourceforge.net>
3580 Add directory/file records in installation manifests.
3582 * src/pkgkeys.h (dirname_key, filename_key): New strings; declare...
3583 * src/pkgkeys.c (dirname_key, filename_key): ...and implement them.
3585 * src/pkgproc.h (pkgArchiveProcessor::installed): New class member
3586 variable; declare it.
3587 (pkgTarArchiveInstaller::UpdateInstallationManifest): New method;
3590 * src/tarproc.cpp: Miscellaneous comment updates.
3591 (pkgTarArchiveInstaller): In constructor...
3592 (pkgTarArchiveInstaller::installed): ...use new member variable...
3593 (pkgArchiveProcessor::installed): ...inherited from this.
3594 (pkgTarArchiveInstaller::UpdateInstallationManifest): Implement and...
3595 (pkgTarArchiveInstaller::ProcessDataStream): ...use it.
3596 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
3598 2010-02-06 Keith Marshall <keithmarshall@users.sourceforge.net>
3600 Work around a deficiency in Microsoft's stat() implementation.
3602 * src/tarproc.cpp (pkgTarArchiveProcessor::ProcessDirectory): Don't
3603 pass a `pathname' argument with trailing slashes; strip them off.
3605 2010-02-06 Keith Marshall <keithmarshall@users.sourceforge.net>
3607 Add machinery for installation and packaging for distribution.
3609 * install-sh: New file; source it from autoconf distribution.
3611 * configure.ac (AC_PREFIX_DEFAULT): Assign it as `C:/MinGW'.
3612 (AC_PROG_MKDIR_P, AC_PROG_INSTALL, AC_PROG_LN_S): Invoke these.
3613 (STRIP): New output variable; use AC_CHECK_TOOL to define it.
3615 * Makefile.in (abs_top_srcdir): Define to AC_SUBST value.
3616 (PACKAGE_TARNAME, PACKAGE_VERSION): Define to AC_SUBST values.
3617 (prefix, exec_prefix, bindir, libexecdir, localstatedir): Likewise.
3618 (INSTALL, INSTALL_PROGRAM, INSTALL_SCRIPT, INSTALL_DATA): Likewise.
3619 (STRIP): New macro; define it using AC_CHECK_TOOL substitution.
3620 (mkinstalldirs): New macro; define it as AC_PROG_MKDIR_P result.
3621 (LN_S): New macro; define it as AC_PROG_LN_S result.
3622 (dist, srcdist, bindist): New build objectives; implement them.
3623 (install, installdirs, install-strip, maintainer-clean): Likewise.
3624 (SRCDIST_FILES, SRCDIST_SUBDIRS): New macros; define them.
3625 (PACKAGE_DISTNAME, PACKAGE_DISTVERSION): Likewise.
3626 (PACKAGE_DISTROOT, PACKAGE_ROOTVERSION): Likewise.
3627 (PACKAGE_CONFIG_DIR): Likewise.
3629 2010-02-02 Keith Marshall <keithmarshall@users.sourceforge.net>
3631 Implement package installer for tar archives.
3633 * src/pkgexec.cpp (pkgXmlDocument::Execute): Replace existing
3634 stub implementation of installer, using methods provided by...
3635 * src/pkgproc.h, src/tarproc.cpp: ...these new files, with trap...
3636 * src/pkgdeps.cpp (pkgXmlDocument::Schedule) [installed]: Add entry...
3637 (pkgActionItem::Selection) [to_remove]: ...for this; use it to detect
3638 `install' requests for packages which are aleady installed.
3640 * Makefile.in (CORE_DLL_OBJECTS): Add tarproc.$(OBJEXT); specify
3641 dependencies as appropriate.
3643 * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Don't commit
3644 newly created `sysroot' mapping records to disk; defer to...
3645 (pkgXmlDocument::UpdateSystemMap): ...this new method.
3646 (sigpath): Make it a global variable, with file (static) scope.
3648 * src/climain.cpp (pkgXmlDocument::UpdateSystemMap): Invoke it.
3650 * src/pkgkeys.h (download_key, modified_key, source_key): New global
3651 string variables; declare them, providing their implementations...
3652 * src/pkgkeys.c (download_key, modified_key, source_key): ...here.
3653 * src/pkgname.cpp (download_key, source_key): Use them.
3655 * src/pkginet.cpp (pkgActionItem::ArchivePath): Delete; replace...
3656 * src/mkpath.c (pkgArchivePath): ...with this free standing function.
3657 * src/mkpath.h (pkgArchivePath): Declare its prototype.
3659 * src/pkgbase.h (pkgActionItem::ArchivePath): Delete declaration.
3660 (pkgXmlDocument): Add a default constructor; implement as `inline'.
3661 (pkgXmlDocument::AddDeclaration): Use heap memory to allocate the new
3662 declaration object, instead of `auto' variable, to avoid scope error.
3663 (pkgXmlDocument::UpdateSystemMap): Declare it.
3665 2010-01-26 Keith Marshall <keithmarshall@users.sourceforge.net>
3667 Implement rudimentary dependency resolver.
3669 * src/pkgdeps.cpp: New file.
3671 * Makefile.in (CORE_DLL_OBJECTS): Add pkgdeps.$(OBJEXT) reference;
3672 establish header file dependencies.
3674 * src/pkgbase.h (to_remove, to_install, selection_types): New enum.
3675 (pkgActionItem::selection): Extend it to store as enumerated pair...
3676 (pkgActionItem::SelectPackage): New inline method; assign them.
3677 (pkgActionItem::Selection): New inline method; retrieve them.
3678 (pkgXmlNode::GetInstallationRecord): New method; declare it.
3680 * src/pkgexec.cpp (pkgActionItem): In constructor...
3681 (selection): ...initialise both references in enumerated pair.
3682 (pkgActionItem::GetReference): Use `Selection()' method.
3683 (pkgActionItem::SelectIfMostRecent): Ditto; also correct logic for
3684 making selection, and assign to `to_install' element.
3685 (pkgXmlDocument::Schedule): Don't update `request'.
3686 (pkgActionItem::Execute): Implement as stub.
3688 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): Use new
3689 `Selection()' method.
3691 * src/pkgkeys.h (yes_value, no_value): Declare new string constants.
3692 * src/pkgkeys.c (yes_value, no_value): Implement them.
3694 * src/vercmp.cpp: Update copyright notice.
3695 (pkgVersionInfo::operator<=): Bug fix; must test for `<', but had `>'.
3697 2010-01-23 Keith Marshall <keithmarshall@users.sourceforge.net>
3699 Avoid segmentation faults when processing invalid data streams.
3701 * src/pkgstrm.h: Update copyright notice.
3702 (pkgArchiveStream::IsReady): New pure virtual method.
3703 (pkgRawArchiveStream::IsReady): Provide inline implementation.
3704 (pkgGzipArchiveStream::IsReady): Likewise.
3705 (pkgBzipArchiveStream::IsReady): Likewise.
3706 (pkgLzmaArchiveStream::IsReady): Likewise.
3707 (pkgXzArchiveStream::IsReady): Likewise.
3709 * src/pkgstrm.cpp: Update copyright notice.
3710 (pkgLzmaArchiveStream, pkgXzArchiveStream) [fd == -1]: Decline to
3711 perform any form of read or decode processing.
3713 * src/pkginet.cpp (pkgInternetLzmaStreamingAgent): Use `fd = -2' as
3714 pseudo-descriptor for the pkgLzmaArchiveStream derived component of
3715 this internet data streaming class.
3717 2010-01-23 Keith Marshall <keithmarshall@users.sourceforge.net>
3719 Require liblzma >= liblzma-4.999.9beta_20091209-3-mingw32-dev
3721 * src/pkgstrm.h (LZMA_API_STATIC): Remove definition and associated
3722 comment; it was required to permit, (but not to enforce), linking to
3723 the static liblzma.a library, with earlier beta releases, but this
3724 anomaly has now been corrected.
3726 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
3728 Remove zlib sources from trunk.
3729 (Application builders should use free standing implementation of
3730 zlib, from MinGW's package distribution page on SourceForge).
3732 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
3734 Remove bzip2 sources from trunk.
3735 (Application builders should use free standing implementation of
3736 bzip2, from MinGW's package distribution page on SourceForge).
3738 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
3740 Add subsystem specific sysroot mapping facility.
3742 * src/pkghash.c: New file; required by...
3743 * src/sysroot.cpp: New file; it implements...
3744 (pkgXmlDocument::LoadSystemMap, pkgXmlNode::GetSysRoot): New methods.
3746 * src/pkgbase.h: Update copyright notice.
3747 (pkgXmlDocument::LoadSystemMap): Declare it.
3748 (pkgXmlDocument::AddDeclaration): New inline method.
3749 (pkgXmlDocument::SetRoot, pkgXmlDocument::Save): Likewise.
3750 (pkgXmlNode::GetSysRoot): Declare it.
3751 (pkgXmlNode::GetDocumentRoot): New inline method.
3752 (pkgXmlNode::AddChild, pkgXmlNode::DeleteChild): Likewise.
3754 * src/climain.cpp: Update copyright notice.
3755 (climain): Invoke pkgXmlDocument::LoadSystemMap() as required.
3757 * Makefile.in (CORE_DLL_OBJECTS): Add ...
3758 (pkghash.$(OBJEXT), sysroot.$(OBJEXT)): ...these; upate dependencies.
3759 (DEBUGLEVEL): New macro; define it.
3762 2010-01-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3764 Assign standardised keys for XML database lookup.
3766 * src/pkgkeys.h: New file; provide public key declarations.
3767 * src/pkgkeys.c: New file; implement them.
3769 * src/pkgbind.cpp: Use them; update copyright notice.
3770 * src/pkgexec.cpp, src/pkgfind.cpp, src/pkginet.cpp: Likewise.
3771 * src/pkgname.cpp, src/pkgspec.cpp: Likewise.
3773 * Makfile.in (CORE_DLL_OBJECTS): Add pkgkeys.$(OBJEXT); update all
3774 dependencies accordingly.
3776 2010-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
3778 Add CLI version reporting option.
3780 * configure.ac: Update copyright notice for new year.
3781 (COPYRIGHT_HOLDER): New AC_SUBST variable; define it.
3782 (YEARS_OF_ISSUE): New AC_SUBST variable; define it.
3783 (AC_CONFIG_FILES): Add `version.c'; source it from...
3785 * version.c.in: ...this new file.
3787 * Makefile.in: Update copyright notice for new year.
3788 (mingw-get$(EXEEXT)): Add dependency on `version.$(OBJEXT)'.
3789 (distclean): Add `version.c'.
3791 * configure: Regenerated.
3793 * src/clistub.c: Update copyright notice for new year.
3794 (options): New array of `struct option'; define and use it as the
3795 reference for `argv' parsing with `getopt_long_only()'.
3797 2009-12-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3799 Add CLI support for "update" action.
3801 * src/pkgtask.h (ACTION_UPDATE): Define it, derived from...
3802 (action_update): ...this new entry in anonymous enumeration.
3804 * src/pkgexec.cpp (action_name): Add "update" keyword identification.
3806 * src/pkgbase.h: Typo in comment; s/xwXmlDocument/wxXmlDocument/.
3807 (pkgXmlDocument::BindRepositories): Add `force_update' parameter...
3808 * src/pkgbind.cpp (pkgXmlDocument::BindRepositories): Use it to...
3809 (pkgXmlDocument::SyncRepository): ...invoke this method when passed as
3810 a `true' flag, in addition to (as previously) first time reference.
3812 * src/climain.cpp (climain): Interpret "update" keyword for...
3813 [ACTION_UPDATE]: ...passing state as `force_update' parameter to...
3814 (pkgXmlDocument::BindRepositories): ...this method, then...
3815 [!ACTION_UPDATE]: Follow with normal action processing.
3817 2009-12-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3819 Add status checking for Internet URL connections.
3821 * src/pkginet.cpp (pkgInternetAgent::QueryStatus): New method.
3822 (pkgInternetStreamingAgent::Get): Use it; set `dl_status' as return
3823 value, deferring failure diagnostics to callers, i.e. to...
3824 (pkgXmlDocument::SyncRepositories): ...this, and to...
3825 (pkgActionItem::DownloadArchiveFiles): ...this.
3827 2009-11-23 Keith Marshall <keithmarshall@users.sourceforge.net>
3829 Add package download and repository synchronisation machinery.
3831 * src/pkgstrm.h: New header file.
3833 * src/pkgbind.cpp, src/pkginet.cpp, src/pkgstrm.cpp,
3834 src/pkgfind.cpp, src/pkgname.cpp, src/keyword.c: New files.
3835 * Makefile.in (CORE_DLL_OBJECTS): Add build goals for them.
3837 * xml: New directory.
3839 * src/climain.cpp (climain): Establish repository bindings from...
3840 * xml/profile.xml: ...this new configuration file.
3842 2009-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3844 Add XML database bindings and preliminary action executive for CLI.
3846 * src/pkgbase.h, src/pkgtask.h,
3847 src/mkpath.h, src/vercmp.h: New header files.
3849 * src/climain.cpp, src/pkgexec.cpp, src/pkgspec.cpp,
3850 src/mkpath.c, src/vercmp.cpp, src/xmlfile.c: New files.
3852 * Makefile.in (CORE_DLL_OBJECTS): Define initial set of files...
3853 (mingw-get-0.dll): ...build them into this new DLL target; add it...
3854 (all): ...as prerequisite for this primary build goal.
3856 2009-11-12 Keith Marshall <keithmarshall@users.sourceforge.net>
3858 Avoid some potential GCC warnings.
3860 * src/clistub.c: Include process.h for `execv' prototype...
3861 (main): Cast `argv' to appropriately matched type when calling it.
3863 * src/pkginfo/driver.c: Include stdlib.h for `free' prototype.
3865 2009-11-11 Keith Marshall <keithmarshall@users.sourceforge.net>
3867 Create diagnostic message handler for CLI usage.
3869 * src/dmh.h: New header file; it defines the public interface.
3870 * src/dmh.cpp: New file; it implements the message handler.
3872 2009-11-05 Keith Marshall <keithmarshall@users.sourceforge.net>
3874 Correct some identified TinyXML issues.
3876 * tinyxml/tinyxml.h (IsWhiteSpace): Add FIXME annotation to flag
3877 probable redundancy of checks for '\n' and '\r'.
3878 * tinyxml/tinyxmlparser.cpp: Revert John E's 2008-08-09 change; remove
3879 all such redundancies in IsWhiteSpace() calls throughout.
3881 * tinyxml/tinyxml.cpp (TiXmlAttribute::SetDoubleValue): Correct format
3882 specification in sprintf()/snprintf() calls; "%lf" is invalid; replace
3885 2009-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
3887 Add CLI loader stub.
3889 * src/clistub.c: New file.
3890 * Makefile.in: Add build rule for it; build as...
3891 (mingw-get.exe): ...this; also add to...
3892 (clean): ...this goal.
3894 2009-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
3896 Set up build mechanism.
3898 * configure.ac, Makefile.in: New files.
3899 * .cvsignore (configure, autom4te.cache): Add to ignored files.
3901 2009-10-30 Keith Marshall <keithmarshall@users.sourceforge.net>
3903 Add GPL-v3 licensing terms.
3905 * COPYING: New file, sourced from gnu.org.
3907 2009-10-12 Keith Marshall <keithmarshall@users.sourceforge.net>
3909 Add pkginfo implementation.
3911 * src, src/pkginfo: New directories.
3912 * src/pkginfo/pkginfo.h, src/pkginfo/pkginfo.l: New files.
3913 * src/pkginfo/driver.c: New file.
3915 2009-10-12 Keith Marshall <keithmarshall@users.sourceforge.net>
3919 * All files (tdm-branch): Assign new branch tag.
3920 * All top-level files: Remove from trunk.
3921 * ChangeLog: New file.