1 2013-09-04 Keith Marshall <keithmarshall@users.sourceforge.net>
3 mingw-get-0.6.0-mingw32-beta-20130904-1 released.
5 * srcdist-doc/NEWS.in srcdist-doc/README.in: Release notes updated.
6 * srcdist-doc/INSTALL.in: Installation instructions updated.
7 * All files (r0-6-0-beta-20130904-1): Tag assigned.
9 2013-08-26 Keith Marshall <keithmarshall@users.sourceforge.net>
11 Implement retry throttling for failed internet connections.
13 * src/pkginet.h (INTERNET_RETRY_ATTEMPTS): New macro; define it.
14 (INTERNET_RETRY_INTERVAL, INTERNET_DELAY_FACTOR): Likewise.
16 * src/pkginet.cpp (INTERNET_RETRY_REQUESTER): New typedef.
17 (pkgInternetAgent::connection_delay, pkgInternetAgent::delay_factor):
18 (pkgInternetAgent::retries, pkgInternetAgent::retry_interval): New
19 private member variables; declare them.
20 (pkgInternetAgent::OpenURL): Use them; they must be initialised by...
21 (pkgInternetAgent::SetRetryOptions): ...this new method; implement it.
22 (pkgActionItem::DownloadSingleArchive): Invoke it.
23 (pkgXmlDocument::SyncRepository): Likewise.
25 2013-08-24 Keith Marshall <keithmarshall@users.sourceforge.net>
27 Reassign default URL for download of setup tool components.
29 * aclocal.m4 (PACKAGE_DIST_DOMAIN, PACKAGE_DIST_DIR): New precious
30 variables; declare them as such, and assign default values by using...
31 (MINGW_AC_PACKAGE_DIST_URL): ...this new macro; implement it.
33 * configure.ac (MINGW_AC_PACKAGE_DIST_URL): Use it.
34 * Makefile.in (TAG_SCRIPT): Capture assigned URL; substitute it...
35 (PACKAGE_DIST_URL): ...for this replacement text marker...
36 * src/setup.rc (ID_DOWNLOAD_HOST_URI): ...here.
38 2013-08-21 Keith Marshall <keithmarshall@users.sourceforge.net>
40 Simplify guimain.exe duplicate instance prevention.
42 * src/guimain.cpp (WinMain): Delegate requisite checking to...
43 (WTK::RaiseAppWindow): ...this external toolkit function.
45 2013-08-13 Keith Marshall <keithmarshall@users.sourceforge.net>
47 Install licence as standard setup component.
49 * src/guimain.h src/setup.rc (ID_PACKAGE_GUI_DISTNAME): Macro
50 no longer required; delete definition.
52 * src/setup.cpp (pkgSetup::DoFirstTimeInstallation):
53 <pkgSetupAction> [ID_PACKAGE_GUI_DISTNAME]: Delete reference.
54 <pkgSetupAction> [ID_PACKAGE_BASE_DISTNAME]: Update reference; repeat
55 to explicitly address each of "bin", "gui", and "lic" components.
57 * Makefile.in (TAG_SCRIPT) [PACKAGE_GUI_DISTNAME]: Delete reference.
58 (TAG_SCRIPT) [PACKAGE_BASE_DISTNAME]: Redefine as template.
60 2013-08-13 Keith Marshall <keithmarshall@users.sourceforge.net>
62 More dialogue box adjustments.
64 * src/guimain.rc: Generally clean up white-space distribution.
65 (All dialogue templates): Use WS_TABSTOP consistently.
67 2013-08-13 Keith Marshall <keithmarshall@users.sourceforge.net>
69 Circumvent Windows-7 "Program Compatibility Assistant" misbehaviour.
71 * src/manifest.rc (assembly) <compatibility>: Add <supportedOS>
72 declarations for each of Vista, Win7, and (tentatively) Win8.
74 2013-07-30 Keith Marshall <keithmarshall@users.sourceforge.net>
76 Minor modification to "about" dialogue dismissal button.
78 * src/guimain.rc (IDD_HELP_ABOUT) <DEFPUSHBUTTON>: Change label text
79 to "Dismiss"; add WS_TABSTOP style.
81 2013-07-30 Keith Marshall <keithmarshall@users.sourceforge.net>
83 Match "about" dialogue caption to main window.
85 * src/guimain.rc (IDM_HELP_ABOUT) <MENUITEM>: Match it to...
86 (IDD_HELP_ABOUT) <CAPTION>: ...this; make it representative of...
87 (ID_MAIN_WINDOW_CAPTION): ...this.
89 2013-07-30 Keith Marshall <keithmarshall@users.sourceforge.net>
91 Implement "icon legend" display as "help" menu item.
93 * src/guimain.rc (IDM_HELP_LEGEND): Make menu item active; define
94 template for the dialogue box which it is to call out.
96 * src/guiexec.cpp (AppWindowMaker::OnCommand) [IDM_HELP_LEGEND]: New
97 case handler; implement dialogue box call out, as a variation on...
98 [IDM_HELP_ABOUT]: ...this; modify it accordingly.
100 2013-07-30 Keith Marshall <keithmarshall@users.sourceforge.net>
102 Avoid discarding pending changes when catalogue is updated.
104 * src/guimain.h (IDD_CONFIRMATION): New manifest constant; define it.
105 (AppWindowMaker::ConfirmActionDialogue): New static method; declare it.
106 (AppWindowMaker::ConfirmActionRequest): New method; declare it.
108 * src/guimain.rc (IDD_CONFIRMATION): Implement new dialogue template.
110 * src/guiexec.cpp (pkgConfirmAction, pkgConfirmActionClient): New
111 static variables; they are used as pseudo-arguments, together with...
112 (DIALOGUE_DISPATCH, DIALOGUE_RESPONSE, DIALOGUE_CHKSTATE): ...these
113 new macros; define them; they facilitate the implementation of...
114 (AppWindowMaker::ConfirmActionDialogue): ...this; implement it.
115 (AppWindowMaker::ConfirmActionRequest): Implement it; use it...
116 (AppWindowMaker::OnCommand) [IDM_REPO_UPDATE]: ...here, and...
118 * src/pkgdata.cpp (AppWindowMaker::OnClose): ...here.
120 2013-07-26 Keith Marshall <keithmarshall@users.sourceforge.net>
122 Make a minor GUI layout adjustment.
124 * src/pkgview.cpp (VSASH_INIT_POS): Increment from 0.30 to 0.35; this
125 sets the initial height of the package list pane to be 35% of the main
126 window height, which, at the default initial window size, neatly fits
127 the entire "Basic Setup" package group, without scrolling, on my
128 1366x768 pixel Win7-VM display.
130 2013-07-25 Keith Marshall <keithmarshall@users.sourceforge.net>
132 Implement setup tool installer "plugin".
134 * src/setup.h (SETUP_HOOK_RUN_INSTALLER): Define request code.
136 * src/dllhook.cpp (run_basic_system_installer): Implement handler...
137 (setup_hook) [SETUP_HOOK_RUN_INSTALLER]: ...and invoke it.
138 (setup_hook) [default]: Collect diagnostics in common message digest.
139 (AppWindowMaker::SetupHookInvoked): Define and initialise it; in this
140 context, which does not conflict with prior definition in guimain.exe,
141 it must always remain true.
143 * src/setup.cpp (SetupTool) [constructor]: Invoke...
144 (SetupTool::DispatchSetupHookRequest): ...this, on user's request...
145 (SETUP_HOOK_RUN_INSTALLER): ...with this action code; this replaces...
146 (SetupTool::RunInstalledProgram): ...one reference instance for this
147 external program fork, leaving only one such reference remaining;
148 declare it to be "inline".
150 * Makefile.in (GUIMAIN_LIB_OBJECTS): New macro; define it. It
151 abstracts a subset of the object modules originally enumerated...
152 (GUIMAIN_OBJECTS): ...here, whence use it; also incorporate into...
153 (SETUP_DLL_OBJECTS): ...this.
154 (SETUP_DLL_LIBS): Make it equivalent to...
155 (GUIMAIN_LIBS): ...this.
156 (mingw-get-setup-0.dll): Use...
157 (GUI_LDFLAGS): ...this, to specify linking options, rather than...
160 2013-07-25 Keith Marshall <keithmarshall@users.sourceforge.net>
162 Add "Basic Setup" as a built-in standard package group.
164 * src/guimain.h (AppWindowMaker::SetupToolInvoked): New private
165 static member variable; declare it.
167 * src/guimain.cpp (AppWindowMaker::SetupToolInvoked): Define and
168 initialise it; this instance is specific to guimain.exe, where it
169 must always remain false.
171 * src/pkgtree.cpp (PKG_AFFILIATE_ALL): New constant; define it.
172 (load_package_group_hierarchy): Use it to specify those groups which
173 have all packages as affiliates, rather than just first root group.
174 (group_attributes): New static inline function; implement it, then...
175 (is_affiliated) [PKG_AFFILIATE_ALL]: ...use it to identify groups
176 which are specified as having all packages as affiliates.
177 (AppWindowMaker::InitPackageTreeView): Construct a temporary XML
178 specification for the "Basic Setup" package group, thence add it to
179 the package tree view; mark it as default group selection when...
180 [AppWindowMaker::SetupToolInvoked]: ...this is true.
182 2013-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
184 Implement GUI filtering of package list by group selection.
186 * src/pkgbase.h (pkgXmlNode::IsVisibleGroupMember):
187 (pkgXmlNode::IsVisibleClass): New inline methods; declare them.
188 (pkgXmlNode::MapPackageGroupHierarchy): New inline method; declare it.
189 (pkgXmlNode::SetPackageGroupHierarchyMapper): Likewise; it sets up...
190 (pkgXmlNode::PackageGroupHierarchyMapper): ...this new private static
191 function pointer; declare it as a function reference, in terms of...
192 (pkgXmlNode::GroupHierarchyMapper): ...this new typedef; define it.
194 * src/guimain.h (AppWindowMaker::PackageTreeView): Make it static.
195 (AppWindowMaker::IsPackageGroupAffiliate): Declare new static method.
197 * src/pkgbind.cpp (pkgRepository::GetPackageList): Make it invoke...
198 (pkgXmlNode::MapPackageGroupHierarchy): ...this; implement it.
200 * src/pkglist.cpp (pkgXmlNode::IsVisibleGroupMember): Implement it.
201 (pkgXmlNode::IsVisibleClass): Likewise; just provide a stub, for now.
202 (pkgListViewMaker::Dispatch): Use them to filter package list content.
203 (AppWindowMaker::UpdatePackageList): Redraw main window when done.
205 * src/pkgtree.cpp [_WIN32_IE >= 0x0400]: Require this.
206 (AppWindowMaker::PackageTreeView): Define and initialise it.
207 (AppWindowMaker::InitPackageTreeView): Extend implementation; use...
208 (map_package_group_hierarchy_recursive, load package_group_hierarchy):
209 (is_existing_group, map_package_group_hierarchy): ...these; implement
210 them locally, as file scoped static helper functions.
211 (select_key): New static local string constant; define it.
212 (pkgInitCategoryTreeGraft): Use it; also have it invoke...
213 (pkgXmlNode::SetPackageGroupHierarchyMapper): ...this; implement it.
214 (AppWindowMaker::IsPackageGroupAffiliate): Implement it; it uses...
215 (is_affiliated, is_child_affiliate): ...these helpers; provide them as
216 locally implemented, file scoped static functions.
218 * src/pkgdata.cpp (AppWindowMaker::OnNotify): Add handler for...
219 [ID_PACKAGE_TREEVIEW && TVN_SELCHANGED]: ...this notification.
221 2013-07-12 Keith Marshall <keithmarshall@users.sourceforge.net>
223 Correct a static string buffer aliasing issue.
225 * src/setup.cpp (SetupTool::setup_dll): New inline method; it ensures
226 that the buffer within approot_path() refers to the setup helper DLL.
227 (SetupTool::InitialiseSetupHookAPI): Use it, when loading the DLL.
228 (SetupTool::SetupTool): Use it again, when subsequently calling...
229 (_wunlink): ...this; it is now the preferred API, replacing...
230 (DeleteFileW): ...this; do not blindly assume that...
231 (SetupTool::dll_name): ...this remains unchanged between references;
232 it is an alias for the static buffer within approot_path().
234 2013-07-12 Keith Marshall <keithmarshall@users.sourceforge.net>
236 Add a custom profile for use by the setup tool.
238 * xml/setup.xml: New file.
240 2013-07-03 Keith Marshall <keithmarshall@users.sourceforge.net>
242 Improve handling of workspace clean-up requests.
244 * Makefile.in (mostlyclean): New rule; it replaces...
245 (clean): ...original intent delegated to 'mostlyclean'; retained and
246 augmented to remove all content specified by 'mostlyclean', plus...
247 (version.c, verinfo.h): ...these additional generated files.
248 (distclean): Modified; 'version.c' now removed by 'clean'.
250 2013-07-03 Keith Marshall <keithmarshall@users.sourceforge.net>
252 Correct an omission from the source code distribution.
254 * Makefile.in (BUILD_AUX_FILES): Add makeopts.m4; this was omitted
255 from the 2013-04-10 modification to fix MinGW-Bug #1601.
257 2013-07-03 Keith Marshall <keithmarshall@users.sourceforge.net>
259 Incorporate foundation for setup tool implementation.
261 * src/setup.cpp: New file; it implements the setup program.
262 * src/setup.rc: New file; it implements setup program resources.
264 * src/dllhook.cpp: New file; it implements a DLL bridging API to
265 facilitate invocation of mingw-get-0.dll functions from the setup
266 program, after both DLLs have been explicitly loaded at run time.
268 * src/setup.h: New file; it declares the interface between the
269 setup program and the preceding mingw-get bridging DLL.
271 * src/guimain.h: Add filter to exclude declarations specific to...
272 [IMPLEMENTATION_LEVEL == PACKAGE_BASE_COMPONENT]: ...this case, when
273 included by compilation units specific to the setup tool components.
274 (ID_MAIN_DIALOGUE_CAPTION, ID_DOWNLOAD_HOST_URI): New resource IDs.
275 (ID_PACKAGE_BASE_DISTNAME, ID_PACKAGE_DATA_DISTNAME): Likewise.
276 (ID_PACKAGE_GUI_DISTNAME): Likewise; define them.
278 * Makefile.in (all): Respecify it, in terms of...
279 (all-core, all-setup): ...these new rules; define them, and also...
280 (all-setup-exe, all-setup-dll): ...these, to force building of...
281 (mingw-get-setup.$EXEEXT, mingw-get-setup-0.dll): ...these binaries.
282 (setup.res.$OBJEXT): Specify prerequisites, as for guimain.res.$OBJEXT
283 (SETUP_TOOL_OBJECTS, SETUP_TOOL_LIBS): New macros; define them.
284 (SETUP_DLL_OBJECTS, SETUP_DLL_LIBS, SETUP_DISTNAME): Likewise.
285 (TAG_SCRIPT): Add resource script substitution definitions for...
286 (ID_PACKAGE_BASE_DISTNAME, ID_PACKAGE_DATA_DISTNAME): ...these...
287 (ID_PACKAGE_GUI_DISTNAME): ...and this.
289 2013-07-01 Keith Marshall <keithmarshall@users.sourceforge.net>
291 Add subprocess argument vector construction helpers.
293 * src/argwrap.c src/argwrap.h: New files; they implement an API for
294 construction of argument vectors, with appropriate quoting, to be
295 passed to MS-Windows exec'd subprocesses. Rewritten from scratch,
296 without reference to any prior GPL licensed implementation, with MIT
297 style licence, these provide the foundation for a possible future
298 libmingwex.a implementation; they are included here, since no such
299 implementation is currently available.
301 2013-06-28 Keith Marshall <keithmarshall@users.sourceforge.net>
303 Avoid inadvertent overwrite of existing files.
305 * src/mkpath.c (_O_NEWFILE): Conditionally specify attributes...
306 [IMPLEMENTATION_LEVEL == SETUP_TOOL_COMPONENT]: ...as they were...
307 [IMPLEMENTATION_LEVEL != SETUP_TOOL_COMPONENT]: ...else, include
308 _O_EXCL in the specified set; exclude _O_TRUNC.
310 * src/tarproc.cpp (dmh_notify_extraction_failed): New static inline
311 function; it encapsulates the diagnostic message factored out from...
312 (pkgArchiveProcessor::ExtractFile): ...here, whence use it.
313 (create_output_stream): Also used in this new static inline function;
314 it adds an appropriate diagnostic wrapper around set_output_stream(),
315 when _O_EXCL prevents overwrite of an existing file.
316 (pkgArchiveProcessor::SetOutputStream): Use it.
318 2013-06-27 Keith Marshall <keithmarshall@users.sourceforge.net>
320 Improve diagnostics for tar archive processing faults.
322 * src/pkgproc.h (TAR_ARCHIVE_FORMAT_ERROR): New constant; define it.
323 (TAR_ARCHIVE_DATA_READ_ERROR, TAR_ARCHIVE_DATA_WRITE_ERROR): Likewise.
325 * src/tarproc.cpp (dmh_notify_archive_data_exhausted): New static
326 inline function; implement it.
327 (pkgTarArchiveProcessor::GetArchiveEntry) [short header]: Use it.
328 (pkgArchiveProcessor::ExtractFile) [TAR_ARCHIVE_DATA_READ_ERROR]:
329 Likewise, use it here; also explicitlycheck for, and diagnose...
330 [TAR_ARCHIVE_DATA_WRITE_ERROR]: ...this; also add a further catch all
331 case, to diagnose any other unexpected condition.
332 (pkgTarArchiveProcessor::GetArchiveEntry) [bad checksum]: Diagnose it.
333 (pkgTarArchiveProcessor::Process): Return appropriate status codes.
334 (pkgTarArchiveProcessor::ProcessEntityData): Likewise.
336 2013-06-24 Keith Marshall <keithmarshall@users.sourceforge.net>
338 Facilitate version synchronisation for mingw-get-setup.
340 * VERSION.m4: New file.
341 * configure.ac: Include it, and...
342 (AC_INIT): ...use it.
344 2013-06-21 Keith Marshall <keithmarshall@users.sourceforge.net>
346 Keep version strings clean when release class is unspecified.
348 * Makefile.in (RC_SCRIPT, VERSION_SCRIPT): Simplify; assign specified
349 release class to local variable; delegate release tag generation to...
350 (TAG_SCRIPT): ...this; check release class variable is not an empty
351 string, before inserting it into the generated release tag.
353 2013-06-20 Keith Marshall <keithmarshall@users.sourceforge.net>
355 Rework defective assignment of product version resources.
357 * Makefile.in (BUILD_TAG): Avoid creating an empty build.tag file.
358 (PACKAGE_VERINFO_SCRIPT): Ensure that the build tag is generated as a
359 string of non-zero length. Do not assume that it comprises only two
360 elements; extract the final two, as the third and fourth elements
361 of the product version meta-data record.
363 2013-06-19 Keith Marshall <keithmarshall@users.sourceforge.net>
365 Rework defective package build time-stamping logic.
367 * Makefile.in (%.time): Make it explicitly touch its target; the
368 2013-05-15 changes, to reduce redundancy, didn't work as expected.
369 (%.tag): Add a side effect; make it also explicitly touch %.time.
370 (%.tagged.time): This is now redundant; remove it.
372 2013-06-14 Keith Marshall <keithmarshall@users.sourceforge.net>
374 Collect distributable package files in user specified directory.
376 * Makefile.in (distdir): New macro; define default as abs_builddir.
377 (srcdist, bindist, licdist): Use it; direct generated tarballs to it.
378 (%.txt.dist): New pattern rule; define, and use it to make a copy...
379 (readme.txt): ...of this, in distdir, when processing...
380 (dist): ...this build objective.
382 2013-06-14 Keith Marshall <keithmarshall@users.sourceforge.net>
384 Handle Microsoft's 32-bit vs. 64-bit time_t ambiguity.
386 * src/apihook.c: New file; it provides...
387 (have_api): ...this helper; it checks for availability of any specific
388 API function, within a specific system DLL, (MSVCRT.DLL by default).
390 * src/tarproc.cpp (have_utime64_api): New inline function; it wraps...
391 (have_api): ...this, to check whether MSVCRT.DLL provides...
392 (commit_saved_entity) [_utime64]: ...this; use if available, else...
393 (commit_saved_entity) [!_utime64]: ...fall back to using...
396 * Makefile.in (CORE_DLL_OBJECTS): Add apihook.$OBJEXT
398 2013-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
400 Facilitate package extraction and registration at setup time.
402 * src/pkgproc.h (IMPLEMENTATION_LEVEL): Add filters to facilitate
403 implementation of distinct setup time archive processing behaviour.
404 (pkgArchiveProcessor::save_on_extract): New property; declare it.
405 (pkgArchiveProcessor::SaveExtractedFiles): New method; implement it.
406 (pkgArchiveProcessor::SetOutputStream): New method; declare it.
408 * src/tarproc.cpp (IMPLEMENTATION_LEVEL): Add filters to implement
409 distinct setup time specific archive processing behaviour.
410 (pkgArchiveProcessor::SetOutputStream): Implement it.
411 (pkgTarArchiveExtractor::ProcessDataStream): Use it.
412 (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
414 2013-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
416 Implement some GUI progress metering dialogue enhancements.
418 * src/pkgbase.h (pkgProgressMeter): Don't pre-empt private features
419 of derived progress metering classes; hence, we no longer need this...
420 (AppWindowMaker): ...as a forward class declaration; delete it.
422 * src/guimain.rc (IDD_REPO_UPDATE): Resize, and adjust layout.
423 (IDD_PROGRESS_VAL, IDD_PROGRESS_MAX, IDD_PROGRESS_PCT): Add these
424 dialogue box progress counter display elements.
426 * src/pkgbind.cpp (pkgRepository::GetPackageList): Adjust style of
427 progress status messages, to suit reporting via GUI dialogue box or
428 CLI console, as appropriate.
430 * src/guiexec.cpp (ProgressMeterMaker): Redefine class, in terms of...
431 (PROGRESS_METER_CLASS): ...this new generic class name macro.
432 Reimplement private members, previously inherited from base class;
433 adjust class constructor to ensure that they are initialised.
434 Delete explicit destructor; a default destructor is now sufficient.
435 (ProgressMeterMaker::SetRange, ProgressMeterMaker::SetValue):
436 (ProgressMeterMaker::Annotate): Factor out; reimplement them...
438 * src/pmihook.cpp: ...in this new file, as generalised methods of...
439 (PROGRESS_METER_CLASS): ...the class named by this macro.
440 (PROGRESS_METER_CLASS::PutVal): New private method; implement it.
442 2013-05-31 Keith Marshall <keithmarshall@users.sourceforge.net>
444 Avoid a potential macro definition conflict.
446 * src/pkgbase.h (strcasecmp) [__MINGW32__]: Use string.h definition.
448 2013-05-15 Keith Marshall <keithmarshall@users.sourceforge.net>
450 Streamline build-time dependency tracking procedures.
452 * Makefile.in (DEPFLAGS): Adjust for simultaneous .o/.d generation.
453 (RC_DEPFLAGS): New macro; define dependency generation flags for the
454 resource compiler, which can't handle the new DEPFLAGS methodology.
455 (%.c, %.cpp, %.rc): Simplify $OBJEXT generation procedures.
456 (%.time): Remove redundantly replicated build-time procedure from...
457 (%.tagged.time): ...this; just make it a prerequisite.
459 2013-05-15 Keith Marshall <keithmarshall@users.sourceforge.net>
461 Add resources for specification of product version.
463 * src/verinfo.rc src/verinfo.h.in: New files; included by...
464 * src/guimain.rc: ...this, whence also specify version information...
465 (VERINFO_FILE_NAME, VERINFO_INTERNAL_NAME, VERINFO_FILE_DESCRIPTION):
466 (VERINFO_FILE_VERSION, VERINFO_FILE_VERSION_STRING): ...per these new
467 manifest constant macros; define them, with propagation to...
468 (ID_MAIN_WINDOW_CAPTION): ...this; keep it consistent.
470 * Makefile.in (TAG_SCRIPT): Include invocation for...
471 (PACKAGE_VERINFO_SCRIPT): ...this new macro; defined to interpret...
472 (PACKAGE_VERINFO_PRODUCT_VERSION): ...this new substitution template;
473 it is used in src/verinfo.h.in, whence verinfo.h is generated.
474 (RC_INCLUDES): Add current working directory, for...
475 (verinfo.h): ...this; add rule and dependencies to generate it.
477 2013-05-14 Keith Marshall <keithmarshall@users.sourceforge.net>
479 Make application manifest resource definition reusable.
481 * src/manifest.rc: New file; factor content from...
482 * src/guimain.rc: ...here, whence include it.
484 2013-05-08 Keith Marshall <keithmarshall@users.sourceforge.net>
486 Extend DMH services to delay-loaded DLL clients.
488 * src/dmhcore.h (dmh_bind): New function; declare it.
489 * src/dmhcore.cpp (dmh_bind): Implement it; it provides an API through
490 which the setup tool makes its existing DMH services available to post
491 install hooks in mingw-get-0.dll, which cannot be loaded until after
492 the providing package has been downloaded and unpacked.
494 2013-05-08 Keith Marshall <keithmarshall@users.sourceforge.net>
496 Avoid unnecessary command line globbing in GUI applications.
498 * src/guimain.cpp src/guistub.cpp (_CRT_glob): Declare as extern "C";
499 initialise to zero, so overriding the runtime start-up default.
501 * src/rites.c [! IMPLEMENT_INITIATION_RITES] (_CRT_glob): Initialise
502 to zero here too; lastrites.exe doesn't need globbing either.
504 2013-05-04 Keith Marshall <keithmarshall@users.sourceforge.net>
506 Address some GCC-4.7 string initialisation warnings.
508 * src/pkglist.cpp (AppWindowMaker::InitPackageListView): Declare all
509 headings[].text initialisers as 'const'; cast to 'char *' as required.
510 (pkgListViewMaker::Dispatch): Ditto, when inserting the 'const' empty
511 string into the list, as a component class value.
513 * src/pkgdata.cpp (AppWindowMaker::InitPackageTabControl): Declare all
514 TabLegend[] initialisers as 'const'; cast to 'char *' as required.
516 2013-05-02 Keith Marshall <keithmarshall@users.sourceforge.net>
518 Correct a spin wait thread synchronisation issue.
520 * src/pkgnget.cpp (pkgDownloadMeterGUI::SpinWait): Handle stop
521 requests explicitly; acknowledge when waiting thread has stopped.
522 (pkgDownloadMeterGUI::SpinWaitAction): Raise explicit stop requests;
523 wait for acknowledgement that waiting thread has stopped.
525 2013-04-23 Keith Marshall <keithmarshall@users.sourceforge.net>
527 Select compressed data streaming filters for use by setup tool.
529 * src/pkgstrm.cpp [IMPLEMENTATION_LEVEL != PACKAGE_BASE_COMPONENT]:
530 Exclude the implementations of all decompression filters, except...
531 (pkgXzArchiveStream): ...this, together with its requisite methods...
532 (pkgArchiveStream, pkgLzmaArchiveStream): ...from these.
534 2013-04-23 Keith Marshall <keithmarshall@users.sourceforge.net>
536 Adapt internet download agent for use by setup tool.
538 * src/pkgbase.h: More code rearrangement, exposing...
539 (safe_strcmp): ...this in any implementation context, controlled...
540 [USES_SAFE_STRCMP && ! HAVE_SAFE_STRCMP]: ...by this; when true...
541 (HAVE_SAFE_STRCMP): ...define this to 1, (must be non-zero).
542 [IMPLEMENTATION_LEVEL == PACKAGE_BASE_COMPONENT]: Ensure that...
543 (USES_SAFE_STRCMP): ...this is defined to 1, (i.e. non-zero).
544 (EXTERN_C): Relocate macro definition...
545 * src/pkgimpl.h: ...to here; add complementary implementation of...
546 (BEGIN_C_DECLS, END_C_DECLS): ...these new macros; define them.
548 * src/pkginet.h (pkgDownloadMeter::SpinWait): New static method;
549 declare it as inline, to be implemented elsewhere, delegating to...
550 (pkgDownloadMeter::SpinWaitAction): ...this new protected virtual
551 method; declare and implement it inline, as a "do nothing" base
552 class method, to be optionally overridden in a derived class.
554 * src/pkginet.cpp (pkgDownloadMeter::SpinWait): Implement it.
555 (pkgInternetAgent::OpenURL): Use it to invoke SpinWaitAction().
556 (USES_SAFE_STRCMP): Define as 1; (safe_strcmp() is required).
557 [IMPLEMENTATION_LEVEL != PACKAGE_BASE_COMPONENT]: Filter out code
558 which may not be required in more specialised contexts, then...
559 [IMPLEMENTATION_LEVEL == SETUP_TOOL_COMPONENT]: ...add specialised
560 variants specific to this.
562 * src/pkgnget.cpp [IMPLEMENTATION_LEVEL != PACKAGE_BASE_COMPONENT]:
563 Filter out code which may not be required in more specialised context.
564 (dmh_setpty): Provide locally declared prototype for external function.
565 (pkgDownloadMeterGUI): Add pseudo-terminal diagnostic message window.
566 (pkgDownloadMeterGUI::SpinWaitAction): Declare and implement GUI
567 specific method specialisation; it invokes a thread, running...
568 (pkgDownloadMeterGUI::SpinWait): ...this new static method overload.
570 2013-04-19 Keith Marshall <keithmarshall@users.sourceforge.net>
572 Implement pre-emptive update issue number identification.
574 * src/pkgkeys.h (serial_number): Declare function prototype.
575 * src/pkginet.cpp (serial_number): Implementation remains here;
576 promote from static to extern "C".
578 * src/pkgbind.cpp (value_assumed_new): New char constant; define it.
579 (pkgRepository::expected_issue): New private member var; declare and...
580 (pkgRepository::pkgRepository): ...initialise it, assuming new.
581 (pkgRepository::GetPackageList): Assign pre-emptively declared issue
582 number, (from package-list references), to 'expected_issue'; compare it
583 with 'current_issue' number recorded within locally stored catalogue.
584 [current_issue >= expected_issue]: Suppress redundant download; adjust
585 diagnostic messages as appropriate.
587 2013-04-10 Keith Marshall <keithmarshall@users.sourceforge.net>
589 Fix MinGW-Bug #1601 (on new issues tracker).
591 * aclocal.m4 (makeopts.m4): New build-aux module; include it.
592 (MINGW_AC_PROG_LEX): New macro; implement it.
594 * configure.ac (AC_INIT): Make version number tripartite.
595 (MINGW_AC_MAKE_NO_PRINT_DIRECTORY): Use this new makeopts.m4 macro.
596 (MINGW_AC_PROG_LEX): Use it, in place of...
597 (AC_PROG_LEX): ...this.
599 * Makefile.in (MAKE): New macro; assign using autoconf's SET_MAKE.
600 (QUIET_MAKE): New macro; derive it from $(MAKE) --no-print-directory.
601 (LEX_COMMAND, LEX_COMMAND_ABORT): New macros; define them.
602 (LEX_MISSING, LEX_MISSING_MESSAGE, LEX_OUTPUT): Likewise.
603 (FORMAT_MESSAGE, MESSAGE_FOLD_WIDTH): Likewise; implemented from...
604 (AWK_CLEAR_LINE_BUFFER, AWK_FLUSH_BUFFER, AWK_PRINT_AND_CLEAR_BUFFER):
605 (AWK_COLLECT_MESSAGE, AWK_COLLECT_BLANK_LINE, AWK_PRINT_LINE_BUFFER):
606 ...this collection of internal helper macros; define them.
607 (%.c: %.l): Replacement for built-in rule; it handles "missing lex" in
608 a manner consistent with expectations of autoconf's AC_PROG_LEX.
609 (execute-command): New phoney build goal; it is used with...
610 (WITH_REQUEST): ...this new macro, to invoke commands recursively.
612 2013-03-25 Keith Marshall <keithmarshall@users.sourceforge.net>
614 Adapt DMH for use in setup tool.
616 * src/dmh.cpp: File renamed to...
617 * src/dmhcore.cpp: ...this; some code rearranged, to facilitate...
618 [IMPLEMENTATION_LEVEL == PACKAGE_BASE_COMPONENT]: ...marking of code
619 sections which are required in the base package build, but which may
620 be filtered out of the build context for the setup tool.
622 * src/guidmh.cpp: File renamed to this...
623 * src/dmhguix.cpp: ...this; also add marking for...
624 [IMPLEMENTATION_LEVEL == PACKAGE_BASE_COMPONENT]: ...sections which
625 may be filtered out of the build context for the setup tool.
626 (dmhTypePTY::printf): Improve stratagem for output.
628 * Makefile.in (CORE_DLL_OBJECTS, GUIMAIN_OBJECTS): Adjust references
629 to renamed source files.
631 2013-03-22 Keith Marshall <keithmarshall@users.sourceforge.net>
633 Enable context hooks for build time code filtering.
635 * src/pkgimpl.h: New file; it defines...
636 (PACKAGE_BASE_COMPONENT, SETUP_TOOL_COMPONENT): ...these contexts;
637 either of these may be selected, by defining as manifest value for...
638 (IMPLEMENTATION_LEVEL): ...this; default is PACKAGE_BASE_COMPONENT.
640 * src/pkgbase.h: Include pkgimpl.h
641 [IMPLEMENTATION_LEVEL != PACKAGE_BASE_COMPONENT]: Occlude content.
643 2013-03-21 Keith Marshall <keithmarshall@users.sourceforge.net>
645 Specify additional files for clean-up.
647 * Makefile.in (distclean): Additionally specify...
648 (build.tag, build.time): ...these, as removable files.
650 2013-03-21 Keith Marshall <keithmarshall@users.sourceforge.net>
652 Add a missing distribution dependency.
654 * Makefile.in (srcdist): Explicitly require...
655 (pkginfo.c): ...this; previously, it was only an implicit build time
656 requirement, and may not have persisted until distribution time.
658 2013-03-21 Keith Marshall <keithmarshall@users.sourceforge.net>
660 Implement by-name association of resource scripts with programs.
662 * src/guidata.rc: Renamed as...
663 * src/guimain.rc: ...this, reflecting its association with...
664 * src/guimain.cpp: ...this program source.
666 * Makefile.in (GUIMAIN_OBJECTS): Update dependency...
667 (%.$OBJEXT:%.rc): ...replacing use of this pattern rule...
668 (%.res.$OBJEXT:%.rc): ...with this.
670 2013-01-18 Keith Marshall <keithmarshall@users.sourceforge.net>
672 Make GUI support visual styles in current Windows versions.
674 * src/guidata.rc: Add an appropriate inline manifest resource.
676 * src/guiexec.cpp (AppWindowMaker::Invoked): Ensure UpdateWindow() is
677 called after the initial call to AdjustLayout(); this is required to
678 ensure that all child windows are properly displayed from the outset.
680 * src/pkgview.cpp (AppWindowMaker::LayoutEngine):
681 [ID_PACKAGE_DATASHEET]: Adjust the top position of the frame, to make
682 the border coincide with the bottom border of the tab strip above.
684 2013-01-12 Keith Marshall <keithmarshall@users.sourceforge.net>
686 Merge gui-dev branch head to master; close gui-dev branch.
688 * configure.ac (AC_INIT): Reset version to 0.6; reset all package
689 files to state prevailing at gui-dev branch head.
691 2013-01-11 Keith Marshall <keithmarshall@users.sourceforge.net>
693 Create release branch for further r0.5 development.
695 * configure.ac (AC_INIT): Bump version number to 0.5.1; assign branch
696 label (mercurial bookmark) as "r0-5-1" for all files; (this is not to
697 be released, at this time).
699 2013-01-10 Keith Marshall <keithmarshall@users.sourceforge.net>
701 Implement data sheet compiler for list of installed files.
703 * src/pkgdata.cpp: #include pkgproc.h; it furnishes...
704 (pkgManifest): ...this class declaration, which is required by...
705 (DataSheetMaker::DisplayFilesManifest): ...this new private inline
706 method; declare and implement it; subsequently, invoke it...
707 (DataSheetMaker::OnPaint) [PKG_DATASHEET_INSTALLED_FILES]: ...here.
708 (pkgTroffLayoutEngine::WriteLn): Correct a defect in handling of
709 excess-length unbreakable "words" outside the viewport; previously
710 they were not dropped from the input queue, resulting in repeated
711 reprocessing in an infinite loop.
713 2013-01-09 Keith Marshall <keithmarshall@users.sourceforge.net>
715 Include release tags in GUI displayed package versions.
717 * src/pkglist.cpp (pkgVersionString) [ReleaseStatus != NULL]:
718 Append ReleaseStatus and ReleaseIndex to generated version string.
720 2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
722 Fix enumeration of pending install actions for scheduled upgrades.
724 * src/pkgdata.cpp (pkgActionItem::EnumeratePendingActions):
725 [action == ACTION_UPGRADE && classified == ACTION_INSTALL]: Enumerate
726 upgrade as a special case of the install classification.
728 2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
730 Implement "Mark All Upgrades" GUI capability.
732 * src/guimain.h (IDM_REPO_APPLY): Renumbered; make room for...
733 (IDM_REPO_MARK_UPGRADES): ...this new constant; define it.
735 * src/guidata.rc (IDM_REPO_MARK_UPGRADES): New option; add it...
736 (ID_MAIN_WINDOW_WINDOW) [Installation]: ...to this drop-down menu.
738 * src/pkgbase.h (pkgActionItem::SuppressRedundantUpgrades): New
739 public inline method; declare it.
741 * src/guiexec.cpp (AppWindowMaker::OnCommand):
742 [IDM_REPO_MARK_UPGRADES]: Add case handler for this menu selection.
743 (pkgActionItem::SuppressRedundantUpgrades): New method; implement it.
745 2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
747 Avoid unnecessary reloading of package list.
749 * src/guiexec.cpp (AppWindowMaker::OnCommand) [IDM_REPO_APPLY]:
750 Do not reload package list after processing; update it in place.
752 2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
754 Avoid potential heap corruption in action scheduler.
756 * src/guiexec.cpp (pkgActionItem::Clear): Factor out; relocate to...
757 * src/pkgexec.cpp (pkgActionItem::Clear): ...here; this keeps all use
758 of new and delete operators on the same side of the EXE/DLL boundary
759 as the constructor and destructor for pkgActionItem objects.
760 (pkgActionItem::Schedule): Ensure that all min_wanted and max_wanted
761 references are unique to each allocated pkgActionItem object, so that
762 the destructor may safely release their associated heap memory blocks.
764 2013-01-07 Keith Marshall <keithmarshall@users.sourceforge.net>
766 Update copyright notification for development in new year.
768 * configure.ac (YEARS_OF_ISSUE): Add year 2013.
770 * Makefile.in (version.c, guidata.$OBJEXT): Make them depend on...
771 (Makefile): ...this, so YEARS_OF_ISSUE propagates to built objects.
773 2012-12-24 Keith Marshall <keithmarshall@users.sourceforge.net>
775 Work around a GUI action scheduling instability.
777 * src/guimain.h (AppWindowMaker::UpdateDataSheet): Declare new method.
778 * src/pkgdata.cpp (AppWindowMaker::UpdateDataSheet): Implement it.
779 (AppWindowMaker::OnNotify): Use it.
781 * src/guiexec.cpp (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]:
782 Don't refresh package list view in-place; clear and reload it instead.
784 2012-12-21 Keith Marshall <keithmarshall@users.sourceforge.net>
786 Update distribution build rules.
788 * Makefile.in (SRCDIST_FILES): Remove version.c.in; this was moved
789 to src/version.c.in, and is now automatically included via...
790 (SRCDIST_SUBDIRS): ...this; remove build-aux and build-aux/m4; we want
791 only selected files from these, as filtered by specification in...
792 (BUILD_AUX_DIRS, BUILD_AUX_FILES): ...these new macros; define them.
793 (BLDTAG, SCMTAG, GCMTAG): New release class macros; define them.
794 (bindist, licdist, srcdist): Use them.
796 2012-12-21 Keith Marshall <keithmarshall@users.sourceforge.net>
798 Update CLI implementation hooks for GUI integration.
800 * Makefile.in (LIBEXEC_PROGRAMS): Replace gui$EXEEXT with
801 guistub$EXEEXT; update make goal references accordingly.
803 * src/rites.c (MINGW_GET_GUI): Redefine to be guimain$EXEEXT.
804 (MINGW_GET_GFB): Define new fall-back; let it be guistub$EXEEXT.
805 (RITES_IMPLEMENTATION): Perform rites for MINGW_GET_GUI.
807 * src/clistub.c (main) [cannot exec MINGW_GET_GUI]: Try
808 MINGW_GET_GFB instead.
810 2012-12-21 Keith Marshall <keithmarshall@users.sourceforge.net>
812 Rename executive core file for GUI implementation.
814 * src/guixmld.cpp: File renamed...
815 * src/guiexec.cpp: ...to this; its function exceeds original intent.
816 * Makefile.in (GUIMAIN_OBJECTS): Update reference accordingly.
818 2012-12-20 Keith Marshall <keithmarshall@users.sourceforge.net>
820 Create foundation for implementation of package category tree view.
822 * Makefile.in (GUIMAIN_OBJECTS): Add pkgtree.$OBJEXT reference to...
823 * src/pkgtree.cpp: ...incorporate this new file; it implements...
824 (AppWindowMaker::InitPackageTreeView): ...this new class method...
825 (pkgInitCategoryTreeGraft): ...and this new extern "C" function.
827 * src/guimain.h (pkgInitCategoryTreeGraft): Declare prototype.
828 (AppWindowMaker::InitPackageTreeView): New private method; declare it.
829 (AppWindowMaker::PackageTreeView): New member variable; declare it.
831 * src/guixmld.cpp (AppWindowMaker::LoadPackageData): Call
832 pkgInitCategoryTreeGraft(), after loading profile.xml
833 (AppWindowMaker::Invoked): Call InitPackageTreeView()
835 * src/pkgview.cpp (AppWindowMaker::LayoutEngine):
836 [ID_PACKAGE_TREEVIEW]: Handle it.
838 2012-12-19 Keith Marshall <keithmarshall@users.sourceforge.net>
840 Make the "Apply Changes" dialogue "failure-aware".
842 * src/pkgtask.h (ACTION_APPLY_FAILED): Redefine, in terms of...
843 (ACTION_INSTALL_FAILED, ACTION_REMOVE_FAILED): New manifest defines.
844 (ACTION_UNSUCCESSFUL): New manifest constant; define it.
846 * src/pkgdata.cpp (pkgActionItem::EnumeratePendingActions):
847 [ACTION_UNSUCCESSFUL]: Make it a special case for enumeration.
849 * src/guixmld.cpp (pkgApplyChanges): Enumerate...
850 [ACTION_UNSUCCESSFUL > 0]: ...all such cases; when true...
851 [IDD_AUTO_CLOSE_OPTION]: ...this; select alternative close-out
852 messages, as appropriate.
853 (pkgActionItem::Assert): Factor out; relocate to...
854 * src/pkgexec.cpp (pkgActionItem::Assert): ...here; this moves its
855 object code into the mingw-get DLL.
857 * src/pkgunst.cpp (pkgRemove) [ACTION_REMOVE_FAILED]:
858 * src/pkginst.cpp (pkgInstall) [ACTION_INSTALL_FAILED]:
859 Assert as appropriate.
861 2012-12-19 Keith Marshall <keithmarshall@users.sourceforge.net>
863 Improve progress reporting in "Apply Changes" dialogue.
865 * src/pkgstat.h: New header file; it declares...
866 (pkgSpinWait): ...this new pure abstract base class; it specifies an
867 infrastructure for posting arbitrary text to dialogue controls.
869 * src/pkgexec.cpp (pkgSpinWait): Implement its static elements.
870 (pkgActionItem::Execute): Dispatch progress reports, handled by...
871 (pkgSpinWait::Report, pkgSpinWait::Indicator): ...these.
873 * src/guixmld.cpp (pkgDialogueSpinWait): New class; declare it and
874 implement locally. It is derived from, and provides a listener for...
875 (pkgSpinWait): ...this abstract class.
876 (pkgApplyChanges): Use it.
878 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDataStream): Call...
879 (pkgSpinWait::Report): ...this, to report extracted files.
881 * src/pkgunst.cpp (pkg_unst): Call...
882 (pkgSpinWait::Report): ...this, to report deleted files.
884 * src/sysroot.cpp (pkgXmlDocument::UpdateSystemMap): Call...
885 (pkgSpinWait::Report, pkgSpinWait::Indicator): ...these, to confirm
886 continuing database update activity.
888 2012-12-18 Keith Marshall <keithmarshall@users.sourceforge.net>
890 Update tab display on right-click in package list view.
892 * src/pkgdata.cpp (AppWindowMaker::OnNotify) [NM_RCLICK]:
893 Call DataSheetMaker::DisplayData(), before invoking pop-up menu.
895 2012-12-17 Keith Marshall <keithmarshall@users.sourceforge.net>
897 Add more protection against NULL pointer abuse.
899 * src/pkgbase.h (pkgActionItem::Reset): Method renamed to...
900 * src/guixmld.cpp (pkgActionItem::Assert): ...this; also renamed here.
901 (AppWindowMaker::OnCommand): When calling...
902 (pkgListViewMaker::MarkScheduledActions): ...this, pass argument as...
903 (pkgXmlDocument::ClearScheduledActions): ...pointer returned by this.
905 * src/pkgdata.cpp (AppWindowMaker::MarkSchedule):
906 [pending_actions == NULL]: Do not propagate invocation request to...
907 (pkgListViewMaker::MarkScheduledActions): ...this.
909 * src/pkglist.cpp (pkgListViewMaker::MarkScheduledActions):
910 [schedule == NULL]: Do nothing.
912 2012-12-14 Keith Marshall <keithmarshall@users.sourceforge.net>
914 Implement some additional permanent debugging support.
916 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
917 [DEBUG_TRACE_DEPENDENCIES]: Enable DMH digest mode for messages.
919 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDataStream):
920 [DEBUG_TRACE_TRANSACTIONS]: Add logging of installed file path names.
922 2012-12-14 Keith Marshall <keithmarshall@users.sourceforge.net>
924 Insert a missing snprintf format effector.
926 * src/pkgnget.cpp (pkgDownloadMeterGUI::Update): Add omitted '%'
927 format specifier, in "%%", for formatting percentage-complete value.
928 Rename "size_buf" automatic variable as "buf"; this results in shorter
929 source lines, and consequently a tidier source code layout.
930 (pkgDownloadMeterGUI::ResetGUI): Likewise s/size_buf/buf/
932 2012-12-14 Keith Marshall <keithmarshall@users.sourceforge.net>
934 Add a missing header reference.
936 * src/approot.h: Include stdint.h; this ensures that wchar_t is
937 properly typedef'd, before attempting to use it.
939 2012-12-12 Keith Marshall <keithmarshall@users.sourceforge.net>
941 Make a clone of the package menu available as a pop-up.
943 * src/guimain.h (AppWindowMaker::SelectPackageAction): New private
946 * src/pkgdata.cpp (AppWindowMaker::SelectPackageAction): Implement it.
947 (AppWindowMaker::OnNotify) [ID_PACKAGE_LISTVIEW]: Use it.
949 2012-12-12 Keith Marshall <keithmarshall@users.sourceforge.net>
951 Improve conditionally enabled state manipulation for menu items.
953 * src/guidata.rc (IDM_REPO_APPLY): Set its initial state as GRAYED.
955 * src/pkgdata.cpp (AppWindowMaker::UpdatePackageMenuBindings):
956 [IDM_PACKAGE_REINSTALL]: Always leave it GRAYED; this is a temporary
957 provision, until the GUI is updated to support "reinstall" capability.
958 [IDM_REPO_APPLY && !(EnumeratePendingActions > 0)]: Make it GRAYED.
959 [IDM_REPO_APPLY && (EnumeratePendingActions > 0)]: Enable it.
961 2012-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
963 Implement GUI bindings for processing a schedule of actions.
965 * src/guimain.h (IDD_DMH_CONSOLE): New resource ID; define it.
966 (IDD_APPLY_EXECUTE): New dialogue template resource ID; define it.
967 (AppWindowMaker::ExecuteScheduledActions): New method; declare it.
969 * src/guidata.rc (IDD_APPLY_EXECUTE): Implement dialogue template.
971 * src/guixmld.cpp (pkgApplyChanges): New thread function; implement it.
972 (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]: Use it; it is invoked...
973 (IDD_APPLY_EXECUTE): ...via this dialogue box, subsequently calling...
974 (AppWindowMaker::ExecuteScheduledActions): ...this; implement it.
976 * src/pkgexec.cpp (pkgActionItem::Execute): Add argument; use it.
977 (pkgActionItem::~pkgActionItem): Unlink chained references.
979 * src/pkgbase.h (pkgActionItem::Execute): Adjust prototype.
981 2012-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
983 Do not preserve unnecessary download requests.
985 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles):
986 [(flags & ACTION_INSTALL) != ACTION_INSTALL]: Actions having no
987 "install" effect do not require a download; cancel any associated
990 2012-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
992 Implement GUI bindings for package download agent.
994 * src/guimain.h (IDD_PROGRESS_VAL, IDD_PROGRESS_MAX):
995 (IDD_PROGRESS_PCT): New manifest resource IDs; define them. They will
996 be used to identify dialogue controls, to be associated with...
997 (IDD_APPLY_DOWNLOAD): ...this new dialogue template ID; define it.
998 (AppWindowMaker::DownloadArchiveFiles): New inline method; declare it.
1000 * src/guidata.rc (IDD_APPLY_DOWNLOAD): Implement dialogue template.
1002 * src/pkgbase.h (pkgActionItem::DownloadArchiveFiles): New public
1003 inline method; declare it. It overloads an existing private method of
1004 the same name, which it subsequently invokes.
1006 * src/pkginet.h: New header file; it declares...
1007 (pkgInvokeDownload): ...this new extern "C" function prototype, and...
1008 (pkgDownloadMeter): ...this abstract class; it is factored from its
1009 original implementation in pkginet.cpp, augmented by addition of...
1010 (pkgDownloadMeter::primary): New static member variable; declare it.
1011 (pkgDownloadMeter::UseGUI): New public method; implement it inline.
1012 (pkgDownloadMeter::ResetGUI): New public method; declare it, providing
1013 a do-nothing inline default implementation. Any derived class, which
1014 supports GUI capability, should override this.
1016 * src/pkgnget.cpp: New file; it implements...
1017 (pkgDownloadMeterGUI): New class, derived from pkgDownloadMeter.
1018 (pkgActionItem::DownloadArchiveFiles): New overloaded inline method.
1019 (AppWindowMaker::DownloadArchiveFiles): New inline method.
1020 (pkgInvokeDownload): New dialogue box worker thread handler.
1022 * src/pkginet.cpp: Include pkginet.h; hence...
1023 (pkgDownloadMeter): ...remove redundant class declaration.
1024 (pkgDownloadMeter::primary): Define and initialise it.
1025 (pkgInternetStreamingAgent::Get) [pkgDownloadMeter::UseGUI]: Delegate
1026 progress metering to referenced pkgDownloadMeterGUI class instance.
1027 [! pkgDownloadMeter::UseGUI]: Continue to use the existing built-in
1028 pkgDownloadMeterTTY mechanism.
1029 (pkgActionItem::DownloadSingleArchive) [ACTION_DOWLOAD_FAILED]: Assert
1030 this initially; subsequently clear it on successful completion.
1031 (pkgActionItem::DownloadArchiveFiles): Collect diagnostic messages
1032 into a single DMH_BEGIN_DIGEST ... DMH_END_DIGEST group.
1034 * src/guixmld.cpp: Include pkginet.h; it is required by...
1035 (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]: Use pkgInvokeDownload.
1037 * Makefile.in (GUIMAIN_OBJECTS): Include pkgnget.$OBJEXT
1039 2012-12-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1041 Implement "Discard" handler for GUI "Apply Changes" dialogue.
1043 * src/pkgbase.h (pkgActionItem::Reset): New public method; declare it.
1044 (pkgActionItem::Clear): New public method; declare two overloaded
1045 variants, of which implement one inline.
1046 (pkgXmlDocument::ClearScheduledActions): New public method; declare
1047 and implement it inline.
1049 * src/pkgtask.h (ACTION_DOWNLOAD_FAILED, ACTION_APPLY_FAILED): New
1050 manifest bit-flag constants; define them. They provide a mechanism
1051 for blocking the discard event in respect of failed actions.
1053 * src/guixmld.cpp (pkgActionItem::Reset): Implement it.
1054 (pkgActionItem::Clear): Implement second, out-of-line variant.
1055 (ACTION_PRESERVE_FAILED): New local manifest bit-flag constant; define
1056 it as an aggregate of ACTION_DOWNLOAD_FAILED and ACTION_APPLY_FAILED.
1057 (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]: Use them.
1059 2012-12-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1061 Implement GUI dialogue for "Apply Changes" action approval.
1063 * src/guidata.rc (ID_MAIN_WINDOW_MENU): Rename...
1064 ("&Repository"): ...this drop-down menu entry...
1065 ("&Installation"): ...this; add...
1066 ("&Apply Changes"): ...this new selection.
1067 (IDD_APPLY_APPROVE): New dialogue box resource template; define it.
1068 (SS_CTEXTBOX): New aggregate style convenience macro; define it.
1069 (ES_VT100): Likewise.
1071 * src/guimain.h (IDM_REPO_APPLY): New resource ID; define it.
1072 (IDM_REPO_QUIT): Redefined resource ID; was 302; changed to 312.
1073 (IDD_APPLY_APPROVE, IDD_PROGRESS_TXT): New resource IDs; define them.
1074 (IDD_APPLY_REMOVES_PACKAGES, IDD_APPLY_REMOVES_SUMMARY): Likewise.
1075 (IDD_APPLY_INSTALLS_PACKAGES, IDD_APPLY_INSTALLS_SUMMARY): Likewise.
1076 (IDD_APPLY_UPGRADES_PACKAGES, IDD_APPLY_UPGRADES_SUMMARY): Likewise.
1077 (ID_APPLY, ID_DISCARD, ID_DEFER): New response IDs; define them.
1078 (AppWindowMaker::EnumerateActions): New inline method; declare it.
1079 (AppWindowMaker::DialogueResponse): New inline method; declare and
1082 * src/guixmld.cpp (pkglist.h): #included.
1083 (dmh_setpty): Add locally declared prototype.
1084 (AppWindowMaker::EnumerateActions): Implement it.
1085 (pkgActionCount): New static helper function; implement it.
1086 (ACTION_APPLY, APPLIES_TO): New macros; define them.
1087 (FMT_APPLY_REMOVES, FMT_APPLY_INSTALLS, FMT_APPLY_UPGRADES): New
1088 manifest string constants; define them.
1089 (pkgApplyApproved): New static call-back function; implement...
1090 (AppWindowMaker::OnCommand) [IDM_REPO_APPLY]: ...and use it.
1092 2012-12-06 Keith Marshall <keithmarshall@users.sourceforge.net>
1094 Implement enhanced action item enumeration capability.
1096 * src/pkgbase.h (pkgActionItem::EnumeratePendingActions): New public
1097 method; declare it. It provides the capability to enumerate scheduled
1098 actions, filtered by action classification; when invoked such that it
1099 selects all actions, it may be used as a replacement for...
1100 (pkgActionItem::Unapplied): ...this; delete declaration.
1102 * src/pkgdata.cpp (pkgActionItem::EnumeratePendingActions): Implement
1103 it; it is derived, with enhancement, from original implementation...
1104 (pkgActionItem::Unapplied): ...of this; delete it, and...
1105 (AppWindowMaker::OnClose): ...update calling reference accordingly.
1107 2012-12-05 Keith Marshall <keithmarshall@users.sourceforge.net>
1109 Implement PTY display emulation for GUI mode DMH.
1111 * src/dmhcore.h (dmhTypeGeneric::set_console_hook): New public virtual
1112 method; declare it, providing inline default do-nothing implementation.
1113 (dmhTypeGeneric::severity_tag): New protected static method; declare it.
1114 (dmhTypeGeneric::notification_format): New protected static property;
1117 * src/dmh.cpp (dmhTypeGeneric::severity_tag): Implement it.
1118 (dmhTypeGeneric::notification_format): Define and initialise it.
1119 (dmhTypeTTY::notify): Use them.
1120 (dmh_setpty): New function; declare prototype and implement it.
1122 * src/guidmh.cpp (dmhTypePTY): New locally implemented class.
1123 (dmhTypeGUI::set_console_hook): New virtual method; declare and
1124 implement it; it stores a dmhTypePTY reference pointer into...
1125 (dmhTypeGUI::console_hook): ...this new private member variable.
1126 (dmhTypeGUI::dmhTypeGUI): Initialise it.
1127 (dmhTypeGUI::notify) [console_hook != NULL]: Delegate to it.
1128 (dmhTypeGUI::printf) [console_hook != NULL]: Likewise.
1130 2012-12-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1132 Implement generalised API for dialogue boxes with worker threads.
1134 * src/guimain.h (pkgDialogueThread): New typedef; declare it.
1135 (AppWindowMaker::DialogueThread): New static property; declare it.
1136 (AppWindowMaker::DispatchDialogueThread): New method; declare it.
1138 * src/guixmld.cpp: Formatting of several comments adjusted.
1139 (pkgUpdate, pkgInitDataLoad): Defunct functions; replaced by...
1140 (pkgDialogue): ...this new static call-back function; implement it.
1141 (AppWindowMaker::DialogueThread): Instantiate and initialise it.
1142 (AppWindowMaker::DispatchDialogueThread): Implement it.
1143 (AppWindowMaker::Invoked): Use it to invoke pkgInvokeInitDataLoad()...
1144 (AppWindowMaker::OnCommand): ...and pkgInvokeUpdate().
1146 2012-12-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1148 Consolidate GUI implementation for package list view management.
1150 * src/pkglist.h (pkgListViewMaker::GetTitle): Disused overloaded
1151 method; remove all declarations.
1152 (pkgListViewMaker::GetVersionString): Disused method; remove
1154 (pkgListViewMaker::GetItem): New private inline method; declare it.
1155 (pkgListViewMaker::UpdateItem): New private method; declare it.
1156 (pkgListViewMaker::UpdateListView): New public method; declare it.
1157 (pkgListViewMaker::MarkScheduledActions): Likewise.
1159 * src/guimain.h (AppWindowMaker::MarkSchedule): New public inline
1160 method; declare it, but defer implementation to...
1162 * src/pkgdata.cpp (AppWindowMaker::MarkSchedule): ...here; not used
1163 elsewhere, it is derived from, and replaces...
1164 (pkgMarkSchedule): ...this function; factor out redundant code, in
1165 favour of delegation to pkgListViewMaker::MarkScheduledActions(), with
1166 following call to AppWindowMaker::UpdatePackageMenuBindings(); update
1167 calling function references...
1168 (AppWindowMaker::UnmarkSelectedPackage): ...here, and...
1169 (AppWindowMaker::Schedule): ...here.
1171 * src/pkglist.cpp (pkgVersionString): New static function; implement
1172 it as a local replacement for...
1173 (pkgListViewMaker::GetVersionString): ...this defunct class method.
1174 (pkgGetTitle): New overloaded static function; implement two variants,
1175 as local replacements for...
1176 (pkgListViewMaker::GetTitle): ...this defunct overloaded class method.
1177 (pkgListViewMaker::UpdateItem): Implement it; factor code from...
1178 (pkgListViewMaker::InsertItem): ...here, whence use it.
1179 (pkgListViewMaker::MarkScheduledActions): Implement it.
1180 (pkgListViewMaker::UpdateListView): Implement it.
1181 (pkgListViewMaker::pkgListViewMaker): Remove references to...
1182 (LVIF_TEXT): ...this.
1184 2012-11-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1186 Increase width of window sash bars by 50%.
1188 * src/guimain.h (SASH_BAR_THICKNESS): Increase from 4 to 6; this makes
1189 it easier to grab the sash bars, so they may be dragged; IMO, it also
1190 results in a better appearance.
1192 2012-11-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1194 Maintain consistent internal vs. external installation records.
1196 * src/pkginst.cpp (pkgInstall): Set "installed" attribute on internal
1197 package reference, to "yes", after installation; CLI didn't need this,
1198 but GUI will do so, for any package revisited in a single session.
1200 * src/pkgunst.cpp (pkgRemove): Similarly, negate "installed" attribute
1201 after package removal.
1203 2012-11-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1205 Refactor to consolidate three instances of duplicate code.
1207 * src/pkglist.h (pkgGetStatus): New function; declare it.
1208 * src/pkglist.cpp (pkgGetStatus): Implement it; factor out from...
1209 (pkgListViewMaker::InsertItem): ...here, whence use it.
1210 * src/pkgdata.cpp (pkgMarkSchedule): Likewise here...
1211 (DataSheetMaker::DisplayGeneralData): ...and here.
1213 2012-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1215 Add GUI support for install, upgrade, and remove action scheduling.
1217 * src/guimain.h (EXTERN_C): Ensure it is defined.
1218 (pkgActionItem): Add forward declaration of class name.
1219 (pkgMarkSchedule): New EXTERN_C function; declare and prototype it.
1220 (AppWindowMaker::OnClose): New virtual method; declare it.
1221 (AppWindowMaker::Schedule): New public method; declare it.
1222 (AppWindowMaker::UnmarkSelectedPackage): Likewise.
1224 * src/pkgbase.h (pkgActionItem::HasAttribute) [this == NULL]: Add
1225 protective logic; ignore attempts to access non-existent objects.
1226 (pkgActionItem::SelectPackage) [this == NULL]: Likewise.
1227 (pkgActionItem::Selection) [this == NULL]: Likewise.
1228 (pkgActionItem::GetReference): New overloaded public method; declare
1229 prototype variant with argument type of pkgXmlNode*.
1230 (pkgActionItem::Unapplied): New public method; declare it.
1231 (pkgActionItem::CancelScheduledAction): Likewise.
1232 (pkgXmlDocument::Schedule): Change return type from void to
1233 pkgActionItem*; add default argument values.
1235 * src/guixmld.cpp (AppWindowMaker::OnCommand): Add menu case hooks...
1236 [IDM_PACKAGE_INSTALL]: ...to schedule package 'install' action...
1237 [IDM_PACKAGE_UPGRADE]: ...package 'upgrade' action...
1238 [IDM_PACKAGE_REMOVE]: ...package 'remove' action, or...
1239 [IDM_PACKAGE_UNMARK]: ...to cancel any of these scheduling requests.
1240 [IDM_REPO_QUIT]: Correct typo; s/WM_QUIT/WM_CLOSE/ in comment.
1242 * src/pkgdata.cpp (pkgMarkSchedule): Implement it.
1243 (pkgActionItem::CancelScheduledAction): Implement it.
1244 (pkgActionItem::Unapplied): Implement it.
1245 (AppWindowMaker::UpdatePackageMenuBindings): Improve comments.
1246 (AppWindowMaker::UnmarkSelectedPackage): Implement it.
1247 (AppWindowMaker::Schedule): Implement it.
1248 (AppWindowMaker::OnClose): Implement it.
1250 * src/pkgdeps.cpp (pkgActionItem::GetReference): Implement overload.
1251 (pkgXmlDocument::Schedule): Change return type, and return value.
1252 [this == NULL]: Add protective logic; ignore non-existent objects.
1253 [name == NULL]: Do not schedule; just return existing action list.
1255 2012-11-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1257 Add dynamically enabled state control for package menu items.
1259 * src/guimain.h (AppWindowMaker::UpdatePackageMenuBindings): New
1260 private method; declare it.
1262 * src/pkgdata.cpp (AppWindowMaker::UpdatePackageMenuBindings):
1263 Implement it, and...
1264 (AppWindowMaker::OnNotify): ...use it.
1266 2012-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1268 Avoid excessive inter-word spaces in adjusted text.
1270 * src/pkgdata.cpp (pkgTroffLayoutEngine::WriteLn): Check extent of
1271 padding to be added at each inter-word space, when adjusting text; do
1272 not adjust, if it exceeds 5% of available display pane width.
1274 2012-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1276 Elide unbreakable text which will not fit within display width.
1278 * src/pkgdata.cpp (pkgTroffLayoutEngine::WriteLn): Add logic to detect
1279 over-width unbreakable text; elide characters from the right, to make
1280 it fit within the display width, with trailing ellipsis.
1282 2012-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1284 Add content compiler for package data sheet "general" tab.
1286 * src/pkgbase.h (pkgActionItem::PrintURI): Make it public. Add a
1287 call-back reference argument, for output function; assign puts() as
1288 default, where previously had hard coded printf() emulating puts()
1290 * src/pkginet.cpp (pkgActionItem::PrintURI): Use call-back hook.
1292 * src/pkgdata.cpp (DataSheetMaker::Display): New static property; it
1293 stores a reference to the active class instance, so static call-back
1294 methods may delegate processing requests to non-static methods.
1295 (DataSheetMaker::Advance): New static property; it is used to instruct
1296 call-back methods to interpose paragraph leading it the output stream.
1297 (DataSheetMaker::FormatRecord): New private method; implement it.
1298 (DataSheetMaker::FormatText): Don't pass "canvas" as an argument; we
1299 can access it directly as a class property. Update all callers as
1300 necessary, to conform to modified function prototype.
1301 (pkgListSelection): New static function; implement it, and...
1302 (DataSheetMaker::OnPaint): ...use it in switch cases, when calling...
1303 [PKG_DATASHEET_GENERAL]: DataSheetMaker::DisplayGeneralData(), and...
1304 [PKG_DATASHEET_DESCRIPTION]: DataSheetMaker::DisplayDescription().
1305 (DataSheetMaker::DisplayGeneralData): New public method; implement it.
1306 (DataSheetMaker::DisplayPackageURL): New static method; implement it.
1307 (DataSheetMaker::DisplayLicenceURL): Likewise.
1308 (DataSheetMaker::DisplaySourceURL): Likewise.
1310 2012-10-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1312 Fix error in counting of catalogue files during loading.
1314 * src/pkgbind.cpp (pkgRepository::GetPackageList): Increment count
1315 variable once only, at start of each cycle of the catalogue loading
1316 loop; previous strategy of counting in discrete logic paths could
1317 miss several required increments, particularly in CLI mode.
1319 2012-10-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1321 Avoid DMH message digest fragmentation when downloading.
1323 * src/dmh.h (DMH_GET_CONTROL_STATE): New macro; define it.
1324 * src/pkginet.cpp (pkgInternetAgent::OpenURL): Use it; do not close
1325 locally opened message digest, when called with one already open.
1327 2012-10-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1329 Initiate progress metering for catalogue load and update operations.
1331 * src/guidata.rc (IDD_REPO_UPDATE): New dialogue template; define it.
1332 (IDM_REPO_UPDATE): Enable selection from "Repository" drop-down menu.
1334 * src/guimain.h (IDD_REPO_UPDATE, IDD_CLOSE_OPTIONS):
1335 (IDD_AUTO_CLOSE_OPTION, IDD_PROGRESS_BAR, IDD_PROGRESS_MSG): New
1336 resource identification manifest constants; define them.
1337 (pkgXmlNode, pkgProgressMeter): Add forward class declarations.
1338 (AppWindowMaker::AttachedProgressMeter): New private data; define...
1339 (AppWindowMaker::AppWindowMaker): ...and initialise it.
1340 (AppWindowMaker::AttachProgressMeter): New public method; declare it.
1341 (AppWindowMaker::DetachProgressMeter): Likewise.
1342 (AppWindowMaker::LoadPackageData, AppWindowMaker::ClearPackageList):
1343 (AppWindowMaker::UpdatePackageList): Make them public.
1345 * src/pkgbase.h (pkgProgressMeter): New abstract class; declare it.
1346 (AppWindowMaker) [GUIMAIN_H undefined]: Add forward class declaration.
1347 (pkgXmlDocument::progress_meter): New private data member; declare...
1348 (pkgXmlDocument::pkgXmlDocument): ...and initialise it.
1349 (pkgXmlDocument::ProgressMeter, pkgXmlDocument::AttachProgressMeter):
1350 (pkgXmlDocument::DetachProgressMeter): New public inline methods;
1353 * src/pkgview.cpp (WTK::GenericDialogue): Delete disused reference.
1354 (AppWindowMaker::OnCommand): Factor out implementation; relocate it...
1355 * src/guixmld.cpp: ...to here; thus it may utilise dependants of...
1356 (ProgressMeterMaker): ...this new locally implemented class.
1357 (AppWindowMaker::AttachProgressMeter): Implement it.
1358 (AppWindowMaker::AttachProgressMeter): Likewise.
1359 (pkgProgressMeter::~pkgProgressMeter): Likewise.
1360 (pkgUpdate, pkgInvokeUpdate): New static functions; implement them.
1361 (AppWindowMaker::Invoked): Replace direct call to LoadPackageData by
1362 an indirect invocation, via a progress metering dialogue box using...
1363 (pkgInitDataLoad): ...this new static callback function, invoking...
1364 (pkgInvokeInitDataLoad): ...this new static thread function, whence...
1365 (AppWindowMaker::LoadPackageData): ...this; add hook-up call to...
1366 (pkgXmlDocument::AttachProgressMeter): ...incorporate this.
1368 * src/pkgbind.cpp (pkgRepository::total, pkgRepository::count): New
1369 private static properties; declare and instantiate them; provide...
1370 (pkgRepository::Reset, pkgRepository::IncrementTotal): ...new public
1371 static methods to manipulate them; declare and implement them inline.
1372 (pkgRepository::GetPackageList): Use them to manage updates to the
1373 pkgProgressMeter class instance, if any, which has been bound to
1374 the controlling pkgXmlDocument class instance, when invoking...
1375 (pkgXmlXmlDocument::BindRepositories): ...this.
1377 2012-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1379 Associate DMH message boxes with active dialogues.
1381 * src/guidmh.cpp (last_active_popup): New static inline function.
1382 (dmhTypeGUI::dispatch_message): Use it.
1384 2012-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1386 Fix Diagnostic Message Handler initialisation logic.
1388 * src/dmh.cpp (dmh_init) [DMH_SUBSYSTEM_GUI]: Correct a logic error;
1389 it previously fell through after any successful initialisation of the
1390 DMH_SUBSYSTEM_GUI handler, replacing it with a DMH_SUBSYSTEM_TTY type
1391 handler. Also, assign a heap copy of the passed "progname" string
1392 resource, which is volatile, to ensure that the handler retains a
1395 2012-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1397 Implement preliminary GUI mode data sheet compiler.
1399 * src/guimain.h (DataSheetMaker): New class; forward declare it.
1400 (AppWindowMaker::InitPackageTabControl): New private method; declare it.
1401 (AppWindowMaker::DataSheet, AppWindowMaker::PackageTabControl):
1402 (AppWindowMaker::TabDataPane, AppWindowMaker::PackageTabPane): New
1403 private data members; declare them.
1404 (ID_SASH_WINDOW_PANE_CLASS): New string resource identifier; define it.
1405 (ID_PACKAGE_DATASHEET, ID_PACKAGE_TABPANE): New window identifiers;
1408 * src/guidata.rc (ID_SASH_WINDOW_PANE_CLASS): Specify string resource.
1410 * src/pkgview.cpp (AppWindowMaker::OnSize): Add handler for...
1411 (ID_PACKAGE_TABPANE, ID_PACKAGE_TABCONTROL, ID_PACKAGE_DATASHHET):
1412 ...this group of sash pane child window entities.
1413 (AppWindowMaker::OnNotify): Comment out disused stub implementation.
1415 * src/pkgshow.cpp (pkgUTF8Parser): Factor out class declaration...
1416 (UTF32_MAX, UTF32_OVERFLOW, UTF32_INVALID): ...these definitions...
1417 (utf32_t): ...and this typedef; relocate to, and #include...
1418 * src/pkgdata.h: ...this new header file.
1420 * src/pkgdata.cpp (DataSheetMaker): New class; declare and implement it.
1421 (AppWindowMaker::InitPackageTabControl): Implement it.
1422 (AppWindowMaker::OnNotify): Reimplement it.
1424 * Makefile.in (GUIMAIN_OBJECTS): Add pkgdata.OBJEXT
1426 * src/guixmld.cpp (AppWindowMaker::Invoked): Add call to invoke
1427 AppWindowMaker::InitPackageTabControl()
1429 2012-10-09 Keith Marshall <keithmarshall@users.sourceforge.net>
1431 Remove a grossly heuristic list view hack.
1433 * src/pkglist.cpp (pkgListViewMaker::GetTitle): Remove code for the
1434 heuristic deletion of any redundant package name prefixes from package
1435 title attributes; by now, all such prefixes should have been removed
1436 from the catalogue, explicitly, at source.
1438 2012-10-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1440 Implement GUI list view compiler for XML catalogue.
1442 * src/pkgview.cpp (AppWindowMaker::LayoutEngine): Add case handler...
1443 [pane_id == ID_PACKAGE_LISTVIEW]: ...for this window pane class.
1445 * src/guimain.h (ID_PKGLIST_TABLE_HEADINGS):
1446 (ID_PKGNAME_COLUMN_HEADING, ID_PKGTYPE_COLUMN_HEADING):
1447 (ID_INSTVER_COLUMN_HEADING, ID_REPOVER_COLUMN_HEADING):
1448 (ID_PKGDESC_COLUMN_HEADING): New resource identifiers; define them.
1449 (ID_PKGSTATE_AVAILABLE, ID_PKGSTATE_AVAILABLE_NEW):
1450 (ID_PKGSTATE_AVAILABLE_LOCKED, ID_PKGSTATE_AVAILABLE_INSTALL):
1451 (ID_PKGSTATE_INSTALLED_CURRENT, ID_PKGSTATE_INSTALLED_LOCKED):
1452 (ID_PKGSTATE_INSTALLED_OLD, ID_PKGSTATE_UPGRADE, ID_PKGSTATE_REMOVE):
1453 (ID_PKGSTATE_REINSTALL, ID_PKGSTATE_DOWNGRADE, ID_PKGSTATE_BROKEN):
1454 (ID_PKGSTATE_PURGE): New icon resource identifiers; define them.
1455 (AppWindowMaker::InitPackageListView): New private method; declare it.
1456 (AppWindowMaker::UpdatePackageList): New private method; declare it.
1457 (AppWindowMaker::ClearPackageList): New private method; declare and
1458 implement it inline.
1460 * src/guidata.rc (ID_PKGSTATE_AVAILABLE, ID_PKGSTATE_AVAILABLE_NEW):
1461 (ID_PKGSTATE_AVAILABLE_LOCKED, ID_PKGSTATE_AVAILABLE_INSTALL):
1462 (ID_PKGSTATE_INSTALLED_CURRENT, ID_PKGSTATE_INSTALLED_LOCKED):
1463 (ID_PKGSTATE_INSTALLED_OLD, ID_PKGSTATE_UPGRADE, ID_PKGSTATE_REMOVE):
1464 (ID_PKGSTATE_REINSTALL, ID_PKGSTATE_DOWNGRADE, ID_PKGSTATE_BROKEN):
1465 (ID_PKGSTATE_PURGE): New icon resources; implement them.
1467 * icons/state01.ico icons/state02.ico icons/state03.ico:
1468 * icons/state04.ico icons/state05.ico icons/state06.ico:
1469 * icons/state07.ico icons/state08.ico icons/state09.ico:
1470 * icons/state10.ico icons/state11.ico icons/state12.ico:
1471 * icons/state13.ico: New files. All are cloned from synaptic icons;
1472 see src/guimain.rc for symbolic/functional reference names.
1474 * src/pkglist.h [GUIMAIN_H defined] (pkgListViewMaker): New class;
1475 declare it for use in modules which #include guimain.h
1477 * src/pkglist.cpp: New file; it implements...
1478 (pkgListViewMaker): ...this new class, and its clients...
1479 (AppWindowMaker::InitPackageListView): New method.
1480 (AppWindowMaker::UpdatePackageList): Likewise.
1482 * Makefile.in (GUIMAIN_OBJECTS): Add pkglist.OBJEXT
1484 * src/guixmld.cpp (AppWindowMaker::Invoke): Call InitCommonControls(),
1485 as prerequisite to AppWindowMaker::InitPackageListView(); follow up by
1486 calling AppWindowMaker::AdjustLayout().
1488 2012-10-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1490 Add GUI initialiser hook for XML catalogue interface.
1492 * src/guimain.h (AppWindowMaker::Invoke): New public method; declare
1493 it; it overrides the generic WTK::MainWindowMaker::Invoke() method, so
1494 providing the initialiser hook which will invoke this...
1495 (AppWindowMaker::LoadPackageData): ...new private method; declare it.
1497 * src/guixmld.cpp: New file.
1498 (AppWindowMaker::Invoke): Implement it.
1499 (AppWindowMaker::LoadPackageData): Likewise.
1501 * Makefile.in (GUIMAIN_OBJECTS): Add guixmld.OBJEXT
1503 2012-09-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1505 Add initial working GUI mode DMH class implementation.
1507 * src/dmh.h (DMH_SEVERITY_MASK): New manifest constant; define it.
1508 (DMH_DIGEST_MASK, DMH_COMPILE_DIGEST, DMH_DISPATCH_DIGEST): Likewise.
1509 (DMH_BEGIN_DIGEST, DMH_END_DIGEST): Redefine in terms of above.
1511 * src/dmhcore.h: New header file; it declares...
1512 (dmhTypeGeneric): ...this abstract base class, factored from...
1514 * src/dmh.cpp (dmhTypeGeneric): ...here, whence remove it; it is
1515 still required, thus include dmhcore.h so that it remains visible.
1516 (dmh_exception): Remove errant namespace qualifier from constructor.
1517 (dmhTypeGUI): Delete class declaration and original constructor.
1518 (dmh_init): Delete reference to dmhTypeGUI; replace by call to...
1519 (dmh_init_gui): ...this new static function; it is a stub which
1520 invokes a DLL import of the same name, to instantiate a dmhTypeGUI.
1521 (dmhTypeGUI::control, dmhTypeGUI::notify, dmhTypeGUI::printf): Delete
1522 original method stubs.
1524 * src/guidmh.cpp: New file; it reimplements...
1525 (dmhTypeGUI): ...this class; declare it and implement its constructor.
1526 (dmh_init_gui): Provide its DLL exported implementation.
1527 (dmhTypeGUI::dispatch_message): New private method; add it to the
1528 class declaration and implement it; it is a helper method for...
1529 (dmhTypeGUI::control, dmhTypeGUI::notify): ...these; implement them.
1530 (dmhTypeGUI::printf): Provide a replacement stub.
1532 * Makefile.in (GUIMAIN_OBJECTS): Add guidmh.OBJEXT
1534 * src/guimain.h (AppWindowMaker::Create): New method; add it to the
1535 class declaration; it overrides the default Create() method inherited
1536 from WTK::MainWindowMaker
1538 * src/pkgview.cpp (AppWindowMaker::Create): Implement it; it handles
1539 window class registration and dmhTypeGUI initialisation, in addition
1540 to the inherited CreateWindow() behaviour.
1542 * src/guimain.cpp: Include dmh.h
1543 (WinMain): Add catch block for dmh_exception. Remove window class
1544 registration request; it is now delegated to AppWindowMaker::Create()
1546 2012-09-26 Keith Marshall <keithmarshall@users.sourceforge.net>
1548 Add .hgignore as tracked file.
1550 * .hgignore: New file.
1552 2012-09-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1554 Defer generation of version.c until "make" time.
1556 * version.c.in: Move it...
1557 * src/version.c.in: ...to here.
1558 (PACKAGE_NAME, PACKAGE_VERSION, COPYRIGHT_HOLDER, YEARS_OF_ISSUE):
1559 Change substitution field marker character from "@" to "%".
1561 * configure.ac (AC_CONFIG_FILES): Remove version.c
1563 * Makefile.in (TAG_SCRIPT): New macro, factored out from...
1564 (RC_SCRIPT): ...here, whence use it; also use it to implement...
1565 (VERSION_SCRIPT): ...this further new macro; use it in...
1566 (%.c): ...this generic template rule for version.c
1567 (time-stamp, %.time, %.tagged.time, %.tag): New generic build
1568 goals; use them to track package release progression via...
1569 (build.tag): ...this new intermediate; make it a pre-requisite...
1570 (guidata.OBJEXT, version.c): ...of these.
1572 2012-09-21 Keith Marshall <keithmarshall@users.sourceforge.net>
1574 Implement framework for GUI sash window layout controller.
1576 * configure.ac (AC_INIT): Bump version number to 0.6
1577 (CLI_RELEASE_CLASS): New AC_SUBST variable; default to "beta".
1578 (GUI_RELEASE_CLASS): New AC_SUBST variable; default to "alpha".
1579 (SNAPSHOT_CLASS): Recognise as user specified environent variable
1580 override for both CLI_RELEASE_CLASS and GUI_RELEASE_CLASS.
1581 (RC): New AC_CHECK_TOOL substitution variable name; it replaces...
1582 (WINDRES): ...this, as reference name for the resource compiler.
1583 (MINGW_AC_ASSERT_MISSING): Add AC_CHECK_HEADER traps for missing
1584 "lua-dev" and "wtklite-dev" support.
1586 * Makefile.in (CLI_RELEASE_CLASS, GUI_RELEASE_CLASS): Use them.
1587 (BUILD_TAG, RC_SCRIPT, RC_INCLUDES): New macros; define and use...
1588 (RC): ...with this, to implement new target rule for compiling...
1589 (%.rc): ...resource definition files to %.OBJEXT objects.
1590 (GUIMAIN_OBJECTS, GUIMAIN_LIBS): New macros; define and use...
1591 (guimain.EXEEXT): ...to implement build rule for this.
1592 (LIBEXEC_PROGRAMS): Add guimain.EXEEXT
1593 (lastrites.EXEEXT): Use GUI_LDFLAGS.
1595 * src/guimain.h src/guimain.cpp src/guidata.rc: New files.
1596 * src/pkgview.cpp: New file.
1598 2012-09-20 Keith Marshall <keithmarshall@users.sourceforge.net>
1600 Adjust incorrectly resolved 2012-09-14 merge from master.
1602 * src/Makefile.in: Restore lost reference to guistub.cpp
1604 2012-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1606 Implement GUI hooks in "rites of passage" internal API.
1608 * src/pkglock.h: New file; it adds the pkgLock() and pkgRelease()
1609 inline wrapper functions, through which the GUI application acquires
1610 and manages an exclusive access lock for the XML catalogue.
1612 * src/rites.c (lockfile_name): Explicitly cast memory allocated for
1613 the returned name to (char *), so this may be embedded in C++ code.
1614 (pkgInitRites): Factor out lock acquisition failure diagnostics...
1615 (pkgLockFail): ...to this inline helper function; conditionally...
1616 [ifdef GUIMAIN_H]: ...provide one implementation for GUI use...
1617 [ifndef GUIMAIN_H]: ...and an alternative for CLI use.
1619 2012-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1621 Be case agnostic when matching shortcut targets.
1623 * scripts/libexec/unlink.js [ref.TargetPath == chklink]: Apply
1624 toLowerCase() on both sides of the comparison.
1626 2012-09-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1628 Note relocation of m4 when packaging source distribution.
1630 * Makefile.in (SRCDIST_SUBDIRS): Refer to build-aux/m4, not m4.
1632 2012-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1634 Move guimain.cpp out of the way.
1636 * src/guimain.cpp: Rename file as...
1637 * src/guistub.cpp: ...this; we want to keep current features for now,
1638 but to use the guimain.cpp name for main GUI application development.
1639 * Makefile.in: Adjust references accordingly.
1641 2012-09-09 Keith Marshall <keithmarshall@users.sourceforge.net>
1643 Fix typo, and update licensing terms for embedded getopt.c
1645 * src/getopt.c: Incorporate MIT/X style licence; update copyright
1646 notice, to reflect chronology of publication; correct degenerate RCS
1647 keyword usage in EOF marker comment.
1649 2012-09-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1651 Correct omission from copyright notice.
1653 * src/pkgkeys.c: Add year 2012, to reflect 2012-09-02 update.
1655 2012-09-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1657 Redefine paragraph_key with project global scope.
1659 * src/pkgkeys.h (paragraph_key): Declare it.
1660 * src/pkgkeys.c (paragraph_key): Define it.
1662 * src/pkgshow.cpp (pkgDirectoryViewer::EmitDescription): Delete
1663 function local definition; use global definition instead.
1665 2012-09-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1667 Correct defect introduced by 2012-08-03 commit.
1669 * src/approot.c (AppPathNameW): Add omitted 'else', so that tail
1670 pointer isn't moved after the APPROOT prefix is truncated.
1672 2012-09-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1674 Remap Mercurial subrepository reference via local hg-git clone.
1676 * .hgsub (build-aux): Point to ../build-aux; this must be a locally
1677 hosted hg clone of the git origin repository, and it must pre-exist as
1678 a sibling of any created hg clone of the mingw-get repository.
1680 * .hgsubstate: New file, automatically generated by Mercurial.
1682 2012-08-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1684 Add Mercurial subrepository reference for build-aux.
1688 2012-08-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1690 More code refactoring, to facilitate GUI implementation.
1692 * src/clistub.c (AppPathNameW): Factor out; relocate to...
1693 * src/approot.c: ...this new file; it reproduces the original
1694 implementation, modified to also consider any "libexec" directory in
1695 the executable path as the first child of the APPROOT prefix. Note
1696 also, that no longer terminates APPROOT with a trailing backslash.
1698 * src/approot.h: New file; it trivially declares the prototype for...
1699 (AppPathNameW): ...this relocated extern "C" function.
1701 * src/clistub.c (main): Adapt usage of AppPathNameW(), to reinstate
1702 trailing backslash on assignment to APPROOT environment variable.
1704 * Makefile.in (CLI_EXE_OBJECTS): New macro; define it as the original
1705 set of prerequisites, with the addition of approot.OBJEXT, for...
1706 (mingw-get.EXEEXT): ...this; use it.
1708 * src/rites.c: Add comment regarding APPROOT usage.
1710 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
1712 Find missing.m4 in build-aux/m4 directory.
1714 * aclocal.m4: Change path m4/missing.m4 to build-aux/m4/missing.m4.
1716 2012-07-31 Earnie Boyd <earnie@users.sourceforge.net>
1718 Add build-aux as a submodule.
1719 Move .cvsignore to .gitignore.
1721 * .gitmodules: New file.
1722 * build-aux: New submodule directory.
1723 * .cvsignore: Remove.
1724 * .gitignore: New file.
1726 2012-07-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1728 Disable globbing of command line arguments.
1730 * src/clistub.c (_CRT_glob): Define and initialise to zero; we don't
1731 need globbing, and it may cause case transliteration of case-sensitive
1732 action keywords, when a file system entity with a case-insensitively
1733 matching name exists.
1735 2012-06-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1737 Refactor API to facilitate implementation of GUI ListView hooks.
1739 * src/pkgkeys.h (title_key, description_key): Declare them.
1740 * src/pkgkeys.c (title_key, description_key): Define them; relocate...
1741 * src/pkgshow.cpp (pkgDirectoryViewer::EmitDescription): ...from here.
1742 (pkgXmlDocument::CalalogueAllPackages): New public method; factor...
1743 (pkgXmlDocument::DisplayPackageInfo): ...from here, whence use it.
1744 (pkgDirectoryViewerEngine::EnumerateComponents): New private method;
1745 implement as a concrete method of this abstract base class; factor...
1746 (pkgDirectoryViewer::Dispatch): ...from original inline implementation
1747 within this method of the concrete derived class, whence use it.
1748 (pkgDirectoryViewerEngine, pkgDirectory): Factor class declarations...
1749 * src/pkglist.h: ...into this new header file; include it.
1751 * src/pkgbase.h (pkgDirectory): Add forward class declaration.
1752 (pkgXmlDocument::CatalogueAllPackages): Declare it.
1754 2012-05-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1756 Update help text to document package version selection capability.
1758 * src/clistub.c (help_text): Add description of command line syntax
1759 which may be used to specify an alternative to the default package
1760 version selection, for install and upgrade actions.
1762 2012-05-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1764 Support options set by preferences assigned within profile.xml
1766 * xml/profile.xml (preferences): New element; add defaults.
1768 * src/pkgopts.h (OPTION_ASSIGNED_FLAGS, OPTION_DESKTOP_ARGS):
1769 (OPTION_START_MENU_ARGS): New enumerated constants; define them.
1770 (OPTION_DESKTOP, OPTION_START_MENU): New manifest constants.
1771 (OPTION_ASSIGNED, mark_option_as_set): New macros; define them.
1772 (pkgOpts::GetValue, pkgOpts::GetString): Restrict look-up index to
1773 least significant 12-bits of full-range index value.
1774 (pkgOpts::IsSet): New inline method; implement it.
1776 * src/clistub.c (main): Reimplement --desktop and --start-menu
1777 options; each now becomes an OPTION_GENERIC optarg string store.
1778 (set_script_hook): Function no longer used; delete it; delegate to...
1779 * src/pkgbase.h (pkgXmlDocument::EstablishPreferences): ...this new
1780 method; declare it, providing its implementation in...
1781 * src/pkgopts.cpp: ...this new file; invoke it...
1782 * src/climain.cpp (climain): ...here.
1784 * Makefile.in (CORE_DLL_OBJECTS): Add pkgopts.$OBJEXT
1786 2012-04-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1788 Correct sequence of installation/removal progress reporting.
1790 * src/pkgunst.cpp (pkgRemove): Delay output of "removing package ..."
1791 message, until after pre-remove hooks have run; this ensures that any
1792 output from the pre-remove hook scripts appears in correct sequence.
1794 * src/pkginst.cpp (pkgInstall): Likewise, for "installing package ..."
1795 message, in relation to pre-install hooks.
1797 2012-04-26 Keith Marshall <keithmarshall@users.sourceforge.net>
1799 mingw-get-0.5-beta-20120426-1 released.
1801 * configure.ac (AC_INIT): Version number updated.
1802 * srcdist-doc/NEWS.in: Updated; bug-fix notifications added.
1803 * All files (r0-5-beta-20120426-1): Tag assigned.
1805 2012-04-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1807 Interim work-around for MinGW-Bug #3520864.
1809 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
1810 [DEBUG_TRACE_DEPENDENCIES]: Add request flags to messages reporting
1811 the scheduling of installation activities.
1813 * src/pkgexec.cpp (pkgXmlDocument::Schedule): Add temporary diagnostic
1814 hooks to confirm request flags; bracket them with #if 0 ... #endif.
1815 [ACTION_PRIMARY && pre-scheduled request]: Don't trash request flags
1816 when updating the pre-existing action item data.
1818 2012-04-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1820 Fix MinGW-Bug #3520488
1822 * src/pkgexec.cpp (action_code): Check for, and reject NULL pointer
1823 passed as action request string; also reject ambiguous abbreviations.
1825 * src/climain.cpp (climain): Discriminate between NULL pointer and
1826 other forms of invalid action keyword matching failures.
1828 2012-04-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1830 mingw-get-0.5-beta-20120416-1 released.
1832 * configure.ac (AC_INIT): Version number updated.
1833 (YEARS_OF_ISSUE): 2012 added.
1835 * srcdist-doc/NEWS.in: Updated; release notes added.
1836 * All files (r0-5-beta-20120416-1): Tag assigned.
1838 2012-04-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1840 Assign icon to temporary GUI executable file.
1842 * icons/pkgicon.ico: New file, shamelessly copied from synaptic.
1844 * configure.ac: Add identification for windres; propagate it to...
1845 * Makefile.in: ...here; use it to compile object from icon files...
1846 (srcdir/icons) [%.ico]: ...from this new vpath location.
1847 (gui.exe): Link to compiled icon's object file.
1848 (SRCDIST_SUBDIRS): Add icons directory.
1850 2012-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
1852 Ensure that package removal requests are correctly scheduled.
1854 * src/pkgdeps.cpp (pkgXmlDocument::Schedule) [ACTION_REMOVE]: Schedule
1855 as a distinct case, when the installed version is not the most recent
1856 available release; consideration of this distinct case was previously
1857 erroneously overlooked.
1859 2012-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
1861 Correct scheduling of new prerequisites when upgrading.
1863 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
1864 [ACTION_UPGRADE && ACTION_PRIMARY]: Don't exclude scheduling for this
1865 case of a prerequisite with no previously installed version; it may be
1866 a delegated primary requirement of a meta-package.
1868 2012-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
1870 Don't require subsystem within user specified version bounds.
1872 * src/pkgdeps.cpp (pkgActionItem::ApplyBounds): Automatically consider
1873 "*" wild-card matches for subsystem, if user doesn't specify it.
1875 2012-04-09 Charles Wilson <mingw@cwilson.fastmail.fm>
1877 Fix missing include.
1879 * src/pkgdeps.cpp (pkgopts.h): Include unconditionally; do not rely...
1880 (debug.h) [DEBUG_TRACE_DYNAMIC]: ...on this, for indirect inclusion.
1882 2012-04-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1884 Correct a srcdist package construction defect.
1886 * Makefile.in (srcdist) [for SRCDIST_SUBDIRS]: Use...
1887 (mkinstalldirs): ...this, to create package image directories.
1889 2012-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
1891 Add scripting hooks to support creation of MS-Windows shortcuts.
1893 * src/clistub.c (progname): New static variable with file scope; it
1894 replaces former automatic variable, of same name, in main() function.
1895 (set_script_hook): New static function; implement it, and call it...
1896 (main) [--desktop, --start-menu]: ...from here, to interpret these new
1897 command line options; they are propagated to scripts via...
1898 (MINGW_GET_DESKTOP_HOOK, MINGW_GET_START_MENU_HOOK): ...these new
1899 internally assigned environment variables.
1900 (help_text): Document --desktop and --start-menu.
1902 * scripts/libexec/setup.lua scripts/libexec/wsh.lua: New lua module
1903 files; they implement a lua scripting API; they delegate requests to
1904 the Windows Scripting Host, via either of this pair of...
1905 * scripts/libexec/shlink.js: ...new script to create shortcuts, or...
1906 * scripts/libexec/unlink.js: ...its complement, to remove them.
1907 * Makefile.in (SRCDIST_SUBDIRS): Integrate them; enumerate them in...
1908 (scripts_srcdir, LIBEXEC_SCRIPTS): ...these new macros; use to...
1909 (install): ...install them.
1911 2012-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
1913 Initialise $LUA_PATH to locate mingw-get specific scripts.
1915 * src/pkgexec.cpp (lua_path_init): New static inline function.
1916 (pkgXmlNode::DispatchScript): Call it on first time invocation, per...
1917 [lua_path_setup == false]: ...this static function local variable.
1919 2012-04-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1921 Support installation of releases other than latest available.
1923 * src/pkgbase.h (pkgActionItem::ApplyBounds): New method; declare it.
1925 * src/pkgdeps.cpp (pkgActionItem::ApplyBounds): Implement it.
1926 (pkgXmlDocument::Schedule): Use it to interpret user specified version
1927 bounds, and apply them to scheduled action items. Having used...
1928 (get_version_bounds): ...this new static inline function...
1929 ...to acquire any user specified version bounds, check that they can
1930 be honoured, before scheduling any action; delegate diagnostics to...
1931 (dmh_notify_no_match): ...this new local helper function, to report
1932 when they can't, and to indicate viable alternatives.
1934 2012-03-26 Keith Marshall <keithmarshall@users.sourceforge.net>
1936 Rework previously inadequate solution for MinGW-Bug #3424406
1938 * src/pkgtask.h: Update copyright notice for current year.
1939 (ACTION_MAY_SELECT): New manifest constant for use as flag; define it.
1940 * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit): Assign it.
1942 * src/pkgdeps.cpp (STATIC_INLINE): New macro; define it.
1943 (ACTION_RECURSIVE_REINSTALL, ACTION_RECURSIVE_UPGRADE):
1944 (ACTION_RECURSIVE_REPLACE): New action code constants; define them.
1945 (with_flags): Original macro deleted; replace it with...
1946 (with_request_flags): ...this new static inline function.
1947 (if_noref, if_match, if_alias, with_download, promote): New static
1948 inline functions; they replace original macros of the same names.
1949 (is_recursive_action): Function no longer used; delete it.
1950 (action_class): New static inline function; implement and use it...
1951 (pkgXmlDocument::ResolveDependencies): ...here, to identify scheduling
1952 requirements for packages which are already installed; depends on...
1953 (request_mode): ...this new automatic variable; it augments and...
1954 (recursive_mode): ...replaces this one; rename it accordingly.
1955 (viable): Automatic variable no longer used; delete it.
1956 [DEBUG_REQUEST & DEBUG_TRACE_DEPENDENCIES]: Emit notification for
1957 scheduled installation.
1958 (pkgXmlDocument::Schedule): Add an implied...
1959 (ACTION_REMOVE): ...when scheduling a reinstallation.
1961 2012-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1963 Address reinstallation issues per MinGW-Bugs #3416013 and #3424406
1965 * src/pkgexec.cpp (reinstall_action_scheduled): New inline function.
1966 (pkgActionItem::Execute): Use it to identify cases where...
1967 [--reinstall]: ...implicit package removal is required, and also to
1968 facilitate improved progress reporting in such cases.
1970 * src/pkgdeps.cpp (is_recursive_action): New inline function.
1971 (pkgXmlDocument::ResolveDependencies): Use it in tandem with...
1972 (recursive_mode): ...this new automatic variable, so as to handle...
1973 [meta-package dependency]: ...implicit recursion, to extend the scope
1974 of the current action to the first level of non-meta dependency.
1975 [install --reinstall]: ...reinstall original version of nominated
1976 package, ignoring any available upgrade; extend scope of operation...
1977 [install --reinstall --recursive]: ...to all prerequisite packages.
1978 [upgrade --reinstall]: ...upgrade nominated package if possible; if no
1979 upgrade available, reinstall current version; extend scope...
1980 [upgrade --reinstall --recursive]: ...to all prerequisites.
1981 (pkgXmlDocument::Schedule): Partially revert 2012-03-05 change;
1982 reimplement selectively; never promote...
1983 [install, install --reinstall]: ...these operations to become...
1984 [upgrade]: ...this, even if available; issue diagnostic instead.
1986 2012-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1988 Rationalise implementation and usage of --all-related option.
1990 * src/pkgopts.h: Update copyright notice; add year 2012.
1991 (OPTION_RECURSIVE, OPTION_ALL_RELATED): New constants; define them.
1992 (pkgOpts::SetFlags): New method; declare and implement it inline.
1994 * src/clistub.c: Update copyright notice; add year 2012.
1995 (options) [recursive, all-related]: Redefine in terms of...
1996 (OPTION_RECURSIVE, OPTION_ALL_RELATED): ...these.
1997 (help_text): Update appropriately.
1999 * src/climain.cpp: Update copyright notice; add year 2012.
2000 (climain) [all-related]: Associate its use exclusively with...
2001 (source, licence): ...these package processing operations; use...
2002 (pkgOptions::SetFlags): ...this, to propagate its effect.
2004 2012-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2006 Don't report failed downloads in respect of virtual packages.
2008 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): Clear...
2009 [ACTION_DOWNLOAD]: ...this status flag for any package identified as
2010 a meta-package; this corrects a further regression introduced with the
2011 2011-11-09 update, whereby pending download requests for such virtual
2012 packages were not cancelled, resulting in failure to install due to
2013 failed downloads, when no download is actually required.
2015 2012-03-05 Keith Marshall <keithmarshall@users.sourceforge.net>
2017 Don't suppress implied downloads for top-level actions.
2019 * src/pkgdeps.cpp: Update copyright notice for new year.
2020 (pkgXmlDocument::Schedule) [!OPTION_PRINT_URIS]: Ensure that...
2021 [ACTION_DOWNLOAD]: ...this is enabled, when scheduling an install or
2022 an upgrade action for a package specified as a command line argument;
2023 this corrects a regression introduced on 2011-11-09, which resulted in
2024 ACTION_DOWNLOAD being enabled only for second tier dependent actions.
2026 2012-02-20 Keith Marshall <keithmarshall@users.sourceforge.net>
2028 Copyright notice updates.
2030 * Makefile.in: Add 2012 as year of republication.
2031 * src/pkgbase.h src/sysroot.cpp src/pkgexec.cpp: Likewise.
2032 * src/rites.c src/pkginst.cpp src/pkgunst.cpp: Likewise.
2034 2012-02-20 Keith Marshall <keithmarshall@users.sourceforge.net>
2036 Fix ill-advised optimisation in $APPROOT environment lookup.
2038 * src/rites.c (approot_path): Don't save result of getenv() lookup
2039 across calls; the environment may have been moved in the interim,
2040 making the original result invalid on any subsequent call. Also,
2041 prefer MS-Windows style (with backslashes) for default.
2042 (pkgLastRites): Report full path name for lastrites.exe, on execl()
2043 failure, rather than only the path relative to $APPROOT.
2045 2012-02-20 Keith Marshall <keithmarshall@users.sourceforge.net>
2047 Propagate sysroot path settings to scripts via the environment.
2049 * src/pkgbase.h (PKG_PUTENV_FLAGS_MASK): New constant; it maps...
2050 (PKG_PUTENV_DIRSEP_MSW, PKG_PUTENV_DIRSEP_POSIX): ...these flags...
2051 (PKG_PUTENV_SCAN_VARNAME, PKG_PUTENV_NAME_TOUPPER): ...and these;
2052 they are used to specify optional behavioural choices for...
2053 (pkgPutEnv): ...this new function; declare it.
2055 * src/sysroot.cpp (pkgPutEnv): Implement it.
2056 (pkgXmlDocument::LoadSystemMap): Use it to add $SUBSYSTEM_SYSROOT path
2057 specifications to the environment, for each named subsystem associated
2058 with the active system map.
2060 * src/pkgexec.cpp (pkgActionItem::Execute): Invoke pkgPutEnv() prior
2061 to processing of each package install, upgrade, or remove action, so
2062 as to update environment variable $SYSROOT to represent the sysroot
2063 path for each package processed, during execution of script hooks.
2065 2012-02-17 Keith Marshall <keithmarshall@users.sourceforge.net>
2067 Implement hooks to support lua scripting interface.
2069 * Makefile.in (LIBS): Add -llua.
2071 * src/pkgbase.h (pkgXmlNode::InvokeScript): New method; declare it
2072 as private, and provide overloaded public inline API implementation.
2073 (pkgXmlNode::DispatchScript): New private method; declare it.
2075 * src/pkgexec.cpp (pkgXmlNode::InvokeScript): Implement it.
2076 (pkgXmlNode::DispatchScript): Likewise; it directs InvokeScript to...
2077 (pkgInvokeScript): ...this new static function; implement it.
2079 * src/pkginst.cpp (pkgInstall): Call InvokeScript as appropriate.
2080 * src/pkgunst.cpp (pkgRemove): Likewise.
2082 2011-11-24 Keith Marshall <keithmarshall@users.sourceforge.net>
2084 Avoid implicit cast warnings; reported by Robert Hartmann.
2086 * src/dmh.h (DMH_BEGIN_DIGEST): Explicitly cast to uint16_t.
2087 (DMH_END_DIGEST): Likewise.
2089 2011-11-09 Keith Marshall <keithmarshall@users.sourceforge.net>
2091 Avoid unnecessary downloads for already installed packages.
2093 * src/pkginet.cpp (pkgActionItem::DownloadSingleArchive): Require
2094 external scheduling of ACTION_DOWNLOAD; cancel the scheduled request
2095 on completion, or when not required due to pre-existing local copy.
2097 * src/climain.cpp (pkgActionItem::GetSourceArchive): Must always be
2098 prepared to download the associated archive; enable ACTION_DOWNLOAD.
2100 * src/pkgexec.cpp (pkgActionItem::Schedule) [OPTION_REINSTALL]:
2101 May need to download the archive, even when the requested package was
2102 previously installed; schedule ACTION_DOWNLOAD to enable this.
2104 * src/pkgdeps.cpp (promote): Macro redefined in terms of...
2105 (with_flags, with_download): ...these new macros; implement and...
2106 (pkgXmlDocument::ResolveDependencies): ...use them to enable/schedule
2107 ACTION_DOWNLOAD only when expected that it may be necessary.
2109 2011-11-06 Keith Marshall <keithmarshall@users.sourceforge.net>
2111 Fix packaging anomalies for source and licence distributions.
2113 * Makefile.in (licdist): Link README from ${CURDIR}, not from '..'.
2114 (srcdist): Explicitly link pkginfo.c from ${CURDIR} to src/pkginfo,
2115 rather than as implied prerequisite; this avoids a bogus attempt to
2116 link srcdist-doc into src/pkginfo.
2118 2011-11-06 Keith Marshall <keithmarshall@users.sourceforge.net>
2120 Bump version number for subsequent CVS snapshots.
2122 * configure.ac (AC_INIT): Set version to 0.4-alpha-1.1cvs
2124 2011-11-06 Keith Marshall <keithmarshall@users.sourceforge.net>
2126 mingw-get-0.4-mingw32-alpha-1 released.
2128 * configure.ac (AC_INIT): Adjust version number.
2129 * srcdist-doc/NEWS.in: Updated; document new features and bugs fixed.
2130 * All files (r0-4-alpha-1): Tag assigned.
2132 2011-11-04 Keith Marshall <keithmarshall@users.sourceforge.net>
2134 Don't upgrade installed DLL components to incompatible version.
2135 Provide clearer diagnostics for failed requests on implied packages.
2137 * src/pkgdeps.cpp (is_abi_compatible): New static inline function.
2138 (pkgXmlDocument::ResolveDependencies) [is_installed]: Use it.
2139 (pkgXmlDocument::ResolveDependencies) [DEBUG_TRACE_DEPENDENCIES]:
2140 Clean up and improve diagnostic message content and formatting.
2141 (pkgXmlDocument::Schedule) [(upgrade || remove) && ! installed]:
2142 Downgrade diagnostic to WARNING, for implicitly specified component
2143 packages; provide additional explanatory diagnostics.
2145 * src/pkgspec.cpp (pkgSpecs::VersionComparator):
2146 * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit):
2147 [DEBUG_TRACE_DEPENDENCIES]: Eliminate diagnostic noise.
2149 2011-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2151 Fix --download-only vs. --reinstall conflict.
2153 * src/pkgexec.cpp (pkgActionItem::Execute) [OPTION_DOWNLOAD_ONLY]:
2154 Test for explicit inequality, rather than equality to zero; since the
2155 2011-08-30 update, which made --download-only also imply --reinstall,
2156 it will test as non-zero when --reinstall is specified, even though
2157 --download-only is not.
2159 2011-10-07 Keith Marshall <keithmarshall@users.sourceforge.net>
2161 Add support for non-specific upgrade of all installed packages.
2163 * src/pkgbase.h (pkgXmlDocument::RescheduleInstalledPackages):
2164 New public method; declare it.
2166 * src/pkgdeps.cpp (pkgXmlDocument::RescheduleInstalledPackages):
2169 * src/climain.cpp (climain) [ACTION_UPGRADE && argc < 2]: Invoke
2170 pkgXmlDocument::RescheduleInstalledPackages() to schedule the upgrade
2171 request for all packages currently registered as installed.
2173 2011-10-06 Keith Marshall <keithmarshall@users.sourceforge.net>
2175 Implement "source" and "licence" operations.
2177 * src/pkgopts.h (OPTION_ALL_DEPS): New option code; define it.
2178 * src/clistub.c (main): Associate it with...
2179 (all-related, recursive): ...these synonymous option names...
2180 (options): ...defined within this local structured array.
2181 (help_text): Document them; also document "source" and "licence" as
2182 new operations which may be specified on the command line.
2184 * src/pkgtask.h (action_source, action_licence): Enumerate them.
2185 (ACTION_SOURCE, ACTION_LICENCE): Define their manifest values, and...
2186 * src/pkgexec.cpp (action_name): ...associate with operation names.
2188 * src/pkgbase.h (pkgActionItem::GetScheduledSourceArchives):
2189 (pkgActionItem::GetSourceArchive, pkgXmlDocument::GetSourceArchive):
2190 New public methods; declare them for external implementation.
2191 (pkgXmlDocument::GetScheduledSourceArchives): New public method;
2192 implement it as inline.
2194 * src/climain.cpp (pkgProcessedArchives): New pointer to stack of...
2195 (pkgArchiveNameList): ...this new locally defined class; implement it.
2196 (pkgActionItem::GetSourceArchive, pkgXmlDocument::GetSourceArchive):
2197 (pkgActionItem::GetScheduledSourceArchives): Implement them.
2198 (climain): Add invocation hooks.
2200 2011-10-04 Keith Marshall <keithmarshall@users.sourceforge.net>
2202 Establish mapping from release tarname to source tarname.
2204 * src/pkgreqs.cpp (inherited_requirement): New inline function.
2205 (requirement): Use it; adapt to propagate release archive format and
2206 compression type fields, in addition to version fields, when resolving
2207 "%" wildcard matches within the template for the resultant tarname.
2208 (pkgAssociateName): New public function; implement it for use by...
2209 * src/pkgname.cpp (pkgResolvedName): ...this new inline function.
2210 (pkgXmlNode::SourceArchiveName): Use it; adapt to accept a category
2211 selector, so it may resolve source or licence tarnames on demand.
2213 * src/pkgbase.h (pkgXmlNode::SourceArchiveName): Modify declaration;
2214 add category selector argument to support source/licence choice.
2216 2011-10-02 Keith Marshall <keithmarshall@users.sourceforge.net>
2218 Facilitate downloads using diverse cache directories.
2220 * src/pkgbase.h (pkgActionItem::DownloadSingleArchive): New private
2221 method; declare it; it handles the download for a single named archive
2222 file, and stores it in a specifed cache directory.
2224 * src/pkginet.cpp (pkgActionItem::DownloadSingleArchive): Implement
2225 it; factor its code from the original implementation within...
2226 (pkgActionItem::DownloadArchiveFiles): ...this; adapt to use it.
2228 2011-10-02 Keith Marshall <keithmarshall@users.sourceforge.net>
2230 Establish cache directory for source archive downloads.
2232 * src/mkpath.h (pkgSourceArchivePath): New function; declare it.
2233 * src/mkpath.c (pkgSourceArchivePath): Implement it.
2235 2011-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2237 Support archive extraction to arbitrary destination without install.
2239 * src/pkgproc.h (pkgArchiveProcessor::ExtractFile): New virtual
2240 helper method for use, as core helper, by derived classes; declare it.
2241 (pkgArchiveProcessor::CreateExtractionDirectory): Likewise.
2242 (pkgTarArchiveProcessor): Declare overloaded default constructor.
2243 (pkgTarArchiveExtractor): New class definition; it is derived from
2244 pkgTarArchiveProcessor.
2246 * src/tarproc.cpp (pkgArchiveProcessor::ExtractFile): Implement it.
2247 (pkgArchiveProcessor::CreateExtractionDirectory): Likewise.
2248 (pkgTarArchiveExtractor): Implement constructor, together with...
2249 (pkgTarArchiveExtractor::ProcessDirectory): ...this method, and also...
2250 (pkgTarArchiveExtractor::ProcessDataStream): ...this one; these are
2251 declared as abstract, in the pkgTarArchiveProcessor base class.
2252 (pkgTarArchiveInstaller::ProcessDirectory): Simplify; it now delegates
2253 directory creation to pkgArchiveProcessor::CreateExtractionDirectory.
2254 (pkgTarArchiveInstaller::ProcessDataStream): Simplify; delegate file
2255 handling to pkgArchiveProcessor::ExtractFile, as appropriate.
2257 2011-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2259 Make --download-only and --print-uris imply --reinstall.
2261 * src/pkgopts.h (OPTION_PRINT_URIS): Adjust definition.
2262 (OPTION_DNLOAD_ONLY, OPTION_DOWNLOAD_ONLY): Likewise.
2264 2011-08-07 Keith Marshall <keithmarshall@users.sourceforge.net>
2266 Implement --download-only and --print-uris options.
2268 * src/pkgopts.h (OPTION_DOWNLOAD_ONLY, OPTION_PRINT_URIS):
2269 New manifest constants, identifying flag bits; define them.
2270 (OPTION_DNLOAD_ONLY): Likewise; an alias for OPTION_DOWNLOAD_ONLY.
2272 * src/pkgbase.h (pkgActionItem::PrintURI): New private method.
2273 * src/pkginet.cpp: Implement it.
2275 * src/clistub.c (options): Add "download-only" and "print-uris".
2276 (help_text): Document them.
2277 * src/pkgexec.cpp (pkgActionItem::Execute): Process them.
2279 2011-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2281 mingw-get-0.3-mingw32-alpha-2.1 released.
2283 * configure.ac (AC_INIT): Adjust version number.
2284 * srcdist-doc/NEWS.in: Updated; document bugs fixed.
2285 * All files (r0-3-alpha-2-1): Tag assigned.
2287 2011-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2289 Adopt tar.xz as default package archive format.
2291 * Makefile.in (TARZIP, TAREXT): New macros; define them.
2292 (bindist, licdist, srcdist): Use them in place of hardcoded tar.gz
2293 (maintainer-clean): Expunge tar files of any compression format.
2295 2011-07-27 Keith Marshall <keithmarshall@users.sourceforge.net>
2297 Correct handling of release status in requirements specifications.
2299 * src/debug.h (DEBUG_TRACE_DEPENDENCIES): New tracing hook; define it.
2300 * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit): Use it; add
2301 function entry/exit tracing report hooks.
2302 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): Likewise;
2303 also add internal trace point reporting, which may also require...
2304 (show_required): ...this new static inline DEBUG_INVOKED function.
2306 * src/pkgreqs.cpp (requirement): Propagate release status and release
2307 reference index fields from requirer, when package version requirement
2308 is specified by a '%' token, and no explicit release status override
2309 is included in the requirement specification.
2311 * src/pkgspec.cpp (is_wildcard_spec): New static inline helper.
2312 (pkgSpecs::VersionComparator): Use it to identify any package version
2313 specification which may require the extension of a wildcard match, to
2314 span the package version and release status fields; also add tracing
2315 hooks, triggered on DEBUG_TRACE_DEPENDENCIES, to facilitate debugging.
2317 2011-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2319 Avoid accidental RCS keyword substitutions.
2321 * Makefile.in (DOLLAR): New macro; define it.
2322 (readme.txt, readme.txt.in): Use it, where unexpanded RCS Id keyword
2323 matching is intended.
2325 2011-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2327 Mercurial support revisited.
2329 * .cvsignore (.hgtags): Add to CVS untracked list.
2331 2011-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2333 Update readme.txt ID tag-line to track NEWS rather than README.
2335 * Makefile.in (readme.txt.in): New rule; implement it.
2336 (readme.txt.tag): Likewise; this implements the tag-line tracking.
2337 (readme.txt): Rule redefined in terms of the preceding pair.
2339 2011-06-17 Keith Marshall <keithmarshall@users.sourceforge.net>
2341 mingw-get-0.3-mingw32-alpha-2 released.
2343 * configure.ac (AC_INIT): Adjust version number.
2344 * srcdist-doc/NEWS.in: Updated; document new features and bugs fixed.
2345 * All files (r0-3-alpha-2): Tag assigned.
2347 2011-06-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2349 Add internal documentation for --reinstall option.
2351 * src/clistub.c (help_text): Add description for "--reinstall".
2353 2011-06-14 Keith Marshall <keithmarshall@users.sourceforge.net>
2355 Support use of Mercurial within a CVS working copy.
2357 * .cvsignore (.hg, .hgignore): Don't have CVS track these.
2359 2011-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
2361 Implement --reinstall option.
2363 * src/pkgopts.h (OPTION_REINSTALL): New macro; define it.
2364 (OPTION_GENERIC, OPTION_SHIFT_MASK): Likewise.
2365 (OPTION_EXTRA_FLAGS): New field; declare it.
2367 * src/clistub.c (options): Add "reinstall".
2368 (OPTION_GENERIC): Use it where appropriate; within its scope...
2369 (OPTION_STORAGE_CLASS): Improve descriptive comments; add handling for
2370 default case of flag type options requiring an alignment shift.
2372 * src/pkgexec.cpp: Remove previous "always reinstall" kludge.
2373 (pkgOptionSelected, PKG_OPTION_REINSTALL): Remove obsolete macros.
2374 (pkgActionItem::Execute): Check for "upgrade" request on any package
2375 which is already up to date; report this state, otherwise...
2376 [OPTION_REINSTALL || ACTION_UPGRADE]: Mark package as "removed", to
2377 avoid bail-out on "package already installed", when calling...
2378 (pkgInstall): ...this.
2380 2011-06-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2382 Don't require -vv to report progress of update operation.
2384 * src/pkgbind.cpp (pkgRepository::GetPackageList): Eliminate all
2385 basename() calls; `dname' already tells us what it should return.
2386 [update]: Report progress, irrespective of verbosity setting.
2388 2011-06-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2390 Fix MinGW-Bug #3313806.
2392 * src/pkginfo/pkginfo.l (CMS_KEYWORDS): Do not match them within the
2393 PACKAGE_NAME field; this avoids misinterpretation as a release status
2394 qualifier when intended as part of the package name, as in msys-cvs.
2396 2011-06-07 Keith Marshall <keithmarshall@users.sourceforge.net>
2398 Provisional correction for MinGW-Bug #3309438.
2400 * src/debug.h [DEBUGLEVEL == 0]: Provide defaults for...
2401 (DEBUG_ENABLED, DEBUG_REQUEST): ...these macros.
2403 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDirectory):
2404 (pkgTarArchiveInstaller::ProcessDataStream): Use DEBUG_REQUEST to
2405 enable runtime trace activation for previous compile time choices.
2407 2011-05-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2409 mingw-get-0.3-mingw32-alpha-1 released.
2411 * configure.ac (AC_INIT): Adjust version number.
2412 * srcdist-doc/NEWS.in: Updated; document new features.
2413 * All files (r0-3-alpha-1): Tag assigned.
2415 2011-05-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2417 Support assignment of DEBUGLEVEL at configure time.
2419 * configure.ac (DEBUGLEVEL): Declare as a precious variable, using
2420 AC_ARG_VAR; also declare with AC_SUBST, to ensure it is initialised.
2422 * Makefile.in (DEBUGLEVEL): Let AC_SUBST assign it.
2424 2011-05-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2426 Work around bugs in MinGW and GNU getopt_long_only() implementations.
2428 * src/getopt.c: New file; this is a free-standing replacement for any
2429 implementation provided by system libraries. We will always use this
2430 to ensure correct operation irrespective of system bugs; (different
2431 bug manifestations have been identified in the stock MinGW and GNU
2434 * Makefile.in (mingw-get.EXEEXT): Use it.
2436 * src/clistub.c (options): Remove redundant declaration of `-v' as a
2439 2011-05-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2441 Implement user selection of traceable features at run-time.
2443 * src.pkgopts.h (OPTION_VERBOSE_MAX): New macro; define it.
2445 * src/debug.h (DEBUG_ENABLED): New macro; define it.
2446 (DEBUG_REQUEST, DEBUG_REQUEST_FLAGS, DEBUG_TRACE_DYNAMIC): Likewise.
2448 * src/clistub.c (main) [--trace]: Don't make it available unless...
2449 [DEBUG_ENABLED(DEBUG_TRACE_DYNAMIC)]: ...this is set (at compile-time).
2450 [--verbose]: Limit to OPTION_VERBOSE_MAX, using...
2451 (atmost): ...this new macro; define it.
2452 (options): Declare `-v' as both long and short form, pending bug fix
2453 in MinGW's getopt_long_only() implementation.
2455 * src/pkginet.cpp (pkgInternetAgent::OpenURL): Use DEBUG_REQUEST.
2456 (pkgInternetLzmaStreamingAgent::TransferData): Likewise.
2457 (pkgInternetStreamingAgent::TransferData): Likewise.
2458 (pkgInternetStreamingAgent::Get): Likewise.
2460 * src/pkgunst.cpp (pkgActionItem::SetAuthorities): Use DEBUG_REQUEST.
2461 (pkg_rmdir, pkg_unlink): Likewise.
2463 * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Use DEBUG_REQUEST.
2465 2011-05-21 Keith Marshall <keithmarshall@users.sourceforge.net>
2467 Implement protocol for processing global program options.
2469 * src/pkgopts.h: New file.
2471 * src/climain.cpp (cli_setopts): New function; implement it.
2472 (pkgOptions): Likewise.
2474 * src/clistub.c (xatoi): New function; implement it.
2475 (cli_setargv): New inline helper function; implement it.
2476 (main): Use it. Also incorporate implementation of...
2477 (parsed_options): New structure; it accommodates...
2478 (verbose, trace): New options; interpret them, and...
2479 (help_text): ...document them.
2481 * src/pkgbind.cpp (pkgRepository::GetPackageList): Make catalogue
2482 loading notifications and progress reports conditional on...
2483 [OPTION_VERBOSE > 1]: ...this.
2485 2011-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2487 Augment known development status keywords and accept CMS labels.
2489 * src/pkginfo/pkginfo.l (CMS_KEYWORDS): Define new provisional list;
2490 add transitional state scanner rule and code to interpret them.
2491 (STATUS_KEYWORDS): Add "pre" and "rc" to existing list; modify scanner
2492 code to maintain consistency with CMS_KEYWORDS processing; also extend
2493 this coding strategy to other rules.
2495 * src/pkginfo/driver.c (spec): Strip initial '$' token from displayed
2496 field values; (we expect it only for a CMS_KEYWORDS field value).
2498 * src/pkgreqs.cpp (pkgSpecs::GetTarName): Remove any initial '$' token
2499 from PACKAGE_RELEASE_STATUS field, when performing reverse of tarname
2500 decomposition transformation.
2502 2011-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2504 Correct omission from 2011-02-18 commit.
2506 * src/tarproc.cpp (Copyright Notice): Add 2011 as year of release.
2508 2011-05-14 Keith Marshall <keithmarshall@users.sourceforge.net>
2510 mingw-get-0.2-mingw32-alpha-4 released.
2512 * configure.ac (AC_INIT): Adjust version number.
2513 * srcdist-doc/NEWS.in: Updated; add bug-fix/feature descriptions.
2514 * All files (r0-2-alpha-4): Tag assigned.
2516 2011-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2518 Fix MinGW-Bug #3297660 (reported by Chris Sutcliffe).
2520 * src/pkgbase.h (pkgActionItem::SetAuthorities): Return unsigned long.
2521 (pkgActionItem::HasAttribute): New inline method; implement it.
2523 * src/pkgtask.h (ACTION_DOWNLOAD, ACTION_DOWNLOAD_OK): New macros.
2525 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles):
2526 [ACTION_DOWNLOAD]: Assert it at commencement of each package download;
2527 clear it again, on successful download completion.
2529 * src/pkginst.cpp (pkgtask.h): #include it.
2530 (pkgInstall) [ACTION_DOWNLOAD]: Don't proceed with installation when
2531 set; this indicates failed download; diagnose it.
2533 * src/pkgunst.cpp (pkgRemove) [ACTION_DOWNLOAD && ACTION_UPGRADE]:
2534 Don't proceed with pre-emptive removal when both set; this indicates
2535 failed download of replacement package; diagnose it.
2537 2011-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2539 Fix MinGW-Bug #3295526 (reported by Charles Wilson).
2541 * src/pkgunst.cpp (sys/stat.h): #include it; we need it for...
2542 (pkg_unlink): ...chmod( file, S_IWRITE ), emulating `rm -f' semantics.
2544 2011-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2546 Diagnose and aggressively retry failed download connections.
2548 * src/debug.h (DEBUG_TRACE_INTERNET_REQUESTS): New macro; define it.
2550 * src/pkginet.cpp (debug.h): #include it.
2551 (pkgDownloadMeter): New abstract class; declare it and implement its
2552 default (non-abstract) data and methods; derive...
2553 (pkgDownloadMeterTTY): ...this new class from it; implement it...
2554 (pkgInternetStreamingAgent::Get): ...and instantiate it (naively for
2555 now), as associated pkgDownloadMeter object; add tracing diagnostic.
2556 (pkgInternetAgent::OpenURL): Don't inline it; move implementation out
2557 of line; add retry loops to aggressively retry failed connections.
2558 (pkgInternetAgent::QueryContentLength): New method; implement it.
2559 (pkgInternetStreamingAgent::TransferData): Avoid Microsoft specific
2560 data type `DWORD'; prefer equivalent standard `unsigned long'. Add
2561 tracing diagnostic. Remove progress diagnostic; replace it with an
2562 `Update' request to associated pkgDownloadMeter.
2563 (pkgInternetLzmaStreamingAgent::GetRawData): Avoid `DWORD' data type.
2564 (pkgInternetLzmaStreamingAgent::TransferData): Likewise; add tracing
2565 diagnostic on failure.
2567 2011-03-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2569 mingw-get-0.2-mingw32-alpha-3 released.
2571 * configure.ac (AC_INIT): Adjust version number.
2572 * srcdist-doc/NEWS.in: Updated; add bug-fix description.
2573 * All files (r0-2-alpha-3): Tag assigned.
2575 2011-03-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2577 Provisional handling for http proxy authentication.
2578 (Adapted from patch by Scott Michel <pingbak@users.sourceforge.net>)
2579 (ref: MinGW-Patch #3158453)
2581 * src/pkginet.cpp: Several format/layout adjustments; add comments.
2582 Eliminate several instances of Microsoft specific typedef nastiness.
2583 (dmh_dialogue_context): New macro; kludge definition to support...
2584 (pkgInternetAgent::OpenURL) [HTTP_STATUS_PROXY_AUTH_REQ]: Detect
2587 2011-03-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2589 Expand macros in path names for files and directories to be removed.
2591 * src/pkgunst.cpp (pkgRemove): Format sysroot as a template, so...
2592 (pkg_rmdir, pkg_unlink): ...are able to use mkpath() to construct the
2593 full path name for each file or directory to be removed.
2595 2011-03-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2597 Correct defective activation logic for some debugging hooks.
2599 * src/pkgunst.cpp (pkg_rmdir, pkg_unlink) [DEBUG_INVOKE_IF]:
2600 (pkgActionItem::SetAuthorities) [DEBUG_INVOKE_IF]: Use bit-wise `&'
2601 operator, not `&&', to evaluate DEBUGLEVEL state.
2603 2011-03-22 Keith Marshall <keithmarshall@users.sourceforge.net>
2605 Avoid Unicode hyphens in generated ASCII document files.
2607 * Makefile.in (NROFF): New macro; define it to invoke `nroff -Tascii'.
2608 (%.dist, readme.txt): Use it to ensure that output is pure ASCII.
2610 2011-03-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2612 mingw-get-0.2-mingw32-alpha-2 released.
2614 * configure.ac (AC_INIT): Adjust version number.
2615 * srcdist-doc/NEWS.in: Updated; add bug-fix description.
2616 * All files (r0-2-alpha-2): Tag assigned.
2618 2011-03-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2620 Fix MinGW-Bug 3212246.
2622 * src/keyword.c (has_keyword): Avoid incrementing the comparison
2623 pointers when a significant character in one string is not matched in
2624 the other; previously the pointers were left pointing one character to
2625 the right of the mismatch, and this was overlooked if the mismatch
2626 occurred at the rightmost character in both strings.
2628 2011-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2630 mingw-get-0.2-mingw32-alpha-1 released.
2632 * configure.ac (AC_INIT): Set version number; correct capitalisation
2633 in URI reference to bug reporting instructions.
2635 * srcdist-doc/NEWS.in: Confirm release date.
2636 [bug reporting]: Remove redundant paragraph; the information is
2637 provided, via reference to mingw.org. in the README and INSTALL files.
2639 * All files (r0-2-alpha-1): Tag assigned.
2641 2011-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2643 * srcdist-doc/INSTALL.in [building]: Qualify liblzma.a requirement;
2644 add earliest acceptable snapshot release date.
2646 2011-03-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2648 Remove unused 7zip and boost source code from CVS trunk.
2650 * 7z: Directory and all content removed.
2653 2011-03-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2655 Refactor and update existing installation and usage instructions.
2657 * src/clistub.c (help_text): Updated.
2659 * srcdist-doc: New directory.
2661 * README: Deleted; its content refactored into...
2662 * srcdist-doc/README.in srcdist-doc/INSTALL.in srcdist-doc/NEWS.in:
2663 ...these new template files, updated for current development state.
2665 * srcdist-doc/gendoc.sed.in: New sed script; it directs formatting of
2666 generated text files derived from the srcdist-doc templates.
2668 * Makefile.in (SRCDIST_SUBDIRS): Add srcdist-doc.
2669 (SRCDIST_FILES): Add NEWS and INSTALL.
2670 (srcdist-doc): New build rule to generate README, NEWS and INSTALL.
2671 (srcdist, licdist): Adjust path to locate them.
2672 (readme.txt): New build rule to generate on-line package description.
2674 (distclean): Don't remove Makefile...
2675 (maintainer-clean): ...but do it here instead. Also remove generated
2676 README, NEWS and INSTALL, the autom4te cache, and all distributable
2677 zip files, in addition to tarballs, for the current version.
2679 2011-02-27 Keith Marshall <keithmarshall@users.sourceforge.net>
2681 Initial implementation for "remove" feature.
2683 * src/pkgbase.h: Update copyright notice; add current year.
2684 (pkgActionItem::SetPrimary): New inline public method; declare it.
2685 (pkgActionItem::SetAuthorities): New public method; declare it.
2687 * src/pkgtask.h (ACTION_PREFLIGHT, ACTION_REMOVE_OK): New defines.
2689 * src/pkgproc.h: Update copyright notice; add current year.
2690 (pkgManifest::GetSysRootReference): New public method; declare it.
2691 (pkgManifest::GetRoot): New inline method; declare and implement it.
2692 (pkgManifest::DetachSysRoot): Argument type changed to const char*.
2693 (pkgRemove): New extern "C" function; declare it.
2695 * src/pkgexec.cpp (pkgActionItem::SetPrimary): Implement it, and...
2696 (pkgXmlDocument::Schedule): ...use it to promote actions on all user
2697 specified packages, as listed on the command line, to primary status.
2698 (pkgActionItem::Execute): Repeatedly invoke...
2699 (pkgActionItem::SetAuthorities): ...this; incorporate call of...
2700 (pkgActionItem::DownloadArchiveFiles): ...this, within the loop, so
2701 that we retry failed downloads at least a second time.
2702 [ACTION_REMOVE]: Delete stub; invoke pkgRemove().
2704 * src/pkgunst.cpp: New file.
2705 (pkgActionItem::SetAuthorities): Implement it.
2706 (pkgManifest::GetSysRootReference): Implement it.
2707 (pkgManifest::DetachSysRoot): Implement it per new declaration.
2708 (pkgRemove): Implement it.
2710 * Makefile.in (CORE_DLL_OBJECTS): Add pkgunst.OBJEXT
2712 2011-02-26 Keith Marshall <keithmarshall@users.sourceforge.net>
2714 Work-around for improper stderr buffering in MSYS mintty and rxvt.
2715 (Merged from r0-1-alpha-5 branch).
2717 * src/dmh.cpp (dmhTypeTTY::emit_and_flush): New private method.
2718 (dmhTypeTTY::printf, dmhTypeTTY::notify): Use it to force an fflush()
2719 after each output record is written to stderr.
2721 * README: Update as appropriate.
2723 2011-02-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2725 Tidy up some debugging hooks.
2727 * src/debug.h (DEBUG_INVOKED): New macro; define it.
2728 (DEBUG_INVOKE_IF): Likewise; this takes arguments providing for
2729 conditional invocation of code when DEBUGLEVEL is non-zero; make it
2730 expand to nothing, when DEBUGLEVEL is zero.
2731 (DEBUG_TRACE_INIT): Redefined macro; value changed to 0x0010.
2732 (DEBUG_TRACE_TRANSACTIONS, DEBUG_SUPPRESS_INSTALLATION):
2733 (DEBUG_UPDATE_INVENTORY): New macros; define them.
2735 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDirectory):
2736 (pkgTarArchiveInstaller::ProcessDataStream): Refactor debugging hooks;
2737 implement them in terms of DEBUGLEVEL, with reference to...
2738 (DEBUG_SUPPRESS_INSTALLATION, DEBUG_UPDATE_INVENTORY): ...these.
2740 2011-02-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2742 Make package version comparisons more robust.
2744 Fixes an issue reported by Chris Sutcliffe: previously, version
2745 comparisons were evaluated solely on the basis of differences in the
2746 package version field itself. Henceforth, if this field compares as
2747 equal, then the comparison is extended to also consider differences
2748 between development phase qualifiers, and, if these too compare as
2749 equal, to differences in the target subsystem version fields.
2751 * src/pkginfo/pkginfo.h (pkgSpecs::VersionComparator): New private
2754 * src/pkgspec.cpp (pkgSpecs::VersionComparator): Implement it.
2755 (pkgSpecs::operator<, pkgSpecs::operator<=, pkgSpecs::operator>=):
2756 (pkgSpecs::operator>): Use it, replacing...
2757 (version): ...this static function; now unreferenced; delete it.
2759 * src/vercmp.h (pkgVersionInfo::pkgVersionInfo): Make it inline; it
2760 now delegates the entire class construction operation to...
2761 (pkgVersionInfo::Parse): ...this new private method; declare it. This
2762 is also used to facilitate implementation of...
2763 (pkgVersionInfo::Reset): ...this new inline method, also requiring...
2764 (pkgVersionInfo::FreeAll): ...this new inline method; also now used by
2765 the class destructor, it encapsulates separate calls to...
2766 (pkgVersionInfo::Free): ...this original inline method, renamed...
2767 (pkgVersionInfo::FreeEntry): ...as this.
2769 * src/vercmp.cpp (pkgVersionInfo::Parse): Implement it.
2771 2011-02-13 Keith Marshall <keithmarshall@users.sourceforge.net>
2773 Merge from mingw-get-0.1-mingw32-alpha-5 bug-fix branch.
2775 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): Promote
2776 "install" action on new prerequisites, where a previously uninstalled
2777 package is required to satisfy any "upgrade" dependency.
2779 * src/pkgexec.cpp (pkgActionList::Execute): Don't make misleading
2780 claims concerning package removal.
2782 * src/pkgtask.h (STRICTLY_GT, STRICTLY_LT, ACTION_PRIMARY): Add one
2783 level of parentheses around defining expressions.
2785 2011-02-10 Keith Marshall <keithmarshall@users.sourceforge.net>
2787 Publish mingw-get-0.0-mingw32-alpha-5.1 bug-fix release.
2789 * README: Updated to reflect changes.
2791 2011-02-08 Keith Marshall <keithmarshall@users.sourceforge.net>
2793 Improve diagnostics for failed GUI invocation.
2795 * src/guimain.cpp: New file; currently delivers only a diagnostic
2796 stub, provided by Sze Howe Koh <axfangli@users.sourceforge.net>, to
2797 pop-up a message block explaining why GUI mode cannot be invoked.
2799 * Makefile.in (GUI_LDFLAGS): New macro; it is required by...
2800 (gui$EXEEXT): ...this new build rule; add to prerequisites of...
2801 (all): ...this [default] build rule; redefine this in terms of...
2802 (BIN_PROGRAMS, LIBEXEC_PROGRAMS, LIBEXEC_DATA): ...these new macros;
2803 define them, and also use them as loop iterator objectives for...
2804 (install, install_strip): ...these; also schedule them...
2805 (clean): ...for removal by this.
2807 * src/clistub.c (Copyright): Add new year.
2808 (main): Amend error message, if gui$EXEEXT doesn't start; make it
2809 more intelligible to normal users.
2811 2011-02-07 Keith Marshall <keithmarshall@users.sourceforge.net>
2813 Correct omissions from packaged source tarball.
2815 * Makefile.in (Copyright): Add new year.
2816 (SRCDIST_FILES): Add aclocal.m4
2817 (SRCDIST_SUBDIRS): Add m4
2819 2011-01-05 Keith Marshall <keithmarshall@users.sourceforge.net>
2821 Reduce path names to base names, in some diagnostic message contexts.
2823 * src/climain.cpp: Update copyright notice for new year.
2824 (climain): Extract base name from argv[0], to pass as program name tag
2825 in initialisation of diagnostic message handler.
2827 * src/dmh.h, src/dmh.cpp: Update copyright notices; make some layout
2828 adjustments, for more consistent formatting style.
2830 * src/pkgbind.cpp: Update copyright notice.
2831 (pkgRepository::GetPackageList): Reduce path names for catalogue files
2832 to their base names, when reporting them in diagnostic messages.
2834 2011-01-05 Keith Marshall <keithmarshall@users.sourceforge.net>
2836 Avoid a potential out-of-range action name look-up.
2838 * src/pkgdeps.cpp: Update copyright notice for new year.
2839 (pkgXmlDocument::Schedule): Mask action code with ACTION_MASK, to
2840 determine correct action name when diagnosing uninstalled package.
2842 2011-01-03 Keith Marshall <keithmarshall@users.sourceforge.net>
2844 Make "install" and "remove" notifications symmetric.
2846 * configure.ac (AC_INIT): Bump version to "0.1-alpha-6cvs".
2847 (YEARS_OF_ISSUE): Add new year.
2849 * src/pkginst.cpp: Update copyright notice for new year.
2850 (pkgInstall): Add notification for package being installed.
2852 2010-12-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2854 Add preliminary CLI support for "list" and "show" actions.
2856 * src/pkgtask.h (ACTION_PRIMARY): New manifest constant; define it.
2857 (ACTION_LIST, ACTION_SHOW): Likewise; cast to enumerated values for...
2858 (action_list, action_show): ...these; define them.
2860 * src/pkgexec.cpp (action_name): Add defining text for...
2861 (action_list, action_show): ...these.
2863 * src/climain.cpp: Partially revert 2010-11-01 change...
2864 (climain) [! ACTION_UPDATE]: Reinstate original "if" block, moving
2865 the "switch" block within it, but without the ACTION_UPDATE case.
2866 [ACTION_LIST, ACTION_SHOW]: New "switch" cases; they invoke...
2867 (pkgXmlDocument::DisplayPackageInfo): ...this new method.
2869 * src/pkgbase.h (pkgXmlDocument::DisplayPackageInfo): Declare it.
2870 (pkgActionItem::ConfirmInstallationStatus): New method; declare it.
2871 (pkgXmlNode::GetSysRoot): Make declaration style consistent with
2872 others in the class; do not name arguments in the declaration.
2873 (pkgXmlNode::FindFirstAssociate): Likewise.
2874 (pkgXmlNode::FindNextAssociate): Likewise.
2876 * src/pkgshow.cpp: New file.
2877 (pkgXmlDocument::DisplayPackageInfo): Implement it.
2879 * src/pkgdeps.cpp (pkgMsgUnknownPackage): New extern "C" function;
2880 implement it temporarily, pending a future i18n reimplementation.
2881 (assert_installed): Drop "inline" attribute; leave it as "static".
2882 Set "tarname" correctly, to match the installed package version; (it
2883 previously incorrectly returned the latest available version).
2884 (pkgActionItem::ConfirmInstallationStatus): Implement it.
2885 (pkgXmlDocument::Schedule) [ACTION_PRIMARY]: Set as appropriate.
2886 (pkgXmlDocument::Schedule) [ACTION_REMOVE || ACTION_UPGRADE]: Complain
2887 if requested package is not recorded as having been installed.
2888 (pkgXmlDocument::ResolveDependencies) [! ACTION_INSTALL]: Do not
2889 invoke it recursively.
2891 * Makefile.in (pkgshow.$OBJEXT): Add reference.
2893 2010-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
2895 Lay groundwork for implentation of additional actions.
2897 * src/climain.cpp (climain): Adjust indentation; replace `if' block...
2898 [action != ACTION_UPDATE]: ...with this default `switch' case, and...
2899 [action == ACTION_UPDATE]: ...this as explicit "do nothing" case.
2901 2010-10-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2903 mingw-get-0.1-mingw32-alpha-5 released.
2905 * configure.ac (AC_INIT): Bump version to 0.1-alpha-5.
2906 * README: Update release notes accordingly.
2907 * All files (r0-1-alpha-5): Tag assigned.
2909 2010-10-22 Keith Marshall <keithmarshall@users.sourceforge.net>
2911 Make pkgInitRites/pkgLastRites processing more robust;
2912 avoid a potential race condition in mingw-get-inst.
2914 * src/rites.c: Refactor conditional code to segregate execution of...
2915 [defined IMPLEMENT_INITIATION_RITES]: ...this into distinct phases.
2916 (PHASE_ONE_RITES, PHASE_TWO_RITES): Define constants to identify them.
2917 (do_init_rites): Renamed to...
2918 (invoke_rites): ...this; inline it.
2919 (pkgLastRites): Invoke it, to pre-empt rename action of...
2920 (lastrites.exe): ...this, subsequently exec()ed process.
2921 (perror): Issue more informative diagnostic on exec() failure.
2923 * src/clistub.c (IMPLEMENT_INITIATION_RITES): Stipulate as...
2924 (PHASE_ONE_RITES): ...this phase of implementation only.
2926 * src/pkgexec.cpp (IMPLEMENT_INITIATION_RITES): Define to provide...
2927 (PHASE_TWO_RITES): ...this phase of implementation, facilitated by...
2928 (self_upgrade_rites): ...this locally defined RITES_INLINE function.
2929 (pkgActionItem::Execute): Invoke it, in remove/install loop, while...
2930 [init_rites_pending]: ...new loop local variable remains true.
2932 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
2934 Fix packaging bug in -lic package.
2936 * Makefile.in (licdist): Use directory named
2937 "share", not "shared".
2939 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
2941 mingw-get-0.1-mingw32-alpha-4 released.
2943 * All files (r0-1-alpha-4): Tag assigned.
2945 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
2947 Add rudimentary help option.
2949 * README: Update release notes.
2951 * src/clistub.c: Add --help option.
2953 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
2955 Fix "mingw-get deletes itself" bug in last rites handling.
2957 * README: Add new release notes.
2959 * configure.ac: Bump version to 0.1-alpha-4.
2961 * src/dmh.h: If __cplusplus, include <exception> and
2962 declare dmh_exception class.
2964 * src/dmh.cpp (class dmh_exception): Implement.
2965 (abort_if_fatal): If DMH_FATAL, throw dmh_exception rather
2966 than calling exit().
2968 * src/climain.cpp (climain): Wrap entire function body in try/
2969 catch block. If dmh_exception is caught, return EXIT_FAILURE.
2971 * src/clistub.c (main): Capture return value of climain(). If
2972 non-zero, perform last rites and return EXIT_FAILURE.
2974 2010-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2976 mingw-get-0.1-mingw32-alpha-3 released.
2978 * README: Add new release notes.
2980 * All files (r0-1-alpha-3): Tag assigned.
2982 2010-08-27 Keith Marshall <keithmarshall@users.sourceforge.net>
2984 Add runtime hooks to support self-upgrade for future releases.
2986 * src/rites.c: New file; compile it free-standing, to provide...
2987 (lastrites.exe): ...this helper application for context clean-up;
2988 alternatively, use it as an include file, with pre-definition of...
2989 (IMPLEMENT_INITIATION_RITES): ...this, to implement...
2990 (pkgInitRites, pkgLastRites): ...these inline functions.
2992 * src/clistub.c (main) [argc > 1]: Use them.
2993 (progname): New local variable within `main'; set it once, then use it
2994 instead of repeated references to `basename(*argv)' in diagnostics.
2995 (MINGW_GET_DLL, MINGW_GET_GUI): Relocate to `src/rites.c'.
2997 * src/debug.h (DEBUG_INHIBIT_RITES_OF_PASSAGE):
2998 (DEBUG_FAIL_FILE_RENAME_RITE, DEBUG_FAIL_FILE_UNLINK_RITE): New
2999 defines; they facilitate debugging of the src/rites.c code.
3001 * Makefile.in (lastrites$EXEEXT): New target; build as prerequisite...
3002 (all): ...of this primary target.
3003 (install, install-strip): Install it.
3004 (SRCDIST_FILES): Remove install-sh; it is now included in...
3005 (build-aux): ...this directory; add it to...
3006 (SRCDIST_SUBDIRS): ...this.
3008 2010-08-24 Keith Marshall <keithmarshall@users.sourceforge.net>
3010 Set default sysroots relative to mingw-get installation directory.
3012 * xml/profile.xml (system-map) [name == default]: For each of...
3013 [subsystem == mingw32]: ...set sysroot path to value of %R macro...
3014 [subsystem == msys]: ...and to its %R/msys/1.0 subdirectory.
3016 2010-08-19 Keith Marshall <keithmarshall@users.sourceforge.net>
3018 Some dependency resolver enhancements and bug fixes.
3020 * src/pkgbase.h (pkgXmlNode::GetContainerAttribute): New method;
3023 * src/pkgdeps.cpp (pkgXmlNode::GetContainerAttribute): Implement it;
3024 it is used to retrieve package name attributes from the containing
3025 'package' element, when given a pointer to a 'release' element by...
3026 (assert_unmatched, assert_installed): ...these new static functions.
3027 (pkgXmlDocument::Schedule): Use them to reconstruct and register
3028 dependency reference data for previously installed packages which are
3029 no longer included in the distribution manifest.
3030 (pkgXmlDocument::ResolveDependencies): Fix a block nesting error;
3031 catch and diagnose unresolved dependencies; don't look beyond the XML
3032 document root node, (tinyxml error not caught?), when searching for
3033 requirements specified on container nodes.
3035 2010-08-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3037 Improve scheduling of package processing requests.
3039 * src/pkgexec.cpp (pkgXmlDocument::Schedule): Inspect entire `actions'
3040 list, when checking for duplicate package processing requests; decline
3041 to schedule any such duplicate, or any request which lacks a package
3044 2010-08-15 Keith Marshall <keithmarshall@users.sourceforge.net>
3046 Lay foundation for selective compilation of debugging code.
3048 * src/debug.h: New file...
3049 * src/sysroot.cpp: Include it.
3050 (pkgXmlDocument::LoadSystemMap): Make debugging output conditional...
3051 [DEBUGLEVEL & DEBUG_TRACE_INIT]: ...on this new debugging state.
3053 2010-08-15 Keith Marshall <keithmarshall@users.sourceforge.net>
3055 * src/pkgkeys.h: Typo in comment: file was previously identified as
3056 pkgkeys.c; corrected.
3058 2010-08-13 Keith Marshall <keithmarshall@users.sourceforge.net>
3060 Improve diagnostics for invalid references to non-release XML nodes.
3062 * src/pkgkeys.h (value_unknown): New global string; declare it.
3063 * src/pkgkeys.c (value_unknown): Implement it.
3065 * src/pkgname.cpp (pkgArchiveName): Identify XML element type when
3066 diagnosing references to elements of types other than release; use...
3067 (value_unknown): ...this, as appropriate.
3069 2010-08-12 Keith Marshall <keithmarshall@users.sourceforge.net>
3071 Guard against a potential buffer overrun.
3073 * src/pkgreqs.cpp (pkgSpecs::SetProperty): Allocate an additional
3074 byte to accommodate an extra field separator, when inserting a new
3075 data value into a previously empty field.
3077 2010-07-27 Cesar Strauss <cestrauss@gmail.com>
3079 Handle the GNU long name tar header format.
3081 * src/pkgproc.h (TAR_ENTITY_TYPE_GNU_LONGNAME): New manifest constant;
3083 (pkgTarArchiveProcessor::EntityDataAsString): New protected method;
3085 * src/tarproc.cpp: ...implement it.
3086 (pkgTarArchiveProcessor::Process): Before building the entry pathname,
3087 check for a GNU long name type header; when found, read pathname from
3088 the entry data area, before fetching the following header, from which
3089 to retrieve the associated entity data.
3091 2010-06-24 Keith Marshall <keithmarshall@users.sourceforge.net>
3093 Work around an autoconf bug (reported by Stefano Sabatini).
3095 * Makefile.in (VPATH): Use @top_srcdir@ instead of ${srcdir}; current
3096 autoconf incorrectly elides references to @srcdir@ and ${srcdir} when
3097 substituting within a VPATH specification for building `in-source'.
3098 Also, prefer colons to blanks as path name separators, for improved
3099 portability to non-GNU implementations of make; (recommendation by
3102 2010-06-24 Keith Marshall <keithmarshall@users.sourceforge.net>
3104 Include alias search, when matching component package name.
3106 * src/keyword.c (has_keyword): Rearrange argument declarations for
3107 more natural order; update all callers accordingly. Simplify; compare
3108 keyword to be matched with each successive candidate from match-list,
3109 character-by-character and in-place, so avoiding memory allocation
3110 for any local duplicate of the passed match-list; thus...
3111 (safe_strdup): ...this static function no longer required; delete it.
3112 (string.h): No references remain; do not include it.
3114 * src/pkgfind.cpp (pkgXmlNode::FindPackageByName): Augment component
3115 package name matching to include potential matches of the look-up name
3116 with trailing component name stripped off, when that matches the class
3117 name of an identified component package, and the initial substring of
3118 the look-up name, after stripping, matches any specified alias name
3119 for the containing package.
3121 2010-06-10 Keith Marshall <keithmarshall@users.sourceforge.net>
3123 Address FIXME relating to identification of distributable files.
3125 * install-sh: Move to...
3126 * build-aux: ...this new directory.
3128 * Makefile.in (PACKAGE_DISTVERSION): Modify `sed' edit sequence; make
3129 it depend on, and ensure that it incorporates the expansion of...
3130 (PACKAGE_SUBSYSTEM): ...this new macro; defined as substitution of...
3131 (host_os): ...this autoconf variable, set by...
3133 * configure.ac (AC_CANONICAL_HOST): ...this; add it, requiring...
3134 (AC_CONFIG_AUX_DIR): ...`build-aux' directory reference, providing...
3136 * build-aux/config.guess, build-aux/config.sub: ...these new standard
3137 files; import them from the standard `build-aux' repository.
3139 2010-05-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3141 Bump version for next release cycle.
3143 * configure.ac (AC_INIT): Bump version suffix to alpha-3.
3145 2010-05-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3147 mingw-get-0.1-mingw32-alpha-2 released.
3149 * README: Add new release notes.
3151 * xml/profile.xml: Update to use default referencing for...
3152 (package-list.xml.lzma): ...this repository master catalogue.
3154 * All files (r0-1-alpha-2): Tag assigned.
3156 2010-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
3158 Make provision to protect user's profile settings during upgrade.
3160 * Makefile.in (install): Remove `profile.xml'; replace it with...
3161 (install-profile): ...this new prerequisite installation goal; it
3162 renames the installed copy of `profile.xml' as `defaults.xml', within
3163 the installed package image.
3165 * src/pkgkeys.h (defaults_key): New key; declare it.
3166 * src/pkgkeys.c: Some cosmetic formatting (tabulation) adjustments.
3167 (defaults_key): Implement it; it refers to the `defaults.xml' file.
3169 * src/climain.cpp (climain): Check `profile_key' for accessibility of
3170 the `profile.xml' file; if [! R_OK] emit a diagnostic warning, fall
3171 back on `defaults_key', and attempt to load configuration from the
3172 distributed `defaults.xml' file.
3174 2010-05-11 Keith Marshall <keithmarshall@users.sourceforge.net>
3176 Add preliminary support for future `-reinstall' option.
3178 * src/pkgexec.cpp (pkgActionItem::Execute) [ACTION_INSTALL]: Force
3179 installation if `-reinstall' option is selected, overriding state of
3180 any prior installation; temporarily assume that this option is always
3181 selected, to permit proper `upgrade' operation in the absence of any
3182 functional `uninstall' capability, and pending implementation of a
3183 mechanism for interpreting user specified options.
3185 2010-05-11 Keith Marshall <keithmarshall@users.sourceforge.net>
3187 Correct handling for "%R" macro in relative sysroot path specs.
3189 * src/tarproc.cpp (pkgTarArchiveProcessor): In constructor, expand the
3190 sysroot path specification a second time, to capture the effect of any
3191 embedded macros, before computing the recorded `sysroot_len' value.
3193 2010-05-05 Keith Marshall <keithmarshall@users.sourceforge.net>
3195 Handle "%" wildcard matches in package and subsystem version strings.
3197 * src/pkgbase.h (pkgSpecs): Forward declare it.
3198 (pkgActionItem::~pkgActionItem): Declare explicit destructor.
3199 (pkgActionItem::SetRequirements): Add extra `pkgSpecs*' argument;
3200 update references, passing additional argument in...
3202 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): ...this.
3204 * src/pkgexec.cpp (pkgActionItem::~pkgActionItem): Implement it.
3205 (pkgActionItem::SetRequirements): Delete obsolete implementation.
3207 * src/pkginfo/pkginfo.h: Update copyright notice; add year 2010.
3208 (pkgSpecs::GetTarName): New public method; declare it.
3209 (pkgSpecs::SetProperty): New private method; declare it.
3210 (pkgSpecs::SetPackageName): New inline method; implement it.
3211 (pkgSpecs::SetPackageVersion, pkgSpecs::SetPackageBuild): Likewise.
3212 (pkgSpecs::SetSubSystemName, pkgSpecs::SetSubSystemVersion): Likewise.
3213 (pkgSpecs::SetSubSystemBuild, pkgSpecs::SetReleaseStatus): Likewise.
3214 (pkgSpecs::SetReleaseIndex, pkgSpecs::SetComponentClass): Likewise.
3215 (pkgSpecs::SetComponentVersion, pkgSpecs::SetPackageFormat): Likewise.
3216 (pkgSpecs::SetCompressionType): Likewise.
3218 * src/pkginfo/pkginfo.l: Update copyright notice; add year 2010.
3219 (TRANS): Interpret "%" as wildcard in version string matches.
3221 * src/pkgreqs.cpp: New file.
3222 (pkgActionItem::SetRequirements): Reimplement per new declaration;
3223 it now always allocates heap memory for requirements specifications.
3224 (pkgSpecs::GetTarName, pkgSpecs::SetProperty): Implement them.
3226 * Makefile.in (CORE_DLL_OBJECTS): Add `pkgreqs.$(OBJEXT)'.
3228 2010-04-30 Keith Marshall <keithmarshall@users.sourceforge.net>
3230 Revert 2010-04-04 refactoring of tarproc.cpp and tarinst.cpp
3232 * src/tarinst.cpp: File removed; its content merged into...
3233 * src/tarproc.cpp: ...this; it cannot be cleanly separated out.
3235 * Makefile.in (tarinst.$OBJEXT): Remove reference.
3237 2010-04-29 Keith Marshall <keithmarshall@users.sourceforge.net>
3239 Handle "*" wildcard matches in package and subsystem version strings.
3241 * src/vercmp.h (pkgVersionInfo::version_string): New private member
3242 variable; it stores a pointer to a dynamically allocated local copy of
3243 the invariant `version' argument, to facilitate correct parsing.
3244 (pkgVersionInfo::build_string): Likewise; it provides similar handling
3245 for the invariant `build' argument.
3246 (pkgVersionInfo::Free): New private inline method; it provides a NULL
3247 pointer safe wrapper, calling the C library `free()' function, (since
3248 some implementations are believed to be unsafe); it is used by...
3249 (pkgVersionInfo::~pkgVersionInfo): ...this new inline destructor, to
3250 release the memory allocated by the constructor, for `version_string'
3253 * src/vercmp.cpp (pkgVersionInfo::pkgVersionInfo): Allocate memory for
3254 `version_string' and `build_string', as required; populate it.
3255 Explicitly handle "*" as a `match anything' wildcard...
3256 (pkgVersionInfo::Compare): ...matching it as `equal' to everything.
3258 2010-04-18 Keith Marshall <keithmarshall@users.sourceforge.net>
3260 Correct omission from configure script prerequisite checks.
3262 * aclocal.m4 (MINGW_AC_OUTPUT): New macro; it wraps AC_OUTPUT itself,
3263 adding a trap to force an abort if any preceding prerequisite check
3264 was handled by MINGW_AC_ASSERT_MISSING.
3266 * configure.ac: Qualify package component types, in prerequisite
3267 checks handled by MINGW_AC_ASSERT_MISSING; invoke MINGW_AC_OUTPUT
3268 in place of AC_OUTPUT.
3270 2010-04-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3272 Add configure script checks for prerequisite library headers.
3273 (Thanks to Cesar Strauss for proposing a rudimentary implementation).
3275 * aclocal.m4: New file; it does no more than include...
3276 * m4/missing.m4: ...this; new file incorporated from build-aux module.
3278 * configure.ac: Add AC_CHECK_HEADER assertions for...
3279 (zlib.h, bzlib.h, lzma.h): ...these; invoke MINGW_AC_ASSERT_MISSING in
3280 respect of each failing assertion.
3282 2010-04-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3284 Case-insensitive subsystem name matching revisited.
3286 * src/pkgfind.cpp (pkgXmlDocument::FindPackageByName): Use...
3287 (subsystem_strcmp): ...this to match subsystem names, instead of...
3288 (match_if_explicit): ...this.
3290 2010-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
3292 Enable recursive processing of repository package lists.
3294 * src/pkgbase.h (pkgXmlDocument::SyncRepository): Make it public.
3296 * src/pkgbind.cpp (pkgRepository): New locally defined and implemented
3297 class; it facilitates recursive loading and parsing of package lists,
3298 replacing much of the original non-recursive functionality within...
3299 (pkgXmlDocument::BindRepositories): ...this; use it.
3301 2010-04-04 Keith Marshall <keithmarshall@users.sourceforge.net>
3303 Implement installer function; use per-package file manifests.
3305 * src/pkgproc.h (pkgManifest): New class; declare it.
3306 (pkgArchiveProcessor::origin): New protected member variable.
3307 (pkgArchiveProcessor::sysroot_len): New protected member variable.
3308 (pkgArchiveProcessor::installed): Type changed to `pkgManifest *'.
3309 (pkgTarArchiveInstaller::Process): Declare specialisation hook.
3310 (pkgTarArchiveInstaller::UpdateInstallationManifest): Disused member
3311 function; remove redundant declaration from class definition.
3312 (pkgInstall): New generalised installation function; declare it.
3313 (pkgRegister): New function; declare it.
3315 * src/pkginst.cpp: New file.
3316 (pkgManifest, pkgInstall, pkgRegister): Implement them.
3318 * src/pkgexec.cpp (pkgActionItem::Execute): Use `pkgInstall' in place
3319 of stub formerly provided here.
3321 * src/pkgkeys.h (manifest_key, reference_key): New keys; declare them.
3322 * src/pkgkeys.c (manifest_key, reference_key): Implement them.
3324 * src/tarproc.cpp: Code refactored.
3325 (pkgTarArchiveProcessor::sysroot_len): Initialise it.
3326 (pkgTarArchiveProcessor::origin): Initialise it.
3327 (pkgTarArchiveProcessor::installed): Initialise; associate it with a
3328 pkgManifest class entity, and populate this as appropriate.
3329 (pkgTarArchiveProcessor::~pkgTarArchiveProcessor): Add explicit clean
3330 up of linked `pkgManifest *' entity referenced by `installed'.
3331 (pkgTarArchiveProcessor::Process) [TAR_ENTITY_TYPE_DIRECTORY]: Add
3332 braces to demarcate localised inner scope of string scan for removal
3333 of trailing directory name separators; (thanks to Cesar Strauss for
3334 reporting invalid local pointer declaration error in GCC >= 4.4).
3335 (pkgTarArchiveInstaller::UpdateInstallationManifest): Deleted.
3336 (pkgTarArchiveInstaller::pkgTarArchiveInstaller): Factor out.
3337 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
3338 (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
3339 (commit_saved_entity): Likewise.
3341 * src/tarinst.cpp: New file; it implements...
3342 (pkgTarArchiveInstaller::Process): ...this new specialisation
3343 of the original pkgTarArchiveProcessor::Process method...
3344 (pkgTarArchiveInstaller::pkgTarArchiveInstaller): ...and this
3345 refactored code, abstracted from src/tarproc.cpp and modified to
3346 use the pkgManifest class for installation tracking.
3347 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
3348 (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
3349 (commit_saved_entity): Relocated from src/tarproc.cpp.
3351 * Makefile.in (CORE_DLL_OBJECTS): Add...
3352 (pkginst.OBJEXT, tarinst.OBJEXT): ...these new object files.
3354 2010-03-31 Keith Marshall <keithmarshall@users.sourceforge.net>
3356 Guard against NULL pointer dereferences in tinyxml code.
3358 * src/pkgbase.h (pkgXmlNode::GetName): Verify `this' pointer is
3359 non-NULL, before invoking the underlying tinyxml method.
3360 (pkgXmlNode::GetParent, pkgXmlNode::GetChildren): Likewise.
3361 (pkgXmlNode::GetNext, pkgXmlNode::GetPropVal): Likewise.
3362 (pkgXmlNode::AddChild, pkgXmlNode::DeleteChild): Likewise.
3363 (pkgXmlNode::GetDocumentRoot): Likewise.
3364 (pkgXmlNode::IsElementOfType): Likewise.
3366 2010-03-28 Cesar Strauss <cestrauss@gmail.com>
3368 Avoid running InternetAttemptConnect in pkgInternetAgent
3369 constructor, since it is called during DLL initialisation.
3371 * src/pkginet.cpp (pkgInternetAgent::pkgInternetAgent): Move the
3372 InternetAttemptConnect call from constructor...
3373 (pkgInternetAgent::OpenURL): ...to here.
3375 2010-03-23 Keith Marshall <keithmarshall@users.sourceforge.net>
3377 Automate object code dependency tracking.
3379 * Makefile.in (DEPFLAGS): New macro; define it.
3380 (%.OBJEXT: %.c, %.OBJEXT: %.cpp): Add dependency generator commands...
3381 (%.d): ...to create these dependency maps; `sinclude' them, and...
3382 (clean): ...remove them.
3384 * .cvsignore (*.d): Add wild card template to match them.
3386 2010-03-22 Keith Marshall <keithmarshall@users.sourceforge.net>
3388 Support case insensitive matching for file and subsystem names.
3390 * src/pkgbase.h (safe_strcmp): New inline function; it provides NULL
3391 argument safe comparison of strings, returning the boolean inverse of
3392 the `strcmp' result, using either case-sensitive or case-insensitive
3393 semantics; derive it from...
3394 (match_if_explicit): ...this; redefine as macro; invoke `safe_strcmp'
3395 using explicitly case-sensitive semantics.
3396 (subsystem_strcmp): New macro; it invokes `safe_strcmp' with either
3397 case-sensitive or case-insensitive semantics, depending on...
3398 (CASE_INSENSITIVE_SUBSYSTEMS): ...this new context selection macro; it
3399 fixes the choice between case-sensitive and case-insensitive matching
3400 semantics for any given implementation, at compile time.
3401 (pkg_strcmp): New macro; it invokes `safe_strcmp' with either
3402 case-sensitive or case-insensitive semantics, depending on...
3403 (CASE_INSENSITIVE_FILESYSTEM): ...this new context selection macro; it
3404 fixes the choice between case-sensitive and case-insensitive matching
3405 semantics for any given implementation, at compile time.
3407 * src/sysroot.cpp (pkgXmlNode::GetSysRoot): Use `subsystem_strcmp'.
3409 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
3411 Add preliminary support for virtual packages.
3413 * src/pkgkeys.h (yes_value, no_value): Redefine as aliases...
3414 (value_yes, value_no): ...for these new global strings; declare them.
3415 (value_none, value_virtual): New global strings; declare them.
3417 * src/pkgkeys.c (yes_value, no_value): Rename...
3418 (value_yes, value_no): ...to implement these, respectively.
3419 (value_none, value_virtual): Implement them.
3421 * src/pkgname.cpp (pkgXmlNode::ArchiveName): Check containing package
3422 node for `class' attribute set to `value_virtual'; if present, always
3423 return the effective `tarname' property as `value_none'.
3425 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): For packages
3426 with an effective `tarname' of `value_none', do not download anything.
3428 * src/pkgexec.cpp (pkgActionItem::Execute): For packages with an
3429 effective `tarname' of `value_none', do not invoke any tar archive
3430 processing function.
3432 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
3434 Don't write installation records for unavailable packages.
3436 * src/tarproc.cpp (pkgTarArchiveInstaller): In constructor, ensure
3437 archive is ready for processing, before initialising an installation
3440 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
3442 Rationalise path identification for XML file locations.
3444 * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Use `xmlfile()'
3445 function to locate `sysroot' map file; free memory when done.
3446 (pkgXmlDocument::UpdateSystemMap): Likewise.
3447 (sigpath): Static global variable disused; delete it.
3449 2010-03-01 Keith Marshall <keithmarshall@users.sourceforge.net>
3451 Extend package name search to include component packages.
3453 * src/pkgfind.cpp (pkgHasMatchingName): Remove; fold it into...
3454 (pkgXmlNode::FindPackageByName): ...this; augment to extend search
3455 within package definition elements, seeking a potential match on an
3456 included component package name or component class-implied name.
3458 * src/pkgkeys.h (class_key): New global string constant; declare it.
3459 * src/pkgkeys.c (class_key): Implement it.
3461 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3463 Bump version for next release cycle.
3465 * configure.ac (AC_INIT): Bump version suffix to alpha-2.
3467 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3469 mingw-get-0.1-mingw32-alpha-1 released.
3471 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3473 Prepare initial package release.
3475 * README: New file; use it to source release notes.
3477 * Makefile.in (SRCDIST_FILES): Use ...
3478 (LICENCE_FILES): ...this new macro; define it.
3479 (licdist): New build goal; implement it.
3480 (bindist): Require it; add alternative `zip' format package.
3482 * xml/profile.xml (repository): Set default `package-index' name.
3483 (system-map): Normalise spelling for default `sysroot' path names.
3485 2010-02-10 Keith Marshall <keithmarshall@users.sourceforge.net>
3487 Add directory/file records in installation manifests.
3489 * src/pkgkeys.h (dirname_key, filename_key): New strings; declare...
3490 * src/pkgkeys.c (dirname_key, filename_key): ...and implement them.
3492 * src/pkgproc.h (pkgArchiveProcessor::installed): New class member
3493 variable; declare it.
3494 (pkgTarArchiveInstaller::UpdateInstallationManifest): New method;
3497 * src/tarproc.cpp: Miscellaneous comment updates.
3498 (pkgTarArchiveInstaller): In constructor...
3499 (pkgTarArchiveInstaller::installed): ...use new member variable...
3500 (pkgArchiveProcessor::installed): ...inherited from this.
3501 (pkgTarArchiveInstaller::UpdateInstallationManifest): Implement and...
3502 (pkgTarArchiveInstaller::ProcessDataStream): ...use it.
3503 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
3505 2010-02-06 Keith Marshall <keithmarshall@users.sourceforge.net>
3507 Work around a deficiency in Microsoft's stat() implementation.
3509 * src/tarproc.cpp (pkgTarArchiveProcessor::ProcessDirectory): Don't
3510 pass a `pathname' argument with trailing slashes; strip them off.
3512 2010-02-06 Keith Marshall <keithmarshall@users.sourceforge.net>
3514 Add machinery for installation and packaging for distribution.
3516 * install-sh: New file; source it from autoconf distribution.
3518 * configure.ac (AC_PREFIX_DEFAULT): Assign it as `C:/MinGW'.
3519 (AC_PROG_MKDIR_P, AC_PROG_INSTALL, AC_PROG_LN_S): Invoke these.
3520 (STRIP): New output variable; use AC_CHECK_TOOL to define it.
3522 * Makefile.in (abs_top_srcdir): Define to AC_SUBST value.
3523 (PACKAGE_TARNAME, PACKAGE_VERSION): Define to AC_SUBST values.
3524 (prefix, exec_prefix, bindir, libexecdir, localstatedir): Likewise.
3525 (INSTALL, INSTALL_PROGRAM, INSTALL_SCRIPT, INSTALL_DATA): Likewise.
3526 (STRIP): New macro; define it using AC_CHECK_TOOL substitution.
3527 (mkinstalldirs): New macro; define it as AC_PROG_MKDIR_P result.
3528 (LN_S): New macro; define it as AC_PROG_LN_S result.
3529 (dist, srcdist, bindist): New build objectives; implement them.
3530 (install, installdirs, install-strip, maintainer-clean): Likewise.
3531 (SRCDIST_FILES, SRCDIST_SUBDIRS): New macros; define them.
3532 (PACKAGE_DISTNAME, PACKAGE_DISTVERSION): Likewise.
3533 (PACKAGE_DISTROOT, PACKAGE_ROOTVERSION): Likewise.
3534 (PACKAGE_CONFIG_DIR): Likewise.
3536 2010-02-02 Keith Marshall <keithmarshall@users.sourceforge.net>
3538 Implement package installer for tar archives.
3540 * src/pkgexec.cpp (pkgXmlDocument::Execute): Replace existing
3541 stub implementation of installer, using methods provided by...
3542 * src/pkgproc.h, src/tarproc.cpp: ...these new files, with trap...
3543 * src/pkgdeps.cpp (pkgXmlDocument::Schedule) [installed]: Add entry...
3544 (pkgActionItem::Selection) [to_remove]: ...for this; use it to detect
3545 `install' requests for packages which are aleady installed.
3547 * Makefile.in (CORE_DLL_OBJECTS): Add tarproc.$(OBJEXT); specify
3548 dependencies as appropriate.
3550 * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Don't commit
3551 newly created `sysroot' mapping records to disk; defer to...
3552 (pkgXmlDocument::UpdateSystemMap): ...this new method.
3553 (sigpath): Make it a global variable, with file (static) scope.
3555 * src/climain.cpp (pkgXmlDocument::UpdateSystemMap): Invoke it.
3557 * src/pkgkeys.h (download_key, modified_key, source_key): New global
3558 string variables; declare them, providing their implementations...
3559 * src/pkgkeys.c (download_key, modified_key, source_key): ...here.
3560 * src/pkgname.cpp (download_key, source_key): Use them.
3562 * src/pkginet.cpp (pkgActionItem::ArchivePath): Delete; replace...
3563 * src/mkpath.c (pkgArchivePath): ...with this free standing function.
3564 * src/mkpath.h (pkgArchivePath): Declare its prototype.
3566 * src/pkgbase.h (pkgActionItem::ArchivePath): Delete declaration.
3567 (pkgXmlDocument): Add a default constructor; implement as `inline'.
3568 (pkgXmlDocument::AddDeclaration): Use heap memory to allocate the new
3569 declaration object, instead of `auto' variable, to avoid scope error.
3570 (pkgXmlDocument::UpdateSystemMap): Declare it.
3572 2010-01-26 Keith Marshall <keithmarshall@users.sourceforge.net>
3574 Implement rudimentary dependency resolver.
3576 * src/pkgdeps.cpp: New file.
3578 * Makefile.in (CORE_DLL_OBJECTS): Add pkgdeps.$(OBJEXT) reference;
3579 establish header file dependencies.
3581 * src/pkgbase.h (to_remove, to_install, selection_types): New enum.
3582 (pkgActionItem::selection): Extend it to store as enumerated pair...
3583 (pkgActionItem::SelectPackage): New inline method; assign them.
3584 (pkgActionItem::Selection): New inline method; retrieve them.
3585 (pkgXmlNode::GetInstallationRecord): New method; declare it.
3587 * src/pkgexec.cpp (pkgActionItem): In constructor...
3588 (selection): ...initialise both references in enumerated pair.
3589 (pkgActionItem::GetReference): Use `Selection()' method.
3590 (pkgActionItem::SelectIfMostRecent): Ditto; also correct logic for
3591 making selection, and assign to `to_install' element.
3592 (pkgXmlDocument::Schedule): Don't update `request'.
3593 (pkgActionItem::Execute): Implement as stub.
3595 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): Use new
3596 `Selection()' method.
3598 * src/pkgkeys.h (yes_value, no_value): Declare new string constants.
3599 * src/pkgkeys.c (yes_value, no_value): Implement them.
3601 * src/vercmp.cpp: Update copyright notice.
3602 (pkgVersionInfo::operator<=): Bug fix; must test for `<', but had `>'.
3604 2010-01-23 Keith Marshall <keithmarshall@users.sourceforge.net>
3606 Avoid segmentation faults when processing invalid data streams.
3608 * src/pkgstrm.h: Update copyright notice.
3609 (pkgArchiveStream::IsReady): New pure virtual method.
3610 (pkgRawArchiveStream::IsReady): Provide inline implementation.
3611 (pkgGzipArchiveStream::IsReady): Likewise.
3612 (pkgBzipArchiveStream::IsReady): Likewise.
3613 (pkgLzmaArchiveStream::IsReady): Likewise.
3614 (pkgXzArchiveStream::IsReady): Likewise.
3616 * src/pkgstrm.cpp: Update copyright notice.
3617 (pkgLzmaArchiveStream, pkgXzArchiveStream) [fd == -1]: Decline to
3618 perform any form of read or decode processing.
3620 * src/pkginet.cpp (pkgInternetLzmaStreamingAgent): Use `fd = -2' as
3621 pseudo-descriptor for the pkgLzmaArchiveStream derived component of
3622 this internet data streaming class.
3624 2010-01-23 Keith Marshall <keithmarshall@users.sourceforge.net>
3626 Require liblzma >= liblzma-4.999.9beta_20091209-3-mingw32-dev
3628 * src/pkgstrm.h (LZMA_API_STATIC): Remove definition and associated
3629 comment; it was required to permit, (but not to enforce), linking to
3630 the static liblzma.a library, with earlier beta releases, but this
3631 anomaly has now been corrected.
3633 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
3635 Remove zlib sources from trunk.
3636 (Application builders should use free standing implementation of
3637 zlib, from MinGW's package distribution page on SourceForge).
3639 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
3641 Remove bzip2 sources from trunk.
3642 (Application builders should use free standing implementation of
3643 bzip2, from MinGW's package distribution page on SourceForge).
3645 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
3647 Add subsystem specific sysroot mapping facility.
3649 * src/pkghash.c: New file; required by...
3650 * src/sysroot.cpp: New file; it implements...
3651 (pkgXmlDocument::LoadSystemMap, pkgXmlNode::GetSysRoot): New methods.
3653 * src/pkgbase.h: Update copyright notice.
3654 (pkgXmlDocument::LoadSystemMap): Declare it.
3655 (pkgXmlDocument::AddDeclaration): New inline method.
3656 (pkgXmlDocument::SetRoot, pkgXmlDocument::Save): Likewise.
3657 (pkgXmlNode::GetSysRoot): Declare it.
3658 (pkgXmlNode::GetDocumentRoot): New inline method.
3659 (pkgXmlNode::AddChild, pkgXmlNode::DeleteChild): Likewise.
3661 * src/climain.cpp: Update copyright notice.
3662 (climain): Invoke pkgXmlDocument::LoadSystemMap() as required.
3664 * Makefile.in (CORE_DLL_OBJECTS): Add ...
3665 (pkghash.$(OBJEXT), sysroot.$(OBJEXT)): ...these; upate dependencies.
3666 (DEBUGLEVEL): New macro; define it.
3669 2010-01-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3671 Assign standardised keys for XML database lookup.
3673 * src/pkgkeys.h: New file; provide public key declarations.
3674 * src/pkgkeys.c: New file; implement them.
3676 * src/pkgbind.cpp: Use them; update copyright notice.
3677 * src/pkgexec.cpp, src/pkgfind.cpp, src/pkginet.cpp: Likewise.
3678 * src/pkgname.cpp, src/pkgspec.cpp: Likewise.
3680 * Makfile.in (CORE_DLL_OBJECTS): Add pkgkeys.$(OBJEXT); update all
3681 dependencies accordingly.
3683 2010-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
3685 Add CLI version reporting option.
3687 * configure.ac: Update copyright notice for new year.
3688 (COPYRIGHT_HOLDER): New AC_SUBST variable; define it.
3689 (YEARS_OF_ISSUE): New AC_SUBST variable; define it.
3690 (AC_CONFIG_FILES): Add `version.c'; source it from...
3692 * version.c.in: ...this new file.
3694 * Makefile.in: Update copyright notice for new year.
3695 (mingw-get$(EXEEXT)): Add dependency on `version.$(OBJEXT)'.
3696 (distclean): Add `version.c'.
3698 * configure: Regenerated.
3700 * src/clistub.c: Update copyright notice for new year.
3701 (options): New array of `struct option'; define and use it as the
3702 reference for `argv' parsing with `getopt_long_only()'.
3704 2009-12-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3706 Add CLI support for "update" action.
3708 * src/pkgtask.h (ACTION_UPDATE): Define it, derived from...
3709 (action_update): ...this new entry in anonymous enumeration.
3711 * src/pkgexec.cpp (action_name): Add "update" keyword identification.
3713 * src/pkgbase.h: Typo in comment; s/xwXmlDocument/wxXmlDocument/.
3714 (pkgXmlDocument::BindRepositories): Add `force_update' parameter...
3715 * src/pkgbind.cpp (pkgXmlDocument::BindRepositories): Use it to...
3716 (pkgXmlDocument::SyncRepository): ...invoke this method when passed as
3717 a `true' flag, in addition to (as previously) first time reference.
3719 * src/climain.cpp (climain): Interpret "update" keyword for...
3720 [ACTION_UPDATE]: ...passing state as `force_update' parameter to...
3721 (pkgXmlDocument::BindRepositories): ...this method, then...
3722 [!ACTION_UPDATE]: Follow with normal action processing.
3724 2009-12-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3726 Add status checking for Internet URL connections.
3728 * src/pkginet.cpp (pkgInternetAgent::QueryStatus): New method.
3729 (pkgInternetStreamingAgent::Get): Use it; set `dl_status' as return
3730 value, deferring failure diagnostics to callers, i.e. to...
3731 (pkgXmlDocument::SyncRepositories): ...this, and to...
3732 (pkgActionItem::DownloadArchiveFiles): ...this.
3734 2009-11-23 Keith Marshall <keithmarshall@users.sourceforge.net>
3736 Add package download and repository synchronisation machinery.
3738 * src/pkgstrm.h: New header file.
3740 * src/pkgbind.cpp, src/pkginet.cpp, src/pkgstrm.cpp,
3741 src/pkgfind.cpp, src/pkgname.cpp, src/keyword.c: New files.
3742 * Makefile.in (CORE_DLL_OBJECTS): Add build goals for them.
3744 * xml: New directory.
3746 * src/climain.cpp (climain): Establish repository bindings from...
3747 * xml/profile.xml: ...this new configuration file.
3749 2009-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3751 Add XML database bindings and preliminary action executive for CLI.
3753 * src/pkgbase.h, src/pkgtask.h,
3754 src/mkpath.h, src/vercmp.h: New header files.
3756 * src/climain.cpp, src/pkgexec.cpp, src/pkgspec.cpp,
3757 src/mkpath.c, src/vercmp.cpp, src/xmlfile.c: New files.
3759 * Makefile.in (CORE_DLL_OBJECTS): Define initial set of files...
3760 (mingw-get-0.dll): ...build them into this new DLL target; add it...
3761 (all): ...as prerequisite for this primary build goal.
3763 2009-11-12 Keith Marshall <keithmarshall@users.sourceforge.net>
3765 Avoid some potential GCC warnings.
3767 * src/clistub.c: Include process.h for `execv' prototype...
3768 (main): Cast `argv' to appropriately matched type when calling it.
3770 * src/pkginfo/driver.c: Include stdlib.h for `free' prototype.
3772 2009-11-11 Keith Marshall <keithmarshall@users.sourceforge.net>
3774 Create diagnostic message handler for CLI usage.
3776 * src/dmh.h: New header file; it defines the public interface.
3777 * src/dmh.cpp: New file; it implements the message handler.
3779 2009-11-05 Keith Marshall <keithmarshall@users.sourceforge.net>
3781 Correct some identified TinyXML issues.
3783 * tinyxml/tinyxml.h (IsWhiteSpace): Add FIXME annotation to flag
3784 probable redundancy of checks for '\n' and '\r'.
3785 * tinyxml/tinyxmlparser.cpp: Revert John E's 2008-08-09 change; remove
3786 all such redundancies in IsWhiteSpace() calls throughout.
3788 * tinyxml/tinyxml.cpp (TiXmlAttribute::SetDoubleValue): Correct format
3789 specification in sprintf()/snprintf() calls; "%lf" is invalid; replace
3792 2009-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
3794 Add CLI loader stub.
3796 * src/clistub.c: New file.
3797 * Makefile.in: Add build rule for it; build as...
3798 (mingw-get.exe): ...this; also add to...
3799 (clean): ...this goal.
3801 2009-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
3803 Set up build mechanism.
3805 * configure.ac, Makefile.in: New files.
3806 * .cvsignore (configure, autom4te.cache): Add to ignored files.
3808 2009-10-30 Keith Marshall <keithmarshall@users.sourceforge.net>
3810 Add GPL-v3 licensing terms.
3812 * COPYING: New file, sourced from gnu.org.
3814 2009-10-12 Keith Marshall <keithmarshall@users.sourceforge.net>
3816 Add pkginfo implementation.
3818 * src, src/pkginfo: New directories.
3819 * src/pkginfo/pkginfo.h, src/pkginfo/pkginfo.l: New files.
3820 * src/pkginfo/driver.c: New file.
3822 2009-10-12 Keith Marshall <keithmarshall@users.sourceforge.net>
3826 * All files (tdm-branch): Assign new branch tag.
3827 * All top-level files: Remove from trunk.
3828 * ChangeLog: New file.