1 2013-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
3 mingw-get-0.6.1-mingw32-beta-20130910-1 released.
5 * srcdist-doc/NEWS.in: Release notes updated.
6 * All files (r0-6-1-beta-20130910-1): Tag assigned.
8 2013-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
12 * src/dmhguix.cpp (DMH_PTY_GUARDBYTES): New manifest constant.
13 (dmhTypePTY::printf) [buffer full]: Use it; it defines a reserved byte
14 count, at end of buffer, where expansion or scroll out is triggered;
15 use memcpy() for scroll out, but avoid overlapping regions.
16 (dmhTypePTY::printf) [output == '\r']: Handle it.
18 * src/tarproc.cpp (create_output_stream): Improve diagnostic messages;
19 discriminate between file collision and other privilege violations.
20 (pkgArchiveProcessor::ExtractFile): Don't return a zero status code,
21 when the output stream could not be successfully opened, so that...
22 (pkgTarArchiveInstaller::ProcessDataStream): ...we may avoid writing a
23 spurious manifest entry here.
25 2013-09-06 Keith Marshall <keithmarshall@users.sourceforge.net>
27 Update version, pre-empting subsequent release.
29 * VERSION.m4 (VERSION_PATCH): Bump from zero to 1.
31 2013-09-04 Keith Marshall <keithmarshall@users.sourceforge.net>
33 mingw-get-0.6.0-mingw32-beta-20130904-1 released.
35 * srcdist-doc/NEWS.in srcdist-doc/README.in: Release notes updated.
36 * srcdist-doc/INSTALL.in: Installation instructions updated.
37 * All files (r0-6-0-beta-20130904-1): Tag assigned.
39 2013-08-26 Keith Marshall <keithmarshall@users.sourceforge.net>
41 Implement retry throttling for failed internet connections.
43 * src/pkginet.h (INTERNET_RETRY_ATTEMPTS): New macro; define it.
44 (INTERNET_RETRY_INTERVAL, INTERNET_DELAY_FACTOR): Likewise.
46 * src/pkginet.cpp (INTERNET_RETRY_REQUESTER): New typedef.
47 (pkgInternetAgent::connection_delay, pkgInternetAgent::delay_factor):
48 (pkgInternetAgent::retries, pkgInternetAgent::retry_interval): New
49 private member variables; declare them.
50 (pkgInternetAgent::OpenURL): Use them; they must be initialised by...
51 (pkgInternetAgent::SetRetryOptions): ...this new method; implement it.
52 (pkgActionItem::DownloadSingleArchive): Invoke it.
53 (pkgXmlDocument::SyncRepository): Likewise.
55 2013-08-24 Keith Marshall <keithmarshall@users.sourceforge.net>
57 Reassign default URL for download of setup tool components.
59 * aclocal.m4 (PACKAGE_DIST_DOMAIN, PACKAGE_DIST_DIR): New precious
60 variables; declare them as such, and assign default values by using...
61 (MINGW_AC_PACKAGE_DIST_URL): ...this new macro; implement it.
63 * configure.ac (MINGW_AC_PACKAGE_DIST_URL): Use it.
64 * Makefile.in (TAG_SCRIPT): Capture assigned URL; substitute it...
65 (PACKAGE_DIST_URL): ...for this replacement text marker...
66 * src/setup.rc (ID_DOWNLOAD_HOST_URI): ...here.
68 2013-08-21 Keith Marshall <keithmarshall@users.sourceforge.net>
70 Simplify guimain.exe duplicate instance prevention.
72 * src/guimain.cpp (WinMain): Delegate requisite checking to...
73 (WTK::RaiseAppWindow): ...this external toolkit function.
75 2013-08-13 Keith Marshall <keithmarshall@users.sourceforge.net>
77 Install licence as standard setup component.
79 * src/guimain.h src/setup.rc (ID_PACKAGE_GUI_DISTNAME): Macro
80 no longer required; delete definition.
82 * src/setup.cpp (pkgSetup::DoFirstTimeInstallation):
83 <pkgSetupAction> [ID_PACKAGE_GUI_DISTNAME]: Delete reference.
84 <pkgSetupAction> [ID_PACKAGE_BASE_DISTNAME]: Update reference; repeat
85 to explicitly address each of "bin", "gui", and "lic" components.
87 * Makefile.in (TAG_SCRIPT) [PACKAGE_GUI_DISTNAME]: Delete reference.
88 (TAG_SCRIPT) [PACKAGE_BASE_DISTNAME]: Redefine as template.
90 2013-08-13 Keith Marshall <keithmarshall@users.sourceforge.net>
92 More dialogue box adjustments.
94 * src/guimain.rc: Generally clean up white-space distribution.
95 (All dialogue templates): Use WS_TABSTOP consistently.
97 2013-08-13 Keith Marshall <keithmarshall@users.sourceforge.net>
99 Circumvent Windows-7 "Program Compatibility Assistant" misbehaviour.
101 * src/manifest.rc (assembly) <compatibility>: Add <supportedOS>
102 declarations for each of Vista, Win7, and (tentatively) Win8.
104 2013-07-30 Keith Marshall <keithmarshall@users.sourceforge.net>
106 Minor modification to "about" dialogue dismissal button.
108 * src/guimain.rc (IDD_HELP_ABOUT) <DEFPUSHBUTTON>: Change label text
109 to "Dismiss"; add WS_TABSTOP style.
111 2013-07-30 Keith Marshall <keithmarshall@users.sourceforge.net>
113 Match "about" dialogue caption to main window.
115 * src/guimain.rc (IDM_HELP_ABOUT) <MENUITEM>: Match it to...
116 (IDD_HELP_ABOUT) <CAPTION>: ...this; make it representative of...
117 (ID_MAIN_WINDOW_CAPTION): ...this.
119 2013-07-30 Keith Marshall <keithmarshall@users.sourceforge.net>
121 Implement "icon legend" display as "help" menu item.
123 * src/guimain.rc (IDM_HELP_LEGEND): Make menu item active; define
124 template for the dialogue box which it is to call out.
126 * src/guiexec.cpp (AppWindowMaker::OnCommand) [IDM_HELP_LEGEND]: New
127 case handler; implement dialogue box call out, as a variation on...
128 [IDM_HELP_ABOUT]: ...this; modify it accordingly.
130 2013-07-30 Keith Marshall <keithmarshall@users.sourceforge.net>
132 Avoid discarding pending changes when catalogue is updated.
134 * src/guimain.h (IDD_CONFIRMATION): New manifest constant; define it.
135 (AppWindowMaker::ConfirmActionDialogue): New static method; declare it.
136 (AppWindowMaker::ConfirmActionRequest): New method; declare it.
138 * src/guimain.rc (IDD_CONFIRMATION): Implement new dialogue template.
140 * src/guiexec.cpp (pkgConfirmAction, pkgConfirmActionClient): New
141 static variables; they are used as pseudo-arguments, together with...
142 (DIALOGUE_DISPATCH, DIALOGUE_RESPONSE, DIALOGUE_CHKSTATE): ...these
143 new macros; define them; they facilitate the implementation of...
144 (AppWindowMaker::ConfirmActionDialogue): ...this; implement it.
145 (AppWindowMaker::ConfirmActionRequest): Implement it; use it...
146 (AppWindowMaker::OnCommand) [IDM_REPO_UPDATE]: ...here, and...
148 * src/pkgdata.cpp (AppWindowMaker::OnClose): ...here.
150 2013-07-26 Keith Marshall <keithmarshall@users.sourceforge.net>
152 Make a minor GUI layout adjustment.
154 * src/pkgview.cpp (VSASH_INIT_POS): Increment from 0.30 to 0.35; this
155 sets the initial height of the package list pane to be 35% of the main
156 window height, which, at the default initial window size, neatly fits
157 the entire "Basic Setup" package group, without scrolling, on my
158 1366x768 pixel Win7-VM display.
160 2013-07-25 Keith Marshall <keithmarshall@users.sourceforge.net>
162 Implement setup tool installer "plugin".
164 * src/setup.h (SETUP_HOOK_RUN_INSTALLER): Define request code.
166 * src/dllhook.cpp (run_basic_system_installer): Implement handler...
167 (setup_hook) [SETUP_HOOK_RUN_INSTALLER]: ...and invoke it.
168 (setup_hook) [default]: Collect diagnostics in common message digest.
169 (AppWindowMaker::SetupHookInvoked): Define and initialise it; in this
170 context, which does not conflict with prior definition in guimain.exe,
171 it must always remain true.
173 * src/setup.cpp (SetupTool) [constructor]: Invoke...
174 (SetupTool::DispatchSetupHookRequest): ...this, on user's request...
175 (SETUP_HOOK_RUN_INSTALLER): ...with this action code; this replaces...
176 (SetupTool::RunInstalledProgram): ...one reference instance for this
177 external program fork, leaving only one such reference remaining;
178 declare it to be "inline".
180 * Makefile.in (GUIMAIN_LIB_OBJECTS): New macro; define it. It
181 abstracts a subset of the object modules originally enumerated...
182 (GUIMAIN_OBJECTS): ...here, whence use it; also incorporate into...
183 (SETUP_DLL_OBJECTS): ...this.
184 (SETUP_DLL_LIBS): Make it equivalent to...
185 (GUIMAIN_LIBS): ...this.
186 (mingw-get-setup-0.dll): Use...
187 (GUI_LDFLAGS): ...this, to specify linking options, rather than...
190 2013-07-25 Keith Marshall <keithmarshall@users.sourceforge.net>
192 Add "Basic Setup" as a built-in standard package group.
194 * src/guimain.h (AppWindowMaker::SetupToolInvoked): New private
195 static member variable; declare it.
197 * src/guimain.cpp (AppWindowMaker::SetupToolInvoked): Define and
198 initialise it; this instance is specific to guimain.exe, where it
199 must always remain false.
201 * src/pkgtree.cpp (PKG_AFFILIATE_ALL): New constant; define it.
202 (load_package_group_hierarchy): Use it to specify those groups which
203 have all packages as affiliates, rather than just first root group.
204 (group_attributes): New static inline function; implement it, then...
205 (is_affiliated) [PKG_AFFILIATE_ALL]: ...use it to identify groups
206 which are specified as having all packages as affiliates.
207 (AppWindowMaker::InitPackageTreeView): Construct a temporary XML
208 specification for the "Basic Setup" package group, thence add it to
209 the package tree view; mark it as default group selection when...
210 [AppWindowMaker::SetupToolInvoked]: ...this is true.
212 2013-07-14 Keith Marshall <keithmarshall@users.sourceforge.net>
214 Implement GUI filtering of package list by group selection.
216 * src/pkgbase.h (pkgXmlNode::IsVisibleGroupMember):
217 (pkgXmlNode::IsVisibleClass): New inline methods; declare them.
218 (pkgXmlNode::MapPackageGroupHierarchy): New inline method; declare it.
219 (pkgXmlNode::SetPackageGroupHierarchyMapper): Likewise; it sets up...
220 (pkgXmlNode::PackageGroupHierarchyMapper): ...this new private static
221 function pointer; declare it as a function reference, in terms of...
222 (pkgXmlNode::GroupHierarchyMapper): ...this new typedef; define it.
224 * src/guimain.h (AppWindowMaker::PackageTreeView): Make it static.
225 (AppWindowMaker::IsPackageGroupAffiliate): Declare new static method.
227 * src/pkgbind.cpp (pkgRepository::GetPackageList): Make it invoke...
228 (pkgXmlNode::MapPackageGroupHierarchy): ...this; implement it.
230 * src/pkglist.cpp (pkgXmlNode::IsVisibleGroupMember): Implement it.
231 (pkgXmlNode::IsVisibleClass): Likewise; just provide a stub, for now.
232 (pkgListViewMaker::Dispatch): Use them to filter package list content.
233 (AppWindowMaker::UpdatePackageList): Redraw main window when done.
235 * src/pkgtree.cpp [_WIN32_IE >= 0x0400]: Require this.
236 (AppWindowMaker::PackageTreeView): Define and initialise it.
237 (AppWindowMaker::InitPackageTreeView): Extend implementation; use...
238 (map_package_group_hierarchy_recursive, load package_group_hierarchy):
239 (is_existing_group, map_package_group_hierarchy): ...these; implement
240 them locally, as file scoped static helper functions.
241 (select_key): New static local string constant; define it.
242 (pkgInitCategoryTreeGraft): Use it; also have it invoke...
243 (pkgXmlNode::SetPackageGroupHierarchyMapper): ...this; implement it.
244 (AppWindowMaker::IsPackageGroupAffiliate): Implement it; it uses...
245 (is_affiliated, is_child_affiliate): ...these helpers; provide them as
246 locally implemented, file scoped static functions.
248 * src/pkgdata.cpp (AppWindowMaker::OnNotify): Add handler for...
249 [ID_PACKAGE_TREEVIEW && TVN_SELCHANGED]: ...this notification.
251 2013-07-12 Keith Marshall <keithmarshall@users.sourceforge.net>
253 Correct a static string buffer aliasing issue.
255 * src/setup.cpp (SetupTool::setup_dll): New inline method; it ensures
256 that the buffer within approot_path() refers to the setup helper DLL.
257 (SetupTool::InitialiseSetupHookAPI): Use it, when loading the DLL.
258 (SetupTool::SetupTool): Use it again, when subsequently calling...
259 (_wunlink): ...this; it is now the preferred API, replacing...
260 (DeleteFileW): ...this; do not blindly assume that...
261 (SetupTool::dll_name): ...this remains unchanged between references;
262 it is an alias for the static buffer within approot_path().
264 2013-07-12 Keith Marshall <keithmarshall@users.sourceforge.net>
266 Add a custom profile for use by the setup tool.
268 * xml/setup.xml: New file.
270 2013-07-03 Keith Marshall <keithmarshall@users.sourceforge.net>
272 Improve handling of workspace clean-up requests.
274 * Makefile.in (mostlyclean): New rule; it replaces...
275 (clean): ...original intent delegated to 'mostlyclean'; retained and
276 augmented to remove all content specified by 'mostlyclean', plus...
277 (version.c, verinfo.h): ...these additional generated files.
278 (distclean): Modified; 'version.c' now removed by 'clean'.
280 2013-07-03 Keith Marshall <keithmarshall@users.sourceforge.net>
282 Correct an omission from the source code distribution.
284 * Makefile.in (BUILD_AUX_FILES): Add makeopts.m4; this was omitted
285 from the 2013-04-10 modification to fix MinGW-Bug #1601.
287 2013-07-03 Keith Marshall <keithmarshall@users.sourceforge.net>
289 Incorporate foundation for setup tool implementation.
291 * src/setup.cpp: New file; it implements the setup program.
292 * src/setup.rc: New file; it implements setup program resources.
294 * src/dllhook.cpp: New file; it implements a DLL bridging API to
295 facilitate invocation of mingw-get-0.dll functions from the setup
296 program, after both DLLs have been explicitly loaded at run time.
298 * src/setup.h: New file; it declares the interface between the
299 setup program and the preceding mingw-get bridging DLL.
301 * src/guimain.h: Add filter to exclude declarations specific to...
302 [IMPLEMENTATION_LEVEL == PACKAGE_BASE_COMPONENT]: ...this case, when
303 included by compilation units specific to the setup tool components.
304 (ID_MAIN_DIALOGUE_CAPTION, ID_DOWNLOAD_HOST_URI): New resource IDs.
305 (ID_PACKAGE_BASE_DISTNAME, ID_PACKAGE_DATA_DISTNAME): Likewise.
306 (ID_PACKAGE_GUI_DISTNAME): Likewise; define them.
308 * Makefile.in (all): Respecify it, in terms of...
309 (all-core, all-setup): ...these new rules; define them, and also...
310 (all-setup-exe, all-setup-dll): ...these, to force building of...
311 (mingw-get-setup.$EXEEXT, mingw-get-setup-0.dll): ...these binaries.
312 (setup.res.$OBJEXT): Specify prerequisites, as for guimain.res.$OBJEXT
313 (SETUP_TOOL_OBJECTS, SETUP_TOOL_LIBS): New macros; define them.
314 (SETUP_DLL_OBJECTS, SETUP_DLL_LIBS, SETUP_DISTNAME): Likewise.
315 (TAG_SCRIPT): Add resource script substitution definitions for...
316 (ID_PACKAGE_BASE_DISTNAME, ID_PACKAGE_DATA_DISTNAME): ...these...
317 (ID_PACKAGE_GUI_DISTNAME): ...and this.
319 2013-07-01 Keith Marshall <keithmarshall@users.sourceforge.net>
321 Add subprocess argument vector construction helpers.
323 * src/argwrap.c src/argwrap.h: New files; they implement an API for
324 construction of argument vectors, with appropriate quoting, to be
325 passed to MS-Windows exec'd subprocesses. Rewritten from scratch,
326 without reference to any prior GPL licensed implementation, with MIT
327 style licence, these provide the foundation for a possible future
328 libmingwex.a implementation; they are included here, since no such
329 implementation is currently available.
331 2013-06-28 Keith Marshall <keithmarshall@users.sourceforge.net>
333 Avoid inadvertent overwrite of existing files.
335 * src/mkpath.c (_O_NEWFILE): Conditionally specify attributes...
336 [IMPLEMENTATION_LEVEL == SETUP_TOOL_COMPONENT]: ...as they were...
337 [IMPLEMENTATION_LEVEL != SETUP_TOOL_COMPONENT]: ...else, include
338 _O_EXCL in the specified set; exclude _O_TRUNC.
340 * src/tarproc.cpp (dmh_notify_extraction_failed): New static inline
341 function; it encapsulates the diagnostic message factored out from...
342 (pkgArchiveProcessor::ExtractFile): ...here, whence use it.
343 (create_output_stream): Also used in this new static inline function;
344 it adds an appropriate diagnostic wrapper around set_output_stream(),
345 when _O_EXCL prevents overwrite of an existing file.
346 (pkgArchiveProcessor::SetOutputStream): Use it.
348 2013-06-27 Keith Marshall <keithmarshall@users.sourceforge.net>
350 Improve diagnostics for tar archive processing faults.
352 * src/pkgproc.h (TAR_ARCHIVE_FORMAT_ERROR): New constant; define it.
353 (TAR_ARCHIVE_DATA_READ_ERROR, TAR_ARCHIVE_DATA_WRITE_ERROR): Likewise.
355 * src/tarproc.cpp (dmh_notify_archive_data_exhausted): New static
356 inline function; implement it.
357 (pkgTarArchiveProcessor::GetArchiveEntry) [short header]: Use it.
358 (pkgArchiveProcessor::ExtractFile) [TAR_ARCHIVE_DATA_READ_ERROR]:
359 Likewise, use it here; also explicitlycheck for, and diagnose...
360 [TAR_ARCHIVE_DATA_WRITE_ERROR]: ...this; also add a further catch all
361 case, to diagnose any other unexpected condition.
362 (pkgTarArchiveProcessor::GetArchiveEntry) [bad checksum]: Diagnose it.
363 (pkgTarArchiveProcessor::Process): Return appropriate status codes.
364 (pkgTarArchiveProcessor::ProcessEntityData): Likewise.
366 2013-06-24 Keith Marshall <keithmarshall@users.sourceforge.net>
368 Facilitate version synchronisation for mingw-get-setup.
370 * VERSION.m4: New file.
371 * configure.ac: Include it, and...
372 (AC_INIT): ...use it.
374 2013-06-21 Keith Marshall <keithmarshall@users.sourceforge.net>
376 Keep version strings clean when release class is unspecified.
378 * Makefile.in (RC_SCRIPT, VERSION_SCRIPT): Simplify; assign specified
379 release class to local variable; delegate release tag generation to...
380 (TAG_SCRIPT): ...this; check release class variable is not an empty
381 string, before inserting it into the generated release tag.
383 2013-06-20 Keith Marshall <keithmarshall@users.sourceforge.net>
385 Rework defective assignment of product version resources.
387 * Makefile.in (BUILD_TAG): Avoid creating an empty build.tag file.
388 (PACKAGE_VERINFO_SCRIPT): Ensure that the build tag is generated as a
389 string of non-zero length. Do not assume that it comprises only two
390 elements; extract the final two, as the third and fourth elements
391 of the product version meta-data record.
393 2013-06-19 Keith Marshall <keithmarshall@users.sourceforge.net>
395 Rework defective package build time-stamping logic.
397 * Makefile.in (%.time): Make it explicitly touch its target; the
398 2013-05-15 changes, to reduce redundancy, didn't work as expected.
399 (%.tag): Add a side effect; make it also explicitly touch %.time.
400 (%.tagged.time): This is now redundant; remove it.
402 2013-06-14 Keith Marshall <keithmarshall@users.sourceforge.net>
404 Collect distributable package files in user specified directory.
406 * Makefile.in (distdir): New macro; define default as abs_builddir.
407 (srcdist, bindist, licdist): Use it; direct generated tarballs to it.
408 (%.txt.dist): New pattern rule; define, and use it to make a copy...
409 (readme.txt): ...of this, in distdir, when processing...
410 (dist): ...this build objective.
412 2013-06-14 Keith Marshall <keithmarshall@users.sourceforge.net>
414 Handle Microsoft's 32-bit vs. 64-bit time_t ambiguity.
416 * src/apihook.c: New file; it provides...
417 (have_api): ...this helper; it checks for availability of any specific
418 API function, within a specific system DLL, (MSVCRT.DLL by default).
420 * src/tarproc.cpp (have_utime64_api): New inline function; it wraps...
421 (have_api): ...this, to check whether MSVCRT.DLL provides...
422 (commit_saved_entity) [_utime64]: ...this; use if available, else...
423 (commit_saved_entity) [!_utime64]: ...fall back to using...
426 * Makefile.in (CORE_DLL_OBJECTS): Add apihook.$OBJEXT
428 2013-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
430 Facilitate package extraction and registration at setup time.
432 * src/pkgproc.h (IMPLEMENTATION_LEVEL): Add filters to facilitate
433 implementation of distinct setup time archive processing behaviour.
434 (pkgArchiveProcessor::save_on_extract): New property; declare it.
435 (pkgArchiveProcessor::SaveExtractedFiles): New method; implement it.
436 (pkgArchiveProcessor::SetOutputStream): New method; declare it.
438 * src/tarproc.cpp (IMPLEMENTATION_LEVEL): Add filters to implement
439 distinct setup time specific archive processing behaviour.
440 (pkgArchiveProcessor::SetOutputStream): Implement it.
441 (pkgTarArchiveExtractor::ProcessDataStream): Use it.
442 (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
444 2013-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
446 Implement some GUI progress metering dialogue enhancements.
448 * src/pkgbase.h (pkgProgressMeter): Don't pre-empt private features
449 of derived progress metering classes; hence, we no longer need this...
450 (AppWindowMaker): ...as a forward class declaration; delete it.
452 * src/guimain.rc (IDD_REPO_UPDATE): Resize, and adjust layout.
453 (IDD_PROGRESS_VAL, IDD_PROGRESS_MAX, IDD_PROGRESS_PCT): Add these
454 dialogue box progress counter display elements.
456 * src/pkgbind.cpp (pkgRepository::GetPackageList): Adjust style of
457 progress status messages, to suit reporting via GUI dialogue box or
458 CLI console, as appropriate.
460 * src/guiexec.cpp (ProgressMeterMaker): Redefine class, in terms of...
461 (PROGRESS_METER_CLASS): ...this new generic class name macro.
462 Reimplement private members, previously inherited from base class;
463 adjust class constructor to ensure that they are initialised.
464 Delete explicit destructor; a default destructor is now sufficient.
465 (ProgressMeterMaker::SetRange, ProgressMeterMaker::SetValue):
466 (ProgressMeterMaker::Annotate): Factor out; reimplement them...
468 * src/pmihook.cpp: ...in this new file, as generalised methods of...
469 (PROGRESS_METER_CLASS): ...the class named by this macro.
470 (PROGRESS_METER_CLASS::PutVal): New private method; implement it.
472 2013-05-31 Keith Marshall <keithmarshall@users.sourceforge.net>
474 Avoid a potential macro definition conflict.
476 * src/pkgbase.h (strcasecmp) [__MINGW32__]: Use string.h definition.
478 2013-05-15 Keith Marshall <keithmarshall@users.sourceforge.net>
480 Streamline build-time dependency tracking procedures.
482 * Makefile.in (DEPFLAGS): Adjust for simultaneous .o/.d generation.
483 (RC_DEPFLAGS): New macro; define dependency generation flags for the
484 resource compiler, which can't handle the new DEPFLAGS methodology.
485 (%.c, %.cpp, %.rc): Simplify $OBJEXT generation procedures.
486 (%.time): Remove redundantly replicated build-time procedure from...
487 (%.tagged.time): ...this; just make it a prerequisite.
489 2013-05-15 Keith Marshall <keithmarshall@users.sourceforge.net>
491 Add resources for specification of product version.
493 * src/verinfo.rc src/verinfo.h.in: New files; included by...
494 * src/guimain.rc: ...this, whence also specify version information...
495 (VERINFO_FILE_NAME, VERINFO_INTERNAL_NAME, VERINFO_FILE_DESCRIPTION):
496 (VERINFO_FILE_VERSION, VERINFO_FILE_VERSION_STRING): ...per these new
497 manifest constant macros; define them, with propagation to...
498 (ID_MAIN_WINDOW_CAPTION): ...this; keep it consistent.
500 * Makefile.in (TAG_SCRIPT): Include invocation for...
501 (PACKAGE_VERINFO_SCRIPT): ...this new macro; defined to interpret...
502 (PACKAGE_VERINFO_PRODUCT_VERSION): ...this new substitution template;
503 it is used in src/verinfo.h.in, whence verinfo.h is generated.
504 (RC_INCLUDES): Add current working directory, for...
505 (verinfo.h): ...this; add rule and dependencies to generate it.
507 2013-05-14 Keith Marshall <keithmarshall@users.sourceforge.net>
509 Make application manifest resource definition reusable.
511 * src/manifest.rc: New file; factor content from...
512 * src/guimain.rc: ...here, whence include it.
514 2013-05-08 Keith Marshall <keithmarshall@users.sourceforge.net>
516 Extend DMH services to delay-loaded DLL clients.
518 * src/dmhcore.h (dmh_bind): New function; declare it.
519 * src/dmhcore.cpp (dmh_bind): Implement it; it provides an API through
520 which the setup tool makes its existing DMH services available to post
521 install hooks in mingw-get-0.dll, which cannot be loaded until after
522 the providing package has been downloaded and unpacked.
524 2013-05-08 Keith Marshall <keithmarshall@users.sourceforge.net>
526 Avoid unnecessary command line globbing in GUI applications.
528 * src/guimain.cpp src/guistub.cpp (_CRT_glob): Declare as extern "C";
529 initialise to zero, so overriding the runtime start-up default.
531 * src/rites.c [! IMPLEMENT_INITIATION_RITES] (_CRT_glob): Initialise
532 to zero here too; lastrites.exe doesn't need globbing either.
534 2013-05-04 Keith Marshall <keithmarshall@users.sourceforge.net>
536 Address some GCC-4.7 string initialisation warnings.
538 * src/pkglist.cpp (AppWindowMaker::InitPackageListView): Declare all
539 headings[].text initialisers as 'const'; cast to 'char *' as required.
540 (pkgListViewMaker::Dispatch): Ditto, when inserting the 'const' empty
541 string into the list, as a component class value.
543 * src/pkgdata.cpp (AppWindowMaker::InitPackageTabControl): Declare all
544 TabLegend[] initialisers as 'const'; cast to 'char *' as required.
546 2013-05-02 Keith Marshall <keithmarshall@users.sourceforge.net>
548 Correct a spin wait thread synchronisation issue.
550 * src/pkgnget.cpp (pkgDownloadMeterGUI::SpinWait): Handle stop
551 requests explicitly; acknowledge when waiting thread has stopped.
552 (pkgDownloadMeterGUI::SpinWaitAction): Raise explicit stop requests;
553 wait for acknowledgement that waiting thread has stopped.
555 2013-04-23 Keith Marshall <keithmarshall@users.sourceforge.net>
557 Select compressed data streaming filters for use by setup tool.
559 * src/pkgstrm.cpp [IMPLEMENTATION_LEVEL != PACKAGE_BASE_COMPONENT]:
560 Exclude the implementations of all decompression filters, except...
561 (pkgXzArchiveStream): ...this, together with its requisite methods...
562 (pkgArchiveStream, pkgLzmaArchiveStream): ...from these.
564 2013-04-23 Keith Marshall <keithmarshall@users.sourceforge.net>
566 Adapt internet download agent for use by setup tool.
568 * src/pkgbase.h: More code rearrangement, exposing...
569 (safe_strcmp): ...this in any implementation context, controlled...
570 [USES_SAFE_STRCMP && ! HAVE_SAFE_STRCMP]: ...by this; when true...
571 (HAVE_SAFE_STRCMP): ...define this to 1, (must be non-zero).
572 [IMPLEMENTATION_LEVEL == PACKAGE_BASE_COMPONENT]: Ensure that...
573 (USES_SAFE_STRCMP): ...this is defined to 1, (i.e. non-zero).
574 (EXTERN_C): Relocate macro definition...
575 * src/pkgimpl.h: ...to here; add complementary implementation of...
576 (BEGIN_C_DECLS, END_C_DECLS): ...these new macros; define them.
578 * src/pkginet.h (pkgDownloadMeter::SpinWait): New static method;
579 declare it as inline, to be implemented elsewhere, delegating to...
580 (pkgDownloadMeter::SpinWaitAction): ...this new protected virtual
581 method; declare and implement it inline, as a "do nothing" base
582 class method, to be optionally overridden in a derived class.
584 * src/pkginet.cpp (pkgDownloadMeter::SpinWait): Implement it.
585 (pkgInternetAgent::OpenURL): Use it to invoke SpinWaitAction().
586 (USES_SAFE_STRCMP): Define as 1; (safe_strcmp() is required).
587 [IMPLEMENTATION_LEVEL != PACKAGE_BASE_COMPONENT]: Filter out code
588 which may not be required in more specialised contexts, then...
589 [IMPLEMENTATION_LEVEL == SETUP_TOOL_COMPONENT]: ...add specialised
590 variants specific to this.
592 * src/pkgnget.cpp [IMPLEMENTATION_LEVEL != PACKAGE_BASE_COMPONENT]:
593 Filter out code which may not be required in more specialised context.
594 (dmh_setpty): Provide locally declared prototype for external function.
595 (pkgDownloadMeterGUI): Add pseudo-terminal diagnostic message window.
596 (pkgDownloadMeterGUI::SpinWaitAction): Declare and implement GUI
597 specific method specialisation; it invokes a thread, running...
598 (pkgDownloadMeterGUI::SpinWait): ...this new static method overload.
600 2013-04-19 Keith Marshall <keithmarshall@users.sourceforge.net>
602 Implement pre-emptive update issue number identification.
604 * src/pkgkeys.h (serial_number): Declare function prototype.
605 * src/pkginet.cpp (serial_number): Implementation remains here;
606 promote from static to extern "C".
608 * src/pkgbind.cpp (value_assumed_new): New char constant; define it.
609 (pkgRepository::expected_issue): New private member var; declare and...
610 (pkgRepository::pkgRepository): ...initialise it, assuming new.
611 (pkgRepository::GetPackageList): Assign pre-emptively declared issue
612 number, (from package-list references), to 'expected_issue'; compare it
613 with 'current_issue' number recorded within locally stored catalogue.
614 [current_issue >= expected_issue]: Suppress redundant download; adjust
615 diagnostic messages as appropriate.
617 2013-04-10 Keith Marshall <keithmarshall@users.sourceforge.net>
619 Fix MinGW-Bug #1601 (on new issues tracker).
621 * aclocal.m4 (makeopts.m4): New build-aux module; include it.
622 (MINGW_AC_PROG_LEX): New macro; implement it.
624 * configure.ac (AC_INIT): Make version number tripartite.
625 (MINGW_AC_MAKE_NO_PRINT_DIRECTORY): Use this new makeopts.m4 macro.
626 (MINGW_AC_PROG_LEX): Use it, in place of...
627 (AC_PROG_LEX): ...this.
629 * Makefile.in (MAKE): New macro; assign using autoconf's SET_MAKE.
630 (QUIET_MAKE): New macro; derive it from $(MAKE) --no-print-directory.
631 (LEX_COMMAND, LEX_COMMAND_ABORT): New macros; define them.
632 (LEX_MISSING, LEX_MISSING_MESSAGE, LEX_OUTPUT): Likewise.
633 (FORMAT_MESSAGE, MESSAGE_FOLD_WIDTH): Likewise; implemented from...
634 (AWK_CLEAR_LINE_BUFFER, AWK_FLUSH_BUFFER, AWK_PRINT_AND_CLEAR_BUFFER):
635 (AWK_COLLECT_MESSAGE, AWK_COLLECT_BLANK_LINE, AWK_PRINT_LINE_BUFFER):
636 ...this collection of internal helper macros; define them.
637 (%.c: %.l): Replacement for built-in rule; it handles "missing lex" in
638 a manner consistent with expectations of autoconf's AC_PROG_LEX.
639 (execute-command): New phoney build goal; it is used with...
640 (WITH_REQUEST): ...this new macro, to invoke commands recursively.
642 2013-03-25 Keith Marshall <keithmarshall@users.sourceforge.net>
644 Adapt DMH for use in setup tool.
646 * src/dmh.cpp: File renamed to...
647 * src/dmhcore.cpp: ...this; some code rearranged, to facilitate...
648 [IMPLEMENTATION_LEVEL == PACKAGE_BASE_COMPONENT]: ...marking of code
649 sections which are required in the base package build, but which may
650 be filtered out of the build context for the setup tool.
652 * src/guidmh.cpp: File renamed to this...
653 * src/dmhguix.cpp: ...this; also add marking for...
654 [IMPLEMENTATION_LEVEL == PACKAGE_BASE_COMPONENT]: ...sections which
655 may be filtered out of the build context for the setup tool.
656 (dmhTypePTY::printf): Improve stratagem for output.
658 * Makefile.in (CORE_DLL_OBJECTS, GUIMAIN_OBJECTS): Adjust references
659 to renamed source files.
661 2013-03-22 Keith Marshall <keithmarshall@users.sourceforge.net>
663 Enable context hooks for build time code filtering.
665 * src/pkgimpl.h: New file; it defines...
666 (PACKAGE_BASE_COMPONENT, SETUP_TOOL_COMPONENT): ...these contexts;
667 either of these may be selected, by defining as manifest value for...
668 (IMPLEMENTATION_LEVEL): ...this; default is PACKAGE_BASE_COMPONENT.
670 * src/pkgbase.h: Include pkgimpl.h
671 [IMPLEMENTATION_LEVEL != PACKAGE_BASE_COMPONENT]: Occlude content.
673 2013-03-21 Keith Marshall <keithmarshall@users.sourceforge.net>
675 Specify additional files for clean-up.
677 * Makefile.in (distclean): Additionally specify...
678 (build.tag, build.time): ...these, as removable files.
680 2013-03-21 Keith Marshall <keithmarshall@users.sourceforge.net>
682 Add a missing distribution dependency.
684 * Makefile.in (srcdist): Explicitly require...
685 (pkginfo.c): ...this; previously, it was only an implicit build time
686 requirement, and may not have persisted until distribution time.
688 2013-03-21 Keith Marshall <keithmarshall@users.sourceforge.net>
690 Implement by-name association of resource scripts with programs.
692 * src/guidata.rc: Renamed as...
693 * src/guimain.rc: ...this, reflecting its association with...
694 * src/guimain.cpp: ...this program source.
696 * Makefile.in (GUIMAIN_OBJECTS): Update dependency...
697 (%.$OBJEXT:%.rc): ...replacing use of this pattern rule...
698 (%.res.$OBJEXT:%.rc): ...with this.
700 2013-01-18 Keith Marshall <keithmarshall@users.sourceforge.net>
702 Make GUI support visual styles in current Windows versions.
704 * src/guidata.rc: Add an appropriate inline manifest resource.
706 * src/guiexec.cpp (AppWindowMaker::Invoked): Ensure UpdateWindow() is
707 called after the initial call to AdjustLayout(); this is required to
708 ensure that all child windows are properly displayed from the outset.
710 * src/pkgview.cpp (AppWindowMaker::LayoutEngine):
711 [ID_PACKAGE_DATASHEET]: Adjust the top position of the frame, to make
712 the border coincide with the bottom border of the tab strip above.
714 2013-01-12 Keith Marshall <keithmarshall@users.sourceforge.net>
716 Merge gui-dev branch head to master; close gui-dev branch.
718 * configure.ac (AC_INIT): Reset version to 0.6; reset all package
719 files to state prevailing at gui-dev branch head.
721 2013-01-11 Keith Marshall <keithmarshall@users.sourceforge.net>
723 Create release branch for further r0.5 development.
725 * configure.ac (AC_INIT): Bump version number to 0.5.1; assign branch
726 label (mercurial bookmark) as "r0-5-1" for all files; (this is not to
727 be released, at this time).
729 2013-01-10 Keith Marshall <keithmarshall@users.sourceforge.net>
731 Implement data sheet compiler for list of installed files.
733 * src/pkgdata.cpp: #include pkgproc.h; it furnishes...
734 (pkgManifest): ...this class declaration, which is required by...
735 (DataSheetMaker::DisplayFilesManifest): ...this new private inline
736 method; declare and implement it; subsequently, invoke it...
737 (DataSheetMaker::OnPaint) [PKG_DATASHEET_INSTALLED_FILES]: ...here.
738 (pkgTroffLayoutEngine::WriteLn): Correct a defect in handling of
739 excess-length unbreakable "words" outside the viewport; previously
740 they were not dropped from the input queue, resulting in repeated
741 reprocessing in an infinite loop.
743 2013-01-09 Keith Marshall <keithmarshall@users.sourceforge.net>
745 Include release tags in GUI displayed package versions.
747 * src/pkglist.cpp (pkgVersionString) [ReleaseStatus != NULL]:
748 Append ReleaseStatus and ReleaseIndex to generated version string.
750 2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
752 Fix enumeration of pending install actions for scheduled upgrades.
754 * src/pkgdata.cpp (pkgActionItem::EnumeratePendingActions):
755 [action == ACTION_UPGRADE && classified == ACTION_INSTALL]: Enumerate
756 upgrade as a special case of the install classification.
758 2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
760 Implement "Mark All Upgrades" GUI capability.
762 * src/guimain.h (IDM_REPO_APPLY): Renumbered; make room for...
763 (IDM_REPO_MARK_UPGRADES): ...this new constant; define it.
765 * src/guidata.rc (IDM_REPO_MARK_UPGRADES): New option; add it...
766 (ID_MAIN_WINDOW_WINDOW) [Installation]: ...to this drop-down menu.
768 * src/pkgbase.h (pkgActionItem::SuppressRedundantUpgrades): New
769 public inline method; declare it.
771 * src/guiexec.cpp (AppWindowMaker::OnCommand):
772 [IDM_REPO_MARK_UPGRADES]: Add case handler for this menu selection.
773 (pkgActionItem::SuppressRedundantUpgrades): New method; implement it.
775 2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
777 Avoid unnecessary reloading of package list.
779 * src/guiexec.cpp (AppWindowMaker::OnCommand) [IDM_REPO_APPLY]:
780 Do not reload package list after processing; update it in place.
782 2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
784 Avoid potential heap corruption in action scheduler.
786 * src/guiexec.cpp (pkgActionItem::Clear): Factor out; relocate to...
787 * src/pkgexec.cpp (pkgActionItem::Clear): ...here; this keeps all use
788 of new and delete operators on the same side of the EXE/DLL boundary
789 as the constructor and destructor for pkgActionItem objects.
790 (pkgActionItem::Schedule): Ensure that all min_wanted and max_wanted
791 references are unique to each allocated pkgActionItem object, so that
792 the destructor may safely release their associated heap memory blocks.
794 2013-01-07 Keith Marshall <keithmarshall@users.sourceforge.net>
796 Update copyright notification for development in new year.
798 * configure.ac (YEARS_OF_ISSUE): Add year 2013.
800 * Makefile.in (version.c, guidata.$OBJEXT): Make them depend on...
801 (Makefile): ...this, so YEARS_OF_ISSUE propagates to built objects.
803 2012-12-24 Keith Marshall <keithmarshall@users.sourceforge.net>
805 Work around a GUI action scheduling instability.
807 * src/guimain.h (AppWindowMaker::UpdateDataSheet): Declare new method.
808 * src/pkgdata.cpp (AppWindowMaker::UpdateDataSheet): Implement it.
809 (AppWindowMaker::OnNotify): Use it.
811 * src/guiexec.cpp (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]:
812 Don't refresh package list view in-place; clear and reload it instead.
814 2012-12-21 Keith Marshall <keithmarshall@users.sourceforge.net>
816 Update distribution build rules.
818 * Makefile.in (SRCDIST_FILES): Remove version.c.in; this was moved
819 to src/version.c.in, and is now automatically included via...
820 (SRCDIST_SUBDIRS): ...this; remove build-aux and build-aux/m4; we want
821 only selected files from these, as filtered by specification in...
822 (BUILD_AUX_DIRS, BUILD_AUX_FILES): ...these new macros; define them.
823 (BLDTAG, SCMTAG, GCMTAG): New release class macros; define them.
824 (bindist, licdist, srcdist): Use them.
826 2012-12-21 Keith Marshall <keithmarshall@users.sourceforge.net>
828 Update CLI implementation hooks for GUI integration.
830 * Makefile.in (LIBEXEC_PROGRAMS): Replace gui$EXEEXT with
831 guistub$EXEEXT; update make goal references accordingly.
833 * src/rites.c (MINGW_GET_GUI): Redefine to be guimain$EXEEXT.
834 (MINGW_GET_GFB): Define new fall-back; let it be guistub$EXEEXT.
835 (RITES_IMPLEMENTATION): Perform rites for MINGW_GET_GUI.
837 * src/clistub.c (main) [cannot exec MINGW_GET_GUI]: Try
838 MINGW_GET_GFB instead.
840 2012-12-21 Keith Marshall <keithmarshall@users.sourceforge.net>
842 Rename executive core file for GUI implementation.
844 * src/guixmld.cpp: File renamed...
845 * src/guiexec.cpp: ...to this; its function exceeds original intent.
846 * Makefile.in (GUIMAIN_OBJECTS): Update reference accordingly.
848 2012-12-20 Keith Marshall <keithmarshall@users.sourceforge.net>
850 Create foundation for implementation of package category tree view.
852 * Makefile.in (GUIMAIN_OBJECTS): Add pkgtree.$OBJEXT reference to...
853 * src/pkgtree.cpp: ...incorporate this new file; it implements...
854 (AppWindowMaker::InitPackageTreeView): ...this new class method...
855 (pkgInitCategoryTreeGraft): ...and this new extern "C" function.
857 * src/guimain.h (pkgInitCategoryTreeGraft): Declare prototype.
858 (AppWindowMaker::InitPackageTreeView): New private method; declare it.
859 (AppWindowMaker::PackageTreeView): New member variable; declare it.
861 * src/guixmld.cpp (AppWindowMaker::LoadPackageData): Call
862 pkgInitCategoryTreeGraft(), after loading profile.xml
863 (AppWindowMaker::Invoked): Call InitPackageTreeView()
865 * src/pkgview.cpp (AppWindowMaker::LayoutEngine):
866 [ID_PACKAGE_TREEVIEW]: Handle it.
868 2012-12-19 Keith Marshall <keithmarshall@users.sourceforge.net>
870 Make the "Apply Changes" dialogue "failure-aware".
872 * src/pkgtask.h (ACTION_APPLY_FAILED): Redefine, in terms of...
873 (ACTION_INSTALL_FAILED, ACTION_REMOVE_FAILED): New manifest defines.
874 (ACTION_UNSUCCESSFUL): New manifest constant; define it.
876 * src/pkgdata.cpp (pkgActionItem::EnumeratePendingActions):
877 [ACTION_UNSUCCESSFUL]: Make it a special case for enumeration.
879 * src/guixmld.cpp (pkgApplyChanges): Enumerate...
880 [ACTION_UNSUCCESSFUL > 0]: ...all such cases; when true...
881 [IDD_AUTO_CLOSE_OPTION]: ...this; select alternative close-out
882 messages, as appropriate.
883 (pkgActionItem::Assert): Factor out; relocate to...
884 * src/pkgexec.cpp (pkgActionItem::Assert): ...here; this moves its
885 object code into the mingw-get DLL.
887 * src/pkgunst.cpp (pkgRemove) [ACTION_REMOVE_FAILED]:
888 * src/pkginst.cpp (pkgInstall) [ACTION_INSTALL_FAILED]:
889 Assert as appropriate.
891 2012-12-19 Keith Marshall <keithmarshall@users.sourceforge.net>
893 Improve progress reporting in "Apply Changes" dialogue.
895 * src/pkgstat.h: New header file; it declares...
896 (pkgSpinWait): ...this new pure abstract base class; it specifies an
897 infrastructure for posting arbitrary text to dialogue controls.
899 * src/pkgexec.cpp (pkgSpinWait): Implement its static elements.
900 (pkgActionItem::Execute): Dispatch progress reports, handled by...
901 (pkgSpinWait::Report, pkgSpinWait::Indicator): ...these.
903 * src/guixmld.cpp (pkgDialogueSpinWait): New class; declare it and
904 implement locally. It is derived from, and provides a listener for...
905 (pkgSpinWait): ...this abstract class.
906 (pkgApplyChanges): Use it.
908 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDataStream): Call...
909 (pkgSpinWait::Report): ...this, to report extracted files.
911 * src/pkgunst.cpp (pkg_unst): Call...
912 (pkgSpinWait::Report): ...this, to report deleted files.
914 * src/sysroot.cpp (pkgXmlDocument::UpdateSystemMap): Call...
915 (pkgSpinWait::Report, pkgSpinWait::Indicator): ...these, to confirm
916 continuing database update activity.
918 2012-12-18 Keith Marshall <keithmarshall@users.sourceforge.net>
920 Update tab display on right-click in package list view.
922 * src/pkgdata.cpp (AppWindowMaker::OnNotify) [NM_RCLICK]:
923 Call DataSheetMaker::DisplayData(), before invoking pop-up menu.
925 2012-12-17 Keith Marshall <keithmarshall@users.sourceforge.net>
927 Add more protection against NULL pointer abuse.
929 * src/pkgbase.h (pkgActionItem::Reset): Method renamed to...
930 * src/guixmld.cpp (pkgActionItem::Assert): ...this; also renamed here.
931 (AppWindowMaker::OnCommand): When calling...
932 (pkgListViewMaker::MarkScheduledActions): ...this, pass argument as...
933 (pkgXmlDocument::ClearScheduledActions): ...pointer returned by this.
935 * src/pkgdata.cpp (AppWindowMaker::MarkSchedule):
936 [pending_actions == NULL]: Do not propagate invocation request to...
937 (pkgListViewMaker::MarkScheduledActions): ...this.
939 * src/pkglist.cpp (pkgListViewMaker::MarkScheduledActions):
940 [schedule == NULL]: Do nothing.
942 2012-12-14 Keith Marshall <keithmarshall@users.sourceforge.net>
944 Implement some additional permanent debugging support.
946 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
947 [DEBUG_TRACE_DEPENDENCIES]: Enable DMH digest mode for messages.
949 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDataStream):
950 [DEBUG_TRACE_TRANSACTIONS]: Add logging of installed file path names.
952 2012-12-14 Keith Marshall <keithmarshall@users.sourceforge.net>
954 Insert a missing snprintf format effector.
956 * src/pkgnget.cpp (pkgDownloadMeterGUI::Update): Add omitted '%'
957 format specifier, in "%%", for formatting percentage-complete value.
958 Rename "size_buf" automatic variable as "buf"; this results in shorter
959 source lines, and consequently a tidier source code layout.
960 (pkgDownloadMeterGUI::ResetGUI): Likewise s/size_buf/buf/
962 2012-12-14 Keith Marshall <keithmarshall@users.sourceforge.net>
964 Add a missing header reference.
966 * src/approot.h: Include stdint.h; this ensures that wchar_t is
967 properly typedef'd, before attempting to use it.
969 2012-12-12 Keith Marshall <keithmarshall@users.sourceforge.net>
971 Make a clone of the package menu available as a pop-up.
973 * src/guimain.h (AppWindowMaker::SelectPackageAction): New private
976 * src/pkgdata.cpp (AppWindowMaker::SelectPackageAction): Implement it.
977 (AppWindowMaker::OnNotify) [ID_PACKAGE_LISTVIEW]: Use it.
979 2012-12-12 Keith Marshall <keithmarshall@users.sourceforge.net>
981 Improve conditionally enabled state manipulation for menu items.
983 * src/guidata.rc (IDM_REPO_APPLY): Set its initial state as GRAYED.
985 * src/pkgdata.cpp (AppWindowMaker::UpdatePackageMenuBindings):
986 [IDM_PACKAGE_REINSTALL]: Always leave it GRAYED; this is a temporary
987 provision, until the GUI is updated to support "reinstall" capability.
988 [IDM_REPO_APPLY && !(EnumeratePendingActions > 0)]: Make it GRAYED.
989 [IDM_REPO_APPLY && (EnumeratePendingActions > 0)]: Enable it.
991 2012-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
993 Implement GUI bindings for processing a schedule of actions.
995 * src/guimain.h (IDD_DMH_CONSOLE): New resource ID; define it.
996 (IDD_APPLY_EXECUTE): New dialogue template resource ID; define it.
997 (AppWindowMaker::ExecuteScheduledActions): New method; declare it.
999 * src/guidata.rc (IDD_APPLY_EXECUTE): Implement dialogue template.
1001 * src/guixmld.cpp (pkgApplyChanges): New thread function; implement it.
1002 (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]: Use it; it is invoked...
1003 (IDD_APPLY_EXECUTE): ...via this dialogue box, subsequently calling...
1004 (AppWindowMaker::ExecuteScheduledActions): ...this; implement it.
1006 * src/pkgexec.cpp (pkgActionItem::Execute): Add argument; use it.
1007 (pkgActionItem::~pkgActionItem): Unlink chained references.
1009 * src/pkgbase.h (pkgActionItem::Execute): Adjust prototype.
1011 2012-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1013 Do not preserve unnecessary download requests.
1015 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles):
1016 [(flags & ACTION_INSTALL) != ACTION_INSTALL]: Actions having no
1017 "install" effect do not require a download; cancel any associated
1020 2012-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1022 Implement GUI bindings for package download agent.
1024 * src/guimain.h (IDD_PROGRESS_VAL, IDD_PROGRESS_MAX):
1025 (IDD_PROGRESS_PCT): New manifest resource IDs; define them. They will
1026 be used to identify dialogue controls, to be associated with...
1027 (IDD_APPLY_DOWNLOAD): ...this new dialogue template ID; define it.
1028 (AppWindowMaker::DownloadArchiveFiles): New inline method; declare it.
1030 * src/guidata.rc (IDD_APPLY_DOWNLOAD): Implement dialogue template.
1032 * src/pkgbase.h (pkgActionItem::DownloadArchiveFiles): New public
1033 inline method; declare it. It overloads an existing private method of
1034 the same name, which it subsequently invokes.
1036 * src/pkginet.h: New header file; it declares...
1037 (pkgInvokeDownload): ...this new extern "C" function prototype, and...
1038 (pkgDownloadMeter): ...this abstract class; it is factored from its
1039 original implementation in pkginet.cpp, augmented by addition of...
1040 (pkgDownloadMeter::primary): New static member variable; declare it.
1041 (pkgDownloadMeter::UseGUI): New public method; implement it inline.
1042 (pkgDownloadMeter::ResetGUI): New public method; declare it, providing
1043 a do-nothing inline default implementation. Any derived class, which
1044 supports GUI capability, should override this.
1046 * src/pkgnget.cpp: New file; it implements...
1047 (pkgDownloadMeterGUI): New class, derived from pkgDownloadMeter.
1048 (pkgActionItem::DownloadArchiveFiles): New overloaded inline method.
1049 (AppWindowMaker::DownloadArchiveFiles): New inline method.
1050 (pkgInvokeDownload): New dialogue box worker thread handler.
1052 * src/pkginet.cpp: Include pkginet.h; hence...
1053 (pkgDownloadMeter): ...remove redundant class declaration.
1054 (pkgDownloadMeter::primary): Define and initialise it.
1055 (pkgInternetStreamingAgent::Get) [pkgDownloadMeter::UseGUI]: Delegate
1056 progress metering to referenced pkgDownloadMeterGUI class instance.
1057 [! pkgDownloadMeter::UseGUI]: Continue to use the existing built-in
1058 pkgDownloadMeterTTY mechanism.
1059 (pkgActionItem::DownloadSingleArchive) [ACTION_DOWLOAD_FAILED]: Assert
1060 this initially; subsequently clear it on successful completion.
1061 (pkgActionItem::DownloadArchiveFiles): Collect diagnostic messages
1062 into a single DMH_BEGIN_DIGEST ... DMH_END_DIGEST group.
1064 * src/guixmld.cpp: Include pkginet.h; it is required by...
1065 (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]: Use pkgInvokeDownload.
1067 * Makefile.in (GUIMAIN_OBJECTS): Include pkgnget.$OBJEXT
1069 2012-12-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1071 Implement "Discard" handler for GUI "Apply Changes" dialogue.
1073 * src/pkgbase.h (pkgActionItem::Reset): New public method; declare it.
1074 (pkgActionItem::Clear): New public method; declare two overloaded
1075 variants, of which implement one inline.
1076 (pkgXmlDocument::ClearScheduledActions): New public method; declare
1077 and implement it inline.
1079 * src/pkgtask.h (ACTION_DOWNLOAD_FAILED, ACTION_APPLY_FAILED): New
1080 manifest bit-flag constants; define them. They provide a mechanism
1081 for blocking the discard event in respect of failed actions.
1083 * src/guixmld.cpp (pkgActionItem::Reset): Implement it.
1084 (pkgActionItem::Clear): Implement second, out-of-line variant.
1085 (ACTION_PRESERVE_FAILED): New local manifest bit-flag constant; define
1086 it as an aggregate of ACTION_DOWNLOAD_FAILED and ACTION_APPLY_FAILED.
1087 (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]: Use them.
1089 2012-12-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1091 Implement GUI dialogue for "Apply Changes" action approval.
1093 * src/guidata.rc (ID_MAIN_WINDOW_MENU): Rename...
1094 ("&Repository"): ...this drop-down menu entry...
1095 ("&Installation"): ...this; add...
1096 ("&Apply Changes"): ...this new selection.
1097 (IDD_APPLY_APPROVE): New dialogue box resource template; define it.
1098 (SS_CTEXTBOX): New aggregate style convenience macro; define it.
1099 (ES_VT100): Likewise.
1101 * src/guimain.h (IDM_REPO_APPLY): New resource ID; define it.
1102 (IDM_REPO_QUIT): Redefined resource ID; was 302; changed to 312.
1103 (IDD_APPLY_APPROVE, IDD_PROGRESS_TXT): New resource IDs; define them.
1104 (IDD_APPLY_REMOVES_PACKAGES, IDD_APPLY_REMOVES_SUMMARY): Likewise.
1105 (IDD_APPLY_INSTALLS_PACKAGES, IDD_APPLY_INSTALLS_SUMMARY): Likewise.
1106 (IDD_APPLY_UPGRADES_PACKAGES, IDD_APPLY_UPGRADES_SUMMARY): Likewise.
1107 (ID_APPLY, ID_DISCARD, ID_DEFER): New response IDs; define them.
1108 (AppWindowMaker::EnumerateActions): New inline method; declare it.
1109 (AppWindowMaker::DialogueResponse): New inline method; declare and
1112 * src/guixmld.cpp (pkglist.h): #included.
1113 (dmh_setpty): Add locally declared prototype.
1114 (AppWindowMaker::EnumerateActions): Implement it.
1115 (pkgActionCount): New static helper function; implement it.
1116 (ACTION_APPLY, APPLIES_TO): New macros; define them.
1117 (FMT_APPLY_REMOVES, FMT_APPLY_INSTALLS, FMT_APPLY_UPGRADES): New
1118 manifest string constants; define them.
1119 (pkgApplyApproved): New static call-back function; implement...
1120 (AppWindowMaker::OnCommand) [IDM_REPO_APPLY]: ...and use it.
1122 2012-12-06 Keith Marshall <keithmarshall@users.sourceforge.net>
1124 Implement enhanced action item enumeration capability.
1126 * src/pkgbase.h (pkgActionItem::EnumeratePendingActions): New public
1127 method; declare it. It provides the capability to enumerate scheduled
1128 actions, filtered by action classification; when invoked such that it
1129 selects all actions, it may be used as a replacement for...
1130 (pkgActionItem::Unapplied): ...this; delete declaration.
1132 * src/pkgdata.cpp (pkgActionItem::EnumeratePendingActions): Implement
1133 it; it is derived, with enhancement, from original implementation...
1134 (pkgActionItem::Unapplied): ...of this; delete it, and...
1135 (AppWindowMaker::OnClose): ...update calling reference accordingly.
1137 2012-12-05 Keith Marshall <keithmarshall@users.sourceforge.net>
1139 Implement PTY display emulation for GUI mode DMH.
1141 * src/dmhcore.h (dmhTypeGeneric::set_console_hook): New public virtual
1142 method; declare it, providing inline default do-nothing implementation.
1143 (dmhTypeGeneric::severity_tag): New protected static method; declare it.
1144 (dmhTypeGeneric::notification_format): New protected static property;
1147 * src/dmh.cpp (dmhTypeGeneric::severity_tag): Implement it.
1148 (dmhTypeGeneric::notification_format): Define and initialise it.
1149 (dmhTypeTTY::notify): Use them.
1150 (dmh_setpty): New function; declare prototype and implement it.
1152 * src/guidmh.cpp (dmhTypePTY): New locally implemented class.
1153 (dmhTypeGUI::set_console_hook): New virtual method; declare and
1154 implement it; it stores a dmhTypePTY reference pointer into...
1155 (dmhTypeGUI::console_hook): ...this new private member variable.
1156 (dmhTypeGUI::dmhTypeGUI): Initialise it.
1157 (dmhTypeGUI::notify) [console_hook != NULL]: Delegate to it.
1158 (dmhTypeGUI::printf) [console_hook != NULL]: Likewise.
1160 2012-12-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1162 Implement generalised API for dialogue boxes with worker threads.
1164 * src/guimain.h (pkgDialogueThread): New typedef; declare it.
1165 (AppWindowMaker::DialogueThread): New static property; declare it.
1166 (AppWindowMaker::DispatchDialogueThread): New method; declare it.
1168 * src/guixmld.cpp: Formatting of several comments adjusted.
1169 (pkgUpdate, pkgInitDataLoad): Defunct functions; replaced by...
1170 (pkgDialogue): ...this new static call-back function; implement it.
1171 (AppWindowMaker::DialogueThread): Instantiate and initialise it.
1172 (AppWindowMaker::DispatchDialogueThread): Implement it.
1173 (AppWindowMaker::Invoked): Use it to invoke pkgInvokeInitDataLoad()...
1174 (AppWindowMaker::OnCommand): ...and pkgInvokeUpdate().
1176 2012-12-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1178 Consolidate GUI implementation for package list view management.
1180 * src/pkglist.h (pkgListViewMaker::GetTitle): Disused overloaded
1181 method; remove all declarations.
1182 (pkgListViewMaker::GetVersionString): Disused method; remove
1184 (pkgListViewMaker::GetItem): New private inline method; declare it.
1185 (pkgListViewMaker::UpdateItem): New private method; declare it.
1186 (pkgListViewMaker::UpdateListView): New public method; declare it.
1187 (pkgListViewMaker::MarkScheduledActions): Likewise.
1189 * src/guimain.h (AppWindowMaker::MarkSchedule): New public inline
1190 method; declare it, but defer implementation to...
1192 * src/pkgdata.cpp (AppWindowMaker::MarkSchedule): ...here; not used
1193 elsewhere, it is derived from, and replaces...
1194 (pkgMarkSchedule): ...this function; factor out redundant code, in
1195 favour of delegation to pkgListViewMaker::MarkScheduledActions(), with
1196 following call to AppWindowMaker::UpdatePackageMenuBindings(); update
1197 calling function references...
1198 (AppWindowMaker::UnmarkSelectedPackage): ...here, and...
1199 (AppWindowMaker::Schedule): ...here.
1201 * src/pkglist.cpp (pkgVersionString): New static function; implement
1202 it as a local replacement for...
1203 (pkgListViewMaker::GetVersionString): ...this defunct class method.
1204 (pkgGetTitle): New overloaded static function; implement two variants,
1205 as local replacements for...
1206 (pkgListViewMaker::GetTitle): ...this defunct overloaded class method.
1207 (pkgListViewMaker::UpdateItem): Implement it; factor code from...
1208 (pkgListViewMaker::InsertItem): ...here, whence use it.
1209 (pkgListViewMaker::MarkScheduledActions): Implement it.
1210 (pkgListViewMaker::UpdateListView): Implement it.
1211 (pkgListViewMaker::pkgListViewMaker): Remove references to...
1212 (LVIF_TEXT): ...this.
1214 2012-11-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1216 Increase width of window sash bars by 50%.
1218 * src/guimain.h (SASH_BAR_THICKNESS): Increase from 4 to 6; this makes
1219 it easier to grab the sash bars, so they may be dragged; IMO, it also
1220 results in a better appearance.
1222 2012-11-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1224 Maintain consistent internal vs. external installation records.
1226 * src/pkginst.cpp (pkgInstall): Set "installed" attribute on internal
1227 package reference, to "yes", after installation; CLI didn't need this,
1228 but GUI will do so, for any package revisited in a single session.
1230 * src/pkgunst.cpp (pkgRemove): Similarly, negate "installed" attribute
1231 after package removal.
1233 2012-11-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1235 Refactor to consolidate three instances of duplicate code.
1237 * src/pkglist.h (pkgGetStatus): New function; declare it.
1238 * src/pkglist.cpp (pkgGetStatus): Implement it; factor out from...
1239 (pkgListViewMaker::InsertItem): ...here, whence use it.
1240 * src/pkgdata.cpp (pkgMarkSchedule): Likewise here...
1241 (DataSheetMaker::DisplayGeneralData): ...and here.
1243 2012-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1245 Add GUI support for install, upgrade, and remove action scheduling.
1247 * src/guimain.h (EXTERN_C): Ensure it is defined.
1248 (pkgActionItem): Add forward declaration of class name.
1249 (pkgMarkSchedule): New EXTERN_C function; declare and prototype it.
1250 (AppWindowMaker::OnClose): New virtual method; declare it.
1251 (AppWindowMaker::Schedule): New public method; declare it.
1252 (AppWindowMaker::UnmarkSelectedPackage): Likewise.
1254 * src/pkgbase.h (pkgActionItem::HasAttribute) [this == NULL]: Add
1255 protective logic; ignore attempts to access non-existent objects.
1256 (pkgActionItem::SelectPackage) [this == NULL]: Likewise.
1257 (pkgActionItem::Selection) [this == NULL]: Likewise.
1258 (pkgActionItem::GetReference): New overloaded public method; declare
1259 prototype variant with argument type of pkgXmlNode*.
1260 (pkgActionItem::Unapplied): New public method; declare it.
1261 (pkgActionItem::CancelScheduledAction): Likewise.
1262 (pkgXmlDocument::Schedule): Change return type from void to
1263 pkgActionItem*; add default argument values.
1265 * src/guixmld.cpp (AppWindowMaker::OnCommand): Add menu case hooks...
1266 [IDM_PACKAGE_INSTALL]: ...to schedule package 'install' action...
1267 [IDM_PACKAGE_UPGRADE]: ...package 'upgrade' action...
1268 [IDM_PACKAGE_REMOVE]: ...package 'remove' action, or...
1269 [IDM_PACKAGE_UNMARK]: ...to cancel any of these scheduling requests.
1270 [IDM_REPO_QUIT]: Correct typo; s/WM_QUIT/WM_CLOSE/ in comment.
1272 * src/pkgdata.cpp (pkgMarkSchedule): Implement it.
1273 (pkgActionItem::CancelScheduledAction): Implement it.
1274 (pkgActionItem::Unapplied): Implement it.
1275 (AppWindowMaker::UpdatePackageMenuBindings): Improve comments.
1276 (AppWindowMaker::UnmarkSelectedPackage): Implement it.
1277 (AppWindowMaker::Schedule): Implement it.
1278 (AppWindowMaker::OnClose): Implement it.
1280 * src/pkgdeps.cpp (pkgActionItem::GetReference): Implement overload.
1281 (pkgXmlDocument::Schedule): Change return type, and return value.
1282 [this == NULL]: Add protective logic; ignore non-existent objects.
1283 [name == NULL]: Do not schedule; just return existing action list.
1285 2012-11-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1287 Add dynamically enabled state control for package menu items.
1289 * src/guimain.h (AppWindowMaker::UpdatePackageMenuBindings): New
1290 private method; declare it.
1292 * src/pkgdata.cpp (AppWindowMaker::UpdatePackageMenuBindings):
1293 Implement it, and...
1294 (AppWindowMaker::OnNotify): ...use it.
1296 2012-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1298 Avoid excessive inter-word spaces in adjusted text.
1300 * src/pkgdata.cpp (pkgTroffLayoutEngine::WriteLn): Check extent of
1301 padding to be added at each inter-word space, when adjusting text; do
1302 not adjust, if it exceeds 5% of available display pane width.
1304 2012-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1306 Elide unbreakable text which will not fit within display width.
1308 * src/pkgdata.cpp (pkgTroffLayoutEngine::WriteLn): Add logic to detect
1309 over-width unbreakable text; elide characters from the right, to make
1310 it fit within the display width, with trailing ellipsis.
1312 2012-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1314 Add content compiler for package data sheet "general" tab.
1316 * src/pkgbase.h (pkgActionItem::PrintURI): Make it public. Add a
1317 call-back reference argument, for output function; assign puts() as
1318 default, where previously had hard coded printf() emulating puts()
1320 * src/pkginet.cpp (pkgActionItem::PrintURI): Use call-back hook.
1322 * src/pkgdata.cpp (DataSheetMaker::Display): New static property; it
1323 stores a reference to the active class instance, so static call-back
1324 methods may delegate processing requests to non-static methods.
1325 (DataSheetMaker::Advance): New static property; it is used to instruct
1326 call-back methods to interpose paragraph leading it the output stream.
1327 (DataSheetMaker::FormatRecord): New private method; implement it.
1328 (DataSheetMaker::FormatText): Don't pass "canvas" as an argument; we
1329 can access it directly as a class property. Update all callers as
1330 necessary, to conform to modified function prototype.
1331 (pkgListSelection): New static function; implement it, and...
1332 (DataSheetMaker::OnPaint): ...use it in switch cases, when calling...
1333 [PKG_DATASHEET_GENERAL]: DataSheetMaker::DisplayGeneralData(), and...
1334 [PKG_DATASHEET_DESCRIPTION]: DataSheetMaker::DisplayDescription().
1335 (DataSheetMaker::DisplayGeneralData): New public method; implement it.
1336 (DataSheetMaker::DisplayPackageURL): New static method; implement it.
1337 (DataSheetMaker::DisplayLicenceURL): Likewise.
1338 (DataSheetMaker::DisplaySourceURL): Likewise.
1340 2012-10-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1342 Fix error in counting of catalogue files during loading.
1344 * src/pkgbind.cpp (pkgRepository::GetPackageList): Increment count
1345 variable once only, at start of each cycle of the catalogue loading
1346 loop; previous strategy of counting in discrete logic paths could
1347 miss several required increments, particularly in CLI mode.
1349 2012-10-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1351 Avoid DMH message digest fragmentation when downloading.
1353 * src/dmh.h (DMH_GET_CONTROL_STATE): New macro; define it.
1354 * src/pkginet.cpp (pkgInternetAgent::OpenURL): Use it; do not close
1355 locally opened message digest, when called with one already open.
1357 2012-10-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1359 Initiate progress metering for catalogue load and update operations.
1361 * src/guidata.rc (IDD_REPO_UPDATE): New dialogue template; define it.
1362 (IDM_REPO_UPDATE): Enable selection from "Repository" drop-down menu.
1364 * src/guimain.h (IDD_REPO_UPDATE, IDD_CLOSE_OPTIONS):
1365 (IDD_AUTO_CLOSE_OPTION, IDD_PROGRESS_BAR, IDD_PROGRESS_MSG): New
1366 resource identification manifest constants; define them.
1367 (pkgXmlNode, pkgProgressMeter): Add forward class declarations.
1368 (AppWindowMaker::AttachedProgressMeter): New private data; define...
1369 (AppWindowMaker::AppWindowMaker): ...and initialise it.
1370 (AppWindowMaker::AttachProgressMeter): New public method; declare it.
1371 (AppWindowMaker::DetachProgressMeter): Likewise.
1372 (AppWindowMaker::LoadPackageData, AppWindowMaker::ClearPackageList):
1373 (AppWindowMaker::UpdatePackageList): Make them public.
1375 * src/pkgbase.h (pkgProgressMeter): New abstract class; declare it.
1376 (AppWindowMaker) [GUIMAIN_H undefined]: Add forward class declaration.
1377 (pkgXmlDocument::progress_meter): New private data member; declare...
1378 (pkgXmlDocument::pkgXmlDocument): ...and initialise it.
1379 (pkgXmlDocument::ProgressMeter, pkgXmlDocument::AttachProgressMeter):
1380 (pkgXmlDocument::DetachProgressMeter): New public inline methods;
1383 * src/pkgview.cpp (WTK::GenericDialogue): Delete disused reference.
1384 (AppWindowMaker::OnCommand): Factor out implementation; relocate it...
1385 * src/guixmld.cpp: ...to here; thus it may utilise dependants of...
1386 (ProgressMeterMaker): ...this new locally implemented class.
1387 (AppWindowMaker::AttachProgressMeter): Implement it.
1388 (AppWindowMaker::AttachProgressMeter): Likewise.
1389 (pkgProgressMeter::~pkgProgressMeter): Likewise.
1390 (pkgUpdate, pkgInvokeUpdate): New static functions; implement them.
1391 (AppWindowMaker::Invoked): Replace direct call to LoadPackageData by
1392 an indirect invocation, via a progress metering dialogue box using...
1393 (pkgInitDataLoad): ...this new static callback function, invoking...
1394 (pkgInvokeInitDataLoad): ...this new static thread function, whence...
1395 (AppWindowMaker::LoadPackageData): ...this; add hook-up call to...
1396 (pkgXmlDocument::AttachProgressMeter): ...incorporate this.
1398 * src/pkgbind.cpp (pkgRepository::total, pkgRepository::count): New
1399 private static properties; declare and instantiate them; provide...
1400 (pkgRepository::Reset, pkgRepository::IncrementTotal): ...new public
1401 static methods to manipulate them; declare and implement them inline.
1402 (pkgRepository::GetPackageList): Use them to manage updates to the
1403 pkgProgressMeter class instance, if any, which has been bound to
1404 the controlling pkgXmlDocument class instance, when invoking...
1405 (pkgXmlXmlDocument::BindRepositories): ...this.
1407 2012-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1409 Associate DMH message boxes with active dialogues.
1411 * src/guidmh.cpp (last_active_popup): New static inline function.
1412 (dmhTypeGUI::dispatch_message): Use it.
1414 2012-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1416 Fix Diagnostic Message Handler initialisation logic.
1418 * src/dmh.cpp (dmh_init) [DMH_SUBSYSTEM_GUI]: Correct a logic error;
1419 it previously fell through after any successful initialisation of the
1420 DMH_SUBSYSTEM_GUI handler, replacing it with a DMH_SUBSYSTEM_TTY type
1421 handler. Also, assign a heap copy of the passed "progname" string
1422 resource, which is volatile, to ensure that the handler retains a
1425 2012-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1427 Implement preliminary GUI mode data sheet compiler.
1429 * src/guimain.h (DataSheetMaker): New class; forward declare it.
1430 (AppWindowMaker::InitPackageTabControl): New private method; declare it.
1431 (AppWindowMaker::DataSheet, AppWindowMaker::PackageTabControl):
1432 (AppWindowMaker::TabDataPane, AppWindowMaker::PackageTabPane): New
1433 private data members; declare them.
1434 (ID_SASH_WINDOW_PANE_CLASS): New string resource identifier; define it.
1435 (ID_PACKAGE_DATASHEET, ID_PACKAGE_TABPANE): New window identifiers;
1438 * src/guidata.rc (ID_SASH_WINDOW_PANE_CLASS): Specify string resource.
1440 * src/pkgview.cpp (AppWindowMaker::OnSize): Add handler for...
1441 (ID_PACKAGE_TABPANE, ID_PACKAGE_TABCONTROL, ID_PACKAGE_DATASHHET):
1442 ...this group of sash pane child window entities.
1443 (AppWindowMaker::OnNotify): Comment out disused stub implementation.
1445 * src/pkgshow.cpp (pkgUTF8Parser): Factor out class declaration...
1446 (UTF32_MAX, UTF32_OVERFLOW, UTF32_INVALID): ...these definitions...
1447 (utf32_t): ...and this typedef; relocate to, and #include...
1448 * src/pkgdata.h: ...this new header file.
1450 * src/pkgdata.cpp (DataSheetMaker): New class; declare and implement it.
1451 (AppWindowMaker::InitPackageTabControl): Implement it.
1452 (AppWindowMaker::OnNotify): Reimplement it.
1454 * Makefile.in (GUIMAIN_OBJECTS): Add pkgdata.OBJEXT
1456 * src/guixmld.cpp (AppWindowMaker::Invoked): Add call to invoke
1457 AppWindowMaker::InitPackageTabControl()
1459 2012-10-09 Keith Marshall <keithmarshall@users.sourceforge.net>
1461 Remove a grossly heuristic list view hack.
1463 * src/pkglist.cpp (pkgListViewMaker::GetTitle): Remove code for the
1464 heuristic deletion of any redundant package name prefixes from package
1465 title attributes; by now, all such prefixes should have been removed
1466 from the catalogue, explicitly, at source.
1468 2012-10-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1470 Implement GUI list view compiler for XML catalogue.
1472 * src/pkgview.cpp (AppWindowMaker::LayoutEngine): Add case handler...
1473 [pane_id == ID_PACKAGE_LISTVIEW]: ...for this window pane class.
1475 * src/guimain.h (ID_PKGLIST_TABLE_HEADINGS):
1476 (ID_PKGNAME_COLUMN_HEADING, ID_PKGTYPE_COLUMN_HEADING):
1477 (ID_INSTVER_COLUMN_HEADING, ID_REPOVER_COLUMN_HEADING):
1478 (ID_PKGDESC_COLUMN_HEADING): New resource identifiers; define them.
1479 (ID_PKGSTATE_AVAILABLE, ID_PKGSTATE_AVAILABLE_NEW):
1480 (ID_PKGSTATE_AVAILABLE_LOCKED, ID_PKGSTATE_AVAILABLE_INSTALL):
1481 (ID_PKGSTATE_INSTALLED_CURRENT, ID_PKGSTATE_INSTALLED_LOCKED):
1482 (ID_PKGSTATE_INSTALLED_OLD, ID_PKGSTATE_UPGRADE, ID_PKGSTATE_REMOVE):
1483 (ID_PKGSTATE_REINSTALL, ID_PKGSTATE_DOWNGRADE, ID_PKGSTATE_BROKEN):
1484 (ID_PKGSTATE_PURGE): New icon resource identifiers; define them.
1485 (AppWindowMaker::InitPackageListView): New private method; declare it.
1486 (AppWindowMaker::UpdatePackageList): New private method; declare it.
1487 (AppWindowMaker::ClearPackageList): New private method; declare and
1488 implement it inline.
1490 * src/guidata.rc (ID_PKGSTATE_AVAILABLE, ID_PKGSTATE_AVAILABLE_NEW):
1491 (ID_PKGSTATE_AVAILABLE_LOCKED, ID_PKGSTATE_AVAILABLE_INSTALL):
1492 (ID_PKGSTATE_INSTALLED_CURRENT, ID_PKGSTATE_INSTALLED_LOCKED):
1493 (ID_PKGSTATE_INSTALLED_OLD, ID_PKGSTATE_UPGRADE, ID_PKGSTATE_REMOVE):
1494 (ID_PKGSTATE_REINSTALL, ID_PKGSTATE_DOWNGRADE, ID_PKGSTATE_BROKEN):
1495 (ID_PKGSTATE_PURGE): New icon resources; implement them.
1497 * icons/state01.ico icons/state02.ico icons/state03.ico:
1498 * icons/state04.ico icons/state05.ico icons/state06.ico:
1499 * icons/state07.ico icons/state08.ico icons/state09.ico:
1500 * icons/state10.ico icons/state11.ico icons/state12.ico:
1501 * icons/state13.ico: New files. All are cloned from synaptic icons;
1502 see src/guimain.rc for symbolic/functional reference names.
1504 * src/pkglist.h [GUIMAIN_H defined] (pkgListViewMaker): New class;
1505 declare it for use in modules which #include guimain.h
1507 * src/pkglist.cpp: New file; it implements...
1508 (pkgListViewMaker): ...this new class, and its clients...
1509 (AppWindowMaker::InitPackageListView): New method.
1510 (AppWindowMaker::UpdatePackageList): Likewise.
1512 * Makefile.in (GUIMAIN_OBJECTS): Add pkglist.OBJEXT
1514 * src/guixmld.cpp (AppWindowMaker::Invoke): Call InitCommonControls(),
1515 as prerequisite to AppWindowMaker::InitPackageListView(); follow up by
1516 calling AppWindowMaker::AdjustLayout().
1518 2012-10-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1520 Add GUI initialiser hook for XML catalogue interface.
1522 * src/guimain.h (AppWindowMaker::Invoke): New public method; declare
1523 it; it overrides the generic WTK::MainWindowMaker::Invoke() method, so
1524 providing the initialiser hook which will invoke this...
1525 (AppWindowMaker::LoadPackageData): ...new private method; declare it.
1527 * src/guixmld.cpp: New file.
1528 (AppWindowMaker::Invoke): Implement it.
1529 (AppWindowMaker::LoadPackageData): Likewise.
1531 * Makefile.in (GUIMAIN_OBJECTS): Add guixmld.OBJEXT
1533 2012-09-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1535 Add initial working GUI mode DMH class implementation.
1537 * src/dmh.h (DMH_SEVERITY_MASK): New manifest constant; define it.
1538 (DMH_DIGEST_MASK, DMH_COMPILE_DIGEST, DMH_DISPATCH_DIGEST): Likewise.
1539 (DMH_BEGIN_DIGEST, DMH_END_DIGEST): Redefine in terms of above.
1541 * src/dmhcore.h: New header file; it declares...
1542 (dmhTypeGeneric): ...this abstract base class, factored from...
1544 * src/dmh.cpp (dmhTypeGeneric): ...here, whence remove it; it is
1545 still required, thus include dmhcore.h so that it remains visible.
1546 (dmh_exception): Remove errant namespace qualifier from constructor.
1547 (dmhTypeGUI): Delete class declaration and original constructor.
1548 (dmh_init): Delete reference to dmhTypeGUI; replace by call to...
1549 (dmh_init_gui): ...this new static function; it is a stub which
1550 invokes a DLL import of the same name, to instantiate a dmhTypeGUI.
1551 (dmhTypeGUI::control, dmhTypeGUI::notify, dmhTypeGUI::printf): Delete
1552 original method stubs.
1554 * src/guidmh.cpp: New file; it reimplements...
1555 (dmhTypeGUI): ...this class; declare it and implement its constructor.
1556 (dmh_init_gui): Provide its DLL exported implementation.
1557 (dmhTypeGUI::dispatch_message): New private method; add it to the
1558 class declaration and implement it; it is a helper method for...
1559 (dmhTypeGUI::control, dmhTypeGUI::notify): ...these; implement them.
1560 (dmhTypeGUI::printf): Provide a replacement stub.
1562 * Makefile.in (GUIMAIN_OBJECTS): Add guidmh.OBJEXT
1564 * src/guimain.h (AppWindowMaker::Create): New method; add it to the
1565 class declaration; it overrides the default Create() method inherited
1566 from WTK::MainWindowMaker
1568 * src/pkgview.cpp (AppWindowMaker::Create): Implement it; it handles
1569 window class registration and dmhTypeGUI initialisation, in addition
1570 to the inherited CreateWindow() behaviour.
1572 * src/guimain.cpp: Include dmh.h
1573 (WinMain): Add catch block for dmh_exception. Remove window class
1574 registration request; it is now delegated to AppWindowMaker::Create()
1576 2012-09-26 Keith Marshall <keithmarshall@users.sourceforge.net>
1578 Add .hgignore as tracked file.
1580 * .hgignore: New file.
1582 2012-09-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1584 Defer generation of version.c until "make" time.
1586 * version.c.in: Move it...
1587 * src/version.c.in: ...to here.
1588 (PACKAGE_NAME, PACKAGE_VERSION, COPYRIGHT_HOLDER, YEARS_OF_ISSUE):
1589 Change substitution field marker character from "@" to "%".
1591 * configure.ac (AC_CONFIG_FILES): Remove version.c
1593 * Makefile.in (TAG_SCRIPT): New macro, factored out from...
1594 (RC_SCRIPT): ...here, whence use it; also use it to implement...
1595 (VERSION_SCRIPT): ...this further new macro; use it in...
1596 (%.c): ...this generic template rule for version.c
1597 (time-stamp, %.time, %.tagged.time, %.tag): New generic build
1598 goals; use them to track package release progression via...
1599 (build.tag): ...this new intermediate; make it a pre-requisite...
1600 (guidata.OBJEXT, version.c): ...of these.
1602 2012-09-21 Keith Marshall <keithmarshall@users.sourceforge.net>
1604 Implement framework for GUI sash window layout controller.
1606 * configure.ac (AC_INIT): Bump version number to 0.6
1607 (CLI_RELEASE_CLASS): New AC_SUBST variable; default to "beta".
1608 (GUI_RELEASE_CLASS): New AC_SUBST variable; default to "alpha".
1609 (SNAPSHOT_CLASS): Recognise as user specified environent variable
1610 override for both CLI_RELEASE_CLASS and GUI_RELEASE_CLASS.
1611 (RC): New AC_CHECK_TOOL substitution variable name; it replaces...
1612 (WINDRES): ...this, as reference name for the resource compiler.
1613 (MINGW_AC_ASSERT_MISSING): Add AC_CHECK_HEADER traps for missing
1614 "lua-dev" and "wtklite-dev" support.
1616 * Makefile.in (CLI_RELEASE_CLASS, GUI_RELEASE_CLASS): Use them.
1617 (BUILD_TAG, RC_SCRIPT, RC_INCLUDES): New macros; define and use...
1618 (RC): ...with this, to implement new target rule for compiling...
1619 (%.rc): ...resource definition files to %.OBJEXT objects.
1620 (GUIMAIN_OBJECTS, GUIMAIN_LIBS): New macros; define and use...
1621 (guimain.EXEEXT): ...to implement build rule for this.
1622 (LIBEXEC_PROGRAMS): Add guimain.EXEEXT
1623 (lastrites.EXEEXT): Use GUI_LDFLAGS.
1625 * src/guimain.h src/guimain.cpp src/guidata.rc: New files.
1626 * src/pkgview.cpp: New file.
1628 2012-09-20 Keith Marshall <keithmarshall@users.sourceforge.net>
1630 Adjust incorrectly resolved 2012-09-14 merge from master.
1632 * src/Makefile.in: Restore lost reference to guistub.cpp
1634 2012-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1636 Implement GUI hooks in "rites of passage" internal API.
1638 * src/pkglock.h: New file; it adds the pkgLock() and pkgRelease()
1639 inline wrapper functions, through which the GUI application acquires
1640 and manages an exclusive access lock for the XML catalogue.
1642 * src/rites.c (lockfile_name): Explicitly cast memory allocated for
1643 the returned name to (char *), so this may be embedded in C++ code.
1644 (pkgInitRites): Factor out lock acquisition failure diagnostics...
1645 (pkgLockFail): ...to this inline helper function; conditionally...
1646 [ifdef GUIMAIN_H]: ...provide one implementation for GUI use...
1647 [ifndef GUIMAIN_H]: ...and an alternative for CLI use.
1649 2012-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1651 Be case agnostic when matching shortcut targets.
1653 * scripts/libexec/unlink.js [ref.TargetPath == chklink]: Apply
1654 toLowerCase() on both sides of the comparison.
1656 2012-09-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1658 Note relocation of m4 when packaging source distribution.
1660 * Makefile.in (SRCDIST_SUBDIRS): Refer to build-aux/m4, not m4.
1662 2012-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1664 Move guimain.cpp out of the way.
1666 * src/guimain.cpp: Rename file as...
1667 * src/guistub.cpp: ...this; we want to keep current features for now,
1668 but to use the guimain.cpp name for main GUI application development.
1669 * Makefile.in: Adjust references accordingly.
1671 2012-09-09 Keith Marshall <keithmarshall@users.sourceforge.net>
1673 Fix typo, and update licensing terms for embedded getopt.c
1675 * src/getopt.c: Incorporate MIT/X style licence; update copyright
1676 notice, to reflect chronology of publication; correct degenerate RCS
1677 keyword usage in EOF marker comment.
1679 2012-09-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1681 Correct omission from copyright notice.
1683 * src/pkgkeys.c: Add year 2012, to reflect 2012-09-02 update.
1685 2012-09-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1687 Redefine paragraph_key with project global scope.
1689 * src/pkgkeys.h (paragraph_key): Declare it.
1690 * src/pkgkeys.c (paragraph_key): Define it.
1692 * src/pkgshow.cpp (pkgDirectoryViewer::EmitDescription): Delete
1693 function local definition; use global definition instead.
1695 2012-09-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1697 Correct defect introduced by 2012-08-03 commit.
1699 * src/approot.c (AppPathNameW): Add omitted 'else', so that tail
1700 pointer isn't moved after the APPROOT prefix is truncated.
1702 2012-09-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1704 Remap Mercurial subrepository reference via local hg-git clone.
1706 * .hgsub (build-aux): Point to ../build-aux; this must be a locally
1707 hosted hg clone of the git origin repository, and it must pre-exist as
1708 a sibling of any created hg clone of the mingw-get repository.
1710 * .hgsubstate: New file, automatically generated by Mercurial.
1712 2012-08-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1714 Add Mercurial subrepository reference for build-aux.
1718 2012-08-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1720 More code refactoring, to facilitate GUI implementation.
1722 * src/clistub.c (AppPathNameW): Factor out; relocate to...
1723 * src/approot.c: ...this new file; it reproduces the original
1724 implementation, modified to also consider any "libexec" directory in
1725 the executable path as the first child of the APPROOT prefix. Note
1726 also, that no longer terminates APPROOT with a trailing backslash.
1728 * src/approot.h: New file; it trivially declares the prototype for...
1729 (AppPathNameW): ...this relocated extern "C" function.
1731 * src/clistub.c (main): Adapt usage of AppPathNameW(), to reinstate
1732 trailing backslash on assignment to APPROOT environment variable.
1734 * Makefile.in (CLI_EXE_OBJECTS): New macro; define it as the original
1735 set of prerequisites, with the addition of approot.OBJEXT, for...
1736 (mingw-get.EXEEXT): ...this; use it.
1738 * src/rites.c: Add comment regarding APPROOT usage.
1740 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
1742 Find missing.m4 in build-aux/m4 directory.
1744 * aclocal.m4: Change path m4/missing.m4 to build-aux/m4/missing.m4.
1746 2012-07-31 Earnie Boyd <earnie@users.sourceforge.net>
1748 Add build-aux as a submodule.
1749 Move .cvsignore to .gitignore.
1751 * .gitmodules: New file.
1752 * build-aux: New submodule directory.
1753 * .cvsignore: Remove.
1754 * .gitignore: New file.
1756 2012-07-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1758 Disable globbing of command line arguments.
1760 * src/clistub.c (_CRT_glob): Define and initialise to zero; we don't
1761 need globbing, and it may cause case transliteration of case-sensitive
1762 action keywords, when a file system entity with a case-insensitively
1763 matching name exists.
1765 2012-06-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1767 Refactor API to facilitate implementation of GUI ListView hooks.
1769 * src/pkgkeys.h (title_key, description_key): Declare them.
1770 * src/pkgkeys.c (title_key, description_key): Define them; relocate...
1771 * src/pkgshow.cpp (pkgDirectoryViewer::EmitDescription): ...from here.
1772 (pkgXmlDocument::CalalogueAllPackages): New public method; factor...
1773 (pkgXmlDocument::DisplayPackageInfo): ...from here, whence use it.
1774 (pkgDirectoryViewerEngine::EnumerateComponents): New private method;
1775 implement as a concrete method of this abstract base class; factor...
1776 (pkgDirectoryViewer::Dispatch): ...from original inline implementation
1777 within this method of the concrete derived class, whence use it.
1778 (pkgDirectoryViewerEngine, pkgDirectory): Factor class declarations...
1779 * src/pkglist.h: ...into this new header file; include it.
1781 * src/pkgbase.h (pkgDirectory): Add forward class declaration.
1782 (pkgXmlDocument::CatalogueAllPackages): Declare it.
1784 2012-05-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1786 Update help text to document package version selection capability.
1788 * src/clistub.c (help_text): Add description of command line syntax
1789 which may be used to specify an alternative to the default package
1790 version selection, for install and upgrade actions.
1792 2012-05-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1794 Support options set by preferences assigned within profile.xml
1796 * xml/profile.xml (preferences): New element; add defaults.
1798 * src/pkgopts.h (OPTION_ASSIGNED_FLAGS, OPTION_DESKTOP_ARGS):
1799 (OPTION_START_MENU_ARGS): New enumerated constants; define them.
1800 (OPTION_DESKTOP, OPTION_START_MENU): New manifest constants.
1801 (OPTION_ASSIGNED, mark_option_as_set): New macros; define them.
1802 (pkgOpts::GetValue, pkgOpts::GetString): Restrict look-up index to
1803 least significant 12-bits of full-range index value.
1804 (pkgOpts::IsSet): New inline method; implement it.
1806 * src/clistub.c (main): Reimplement --desktop and --start-menu
1807 options; each now becomes an OPTION_GENERIC optarg string store.
1808 (set_script_hook): Function no longer used; delete it; delegate to...
1809 * src/pkgbase.h (pkgXmlDocument::EstablishPreferences): ...this new
1810 method; declare it, providing its implementation in...
1811 * src/pkgopts.cpp: ...this new file; invoke it...
1812 * src/climain.cpp (climain): ...here.
1814 * Makefile.in (CORE_DLL_OBJECTS): Add pkgopts.$OBJEXT
1816 2012-04-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1818 Correct sequence of installation/removal progress reporting.
1820 * src/pkgunst.cpp (pkgRemove): Delay output of "removing package ..."
1821 message, until after pre-remove hooks have run; this ensures that any
1822 output from the pre-remove hook scripts appears in correct sequence.
1824 * src/pkginst.cpp (pkgInstall): Likewise, for "installing package ..."
1825 message, in relation to pre-install hooks.
1827 2012-04-26 Keith Marshall <keithmarshall@users.sourceforge.net>
1829 mingw-get-0.5-beta-20120426-1 released.
1831 * configure.ac (AC_INIT): Version number updated.
1832 * srcdist-doc/NEWS.in: Updated; bug-fix notifications added.
1833 * All files (r0-5-beta-20120426-1): Tag assigned.
1835 2012-04-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1837 Interim work-around for MinGW-Bug #3520864.
1839 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
1840 [DEBUG_TRACE_DEPENDENCIES]: Add request flags to messages reporting
1841 the scheduling of installation activities.
1843 * src/pkgexec.cpp (pkgXmlDocument::Schedule): Add temporary diagnostic
1844 hooks to confirm request flags; bracket them with #if 0 ... #endif.
1845 [ACTION_PRIMARY && pre-scheduled request]: Don't trash request flags
1846 when updating the pre-existing action item data.
1848 2012-04-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1850 Fix MinGW-Bug #3520488
1852 * src/pkgexec.cpp (action_code): Check for, and reject NULL pointer
1853 passed as action request string; also reject ambiguous abbreviations.
1855 * src/climain.cpp (climain): Discriminate between NULL pointer and
1856 other forms of invalid action keyword matching failures.
1858 2012-04-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1860 mingw-get-0.5-beta-20120416-1 released.
1862 * configure.ac (AC_INIT): Version number updated.
1863 (YEARS_OF_ISSUE): 2012 added.
1865 * srcdist-doc/NEWS.in: Updated; release notes added.
1866 * All files (r0-5-beta-20120416-1): Tag assigned.
1868 2012-04-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1870 Assign icon to temporary GUI executable file.
1872 * icons/pkgicon.ico: New file, shamelessly copied from synaptic.
1874 * configure.ac: Add identification for windres; propagate it to...
1875 * Makefile.in: ...here; use it to compile object from icon files...
1876 (srcdir/icons) [%.ico]: ...from this new vpath location.
1877 (gui.exe): Link to compiled icon's object file.
1878 (SRCDIST_SUBDIRS): Add icons directory.
1880 2012-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
1882 Ensure that package removal requests are correctly scheduled.
1884 * src/pkgdeps.cpp (pkgXmlDocument::Schedule) [ACTION_REMOVE]: Schedule
1885 as a distinct case, when the installed version is not the most recent
1886 available release; consideration of this distinct case was previously
1887 erroneously overlooked.
1889 2012-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
1891 Correct scheduling of new prerequisites when upgrading.
1893 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
1894 [ACTION_UPGRADE && ACTION_PRIMARY]: Don't exclude scheduling for this
1895 case of a prerequisite with no previously installed version; it may be
1896 a delegated primary requirement of a meta-package.
1898 2012-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
1900 Don't require subsystem within user specified version bounds.
1902 * src/pkgdeps.cpp (pkgActionItem::ApplyBounds): Automatically consider
1903 "*" wild-card matches for subsystem, if user doesn't specify it.
1905 2012-04-09 Charles Wilson <mingw@cwilson.fastmail.fm>
1907 Fix missing include.
1909 * src/pkgdeps.cpp (pkgopts.h): Include unconditionally; do not rely...
1910 (debug.h) [DEBUG_TRACE_DYNAMIC]: ...on this, for indirect inclusion.
1912 2012-04-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1914 Correct a srcdist package construction defect.
1916 * Makefile.in (srcdist) [for SRCDIST_SUBDIRS]: Use...
1917 (mkinstalldirs): ...this, to create package image directories.
1919 2012-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
1921 Add scripting hooks to support creation of MS-Windows shortcuts.
1923 * src/clistub.c (progname): New static variable with file scope; it
1924 replaces former automatic variable, of same name, in main() function.
1925 (set_script_hook): New static function; implement it, and call it...
1926 (main) [--desktop, --start-menu]: ...from here, to interpret these new
1927 command line options; they are propagated to scripts via...
1928 (MINGW_GET_DESKTOP_HOOK, MINGW_GET_START_MENU_HOOK): ...these new
1929 internally assigned environment variables.
1930 (help_text): Document --desktop and --start-menu.
1932 * scripts/libexec/setup.lua scripts/libexec/wsh.lua: New lua module
1933 files; they implement a lua scripting API; they delegate requests to
1934 the Windows Scripting Host, via either of this pair of...
1935 * scripts/libexec/shlink.js: ...new script to create shortcuts, or...
1936 * scripts/libexec/unlink.js: ...its complement, to remove them.
1937 * Makefile.in (SRCDIST_SUBDIRS): Integrate them; enumerate them in...
1938 (scripts_srcdir, LIBEXEC_SCRIPTS): ...these new macros; use to...
1939 (install): ...install them.
1941 2012-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
1943 Initialise $LUA_PATH to locate mingw-get specific scripts.
1945 * src/pkgexec.cpp (lua_path_init): New static inline function.
1946 (pkgXmlNode::DispatchScript): Call it on first time invocation, per...
1947 [lua_path_setup == false]: ...this static function local variable.
1949 2012-04-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1951 Support installation of releases other than latest available.
1953 * src/pkgbase.h (pkgActionItem::ApplyBounds): New method; declare it.
1955 * src/pkgdeps.cpp (pkgActionItem::ApplyBounds): Implement it.
1956 (pkgXmlDocument::Schedule): Use it to interpret user specified version
1957 bounds, and apply them to scheduled action items. Having used...
1958 (get_version_bounds): ...this new static inline function...
1959 ...to acquire any user specified version bounds, check that they can
1960 be honoured, before scheduling any action; delegate diagnostics to...
1961 (dmh_notify_no_match): ...this new local helper function, to report
1962 when they can't, and to indicate viable alternatives.
1964 2012-03-26 Keith Marshall <keithmarshall@users.sourceforge.net>
1966 Rework previously inadequate solution for MinGW-Bug #3424406
1968 * src/pkgtask.h: Update copyright notice for current year.
1969 (ACTION_MAY_SELECT): New manifest constant for use as flag; define it.
1970 * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit): Assign it.
1972 * src/pkgdeps.cpp (STATIC_INLINE): New macro; define it.
1973 (ACTION_RECURSIVE_REINSTALL, ACTION_RECURSIVE_UPGRADE):
1974 (ACTION_RECURSIVE_REPLACE): New action code constants; define them.
1975 (with_flags): Original macro deleted; replace it with...
1976 (with_request_flags): ...this new static inline function.
1977 (if_noref, if_match, if_alias, with_download, promote): New static
1978 inline functions; they replace original macros of the same names.
1979 (is_recursive_action): Function no longer used; delete it.
1980 (action_class): New static inline function; implement and use it...
1981 (pkgXmlDocument::ResolveDependencies): ...here, to identify scheduling
1982 requirements for packages which are already installed; depends on...
1983 (request_mode): ...this new automatic variable; it augments and...
1984 (recursive_mode): ...replaces this one; rename it accordingly.
1985 (viable): Automatic variable no longer used; delete it.
1986 [DEBUG_REQUEST & DEBUG_TRACE_DEPENDENCIES]: Emit notification for
1987 scheduled installation.
1988 (pkgXmlDocument::Schedule): Add an implied...
1989 (ACTION_REMOVE): ...when scheduling a reinstallation.
1991 2012-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1993 Address reinstallation issues per MinGW-Bugs #3416013 and #3424406
1995 * src/pkgexec.cpp (reinstall_action_scheduled): New inline function.
1996 (pkgActionItem::Execute): Use it to identify cases where...
1997 [--reinstall]: ...implicit package removal is required, and also to
1998 facilitate improved progress reporting in such cases.
2000 * src/pkgdeps.cpp (is_recursive_action): New inline function.
2001 (pkgXmlDocument::ResolveDependencies): Use it in tandem with...
2002 (recursive_mode): ...this new automatic variable, so as to handle...
2003 [meta-package dependency]: ...implicit recursion, to extend the scope
2004 of the current action to the first level of non-meta dependency.
2005 [install --reinstall]: ...reinstall original version of nominated
2006 package, ignoring any available upgrade; extend scope of operation...
2007 [install --reinstall --recursive]: ...to all prerequisite packages.
2008 [upgrade --reinstall]: ...upgrade nominated package if possible; if no
2009 upgrade available, reinstall current version; extend scope...
2010 [upgrade --reinstall --recursive]: ...to all prerequisites.
2011 (pkgXmlDocument::Schedule): Partially revert 2012-03-05 change;
2012 reimplement selectively; never promote...
2013 [install, install --reinstall]: ...these operations to become...
2014 [upgrade]: ...this, even if available; issue diagnostic instead.
2016 2012-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2018 Rationalise implementation and usage of --all-related option.
2020 * src/pkgopts.h: Update copyright notice; add year 2012.
2021 (OPTION_RECURSIVE, OPTION_ALL_RELATED): New constants; define them.
2022 (pkgOpts::SetFlags): New method; declare and implement it inline.
2024 * src/clistub.c: Update copyright notice; add year 2012.
2025 (options) [recursive, all-related]: Redefine in terms of...
2026 (OPTION_RECURSIVE, OPTION_ALL_RELATED): ...these.
2027 (help_text): Update appropriately.
2029 * src/climain.cpp: Update copyright notice; add year 2012.
2030 (climain) [all-related]: Associate its use exclusively with...
2031 (source, licence): ...these package processing operations; use...
2032 (pkgOptions::SetFlags): ...this, to propagate its effect.
2034 2012-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2036 Don't report failed downloads in respect of virtual packages.
2038 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): Clear...
2039 [ACTION_DOWNLOAD]: ...this status flag for any package identified as
2040 a meta-package; this corrects a further regression introduced with the
2041 2011-11-09 update, whereby pending download requests for such virtual
2042 packages were not cancelled, resulting in failure to install due to
2043 failed downloads, when no download is actually required.
2045 2012-03-05 Keith Marshall <keithmarshall@users.sourceforge.net>
2047 Don't suppress implied downloads for top-level actions.
2049 * src/pkgdeps.cpp: Update copyright notice for new year.
2050 (pkgXmlDocument::Schedule) [!OPTION_PRINT_URIS]: Ensure that...
2051 [ACTION_DOWNLOAD]: ...this is enabled, when scheduling an install or
2052 an upgrade action for a package specified as a command line argument;
2053 this corrects a regression introduced on 2011-11-09, which resulted in
2054 ACTION_DOWNLOAD being enabled only for second tier dependent actions.
2056 2012-02-20 Keith Marshall <keithmarshall@users.sourceforge.net>
2058 Copyright notice updates.
2060 * Makefile.in: Add 2012 as year of republication.
2061 * src/pkgbase.h src/sysroot.cpp src/pkgexec.cpp: Likewise.
2062 * src/rites.c src/pkginst.cpp src/pkgunst.cpp: Likewise.
2064 2012-02-20 Keith Marshall <keithmarshall@users.sourceforge.net>
2066 Fix ill-advised optimisation in $APPROOT environment lookup.
2068 * src/rites.c (approot_path): Don't save result of getenv() lookup
2069 across calls; the environment may have been moved in the interim,
2070 making the original result invalid on any subsequent call. Also,
2071 prefer MS-Windows style (with backslashes) for default.
2072 (pkgLastRites): Report full path name for lastrites.exe, on execl()
2073 failure, rather than only the path relative to $APPROOT.
2075 2012-02-20 Keith Marshall <keithmarshall@users.sourceforge.net>
2077 Propagate sysroot path settings to scripts via the environment.
2079 * src/pkgbase.h (PKG_PUTENV_FLAGS_MASK): New constant; it maps...
2080 (PKG_PUTENV_DIRSEP_MSW, PKG_PUTENV_DIRSEP_POSIX): ...these flags...
2081 (PKG_PUTENV_SCAN_VARNAME, PKG_PUTENV_NAME_TOUPPER): ...and these;
2082 they are used to specify optional behavioural choices for...
2083 (pkgPutEnv): ...this new function; declare it.
2085 * src/sysroot.cpp (pkgPutEnv): Implement it.
2086 (pkgXmlDocument::LoadSystemMap): Use it to add $SUBSYSTEM_SYSROOT path
2087 specifications to the environment, for each named subsystem associated
2088 with the active system map.
2090 * src/pkgexec.cpp (pkgActionItem::Execute): Invoke pkgPutEnv() prior
2091 to processing of each package install, upgrade, or remove action, so
2092 as to update environment variable $SYSROOT to represent the sysroot
2093 path for each package processed, during execution of script hooks.
2095 2012-02-17 Keith Marshall <keithmarshall@users.sourceforge.net>
2097 Implement hooks to support lua scripting interface.
2099 * Makefile.in (LIBS): Add -llua.
2101 * src/pkgbase.h (pkgXmlNode::InvokeScript): New method; declare it
2102 as private, and provide overloaded public inline API implementation.
2103 (pkgXmlNode::DispatchScript): New private method; declare it.
2105 * src/pkgexec.cpp (pkgXmlNode::InvokeScript): Implement it.
2106 (pkgXmlNode::DispatchScript): Likewise; it directs InvokeScript to...
2107 (pkgInvokeScript): ...this new static function; implement it.
2109 * src/pkginst.cpp (pkgInstall): Call InvokeScript as appropriate.
2110 * src/pkgunst.cpp (pkgRemove): Likewise.
2112 2011-11-24 Keith Marshall <keithmarshall@users.sourceforge.net>
2114 Avoid implicit cast warnings; reported by Robert Hartmann.
2116 * src/dmh.h (DMH_BEGIN_DIGEST): Explicitly cast to uint16_t.
2117 (DMH_END_DIGEST): Likewise.
2119 2011-11-09 Keith Marshall <keithmarshall@users.sourceforge.net>
2121 Avoid unnecessary downloads for already installed packages.
2123 * src/pkginet.cpp (pkgActionItem::DownloadSingleArchive): Require
2124 external scheduling of ACTION_DOWNLOAD; cancel the scheduled request
2125 on completion, or when not required due to pre-existing local copy.
2127 * src/climain.cpp (pkgActionItem::GetSourceArchive): Must always be
2128 prepared to download the associated archive; enable ACTION_DOWNLOAD.
2130 * src/pkgexec.cpp (pkgActionItem::Schedule) [OPTION_REINSTALL]:
2131 May need to download the archive, even when the requested package was
2132 previously installed; schedule ACTION_DOWNLOAD to enable this.
2134 * src/pkgdeps.cpp (promote): Macro redefined in terms of...
2135 (with_flags, with_download): ...these new macros; implement and...
2136 (pkgXmlDocument::ResolveDependencies): ...use them to enable/schedule
2137 ACTION_DOWNLOAD only when expected that it may be necessary.
2139 2011-11-06 Keith Marshall <keithmarshall@users.sourceforge.net>
2141 Fix packaging anomalies for source and licence distributions.
2143 * Makefile.in (licdist): Link README from ${CURDIR}, not from '..'.
2144 (srcdist): Explicitly link pkginfo.c from ${CURDIR} to src/pkginfo,
2145 rather than as implied prerequisite; this avoids a bogus attempt to
2146 link srcdist-doc into src/pkginfo.
2148 2011-11-06 Keith Marshall <keithmarshall@users.sourceforge.net>
2150 Bump version number for subsequent CVS snapshots.
2152 * configure.ac (AC_INIT): Set version to 0.4-alpha-1.1cvs
2154 2011-11-06 Keith Marshall <keithmarshall@users.sourceforge.net>
2156 mingw-get-0.4-mingw32-alpha-1 released.
2158 * configure.ac (AC_INIT): Adjust version number.
2159 * srcdist-doc/NEWS.in: Updated; document new features and bugs fixed.
2160 * All files (r0-4-alpha-1): Tag assigned.
2162 2011-11-04 Keith Marshall <keithmarshall@users.sourceforge.net>
2164 Don't upgrade installed DLL components to incompatible version.
2165 Provide clearer diagnostics for failed requests on implied packages.
2167 * src/pkgdeps.cpp (is_abi_compatible): New static inline function.
2168 (pkgXmlDocument::ResolveDependencies) [is_installed]: Use it.
2169 (pkgXmlDocument::ResolveDependencies) [DEBUG_TRACE_DEPENDENCIES]:
2170 Clean up and improve diagnostic message content and formatting.
2171 (pkgXmlDocument::Schedule) [(upgrade || remove) && ! installed]:
2172 Downgrade diagnostic to WARNING, for implicitly specified component
2173 packages; provide additional explanatory diagnostics.
2175 * src/pkgspec.cpp (pkgSpecs::VersionComparator):
2176 * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit):
2177 [DEBUG_TRACE_DEPENDENCIES]: Eliminate diagnostic noise.
2179 2011-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2181 Fix --download-only vs. --reinstall conflict.
2183 * src/pkgexec.cpp (pkgActionItem::Execute) [OPTION_DOWNLOAD_ONLY]:
2184 Test for explicit inequality, rather than equality to zero; since the
2185 2011-08-30 update, which made --download-only also imply --reinstall,
2186 it will test as non-zero when --reinstall is specified, even though
2187 --download-only is not.
2189 2011-10-07 Keith Marshall <keithmarshall@users.sourceforge.net>
2191 Add support for non-specific upgrade of all installed packages.
2193 * src/pkgbase.h (pkgXmlDocument::RescheduleInstalledPackages):
2194 New public method; declare it.
2196 * src/pkgdeps.cpp (pkgXmlDocument::RescheduleInstalledPackages):
2199 * src/climain.cpp (climain) [ACTION_UPGRADE && argc < 2]: Invoke
2200 pkgXmlDocument::RescheduleInstalledPackages() to schedule the upgrade
2201 request for all packages currently registered as installed.
2203 2011-10-06 Keith Marshall <keithmarshall@users.sourceforge.net>
2205 Implement "source" and "licence" operations.
2207 * src/pkgopts.h (OPTION_ALL_DEPS): New option code; define it.
2208 * src/clistub.c (main): Associate it with...
2209 (all-related, recursive): ...these synonymous option names...
2210 (options): ...defined within this local structured array.
2211 (help_text): Document them; also document "source" and "licence" as
2212 new operations which may be specified on the command line.
2214 * src/pkgtask.h (action_source, action_licence): Enumerate them.
2215 (ACTION_SOURCE, ACTION_LICENCE): Define their manifest values, and...
2216 * src/pkgexec.cpp (action_name): ...associate with operation names.
2218 * src/pkgbase.h (pkgActionItem::GetScheduledSourceArchives):
2219 (pkgActionItem::GetSourceArchive, pkgXmlDocument::GetSourceArchive):
2220 New public methods; declare them for external implementation.
2221 (pkgXmlDocument::GetScheduledSourceArchives): New public method;
2222 implement it as inline.
2224 * src/climain.cpp (pkgProcessedArchives): New pointer to stack of...
2225 (pkgArchiveNameList): ...this new locally defined class; implement it.
2226 (pkgActionItem::GetSourceArchive, pkgXmlDocument::GetSourceArchive):
2227 (pkgActionItem::GetScheduledSourceArchives): Implement them.
2228 (climain): Add invocation hooks.
2230 2011-10-04 Keith Marshall <keithmarshall@users.sourceforge.net>
2232 Establish mapping from release tarname to source tarname.
2234 * src/pkgreqs.cpp (inherited_requirement): New inline function.
2235 (requirement): Use it; adapt to propagate release archive format and
2236 compression type fields, in addition to version fields, when resolving
2237 "%" wildcard matches within the template for the resultant tarname.
2238 (pkgAssociateName): New public function; implement it for use by...
2239 * src/pkgname.cpp (pkgResolvedName): ...this new inline function.
2240 (pkgXmlNode::SourceArchiveName): Use it; adapt to accept a category
2241 selector, so it may resolve source or licence tarnames on demand.
2243 * src/pkgbase.h (pkgXmlNode::SourceArchiveName): Modify declaration;
2244 add category selector argument to support source/licence choice.
2246 2011-10-02 Keith Marshall <keithmarshall@users.sourceforge.net>
2248 Facilitate downloads using diverse cache directories.
2250 * src/pkgbase.h (pkgActionItem::DownloadSingleArchive): New private
2251 method; declare it; it handles the download for a single named archive
2252 file, and stores it in a specifed cache directory.
2254 * src/pkginet.cpp (pkgActionItem::DownloadSingleArchive): Implement
2255 it; factor its code from the original implementation within...
2256 (pkgActionItem::DownloadArchiveFiles): ...this; adapt to use it.
2258 2011-10-02 Keith Marshall <keithmarshall@users.sourceforge.net>
2260 Establish cache directory for source archive downloads.
2262 * src/mkpath.h (pkgSourceArchivePath): New function; declare it.
2263 * src/mkpath.c (pkgSourceArchivePath): Implement it.
2265 2011-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2267 Support archive extraction to arbitrary destination without install.
2269 * src/pkgproc.h (pkgArchiveProcessor::ExtractFile): New virtual
2270 helper method for use, as core helper, by derived classes; declare it.
2271 (pkgArchiveProcessor::CreateExtractionDirectory): Likewise.
2272 (pkgTarArchiveProcessor): Declare overloaded default constructor.
2273 (pkgTarArchiveExtractor): New class definition; it is derived from
2274 pkgTarArchiveProcessor.
2276 * src/tarproc.cpp (pkgArchiveProcessor::ExtractFile): Implement it.
2277 (pkgArchiveProcessor::CreateExtractionDirectory): Likewise.
2278 (pkgTarArchiveExtractor): Implement constructor, together with...
2279 (pkgTarArchiveExtractor::ProcessDirectory): ...this method, and also...
2280 (pkgTarArchiveExtractor::ProcessDataStream): ...this one; these are
2281 declared as abstract, in the pkgTarArchiveProcessor base class.
2282 (pkgTarArchiveInstaller::ProcessDirectory): Simplify; it now delegates
2283 directory creation to pkgArchiveProcessor::CreateExtractionDirectory.
2284 (pkgTarArchiveInstaller::ProcessDataStream): Simplify; delegate file
2285 handling to pkgArchiveProcessor::ExtractFile, as appropriate.
2287 2011-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2289 Make --download-only and --print-uris imply --reinstall.
2291 * src/pkgopts.h (OPTION_PRINT_URIS): Adjust definition.
2292 (OPTION_DNLOAD_ONLY, OPTION_DOWNLOAD_ONLY): Likewise.
2294 2011-08-07 Keith Marshall <keithmarshall@users.sourceforge.net>
2296 Implement --download-only and --print-uris options.
2298 * src/pkgopts.h (OPTION_DOWNLOAD_ONLY, OPTION_PRINT_URIS):
2299 New manifest constants, identifying flag bits; define them.
2300 (OPTION_DNLOAD_ONLY): Likewise; an alias for OPTION_DOWNLOAD_ONLY.
2302 * src/pkgbase.h (pkgActionItem::PrintURI): New private method.
2303 * src/pkginet.cpp: Implement it.
2305 * src/clistub.c (options): Add "download-only" and "print-uris".
2306 (help_text): Document them.
2307 * src/pkgexec.cpp (pkgActionItem::Execute): Process them.
2309 2011-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2311 mingw-get-0.3-mingw32-alpha-2.1 released.
2313 * configure.ac (AC_INIT): Adjust version number.
2314 * srcdist-doc/NEWS.in: Updated; document bugs fixed.
2315 * All files (r0-3-alpha-2-1): Tag assigned.
2317 2011-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2319 Adopt tar.xz as default package archive format.
2321 * Makefile.in (TARZIP, TAREXT): New macros; define them.
2322 (bindist, licdist, srcdist): Use them in place of hardcoded tar.gz
2323 (maintainer-clean): Expunge tar files of any compression format.
2325 2011-07-27 Keith Marshall <keithmarshall@users.sourceforge.net>
2327 Correct handling of release status in requirements specifications.
2329 * src/debug.h (DEBUG_TRACE_DEPENDENCIES): New tracing hook; define it.
2330 * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit): Use it; add
2331 function entry/exit tracing report hooks.
2332 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): Likewise;
2333 also add internal trace point reporting, which may also require...
2334 (show_required): ...this new static inline DEBUG_INVOKED function.
2336 * src/pkgreqs.cpp (requirement): Propagate release status and release
2337 reference index fields from requirer, when package version requirement
2338 is specified by a '%' token, and no explicit release status override
2339 is included in the requirement specification.
2341 * src/pkgspec.cpp (is_wildcard_spec): New static inline helper.
2342 (pkgSpecs::VersionComparator): Use it to identify any package version
2343 specification which may require the extension of a wildcard match, to
2344 span the package version and release status fields; also add tracing
2345 hooks, triggered on DEBUG_TRACE_DEPENDENCIES, to facilitate debugging.
2347 2011-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2349 Avoid accidental RCS keyword substitutions.
2351 * Makefile.in (DOLLAR): New macro; define it.
2352 (readme.txt, readme.txt.in): Use it, where unexpanded RCS Id keyword
2353 matching is intended.
2355 2011-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2357 Mercurial support revisited.
2359 * .cvsignore (.hgtags): Add to CVS untracked list.
2361 2011-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2363 Update readme.txt ID tag-line to track NEWS rather than README.
2365 * Makefile.in (readme.txt.in): New rule; implement it.
2366 (readme.txt.tag): Likewise; this implements the tag-line tracking.
2367 (readme.txt): Rule redefined in terms of the preceding pair.
2369 2011-06-17 Keith Marshall <keithmarshall@users.sourceforge.net>
2371 mingw-get-0.3-mingw32-alpha-2 released.
2373 * configure.ac (AC_INIT): Adjust version number.
2374 * srcdist-doc/NEWS.in: Updated; document new features and bugs fixed.
2375 * All files (r0-3-alpha-2): Tag assigned.
2377 2011-06-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2379 Add internal documentation for --reinstall option.
2381 * src/clistub.c (help_text): Add description for "--reinstall".
2383 2011-06-14 Keith Marshall <keithmarshall@users.sourceforge.net>
2385 Support use of Mercurial within a CVS working copy.
2387 * .cvsignore (.hg, .hgignore): Don't have CVS track these.
2389 2011-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
2391 Implement --reinstall option.
2393 * src/pkgopts.h (OPTION_REINSTALL): New macro; define it.
2394 (OPTION_GENERIC, OPTION_SHIFT_MASK): Likewise.
2395 (OPTION_EXTRA_FLAGS): New field; declare it.
2397 * src/clistub.c (options): Add "reinstall".
2398 (OPTION_GENERIC): Use it where appropriate; within its scope...
2399 (OPTION_STORAGE_CLASS): Improve descriptive comments; add handling for
2400 default case of flag type options requiring an alignment shift.
2402 * src/pkgexec.cpp: Remove previous "always reinstall" kludge.
2403 (pkgOptionSelected, PKG_OPTION_REINSTALL): Remove obsolete macros.
2404 (pkgActionItem::Execute): Check for "upgrade" request on any package
2405 which is already up to date; report this state, otherwise...
2406 [OPTION_REINSTALL || ACTION_UPGRADE]: Mark package as "removed", to
2407 avoid bail-out on "package already installed", when calling...
2408 (pkgInstall): ...this.
2410 2011-06-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2412 Don't require -vv to report progress of update operation.
2414 * src/pkgbind.cpp (pkgRepository::GetPackageList): Eliminate all
2415 basename() calls; `dname' already tells us what it should return.
2416 [update]: Report progress, irrespective of verbosity setting.
2418 2011-06-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2420 Fix MinGW-Bug #3313806.
2422 * src/pkginfo/pkginfo.l (CMS_KEYWORDS): Do not match them within the
2423 PACKAGE_NAME field; this avoids misinterpretation as a release status
2424 qualifier when intended as part of the package name, as in msys-cvs.
2426 2011-06-07 Keith Marshall <keithmarshall@users.sourceforge.net>
2428 Provisional correction for MinGW-Bug #3309438.
2430 * src/debug.h [DEBUGLEVEL == 0]: Provide defaults for...
2431 (DEBUG_ENABLED, DEBUG_REQUEST): ...these macros.
2433 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDirectory):
2434 (pkgTarArchiveInstaller::ProcessDataStream): Use DEBUG_REQUEST to
2435 enable runtime trace activation for previous compile time choices.
2437 2011-05-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2439 mingw-get-0.3-mingw32-alpha-1 released.
2441 * configure.ac (AC_INIT): Adjust version number.
2442 * srcdist-doc/NEWS.in: Updated; document new features.
2443 * All files (r0-3-alpha-1): Tag assigned.
2445 2011-05-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2447 Support assignment of DEBUGLEVEL at configure time.
2449 * configure.ac (DEBUGLEVEL): Declare as a precious variable, using
2450 AC_ARG_VAR; also declare with AC_SUBST, to ensure it is initialised.
2452 * Makefile.in (DEBUGLEVEL): Let AC_SUBST assign it.
2454 2011-05-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2456 Work around bugs in MinGW and GNU getopt_long_only() implementations.
2458 * src/getopt.c: New file; this is a free-standing replacement for any
2459 implementation provided by system libraries. We will always use this
2460 to ensure correct operation irrespective of system bugs; (different
2461 bug manifestations have been identified in the stock MinGW and GNU
2464 * Makefile.in (mingw-get.EXEEXT): Use it.
2466 * src/clistub.c (options): Remove redundant declaration of `-v' as a
2469 2011-05-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2471 Implement user selection of traceable features at run-time.
2473 * src.pkgopts.h (OPTION_VERBOSE_MAX): New macro; define it.
2475 * src/debug.h (DEBUG_ENABLED): New macro; define it.
2476 (DEBUG_REQUEST, DEBUG_REQUEST_FLAGS, DEBUG_TRACE_DYNAMIC): Likewise.
2478 * src/clistub.c (main) [--trace]: Don't make it available unless...
2479 [DEBUG_ENABLED(DEBUG_TRACE_DYNAMIC)]: ...this is set (at compile-time).
2480 [--verbose]: Limit to OPTION_VERBOSE_MAX, using...
2481 (atmost): ...this new macro; define it.
2482 (options): Declare `-v' as both long and short form, pending bug fix
2483 in MinGW's getopt_long_only() implementation.
2485 * src/pkginet.cpp (pkgInternetAgent::OpenURL): Use DEBUG_REQUEST.
2486 (pkgInternetLzmaStreamingAgent::TransferData): Likewise.
2487 (pkgInternetStreamingAgent::TransferData): Likewise.
2488 (pkgInternetStreamingAgent::Get): Likewise.
2490 * src/pkgunst.cpp (pkgActionItem::SetAuthorities): Use DEBUG_REQUEST.
2491 (pkg_rmdir, pkg_unlink): Likewise.
2493 * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Use DEBUG_REQUEST.
2495 2011-05-21 Keith Marshall <keithmarshall@users.sourceforge.net>
2497 Implement protocol for processing global program options.
2499 * src/pkgopts.h: New file.
2501 * src/climain.cpp (cli_setopts): New function; implement it.
2502 (pkgOptions): Likewise.
2504 * src/clistub.c (xatoi): New function; implement it.
2505 (cli_setargv): New inline helper function; implement it.
2506 (main): Use it. Also incorporate implementation of...
2507 (parsed_options): New structure; it accommodates...
2508 (verbose, trace): New options; interpret them, and...
2509 (help_text): ...document them.
2511 * src/pkgbind.cpp (pkgRepository::GetPackageList): Make catalogue
2512 loading notifications and progress reports conditional on...
2513 [OPTION_VERBOSE > 1]: ...this.
2515 2011-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2517 Augment known development status keywords and accept CMS labels.
2519 * src/pkginfo/pkginfo.l (CMS_KEYWORDS): Define new provisional list;
2520 add transitional state scanner rule and code to interpret them.
2521 (STATUS_KEYWORDS): Add "pre" and "rc" to existing list; modify scanner
2522 code to maintain consistency with CMS_KEYWORDS processing; also extend
2523 this coding strategy to other rules.
2525 * src/pkginfo/driver.c (spec): Strip initial '$' token from displayed
2526 field values; (we expect it only for a CMS_KEYWORDS field value).
2528 * src/pkgreqs.cpp (pkgSpecs::GetTarName): Remove any initial '$' token
2529 from PACKAGE_RELEASE_STATUS field, when performing reverse of tarname
2530 decomposition transformation.
2532 2011-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2534 Correct omission from 2011-02-18 commit.
2536 * src/tarproc.cpp (Copyright Notice): Add 2011 as year of release.
2538 2011-05-14 Keith Marshall <keithmarshall@users.sourceforge.net>
2540 mingw-get-0.2-mingw32-alpha-4 released.
2542 * configure.ac (AC_INIT): Adjust version number.
2543 * srcdist-doc/NEWS.in: Updated; add bug-fix/feature descriptions.
2544 * All files (r0-2-alpha-4): Tag assigned.
2546 2011-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2548 Fix MinGW-Bug #3297660 (reported by Chris Sutcliffe).
2550 * src/pkgbase.h (pkgActionItem::SetAuthorities): Return unsigned long.
2551 (pkgActionItem::HasAttribute): New inline method; implement it.
2553 * src/pkgtask.h (ACTION_DOWNLOAD, ACTION_DOWNLOAD_OK): New macros.
2555 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles):
2556 [ACTION_DOWNLOAD]: Assert it at commencement of each package download;
2557 clear it again, on successful download completion.
2559 * src/pkginst.cpp (pkgtask.h): #include it.
2560 (pkgInstall) [ACTION_DOWNLOAD]: Don't proceed with installation when
2561 set; this indicates failed download; diagnose it.
2563 * src/pkgunst.cpp (pkgRemove) [ACTION_DOWNLOAD && ACTION_UPGRADE]:
2564 Don't proceed with pre-emptive removal when both set; this indicates
2565 failed download of replacement package; diagnose it.
2567 2011-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2569 Fix MinGW-Bug #3295526 (reported by Charles Wilson).
2571 * src/pkgunst.cpp (sys/stat.h): #include it; we need it for...
2572 (pkg_unlink): ...chmod( file, S_IWRITE ), emulating `rm -f' semantics.
2574 2011-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2576 Diagnose and aggressively retry failed download connections.
2578 * src/debug.h (DEBUG_TRACE_INTERNET_REQUESTS): New macro; define it.
2580 * src/pkginet.cpp (debug.h): #include it.
2581 (pkgDownloadMeter): New abstract class; declare it and implement its
2582 default (non-abstract) data and methods; derive...
2583 (pkgDownloadMeterTTY): ...this new class from it; implement it...
2584 (pkgInternetStreamingAgent::Get): ...and instantiate it (naively for
2585 now), as associated pkgDownloadMeter object; add tracing diagnostic.
2586 (pkgInternetAgent::OpenURL): Don't inline it; move implementation out
2587 of line; add retry loops to aggressively retry failed connections.
2588 (pkgInternetAgent::QueryContentLength): New method; implement it.
2589 (pkgInternetStreamingAgent::TransferData): Avoid Microsoft specific
2590 data type `DWORD'; prefer equivalent standard `unsigned long'. Add
2591 tracing diagnostic. Remove progress diagnostic; replace it with an
2592 `Update' request to associated pkgDownloadMeter.
2593 (pkgInternetLzmaStreamingAgent::GetRawData): Avoid `DWORD' data type.
2594 (pkgInternetLzmaStreamingAgent::TransferData): Likewise; add tracing
2595 diagnostic on failure.
2597 2011-03-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2599 mingw-get-0.2-mingw32-alpha-3 released.
2601 * configure.ac (AC_INIT): Adjust version number.
2602 * srcdist-doc/NEWS.in: Updated; add bug-fix description.
2603 * All files (r0-2-alpha-3): Tag assigned.
2605 2011-03-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2607 Provisional handling for http proxy authentication.
2608 (Adapted from patch by Scott Michel <pingbak@users.sourceforge.net>)
2609 (ref: MinGW-Patch #3158453)
2611 * src/pkginet.cpp: Several format/layout adjustments; add comments.
2612 Eliminate several instances of Microsoft specific typedef nastiness.
2613 (dmh_dialogue_context): New macro; kludge definition to support...
2614 (pkgInternetAgent::OpenURL) [HTTP_STATUS_PROXY_AUTH_REQ]: Detect
2617 2011-03-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2619 Expand macros in path names for files and directories to be removed.
2621 * src/pkgunst.cpp (pkgRemove): Format sysroot as a template, so...
2622 (pkg_rmdir, pkg_unlink): ...are able to use mkpath() to construct the
2623 full path name for each file or directory to be removed.
2625 2011-03-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2627 Correct defective activation logic for some debugging hooks.
2629 * src/pkgunst.cpp (pkg_rmdir, pkg_unlink) [DEBUG_INVOKE_IF]:
2630 (pkgActionItem::SetAuthorities) [DEBUG_INVOKE_IF]: Use bit-wise `&'
2631 operator, not `&&', to evaluate DEBUGLEVEL state.
2633 2011-03-22 Keith Marshall <keithmarshall@users.sourceforge.net>
2635 Avoid Unicode hyphens in generated ASCII document files.
2637 * Makefile.in (NROFF): New macro; define it to invoke `nroff -Tascii'.
2638 (%.dist, readme.txt): Use it to ensure that output is pure ASCII.
2640 2011-03-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2642 mingw-get-0.2-mingw32-alpha-2 released.
2644 * configure.ac (AC_INIT): Adjust version number.
2645 * srcdist-doc/NEWS.in: Updated; add bug-fix description.
2646 * All files (r0-2-alpha-2): Tag assigned.
2648 2011-03-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2650 Fix MinGW-Bug 3212246.
2652 * src/keyword.c (has_keyword): Avoid incrementing the comparison
2653 pointers when a significant character in one string is not matched in
2654 the other; previously the pointers were left pointing one character to
2655 the right of the mismatch, and this was overlooked if the mismatch
2656 occurred at the rightmost character in both strings.
2658 2011-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2660 mingw-get-0.2-mingw32-alpha-1 released.
2662 * configure.ac (AC_INIT): Set version number; correct capitalisation
2663 in URI reference to bug reporting instructions.
2665 * srcdist-doc/NEWS.in: Confirm release date.
2666 [bug reporting]: Remove redundant paragraph; the information is
2667 provided, via reference to mingw.org. in the README and INSTALL files.
2669 * All files (r0-2-alpha-1): Tag assigned.
2671 2011-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2673 * srcdist-doc/INSTALL.in [building]: Qualify liblzma.a requirement;
2674 add earliest acceptable snapshot release date.
2676 2011-03-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2678 Remove unused 7zip and boost source code from CVS trunk.
2680 * 7z: Directory and all content removed.
2683 2011-03-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2685 Refactor and update existing installation and usage instructions.
2687 * src/clistub.c (help_text): Updated.
2689 * srcdist-doc: New directory.
2691 * README: Deleted; its content refactored into...
2692 * srcdist-doc/README.in srcdist-doc/INSTALL.in srcdist-doc/NEWS.in:
2693 ...these new template files, updated for current development state.
2695 * srcdist-doc/gendoc.sed.in: New sed script; it directs formatting of
2696 generated text files derived from the srcdist-doc templates.
2698 * Makefile.in (SRCDIST_SUBDIRS): Add srcdist-doc.
2699 (SRCDIST_FILES): Add NEWS and INSTALL.
2700 (srcdist-doc): New build rule to generate README, NEWS and INSTALL.
2701 (srcdist, licdist): Adjust path to locate them.
2702 (readme.txt): New build rule to generate on-line package description.
2704 (distclean): Don't remove Makefile...
2705 (maintainer-clean): ...but do it here instead. Also remove generated
2706 README, NEWS and INSTALL, the autom4te cache, and all distributable
2707 zip files, in addition to tarballs, for the current version.
2709 2011-02-27 Keith Marshall <keithmarshall@users.sourceforge.net>
2711 Initial implementation for "remove" feature.
2713 * src/pkgbase.h: Update copyright notice; add current year.
2714 (pkgActionItem::SetPrimary): New inline public method; declare it.
2715 (pkgActionItem::SetAuthorities): New public method; declare it.
2717 * src/pkgtask.h (ACTION_PREFLIGHT, ACTION_REMOVE_OK): New defines.
2719 * src/pkgproc.h: Update copyright notice; add current year.
2720 (pkgManifest::GetSysRootReference): New public method; declare it.
2721 (pkgManifest::GetRoot): New inline method; declare and implement it.
2722 (pkgManifest::DetachSysRoot): Argument type changed to const char*.
2723 (pkgRemove): New extern "C" function; declare it.
2725 * src/pkgexec.cpp (pkgActionItem::SetPrimary): Implement it, and...
2726 (pkgXmlDocument::Schedule): ...use it to promote actions on all user
2727 specified packages, as listed on the command line, to primary status.
2728 (pkgActionItem::Execute): Repeatedly invoke...
2729 (pkgActionItem::SetAuthorities): ...this; incorporate call of...
2730 (pkgActionItem::DownloadArchiveFiles): ...this, within the loop, so
2731 that we retry failed downloads at least a second time.
2732 [ACTION_REMOVE]: Delete stub; invoke pkgRemove().
2734 * src/pkgunst.cpp: New file.
2735 (pkgActionItem::SetAuthorities): Implement it.
2736 (pkgManifest::GetSysRootReference): Implement it.
2737 (pkgManifest::DetachSysRoot): Implement it per new declaration.
2738 (pkgRemove): Implement it.
2740 * Makefile.in (CORE_DLL_OBJECTS): Add pkgunst.OBJEXT
2742 2011-02-26 Keith Marshall <keithmarshall@users.sourceforge.net>
2744 Work-around for improper stderr buffering in MSYS mintty and rxvt.
2745 (Merged from r0-1-alpha-5 branch).
2747 * src/dmh.cpp (dmhTypeTTY::emit_and_flush): New private method.
2748 (dmhTypeTTY::printf, dmhTypeTTY::notify): Use it to force an fflush()
2749 after each output record is written to stderr.
2751 * README: Update as appropriate.
2753 2011-02-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2755 Tidy up some debugging hooks.
2757 * src/debug.h (DEBUG_INVOKED): New macro; define it.
2758 (DEBUG_INVOKE_IF): Likewise; this takes arguments providing for
2759 conditional invocation of code when DEBUGLEVEL is non-zero; make it
2760 expand to nothing, when DEBUGLEVEL is zero.
2761 (DEBUG_TRACE_INIT): Redefined macro; value changed to 0x0010.
2762 (DEBUG_TRACE_TRANSACTIONS, DEBUG_SUPPRESS_INSTALLATION):
2763 (DEBUG_UPDATE_INVENTORY): New macros; define them.
2765 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDirectory):
2766 (pkgTarArchiveInstaller::ProcessDataStream): Refactor debugging hooks;
2767 implement them in terms of DEBUGLEVEL, with reference to...
2768 (DEBUG_SUPPRESS_INSTALLATION, DEBUG_UPDATE_INVENTORY): ...these.
2770 2011-02-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2772 Make package version comparisons more robust.
2774 Fixes an issue reported by Chris Sutcliffe: previously, version
2775 comparisons were evaluated solely on the basis of differences in the
2776 package version field itself. Henceforth, if this field compares as
2777 equal, then the comparison is extended to also consider differences
2778 between development phase qualifiers, and, if these too compare as
2779 equal, to differences in the target subsystem version fields.
2781 * src/pkginfo/pkginfo.h (pkgSpecs::VersionComparator): New private
2784 * src/pkgspec.cpp (pkgSpecs::VersionComparator): Implement it.
2785 (pkgSpecs::operator<, pkgSpecs::operator<=, pkgSpecs::operator>=):
2786 (pkgSpecs::operator>): Use it, replacing...
2787 (version): ...this static function; now unreferenced; delete it.
2789 * src/vercmp.h (pkgVersionInfo::pkgVersionInfo): Make it inline; it
2790 now delegates the entire class construction operation to...
2791 (pkgVersionInfo::Parse): ...this new private method; declare it. This
2792 is also used to facilitate implementation of...
2793 (pkgVersionInfo::Reset): ...this new inline method, also requiring...
2794 (pkgVersionInfo::FreeAll): ...this new inline method; also now used by
2795 the class destructor, it encapsulates separate calls to...
2796 (pkgVersionInfo::Free): ...this original inline method, renamed...
2797 (pkgVersionInfo::FreeEntry): ...as this.
2799 * src/vercmp.cpp (pkgVersionInfo::Parse): Implement it.
2801 2011-02-13 Keith Marshall <keithmarshall@users.sourceforge.net>
2803 Merge from mingw-get-0.1-mingw32-alpha-5 bug-fix branch.
2805 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): Promote
2806 "install" action on new prerequisites, where a previously uninstalled
2807 package is required to satisfy any "upgrade" dependency.
2809 * src/pkgexec.cpp (pkgActionList::Execute): Don't make misleading
2810 claims concerning package removal.
2812 * src/pkgtask.h (STRICTLY_GT, STRICTLY_LT, ACTION_PRIMARY): Add one
2813 level of parentheses around defining expressions.
2815 2011-02-10 Keith Marshall <keithmarshall@users.sourceforge.net>
2817 Publish mingw-get-0.0-mingw32-alpha-5.1 bug-fix release.
2819 * README: Updated to reflect changes.
2821 2011-02-08 Keith Marshall <keithmarshall@users.sourceforge.net>
2823 Improve diagnostics for failed GUI invocation.
2825 * src/guimain.cpp: New file; currently delivers only a diagnostic
2826 stub, provided by Sze Howe Koh <axfangli@users.sourceforge.net>, to
2827 pop-up a message block explaining why GUI mode cannot be invoked.
2829 * Makefile.in (GUI_LDFLAGS): New macro; it is required by...
2830 (gui$EXEEXT): ...this new build rule; add to prerequisites of...
2831 (all): ...this [default] build rule; redefine this in terms of...
2832 (BIN_PROGRAMS, LIBEXEC_PROGRAMS, LIBEXEC_DATA): ...these new macros;
2833 define them, and also use them as loop iterator objectives for...
2834 (install, install_strip): ...these; also schedule them...
2835 (clean): ...for removal by this.
2837 * src/clistub.c (Copyright): Add new year.
2838 (main): Amend error message, if gui$EXEEXT doesn't start; make it
2839 more intelligible to normal users.
2841 2011-02-07 Keith Marshall <keithmarshall@users.sourceforge.net>
2843 Correct omissions from packaged source tarball.
2845 * Makefile.in (Copyright): Add new year.
2846 (SRCDIST_FILES): Add aclocal.m4
2847 (SRCDIST_SUBDIRS): Add m4
2849 2011-01-05 Keith Marshall <keithmarshall@users.sourceforge.net>
2851 Reduce path names to base names, in some diagnostic message contexts.
2853 * src/climain.cpp: Update copyright notice for new year.
2854 (climain): Extract base name from argv[0], to pass as program name tag
2855 in initialisation of diagnostic message handler.
2857 * src/dmh.h, src/dmh.cpp: Update copyright notices; make some layout
2858 adjustments, for more consistent formatting style.
2860 * src/pkgbind.cpp: Update copyright notice.
2861 (pkgRepository::GetPackageList): Reduce path names for catalogue files
2862 to their base names, when reporting them in diagnostic messages.
2864 2011-01-05 Keith Marshall <keithmarshall@users.sourceforge.net>
2866 Avoid a potential out-of-range action name look-up.
2868 * src/pkgdeps.cpp: Update copyright notice for new year.
2869 (pkgXmlDocument::Schedule): Mask action code with ACTION_MASK, to
2870 determine correct action name when diagnosing uninstalled package.
2872 2011-01-03 Keith Marshall <keithmarshall@users.sourceforge.net>
2874 Make "install" and "remove" notifications symmetric.
2876 * configure.ac (AC_INIT): Bump version to "0.1-alpha-6cvs".
2877 (YEARS_OF_ISSUE): Add new year.
2879 * src/pkginst.cpp: Update copyright notice for new year.
2880 (pkgInstall): Add notification for package being installed.
2882 2010-12-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2884 Add preliminary CLI support for "list" and "show" actions.
2886 * src/pkgtask.h (ACTION_PRIMARY): New manifest constant; define it.
2887 (ACTION_LIST, ACTION_SHOW): Likewise; cast to enumerated values for...
2888 (action_list, action_show): ...these; define them.
2890 * src/pkgexec.cpp (action_name): Add defining text for...
2891 (action_list, action_show): ...these.
2893 * src/climain.cpp: Partially revert 2010-11-01 change...
2894 (climain) [! ACTION_UPDATE]: Reinstate original "if" block, moving
2895 the "switch" block within it, but without the ACTION_UPDATE case.
2896 [ACTION_LIST, ACTION_SHOW]: New "switch" cases; they invoke...
2897 (pkgXmlDocument::DisplayPackageInfo): ...this new method.
2899 * src/pkgbase.h (pkgXmlDocument::DisplayPackageInfo): Declare it.
2900 (pkgActionItem::ConfirmInstallationStatus): New method; declare it.
2901 (pkgXmlNode::GetSysRoot): Make declaration style consistent with
2902 others in the class; do not name arguments in the declaration.
2903 (pkgXmlNode::FindFirstAssociate): Likewise.
2904 (pkgXmlNode::FindNextAssociate): Likewise.
2906 * src/pkgshow.cpp: New file.
2907 (pkgXmlDocument::DisplayPackageInfo): Implement it.
2909 * src/pkgdeps.cpp (pkgMsgUnknownPackage): New extern "C" function;
2910 implement it temporarily, pending a future i18n reimplementation.
2911 (assert_installed): Drop "inline" attribute; leave it as "static".
2912 Set "tarname" correctly, to match the installed package version; (it
2913 previously incorrectly returned the latest available version).
2914 (pkgActionItem::ConfirmInstallationStatus): Implement it.
2915 (pkgXmlDocument::Schedule) [ACTION_PRIMARY]: Set as appropriate.
2916 (pkgXmlDocument::Schedule) [ACTION_REMOVE || ACTION_UPGRADE]: Complain
2917 if requested package is not recorded as having been installed.
2918 (pkgXmlDocument::ResolveDependencies) [! ACTION_INSTALL]: Do not
2919 invoke it recursively.
2921 * Makefile.in (pkgshow.$OBJEXT): Add reference.
2923 2010-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
2925 Lay groundwork for implentation of additional actions.
2927 * src/climain.cpp (climain): Adjust indentation; replace `if' block...
2928 [action != ACTION_UPDATE]: ...with this default `switch' case, and...
2929 [action == ACTION_UPDATE]: ...this as explicit "do nothing" case.
2931 2010-10-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2933 mingw-get-0.1-mingw32-alpha-5 released.
2935 * configure.ac (AC_INIT): Bump version to 0.1-alpha-5.
2936 * README: Update release notes accordingly.
2937 * All files (r0-1-alpha-5): Tag assigned.
2939 2010-10-22 Keith Marshall <keithmarshall@users.sourceforge.net>
2941 Make pkgInitRites/pkgLastRites processing more robust;
2942 avoid a potential race condition in mingw-get-inst.
2944 * src/rites.c: Refactor conditional code to segregate execution of...
2945 [defined IMPLEMENT_INITIATION_RITES]: ...this into distinct phases.
2946 (PHASE_ONE_RITES, PHASE_TWO_RITES): Define constants to identify them.
2947 (do_init_rites): Renamed to...
2948 (invoke_rites): ...this; inline it.
2949 (pkgLastRites): Invoke it, to pre-empt rename action of...
2950 (lastrites.exe): ...this, subsequently exec()ed process.
2951 (perror): Issue more informative diagnostic on exec() failure.
2953 * src/clistub.c (IMPLEMENT_INITIATION_RITES): Stipulate as...
2954 (PHASE_ONE_RITES): ...this phase of implementation only.
2956 * src/pkgexec.cpp (IMPLEMENT_INITIATION_RITES): Define to provide...
2957 (PHASE_TWO_RITES): ...this phase of implementation, facilitated by...
2958 (self_upgrade_rites): ...this locally defined RITES_INLINE function.
2959 (pkgActionItem::Execute): Invoke it, in remove/install loop, while...
2960 [init_rites_pending]: ...new loop local variable remains true.
2962 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
2964 Fix packaging bug in -lic package.
2966 * Makefile.in (licdist): Use directory named
2967 "share", not "shared".
2969 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
2971 mingw-get-0.1-mingw32-alpha-4 released.
2973 * All files (r0-1-alpha-4): Tag assigned.
2975 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
2977 Add rudimentary help option.
2979 * README: Update release notes.
2981 * src/clistub.c: Add --help option.
2983 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
2985 Fix "mingw-get deletes itself" bug in last rites handling.
2987 * README: Add new release notes.
2989 * configure.ac: Bump version to 0.1-alpha-4.
2991 * src/dmh.h: If __cplusplus, include <exception> and
2992 declare dmh_exception class.
2994 * src/dmh.cpp (class dmh_exception): Implement.
2995 (abort_if_fatal): If DMH_FATAL, throw dmh_exception rather
2996 than calling exit().
2998 * src/climain.cpp (climain): Wrap entire function body in try/
2999 catch block. If dmh_exception is caught, return EXIT_FAILURE.
3001 * src/clistub.c (main): Capture return value of climain(). If
3002 non-zero, perform last rites and return EXIT_FAILURE.
3004 2010-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
3006 mingw-get-0.1-mingw32-alpha-3 released.
3008 * README: Add new release notes.
3010 * All files (r0-1-alpha-3): Tag assigned.
3012 2010-08-27 Keith Marshall <keithmarshall@users.sourceforge.net>
3014 Add runtime hooks to support self-upgrade for future releases.
3016 * src/rites.c: New file; compile it free-standing, to provide...
3017 (lastrites.exe): ...this helper application for context clean-up;
3018 alternatively, use it as an include file, with pre-definition of...
3019 (IMPLEMENT_INITIATION_RITES): ...this, to implement...
3020 (pkgInitRites, pkgLastRites): ...these inline functions.
3022 * src/clistub.c (main) [argc > 1]: Use them.
3023 (progname): New local variable within `main'; set it once, then use it
3024 instead of repeated references to `basename(*argv)' in diagnostics.
3025 (MINGW_GET_DLL, MINGW_GET_GUI): Relocate to `src/rites.c'.
3027 * src/debug.h (DEBUG_INHIBIT_RITES_OF_PASSAGE):
3028 (DEBUG_FAIL_FILE_RENAME_RITE, DEBUG_FAIL_FILE_UNLINK_RITE): New
3029 defines; they facilitate debugging of the src/rites.c code.
3031 * Makefile.in (lastrites$EXEEXT): New target; build as prerequisite...
3032 (all): ...of this primary target.
3033 (install, install-strip): Install it.
3034 (SRCDIST_FILES): Remove install-sh; it is now included in...
3035 (build-aux): ...this directory; add it to...
3036 (SRCDIST_SUBDIRS): ...this.
3038 2010-08-24 Keith Marshall <keithmarshall@users.sourceforge.net>
3040 Set default sysroots relative to mingw-get installation directory.
3042 * xml/profile.xml (system-map) [name == default]: For each of...
3043 [subsystem == mingw32]: ...set sysroot path to value of %R macro...
3044 [subsystem == msys]: ...and to its %R/msys/1.0 subdirectory.
3046 2010-08-19 Keith Marshall <keithmarshall@users.sourceforge.net>
3048 Some dependency resolver enhancements and bug fixes.
3050 * src/pkgbase.h (pkgXmlNode::GetContainerAttribute): New method;
3053 * src/pkgdeps.cpp (pkgXmlNode::GetContainerAttribute): Implement it;
3054 it is used to retrieve package name attributes from the containing
3055 'package' element, when given a pointer to a 'release' element by...
3056 (assert_unmatched, assert_installed): ...these new static functions.
3057 (pkgXmlDocument::Schedule): Use them to reconstruct and register
3058 dependency reference data for previously installed packages which are
3059 no longer included in the distribution manifest.
3060 (pkgXmlDocument::ResolveDependencies): Fix a block nesting error;
3061 catch and diagnose unresolved dependencies; don't look beyond the XML
3062 document root node, (tinyxml error not caught?), when searching for
3063 requirements specified on container nodes.
3065 2010-08-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3067 Improve scheduling of package processing requests.
3069 * src/pkgexec.cpp (pkgXmlDocument::Schedule): Inspect entire `actions'
3070 list, when checking for duplicate package processing requests; decline
3071 to schedule any such duplicate, or any request which lacks a package
3074 2010-08-15 Keith Marshall <keithmarshall@users.sourceforge.net>
3076 Lay foundation for selective compilation of debugging code.
3078 * src/debug.h: New file...
3079 * src/sysroot.cpp: Include it.
3080 (pkgXmlDocument::LoadSystemMap): Make debugging output conditional...
3081 [DEBUGLEVEL & DEBUG_TRACE_INIT]: ...on this new debugging state.
3083 2010-08-15 Keith Marshall <keithmarshall@users.sourceforge.net>
3085 * src/pkgkeys.h: Typo in comment: file was previously identified as
3086 pkgkeys.c; corrected.
3088 2010-08-13 Keith Marshall <keithmarshall@users.sourceforge.net>
3090 Improve diagnostics for invalid references to non-release XML nodes.
3092 * src/pkgkeys.h (value_unknown): New global string; declare it.
3093 * src/pkgkeys.c (value_unknown): Implement it.
3095 * src/pkgname.cpp (pkgArchiveName): Identify XML element type when
3096 diagnosing references to elements of types other than release; use...
3097 (value_unknown): ...this, as appropriate.
3099 2010-08-12 Keith Marshall <keithmarshall@users.sourceforge.net>
3101 Guard against a potential buffer overrun.
3103 * src/pkgreqs.cpp (pkgSpecs::SetProperty): Allocate an additional
3104 byte to accommodate an extra field separator, when inserting a new
3105 data value into a previously empty field.
3107 2010-07-27 Cesar Strauss <cestrauss@gmail.com>
3109 Handle the GNU long name tar header format.
3111 * src/pkgproc.h (TAR_ENTITY_TYPE_GNU_LONGNAME): New manifest constant;
3113 (pkgTarArchiveProcessor::EntityDataAsString): New protected method;
3115 * src/tarproc.cpp: ...implement it.
3116 (pkgTarArchiveProcessor::Process): Before building the entry pathname,
3117 check for a GNU long name type header; when found, read pathname from
3118 the entry data area, before fetching the following header, from which
3119 to retrieve the associated entity data.
3121 2010-06-24 Keith Marshall <keithmarshall@users.sourceforge.net>
3123 Work around an autoconf bug (reported by Stefano Sabatini).
3125 * Makefile.in (VPATH): Use @top_srcdir@ instead of ${srcdir}; current
3126 autoconf incorrectly elides references to @srcdir@ and ${srcdir} when
3127 substituting within a VPATH specification for building `in-source'.
3128 Also, prefer colons to blanks as path name separators, for improved
3129 portability to non-GNU implementations of make; (recommendation by
3132 2010-06-24 Keith Marshall <keithmarshall@users.sourceforge.net>
3134 Include alias search, when matching component package name.
3136 * src/keyword.c (has_keyword): Rearrange argument declarations for
3137 more natural order; update all callers accordingly. Simplify; compare
3138 keyword to be matched with each successive candidate from match-list,
3139 character-by-character and in-place, so avoiding memory allocation
3140 for any local duplicate of the passed match-list; thus...
3141 (safe_strdup): ...this static function no longer required; delete it.
3142 (string.h): No references remain; do not include it.
3144 * src/pkgfind.cpp (pkgXmlNode::FindPackageByName): Augment component
3145 package name matching to include potential matches of the look-up name
3146 with trailing component name stripped off, when that matches the class
3147 name of an identified component package, and the initial substring of
3148 the look-up name, after stripping, matches any specified alias name
3149 for the containing package.
3151 2010-06-10 Keith Marshall <keithmarshall@users.sourceforge.net>
3153 Address FIXME relating to identification of distributable files.
3155 * install-sh: Move to...
3156 * build-aux: ...this new directory.
3158 * Makefile.in (PACKAGE_DISTVERSION): Modify `sed' edit sequence; make
3159 it depend on, and ensure that it incorporates the expansion of...
3160 (PACKAGE_SUBSYSTEM): ...this new macro; defined as substitution of...
3161 (host_os): ...this autoconf variable, set by...
3163 * configure.ac (AC_CANONICAL_HOST): ...this; add it, requiring...
3164 (AC_CONFIG_AUX_DIR): ...`build-aux' directory reference, providing...
3166 * build-aux/config.guess, build-aux/config.sub: ...these new standard
3167 files; import them from the standard `build-aux' repository.
3169 2010-05-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3171 Bump version for next release cycle.
3173 * configure.ac (AC_INIT): Bump version suffix to alpha-3.
3175 2010-05-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3177 mingw-get-0.1-mingw32-alpha-2 released.
3179 * README: Add new release notes.
3181 * xml/profile.xml: Update to use default referencing for...
3182 (package-list.xml.lzma): ...this repository master catalogue.
3184 * All files (r0-1-alpha-2): Tag assigned.
3186 2010-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
3188 Make provision to protect user's profile settings during upgrade.
3190 * Makefile.in (install): Remove `profile.xml'; replace it with...
3191 (install-profile): ...this new prerequisite installation goal; it
3192 renames the installed copy of `profile.xml' as `defaults.xml', within
3193 the installed package image.
3195 * src/pkgkeys.h (defaults_key): New key; declare it.
3196 * src/pkgkeys.c: Some cosmetic formatting (tabulation) adjustments.
3197 (defaults_key): Implement it; it refers to the `defaults.xml' file.
3199 * src/climain.cpp (climain): Check `profile_key' for accessibility of
3200 the `profile.xml' file; if [! R_OK] emit a diagnostic warning, fall
3201 back on `defaults_key', and attempt to load configuration from the
3202 distributed `defaults.xml' file.
3204 2010-05-11 Keith Marshall <keithmarshall@users.sourceforge.net>
3206 Add preliminary support for future `-reinstall' option.
3208 * src/pkgexec.cpp (pkgActionItem::Execute) [ACTION_INSTALL]: Force
3209 installation if `-reinstall' option is selected, overriding state of
3210 any prior installation; temporarily assume that this option is always
3211 selected, to permit proper `upgrade' operation in the absence of any
3212 functional `uninstall' capability, and pending implementation of a
3213 mechanism for interpreting user specified options.
3215 2010-05-11 Keith Marshall <keithmarshall@users.sourceforge.net>
3217 Correct handling for "%R" macro in relative sysroot path specs.
3219 * src/tarproc.cpp (pkgTarArchiveProcessor): In constructor, expand the
3220 sysroot path specification a second time, to capture the effect of any
3221 embedded macros, before computing the recorded `sysroot_len' value.
3223 2010-05-05 Keith Marshall <keithmarshall@users.sourceforge.net>
3225 Handle "%" wildcard matches in package and subsystem version strings.
3227 * src/pkgbase.h (pkgSpecs): Forward declare it.
3228 (pkgActionItem::~pkgActionItem): Declare explicit destructor.
3229 (pkgActionItem::SetRequirements): Add extra `pkgSpecs*' argument;
3230 update references, passing additional argument in...
3232 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): ...this.
3234 * src/pkgexec.cpp (pkgActionItem::~pkgActionItem): Implement it.
3235 (pkgActionItem::SetRequirements): Delete obsolete implementation.
3237 * src/pkginfo/pkginfo.h: Update copyright notice; add year 2010.
3238 (pkgSpecs::GetTarName): New public method; declare it.
3239 (pkgSpecs::SetProperty): New private method; declare it.
3240 (pkgSpecs::SetPackageName): New inline method; implement it.
3241 (pkgSpecs::SetPackageVersion, pkgSpecs::SetPackageBuild): Likewise.
3242 (pkgSpecs::SetSubSystemName, pkgSpecs::SetSubSystemVersion): Likewise.
3243 (pkgSpecs::SetSubSystemBuild, pkgSpecs::SetReleaseStatus): Likewise.
3244 (pkgSpecs::SetReleaseIndex, pkgSpecs::SetComponentClass): Likewise.
3245 (pkgSpecs::SetComponentVersion, pkgSpecs::SetPackageFormat): Likewise.
3246 (pkgSpecs::SetCompressionType): Likewise.
3248 * src/pkginfo/pkginfo.l: Update copyright notice; add year 2010.
3249 (TRANS): Interpret "%" as wildcard in version string matches.
3251 * src/pkgreqs.cpp: New file.
3252 (pkgActionItem::SetRequirements): Reimplement per new declaration;
3253 it now always allocates heap memory for requirements specifications.
3254 (pkgSpecs::GetTarName, pkgSpecs::SetProperty): Implement them.
3256 * Makefile.in (CORE_DLL_OBJECTS): Add `pkgreqs.$(OBJEXT)'.
3258 2010-04-30 Keith Marshall <keithmarshall@users.sourceforge.net>
3260 Revert 2010-04-04 refactoring of tarproc.cpp and tarinst.cpp
3262 * src/tarinst.cpp: File removed; its content merged into...
3263 * src/tarproc.cpp: ...this; it cannot be cleanly separated out.
3265 * Makefile.in (tarinst.$OBJEXT): Remove reference.
3267 2010-04-29 Keith Marshall <keithmarshall@users.sourceforge.net>
3269 Handle "*" wildcard matches in package and subsystem version strings.
3271 * src/vercmp.h (pkgVersionInfo::version_string): New private member
3272 variable; it stores a pointer to a dynamically allocated local copy of
3273 the invariant `version' argument, to facilitate correct parsing.
3274 (pkgVersionInfo::build_string): Likewise; it provides similar handling
3275 for the invariant `build' argument.
3276 (pkgVersionInfo::Free): New private inline method; it provides a NULL
3277 pointer safe wrapper, calling the C library `free()' function, (since
3278 some implementations are believed to be unsafe); it is used by...
3279 (pkgVersionInfo::~pkgVersionInfo): ...this new inline destructor, to
3280 release the memory allocated by the constructor, for `version_string'
3283 * src/vercmp.cpp (pkgVersionInfo::pkgVersionInfo): Allocate memory for
3284 `version_string' and `build_string', as required; populate it.
3285 Explicitly handle "*" as a `match anything' wildcard...
3286 (pkgVersionInfo::Compare): ...matching it as `equal' to everything.
3288 2010-04-18 Keith Marshall <keithmarshall@users.sourceforge.net>
3290 Correct omission from configure script prerequisite checks.
3292 * aclocal.m4 (MINGW_AC_OUTPUT): New macro; it wraps AC_OUTPUT itself,
3293 adding a trap to force an abort if any preceding prerequisite check
3294 was handled by MINGW_AC_ASSERT_MISSING.
3296 * configure.ac: Qualify package component types, in prerequisite
3297 checks handled by MINGW_AC_ASSERT_MISSING; invoke MINGW_AC_OUTPUT
3298 in place of AC_OUTPUT.
3300 2010-04-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3302 Add configure script checks for prerequisite library headers.
3303 (Thanks to Cesar Strauss for proposing a rudimentary implementation).
3305 * aclocal.m4: New file; it does no more than include...
3306 * m4/missing.m4: ...this; new file incorporated from build-aux module.
3308 * configure.ac: Add AC_CHECK_HEADER assertions for...
3309 (zlib.h, bzlib.h, lzma.h): ...these; invoke MINGW_AC_ASSERT_MISSING in
3310 respect of each failing assertion.
3312 2010-04-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3314 Case-insensitive subsystem name matching revisited.
3316 * src/pkgfind.cpp (pkgXmlDocument::FindPackageByName): Use...
3317 (subsystem_strcmp): ...this to match subsystem names, instead of...
3318 (match_if_explicit): ...this.
3320 2010-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
3322 Enable recursive processing of repository package lists.
3324 * src/pkgbase.h (pkgXmlDocument::SyncRepository): Make it public.
3326 * src/pkgbind.cpp (pkgRepository): New locally defined and implemented
3327 class; it facilitates recursive loading and parsing of package lists,
3328 replacing much of the original non-recursive functionality within...
3329 (pkgXmlDocument::BindRepositories): ...this; use it.
3331 2010-04-04 Keith Marshall <keithmarshall@users.sourceforge.net>
3333 Implement installer function; use per-package file manifests.
3335 * src/pkgproc.h (pkgManifest): New class; declare it.
3336 (pkgArchiveProcessor::origin): New protected member variable.
3337 (pkgArchiveProcessor::sysroot_len): New protected member variable.
3338 (pkgArchiveProcessor::installed): Type changed to `pkgManifest *'.
3339 (pkgTarArchiveInstaller::Process): Declare specialisation hook.
3340 (pkgTarArchiveInstaller::UpdateInstallationManifest): Disused member
3341 function; remove redundant declaration from class definition.
3342 (pkgInstall): New generalised installation function; declare it.
3343 (pkgRegister): New function; declare it.
3345 * src/pkginst.cpp: New file.
3346 (pkgManifest, pkgInstall, pkgRegister): Implement them.
3348 * src/pkgexec.cpp (pkgActionItem::Execute): Use `pkgInstall' in place
3349 of stub formerly provided here.
3351 * src/pkgkeys.h (manifest_key, reference_key): New keys; declare them.
3352 * src/pkgkeys.c (manifest_key, reference_key): Implement them.
3354 * src/tarproc.cpp: Code refactored.
3355 (pkgTarArchiveProcessor::sysroot_len): Initialise it.
3356 (pkgTarArchiveProcessor::origin): Initialise it.
3357 (pkgTarArchiveProcessor::installed): Initialise; associate it with a
3358 pkgManifest class entity, and populate this as appropriate.
3359 (pkgTarArchiveProcessor::~pkgTarArchiveProcessor): Add explicit clean
3360 up of linked `pkgManifest *' entity referenced by `installed'.
3361 (pkgTarArchiveProcessor::Process) [TAR_ENTITY_TYPE_DIRECTORY]: Add
3362 braces to demarcate localised inner scope of string scan for removal
3363 of trailing directory name separators; (thanks to Cesar Strauss for
3364 reporting invalid local pointer declaration error in GCC >= 4.4).
3365 (pkgTarArchiveInstaller::UpdateInstallationManifest): Deleted.
3366 (pkgTarArchiveInstaller::pkgTarArchiveInstaller): Factor out.
3367 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
3368 (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
3369 (commit_saved_entity): Likewise.
3371 * src/tarinst.cpp: New file; it implements...
3372 (pkgTarArchiveInstaller::Process): ...this new specialisation
3373 of the original pkgTarArchiveProcessor::Process method...
3374 (pkgTarArchiveInstaller::pkgTarArchiveInstaller): ...and this
3375 refactored code, abstracted from src/tarproc.cpp and modified to
3376 use the pkgManifest class for installation tracking.
3377 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
3378 (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
3379 (commit_saved_entity): Relocated from src/tarproc.cpp.
3381 * Makefile.in (CORE_DLL_OBJECTS): Add...
3382 (pkginst.OBJEXT, tarinst.OBJEXT): ...these new object files.
3384 2010-03-31 Keith Marshall <keithmarshall@users.sourceforge.net>
3386 Guard against NULL pointer dereferences in tinyxml code.
3388 * src/pkgbase.h (pkgXmlNode::GetName): Verify `this' pointer is
3389 non-NULL, before invoking the underlying tinyxml method.
3390 (pkgXmlNode::GetParent, pkgXmlNode::GetChildren): Likewise.
3391 (pkgXmlNode::GetNext, pkgXmlNode::GetPropVal): Likewise.
3392 (pkgXmlNode::AddChild, pkgXmlNode::DeleteChild): Likewise.
3393 (pkgXmlNode::GetDocumentRoot): Likewise.
3394 (pkgXmlNode::IsElementOfType): Likewise.
3396 2010-03-28 Cesar Strauss <cestrauss@gmail.com>
3398 Avoid running InternetAttemptConnect in pkgInternetAgent
3399 constructor, since it is called during DLL initialisation.
3401 * src/pkginet.cpp (pkgInternetAgent::pkgInternetAgent): Move the
3402 InternetAttemptConnect call from constructor...
3403 (pkgInternetAgent::OpenURL): ...to here.
3405 2010-03-23 Keith Marshall <keithmarshall@users.sourceforge.net>
3407 Automate object code dependency tracking.
3409 * Makefile.in (DEPFLAGS): New macro; define it.
3410 (%.OBJEXT: %.c, %.OBJEXT: %.cpp): Add dependency generator commands...
3411 (%.d): ...to create these dependency maps; `sinclude' them, and...
3412 (clean): ...remove them.
3414 * .cvsignore (*.d): Add wild card template to match them.
3416 2010-03-22 Keith Marshall <keithmarshall@users.sourceforge.net>
3418 Support case insensitive matching for file and subsystem names.
3420 * src/pkgbase.h (safe_strcmp): New inline function; it provides NULL
3421 argument safe comparison of strings, returning the boolean inverse of
3422 the `strcmp' result, using either case-sensitive or case-insensitive
3423 semantics; derive it from...
3424 (match_if_explicit): ...this; redefine as macro; invoke `safe_strcmp'
3425 using explicitly case-sensitive semantics.
3426 (subsystem_strcmp): New macro; it invokes `safe_strcmp' with either
3427 case-sensitive or case-insensitive semantics, depending on...
3428 (CASE_INSENSITIVE_SUBSYSTEMS): ...this new context selection macro; it
3429 fixes the choice between case-sensitive and case-insensitive matching
3430 semantics for any given implementation, at compile time.
3431 (pkg_strcmp): New macro; it invokes `safe_strcmp' with either
3432 case-sensitive or case-insensitive semantics, depending on...
3433 (CASE_INSENSITIVE_FILESYSTEM): ...this new context selection macro; it
3434 fixes the choice between case-sensitive and case-insensitive matching
3435 semantics for any given implementation, at compile time.
3437 * src/sysroot.cpp (pkgXmlNode::GetSysRoot): Use `subsystem_strcmp'.
3439 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
3441 Add preliminary support for virtual packages.
3443 * src/pkgkeys.h (yes_value, no_value): Redefine as aliases...
3444 (value_yes, value_no): ...for these new global strings; declare them.
3445 (value_none, value_virtual): New global strings; declare them.
3447 * src/pkgkeys.c (yes_value, no_value): Rename...
3448 (value_yes, value_no): ...to implement these, respectively.
3449 (value_none, value_virtual): Implement them.
3451 * src/pkgname.cpp (pkgXmlNode::ArchiveName): Check containing package
3452 node for `class' attribute set to `value_virtual'; if present, always
3453 return the effective `tarname' property as `value_none'.
3455 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): For packages
3456 with an effective `tarname' of `value_none', do not download anything.
3458 * src/pkgexec.cpp (pkgActionItem::Execute): For packages with an
3459 effective `tarname' of `value_none', do not invoke any tar archive
3460 processing function.
3462 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
3464 Don't write installation records for unavailable packages.
3466 * src/tarproc.cpp (pkgTarArchiveInstaller): In constructor, ensure
3467 archive is ready for processing, before initialising an installation
3470 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
3472 Rationalise path identification for XML file locations.
3474 * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Use `xmlfile()'
3475 function to locate `sysroot' map file; free memory when done.
3476 (pkgXmlDocument::UpdateSystemMap): Likewise.
3477 (sigpath): Static global variable disused; delete it.
3479 2010-03-01 Keith Marshall <keithmarshall@users.sourceforge.net>
3481 Extend package name search to include component packages.
3483 * src/pkgfind.cpp (pkgHasMatchingName): Remove; fold it into...
3484 (pkgXmlNode::FindPackageByName): ...this; augment to extend search
3485 within package definition elements, seeking a potential match on an
3486 included component package name or component class-implied name.
3488 * src/pkgkeys.h (class_key): New global string constant; declare it.
3489 * src/pkgkeys.c (class_key): Implement it.
3491 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3493 Bump version for next release cycle.
3495 * configure.ac (AC_INIT): Bump version suffix to alpha-2.
3497 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3499 mingw-get-0.1-mingw32-alpha-1 released.
3501 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3503 Prepare initial package release.
3505 * README: New file; use it to source release notes.
3507 * Makefile.in (SRCDIST_FILES): Use ...
3508 (LICENCE_FILES): ...this new macro; define it.
3509 (licdist): New build goal; implement it.
3510 (bindist): Require it; add alternative `zip' format package.
3512 * xml/profile.xml (repository): Set default `package-index' name.
3513 (system-map): Normalise spelling for default `sysroot' path names.
3515 2010-02-10 Keith Marshall <keithmarshall@users.sourceforge.net>
3517 Add directory/file records in installation manifests.
3519 * src/pkgkeys.h (dirname_key, filename_key): New strings; declare...
3520 * src/pkgkeys.c (dirname_key, filename_key): ...and implement them.
3522 * src/pkgproc.h (pkgArchiveProcessor::installed): New class member
3523 variable; declare it.
3524 (pkgTarArchiveInstaller::UpdateInstallationManifest): New method;
3527 * src/tarproc.cpp: Miscellaneous comment updates.
3528 (pkgTarArchiveInstaller): In constructor...
3529 (pkgTarArchiveInstaller::installed): ...use new member variable...
3530 (pkgArchiveProcessor::installed): ...inherited from this.
3531 (pkgTarArchiveInstaller::UpdateInstallationManifest): Implement and...
3532 (pkgTarArchiveInstaller::ProcessDataStream): ...use it.
3533 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
3535 2010-02-06 Keith Marshall <keithmarshall@users.sourceforge.net>
3537 Work around a deficiency in Microsoft's stat() implementation.
3539 * src/tarproc.cpp (pkgTarArchiveProcessor::ProcessDirectory): Don't
3540 pass a `pathname' argument with trailing slashes; strip them off.
3542 2010-02-06 Keith Marshall <keithmarshall@users.sourceforge.net>
3544 Add machinery for installation and packaging for distribution.
3546 * install-sh: New file; source it from autoconf distribution.
3548 * configure.ac (AC_PREFIX_DEFAULT): Assign it as `C:/MinGW'.
3549 (AC_PROG_MKDIR_P, AC_PROG_INSTALL, AC_PROG_LN_S): Invoke these.
3550 (STRIP): New output variable; use AC_CHECK_TOOL to define it.
3552 * Makefile.in (abs_top_srcdir): Define to AC_SUBST value.
3553 (PACKAGE_TARNAME, PACKAGE_VERSION): Define to AC_SUBST values.
3554 (prefix, exec_prefix, bindir, libexecdir, localstatedir): Likewise.
3555 (INSTALL, INSTALL_PROGRAM, INSTALL_SCRIPT, INSTALL_DATA): Likewise.
3556 (STRIP): New macro; define it using AC_CHECK_TOOL substitution.
3557 (mkinstalldirs): New macro; define it as AC_PROG_MKDIR_P result.
3558 (LN_S): New macro; define it as AC_PROG_LN_S result.
3559 (dist, srcdist, bindist): New build objectives; implement them.
3560 (install, installdirs, install-strip, maintainer-clean): Likewise.
3561 (SRCDIST_FILES, SRCDIST_SUBDIRS): New macros; define them.
3562 (PACKAGE_DISTNAME, PACKAGE_DISTVERSION): Likewise.
3563 (PACKAGE_DISTROOT, PACKAGE_ROOTVERSION): Likewise.
3564 (PACKAGE_CONFIG_DIR): Likewise.
3566 2010-02-02 Keith Marshall <keithmarshall@users.sourceforge.net>
3568 Implement package installer for tar archives.
3570 * src/pkgexec.cpp (pkgXmlDocument::Execute): Replace existing
3571 stub implementation of installer, using methods provided by...
3572 * src/pkgproc.h, src/tarproc.cpp: ...these new files, with trap...
3573 * src/pkgdeps.cpp (pkgXmlDocument::Schedule) [installed]: Add entry...
3574 (pkgActionItem::Selection) [to_remove]: ...for this; use it to detect
3575 `install' requests for packages which are aleady installed.
3577 * Makefile.in (CORE_DLL_OBJECTS): Add tarproc.$(OBJEXT); specify
3578 dependencies as appropriate.
3580 * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Don't commit
3581 newly created `sysroot' mapping records to disk; defer to...
3582 (pkgXmlDocument::UpdateSystemMap): ...this new method.
3583 (sigpath): Make it a global variable, with file (static) scope.
3585 * src/climain.cpp (pkgXmlDocument::UpdateSystemMap): Invoke it.
3587 * src/pkgkeys.h (download_key, modified_key, source_key): New global
3588 string variables; declare them, providing their implementations...
3589 * src/pkgkeys.c (download_key, modified_key, source_key): ...here.
3590 * src/pkgname.cpp (download_key, source_key): Use them.
3592 * src/pkginet.cpp (pkgActionItem::ArchivePath): Delete; replace...
3593 * src/mkpath.c (pkgArchivePath): ...with this free standing function.
3594 * src/mkpath.h (pkgArchivePath): Declare its prototype.
3596 * src/pkgbase.h (pkgActionItem::ArchivePath): Delete declaration.
3597 (pkgXmlDocument): Add a default constructor; implement as `inline'.
3598 (pkgXmlDocument::AddDeclaration): Use heap memory to allocate the new
3599 declaration object, instead of `auto' variable, to avoid scope error.
3600 (pkgXmlDocument::UpdateSystemMap): Declare it.
3602 2010-01-26 Keith Marshall <keithmarshall@users.sourceforge.net>
3604 Implement rudimentary dependency resolver.
3606 * src/pkgdeps.cpp: New file.
3608 * Makefile.in (CORE_DLL_OBJECTS): Add pkgdeps.$(OBJEXT) reference;
3609 establish header file dependencies.
3611 * src/pkgbase.h (to_remove, to_install, selection_types): New enum.
3612 (pkgActionItem::selection): Extend it to store as enumerated pair...
3613 (pkgActionItem::SelectPackage): New inline method; assign them.
3614 (pkgActionItem::Selection): New inline method; retrieve them.
3615 (pkgXmlNode::GetInstallationRecord): New method; declare it.
3617 * src/pkgexec.cpp (pkgActionItem): In constructor...
3618 (selection): ...initialise both references in enumerated pair.
3619 (pkgActionItem::GetReference): Use `Selection()' method.
3620 (pkgActionItem::SelectIfMostRecent): Ditto; also correct logic for
3621 making selection, and assign to `to_install' element.
3622 (pkgXmlDocument::Schedule): Don't update `request'.
3623 (pkgActionItem::Execute): Implement as stub.
3625 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): Use new
3626 `Selection()' method.
3628 * src/pkgkeys.h (yes_value, no_value): Declare new string constants.
3629 * src/pkgkeys.c (yes_value, no_value): Implement them.
3631 * src/vercmp.cpp: Update copyright notice.
3632 (pkgVersionInfo::operator<=): Bug fix; must test for `<', but had `>'.
3634 2010-01-23 Keith Marshall <keithmarshall@users.sourceforge.net>
3636 Avoid segmentation faults when processing invalid data streams.
3638 * src/pkgstrm.h: Update copyright notice.
3639 (pkgArchiveStream::IsReady): New pure virtual method.
3640 (pkgRawArchiveStream::IsReady): Provide inline implementation.
3641 (pkgGzipArchiveStream::IsReady): Likewise.
3642 (pkgBzipArchiveStream::IsReady): Likewise.
3643 (pkgLzmaArchiveStream::IsReady): Likewise.
3644 (pkgXzArchiveStream::IsReady): Likewise.
3646 * src/pkgstrm.cpp: Update copyright notice.
3647 (pkgLzmaArchiveStream, pkgXzArchiveStream) [fd == -1]: Decline to
3648 perform any form of read or decode processing.
3650 * src/pkginet.cpp (pkgInternetLzmaStreamingAgent): Use `fd = -2' as
3651 pseudo-descriptor for the pkgLzmaArchiveStream derived component of
3652 this internet data streaming class.
3654 2010-01-23 Keith Marshall <keithmarshall@users.sourceforge.net>
3656 Require liblzma >= liblzma-4.999.9beta_20091209-3-mingw32-dev
3658 * src/pkgstrm.h (LZMA_API_STATIC): Remove definition and associated
3659 comment; it was required to permit, (but not to enforce), linking to
3660 the static liblzma.a library, with earlier beta releases, but this
3661 anomaly has now been corrected.
3663 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
3665 Remove zlib sources from trunk.
3666 (Application builders should use free standing implementation of
3667 zlib, from MinGW's package distribution page on SourceForge).
3669 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
3671 Remove bzip2 sources from trunk.
3672 (Application builders should use free standing implementation of
3673 bzip2, from MinGW's package distribution page on SourceForge).
3675 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
3677 Add subsystem specific sysroot mapping facility.
3679 * src/pkghash.c: New file; required by...
3680 * src/sysroot.cpp: New file; it implements...
3681 (pkgXmlDocument::LoadSystemMap, pkgXmlNode::GetSysRoot): New methods.
3683 * src/pkgbase.h: Update copyright notice.
3684 (pkgXmlDocument::LoadSystemMap): Declare it.
3685 (pkgXmlDocument::AddDeclaration): New inline method.
3686 (pkgXmlDocument::SetRoot, pkgXmlDocument::Save): Likewise.
3687 (pkgXmlNode::GetSysRoot): Declare it.
3688 (pkgXmlNode::GetDocumentRoot): New inline method.
3689 (pkgXmlNode::AddChild, pkgXmlNode::DeleteChild): Likewise.
3691 * src/climain.cpp: Update copyright notice.
3692 (climain): Invoke pkgXmlDocument::LoadSystemMap() as required.
3694 * Makefile.in (CORE_DLL_OBJECTS): Add ...
3695 (pkghash.$(OBJEXT), sysroot.$(OBJEXT)): ...these; upate dependencies.
3696 (DEBUGLEVEL): New macro; define it.
3699 2010-01-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3701 Assign standardised keys for XML database lookup.
3703 * src/pkgkeys.h: New file; provide public key declarations.
3704 * src/pkgkeys.c: New file; implement them.
3706 * src/pkgbind.cpp: Use them; update copyright notice.
3707 * src/pkgexec.cpp, src/pkgfind.cpp, src/pkginet.cpp: Likewise.
3708 * src/pkgname.cpp, src/pkgspec.cpp: Likewise.
3710 * Makfile.in (CORE_DLL_OBJECTS): Add pkgkeys.$(OBJEXT); update all
3711 dependencies accordingly.
3713 2010-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
3715 Add CLI version reporting option.
3717 * configure.ac: Update copyright notice for new year.
3718 (COPYRIGHT_HOLDER): New AC_SUBST variable; define it.
3719 (YEARS_OF_ISSUE): New AC_SUBST variable; define it.
3720 (AC_CONFIG_FILES): Add `version.c'; source it from...
3722 * version.c.in: ...this new file.
3724 * Makefile.in: Update copyright notice for new year.
3725 (mingw-get$(EXEEXT)): Add dependency on `version.$(OBJEXT)'.
3726 (distclean): Add `version.c'.
3728 * configure: Regenerated.
3730 * src/clistub.c: Update copyright notice for new year.
3731 (options): New array of `struct option'; define and use it as the
3732 reference for `argv' parsing with `getopt_long_only()'.
3734 2009-12-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3736 Add CLI support for "update" action.
3738 * src/pkgtask.h (ACTION_UPDATE): Define it, derived from...
3739 (action_update): ...this new entry in anonymous enumeration.
3741 * src/pkgexec.cpp (action_name): Add "update" keyword identification.
3743 * src/pkgbase.h: Typo in comment; s/xwXmlDocument/wxXmlDocument/.
3744 (pkgXmlDocument::BindRepositories): Add `force_update' parameter...
3745 * src/pkgbind.cpp (pkgXmlDocument::BindRepositories): Use it to...
3746 (pkgXmlDocument::SyncRepository): ...invoke this method when passed as
3747 a `true' flag, in addition to (as previously) first time reference.
3749 * src/climain.cpp (climain): Interpret "update" keyword for...
3750 [ACTION_UPDATE]: ...passing state as `force_update' parameter to...
3751 (pkgXmlDocument::BindRepositories): ...this method, then...
3752 [!ACTION_UPDATE]: Follow with normal action processing.
3754 2009-12-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3756 Add status checking for Internet URL connections.
3758 * src/pkginet.cpp (pkgInternetAgent::QueryStatus): New method.
3759 (pkgInternetStreamingAgent::Get): Use it; set `dl_status' as return
3760 value, deferring failure diagnostics to callers, i.e. to...
3761 (pkgXmlDocument::SyncRepositories): ...this, and to...
3762 (pkgActionItem::DownloadArchiveFiles): ...this.
3764 2009-11-23 Keith Marshall <keithmarshall@users.sourceforge.net>
3766 Add package download and repository synchronisation machinery.
3768 * src/pkgstrm.h: New header file.
3770 * src/pkgbind.cpp, src/pkginet.cpp, src/pkgstrm.cpp,
3771 src/pkgfind.cpp, src/pkgname.cpp, src/keyword.c: New files.
3772 * Makefile.in (CORE_DLL_OBJECTS): Add build goals for them.
3774 * xml: New directory.
3776 * src/climain.cpp (climain): Establish repository bindings from...
3777 * xml/profile.xml: ...this new configuration file.
3779 2009-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3781 Add XML database bindings and preliminary action executive for CLI.
3783 * src/pkgbase.h, src/pkgtask.h,
3784 src/mkpath.h, src/vercmp.h: New header files.
3786 * src/climain.cpp, src/pkgexec.cpp, src/pkgspec.cpp,
3787 src/mkpath.c, src/vercmp.cpp, src/xmlfile.c: New files.
3789 * Makefile.in (CORE_DLL_OBJECTS): Define initial set of files...
3790 (mingw-get-0.dll): ...build them into this new DLL target; add it...
3791 (all): ...as prerequisite for this primary build goal.
3793 2009-11-12 Keith Marshall <keithmarshall@users.sourceforge.net>
3795 Avoid some potential GCC warnings.
3797 * src/clistub.c: Include process.h for `execv' prototype...
3798 (main): Cast `argv' to appropriately matched type when calling it.
3800 * src/pkginfo/driver.c: Include stdlib.h for `free' prototype.
3802 2009-11-11 Keith Marshall <keithmarshall@users.sourceforge.net>
3804 Create diagnostic message handler for CLI usage.
3806 * src/dmh.h: New header file; it defines the public interface.
3807 * src/dmh.cpp: New file; it implements the message handler.
3809 2009-11-05 Keith Marshall <keithmarshall@users.sourceforge.net>
3811 Correct some identified TinyXML issues.
3813 * tinyxml/tinyxml.h (IsWhiteSpace): Add FIXME annotation to flag
3814 probable redundancy of checks for '\n' and '\r'.
3815 * tinyxml/tinyxmlparser.cpp: Revert John E's 2008-08-09 change; remove
3816 all such redundancies in IsWhiteSpace() calls throughout.
3818 * tinyxml/tinyxml.cpp (TiXmlAttribute::SetDoubleValue): Correct format
3819 specification in sprintf()/snprintf() calls; "%lf" is invalid; replace
3822 2009-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
3824 Add CLI loader stub.
3826 * src/clistub.c: New file.
3827 * Makefile.in: Add build rule for it; build as...
3828 (mingw-get.exe): ...this; also add to...
3829 (clean): ...this goal.
3831 2009-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
3833 Set up build mechanism.
3835 * configure.ac, Makefile.in: New files.
3836 * .cvsignore (configure, autom4te.cache): Add to ignored files.
3838 2009-10-30 Keith Marshall <keithmarshall@users.sourceforge.net>
3840 Add GPL-v3 licensing terms.
3842 * COPYING: New file, sourced from gnu.org.
3844 2009-10-12 Keith Marshall <keithmarshall@users.sourceforge.net>
3846 Add pkginfo implementation.
3848 * src, src/pkginfo: New directories.
3849 * src/pkginfo/pkginfo.h, src/pkginfo/pkginfo.l: New files.
3850 * src/pkginfo/driver.c: New file.
3852 2009-10-12 Keith Marshall <keithmarshall@users.sourceforge.net>
3856 * All files (tdm-branch): Assign new branch tag.
3857 * All top-level files: Remove from trunk.
3858 * ChangeLog: New file.