1 2013-07-12 Keith Marshall <keithmarshall@users.sourceforge.net>
3 Add a custom profile for use by the setup tool.
5 * xml/setup.xml: New file.
7 2013-07-03 Keith Marshall <keithmarshall@users.sourceforge.net>
9 Improve handling of workspace clean-up requests.
11 * Makefile.in (mostlyclean): New rule; it replaces...
12 (clean): ...original intent delegated to 'mostlyclean'; retained and
13 augmented to remove all content specified by 'mostlyclean', plus...
14 (version.c, verinfo.h): ...these additional generated files.
15 (distclean): Modified; 'version.c' now removed by 'clean'.
17 2013-07-03 Keith Marshall <keithmarshall@users.sourceforge.net>
19 Correct an omission from the source code distribution.
21 * Makefile.in (BUILD_AUX_FILES): Add makeopts.m4; this was omitted
22 from the 2013-04-10 modification to fix MinGW-Bug #1601.
24 2013-07-03 Keith Marshall <keithmarshall@users.sourceforge.net>
26 Incorporate foundation for setup tool implementation.
28 * src/setup.cpp: New file; it implements the setup program.
29 * src/setup.rc: New file; it implements setup program resources.
31 * src/dllhook.cpp: New file; it implements a DLL bridging API to
32 facilitate invocation of mingw-get-0.dll functions from the setup
33 program, after both DLLs have been explicitly loaded at run time.
35 * src/setup.h: New file; it declares the interface between the
36 setup program and the preceding mingw-get bridging DLL.
38 * src/guimain.h: Add filter to exclude declarations specific to...
39 [IMPLEMENTATION_LEVEL == PACKAGE_BASE_COMPONENT]: ...this case, when
40 included by compilation units specific to the setup tool components.
41 (ID_MAIN_DIALOGUE_CAPTION, ID_DOWNLOAD_HOST_URI): New resource IDs.
42 (ID_PACKAGE_BASE_DISTNAME, ID_PACKAGE_DATA_DISTNAME): Likewise.
43 (ID_PACKAGE_GUI_DISTNAME): Likewise; define them.
45 * Makefile.in (all): Respecify it, in terms of...
46 (all-core, all-setup): ...these new rules; define them, and also...
47 (all-setup-exe, all-setup-dll): ...these, to force building of...
48 (mingw-get-setup.$EXEEXT, mingw-get-setup-0.dll): ...these binaries.
49 (setup.res.$OBJEXT): Specify prerequisites, as for guimain.res.$OBJEXT
50 (SETUP_TOOL_OBJECTS, SETUP_TOOL_LIBS): New macros; define them.
51 (SETUP_DLL_OBJECTS, SETUP_DLL_LIBS, SETUP_DISTNAME): Likewise.
52 (TAG_SCRIPT): Add resource script substitution definitions for...
53 (ID_PACKAGE_BASE_DISTNAME, ID_PACKAGE_DATA_DISTNAME): ...these...
54 (ID_PACKAGE_GUI_DISTNAME): ...and this.
56 2013-07-01 Keith Marshall <keithmarshall@users.sourceforge.net>
58 Add subprocess argument vector construction helpers.
60 * src/argwrap.c src/argwrap.h: New files; they implement an API for
61 construction of argument vectors, with appropriate quoting, to be
62 passed to MS-Windows exec'd subprocesses. Rewritten from scratch,
63 without reference to any prior GPL licensed implementation, with MIT
64 style licence, these provide the foundation for a possible future
65 libmingwex.a implementation; they are included here, since no such
66 implementation is currently available.
68 2013-06-28 Keith Marshall <keithmarshall@users.sourceforge.net>
70 Avoid inadvertent overwrite of existing files.
72 * src/mkpath.c (_O_NEWFILE): Conditionally specify attributes...
73 [IMPLEMENTATION_LEVEL == SETUP_TOOL_COMPONENT]: ...as they were...
74 [IMPLEMENTATION_LEVEL != SETUP_TOOL_COMPONENT]: ...else, include
75 _O_EXCL in the specified set; exclude _O_TRUNC.
77 * src/tarproc.cpp (dmh_notify_extraction_failed): New static inline
78 function; it encapsulates the diagnostic message factored out from...
79 (pkgArchiveProcessor::ExtractFile): ...here, whence use it.
80 (create_output_stream): Also used in this new static inline function;
81 it adds an appropriate diagnostic wrapper around set_output_stream(),
82 when _O_EXCL prevents overwrite of an existing file.
83 (pkgArchiveProcessor::SetOutputStream): Use it.
85 2013-06-27 Keith Marshall <keithmarshall@users.sourceforge.net>
87 Improve diagnostics for tar archive processing faults.
89 * src/pkgproc.h (TAR_ARCHIVE_FORMAT_ERROR): New constant; define it.
90 (TAR_ARCHIVE_DATA_READ_ERROR, TAR_ARCHIVE_DATA_WRITE_ERROR): Likewise.
92 * src/tarproc.cpp (dmh_notify_archive_data_exhausted): New static
93 inline function; implement it.
94 (pkgTarArchiveProcessor::GetArchiveEntry) [short header]: Use it.
95 (pkgArchiveProcessor::ExtractFile) [TAR_ARCHIVE_DATA_READ_ERROR]:
96 Likewise, use it here; also explicitlycheck for, and diagnose...
97 [TAR_ARCHIVE_DATA_WRITE_ERROR]: ...this; also add a further catch all
98 case, to diagnose any other unexpected condition.
99 (pkgTarArchiveProcessor::GetArchiveEntry) [bad checksum]: Diagnose it.
100 (pkgTarArchiveProcessor::Process): Return appropriate status codes.
101 (pkgTarArchiveProcessor::ProcessEntityData): Likewise.
103 2013-06-24 Keith Marshall <keithmarshall@users.sourceforge.net>
105 Facilitate version synchronisation for mingw-get-setup.
107 * VERSION.m4: New file.
108 * configure.ac: Include it, and...
109 (AC_INIT): ...use it.
111 2013-06-21 Keith Marshall <keithmarshall@users.sourceforge.net>
113 Keep version strings clean when release class is unspecified.
115 * Makefile.in (RC_SCRIPT, VERSION_SCRIPT): Simplify; assign specified
116 release class to local variable; delegate release tag generation to...
117 (TAG_SCRIPT): ...this; check release class variable is not an empty
118 string, before inserting it into the generated release tag.
120 2013-06-20 Keith Marshall <keithmarshall@users.sourceforge.net>
122 Rework defective assignment of product version resources.
124 * Makefile.in (BUILD_TAG): Avoid creating an empty build.tag file.
125 (PACKAGE_VERINFO_SCRIPT): Ensure that the build tag is generated as a
126 string of non-zero length. Do not assume that it comprises only two
127 elements; extract the final two, as the third and fourth elements
128 of the product version meta-data record.
130 2013-06-19 Keith Marshall <keithmarshall@users.sourceforge.net>
132 Rework defective package build time-stamping logic.
134 * Makefile.in (%.time): Make it explicitly touch its target; the
135 2013-05-15 changes, to reduce redundancy, didn't work as expected.
136 (%.tag): Add a side effect; make it also explicitly touch %.time.
137 (%.tagged.time): This is now redundant; remove it.
139 2013-06-14 Keith Marshall <keithmarshall@users.sourceforge.net>
141 Collect distributable package files in user specified directory.
143 * Makefile.in (distdir): New macro; define default as abs_builddir.
144 (srcdist, bindist, licdist): Use it; direct generated tarballs to it.
145 (%.txt.dist): New pattern rule; define, and use it to make a copy...
146 (readme.txt): ...of this, in distdir, when processing...
147 (dist): ...this build objective.
149 2013-06-14 Keith Marshall <keithmarshall@users.sourceforge.net>
151 Handle Microsoft's 32-bit vs. 64-bit time_t ambiguity.
153 * src/apihook.c: New file; it provides...
154 (have_api): ...this helper; it checks for availability of any specific
155 API function, within a specific system DLL, (MSVCRT.DLL by default).
157 * src/tarproc.cpp (have_utime64_api): New inline function; it wraps...
158 (have_api): ...this, to check whether MSVCRT.DLL provides...
159 (commit_saved_entity) [_utime64]: ...this; use if available, else...
160 (commit_saved_entity) [!_utime64]: ...fall back to using...
163 * Makefile.in (CORE_DLL_OBJECTS): Add apihook.$OBJEXT
165 2013-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
167 Facilitate package extraction and registration at setup time.
169 * src/pkgproc.h (IMPLEMENTATION_LEVEL): Add filters to facilitate
170 implementation of distinct setup time archive processing behaviour.
171 (pkgArchiveProcessor::save_on_extract): New property; declare it.
172 (pkgArchiveProcessor::SaveExtractedFiles): New method; implement it.
173 (pkgArchiveProcessor::SetOutputStream): New method; declare it.
175 * src/tarproc.cpp (IMPLEMENTATION_LEVEL): Add filters to implement
176 distinct setup time specific archive processing behaviour.
177 (pkgArchiveProcessor::SetOutputStream): Implement it.
178 (pkgTarArchiveExtractor::ProcessDataStream): Use it.
179 (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
181 2013-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
183 Implement some GUI progress metering dialogue enhancements.
185 * src/pkgbase.h (pkgProgressMeter): Don't pre-empt private features
186 of derived progress metering classes; hence, we no longer need this...
187 (AppWindowMaker): ...as a forward class declaration; delete it.
189 * src/guimain.rc (IDD_REPO_UPDATE): Resize, and adjust layout.
190 (IDD_PROGRESS_VAL, IDD_PROGRESS_MAX, IDD_PROGRESS_PCT): Add these
191 dialogue box progress counter display elements.
193 * src/pkgbind.cpp (pkgRepository::GetPackageList): Adjust style of
194 progress status messages, to suit reporting via GUI dialogue box or
195 CLI console, as appropriate.
197 * src/guiexec.cpp (ProgressMeterMaker): Redefine class, in terms of...
198 (PROGRESS_METER_CLASS): ...this new generic class name macro.
199 Reimplement private members, previously inherited from base class;
200 adjust class constructor to ensure that they are initialised.
201 Delete explicit destructor; a default destructor is now sufficient.
202 (ProgressMeterMaker::SetRange, ProgressMeterMaker::SetValue):
203 (ProgressMeterMaker::Annotate): Factor out; reimplement them...
205 * src/pmihook.cpp: ...in this new file, as generalised methods of...
206 (PROGRESS_METER_CLASS): ...the class named by this macro.
207 (PROGRESS_METER_CLASS::PutVal): New private method; implement it.
209 2013-05-31 Keith Marshall <keithmarshall@users.sourceforge.net>
211 Avoid a potential macro definition conflict.
213 * src/pkgbase.h (strcasecmp) [__MINGW32__]: Use string.h definition.
215 2013-05-15 Keith Marshall <keithmarshall@users.sourceforge.net>
217 Streamline build-time dependency tracking procedures.
219 * Makefile.in (DEPFLAGS): Adjust for simultaneous .o/.d generation.
220 (RC_DEPFLAGS): New macro; define dependency generation flags for the
221 resource compiler, which can't handle the new DEPFLAGS methodology.
222 (%.c, %.cpp, %.rc): Simplify $OBJEXT generation procedures.
223 (%.time): Remove redundantly replicated build-time procedure from...
224 (%.tagged.time): ...this; just make it a prerequisite.
226 2013-05-15 Keith Marshall <keithmarshall@users.sourceforge.net>
228 Add resources for specification of product version.
230 * src/verinfo.rc src/verinfo.h.in: New files; included by...
231 * src/guimain.rc: ...this, whence also specify version information...
232 (VERINFO_FILE_NAME, VERINFO_INTERNAL_NAME, VERINFO_FILE_DESCRIPTION):
233 (VERINFO_FILE_VERSION, VERINFO_FILE_VERSION_STRING): ...per these new
234 manifest constant macros; define them, with propagation to...
235 (ID_MAIN_WINDOW_CAPTION): ...this; keep it consistent.
237 * Makefile.in (TAG_SCRIPT): Include invocation for...
238 (PACKAGE_VERINFO_SCRIPT): ...this new macro; defined to interpret...
239 (PACKAGE_VERINFO_PRODUCT_VERSION): ...this new substitution template;
240 it is used in src/verinfo.h.in, whence verinfo.h is generated.
241 (RC_INCLUDES): Add current working directory, for...
242 (verinfo.h): ...this; add rule and dependencies to generate it.
244 2013-05-14 Keith Marshall <keithmarshall@users.sourceforge.net>
246 Make application manifest resource definition reusable.
248 * src/manifest.rc: New file; factor content from...
249 * src/guimain.rc: ...here, whence include it.
251 2013-05-08 Keith Marshall <keithmarshall@users.sourceforge.net>
253 Extend DMH services to delay-loaded DLL clients.
255 * src/dmhcore.h (dmh_bind): New function; declare it.
256 * src/dmhcore.cpp (dmh_bind): Implement it; it provides an API through
257 which the setup tool makes its existing DMH services available to post
258 install hooks in mingw-get-0.dll, which cannot be loaded until after
259 the providing package has been downloaded and unpacked.
261 2013-05-08 Keith Marshall <keithmarshall@users.sourceforge.net>
263 Avoid unnecessary command line globbing in GUI applications.
265 * src/guimain.cpp src/guistub.cpp (_CRT_glob): Declare as extern "C";
266 initialise to zero, so overriding the runtime start-up default.
268 * src/rites.c [! IMPLEMENT_INITIATION_RITES] (_CRT_glob): Initialise
269 to zero here too; lastrites.exe doesn't need globbing either.
271 2013-05-04 Keith Marshall <keithmarshall@users.sourceforge.net>
273 Address some GCC-4.7 string initialisation warnings.
275 * src/pkglist.cpp (AppWindowMaker::InitPackageListView): Declare all
276 headings[].text initialisers as 'const'; cast to 'char *' as required.
277 (pkgListViewMaker::Dispatch): Ditto, when inserting the 'const' empty
278 string into the list, as a component class value.
280 * src/pkgdata.cpp (AppWindowMaker::InitPackageTabControl): Declare all
281 TabLegend[] initialisers as 'const'; cast to 'char *' as required.
283 2013-05-02 Keith Marshall <keithmarshall@users.sourceforge.net>
285 Correct a spin wait thread synchronisation issue.
287 * src/pkgnget.cpp (pkgDownloadMeterGUI::SpinWait): Handle stop
288 requests explicitly; acknowledge when waiting thread has stopped.
289 (pkgDownloadMeterGUI::SpinWaitAction): Raise explicit stop requests;
290 wait for acknowledgement that waiting thread has stopped.
292 2013-04-23 Keith Marshall <keithmarshall@users.sourceforge.net>
294 Select compressed data streaming filters for use by setup tool.
296 * src/pkgstrm.cpp [IMPLEMENTATION_LEVEL != PACKAGE_BASE_COMPONENT]:
297 Exclude the implementations of all decompression filters, except...
298 (pkgXzArchiveStream): ...this, together with its requisite methods...
299 (pkgArchiveStream, pkgLzmaArchiveStream): ...from these.
301 2013-04-23 Keith Marshall <keithmarshall@users.sourceforge.net>
303 Adapt internet download agent for use by setup tool.
305 * src/pkgbase.h: More code rearrangement, exposing...
306 (safe_strcmp): ...this in any implementation context, controlled...
307 [USES_SAFE_STRCMP && ! HAVE_SAFE_STRCMP]: ...by this; when true...
308 (HAVE_SAFE_STRCMP): ...define this to 1, (must be non-zero).
309 [IMPLEMENTATION_LEVEL == PACKAGE_BASE_COMPONENT]: Ensure that...
310 (USES_SAFE_STRCMP): ...this is defined to 1, (i.e. non-zero).
311 (EXTERN_C): Relocate macro definition...
312 * src/pkgimpl.h: ...to here; add complementary implementation of...
313 (BEGIN_C_DECLS, END_C_DECLS): ...these new macros; define them.
315 * src/pkginet.h (pkgDownloadMeter::SpinWait): New static method;
316 declare it as inline, to be implemented elsewhere, delegating to...
317 (pkgDownloadMeter::SpinWaitAction): ...this new protected virtual
318 method; declare and implement it inline, as a "do nothing" base
319 class method, to be optionally overridden in a derived class.
321 * src/pkginet.cpp (pkgDownloadMeter::SpinWait): Implement it.
322 (pkgInternetAgent::OpenURL): Use it to invoke SpinWaitAction().
323 (USES_SAFE_STRCMP): Define as 1; (safe_strcmp() is required).
324 [IMPLEMENTATION_LEVEL != PACKAGE_BASE_COMPONENT]: Filter out code
325 which may not be required in more specialised contexts, then...
326 [IMPLEMENTATION_LEVEL == SETUP_TOOL_COMPONENT]: ...add specialised
327 variants specific to this.
329 * src/pkgnget.cpp [IMPLEMENTATION_LEVEL != PACKAGE_BASE_COMPONENT]:
330 Filter out code which may not be required in more specialised context.
331 (dmh_setpty): Provide locally declared prototype for external function.
332 (pkgDownloadMeterGUI): Add pseudo-terminal diagnostic message window.
333 (pkgDownloadMeterGUI::SpinWaitAction): Declare and implement GUI
334 specific method specialisation; it invokes a thread, running...
335 (pkgDownloadMeterGUI::SpinWait): ...this new static method overload.
337 2013-04-19 Keith Marshall <keithmarshall@users.sourceforge.net>
339 Implement pre-emptive update issue number identification.
341 * src/pkgkeys.h (serial_number): Declare function prototype.
342 * src/pkginet.cpp (serial_number): Implementation remains here;
343 promote from static to extern "C".
345 * src/pkgbind.cpp (value_assumed_new): New char constant; define it.
346 (pkgRepository::expected_issue): New private member var; declare and...
347 (pkgRepository::pkgRepository): ...initialise it, assuming new.
348 (pkgRepository::GetPackageList): Assign pre-emptively declared issue
349 number, (from package-list references), to 'expected_issue'; compare it
350 with 'current_issue' number recorded within locally stored catalogue.
351 [current_issue >= expected_issue]: Suppress redundant download; adjust
352 diagnostic messages as appropriate.
354 2013-04-10 Keith Marshall <keithmarshall@users.sourceforge.net>
356 Fix MinGW-Bug #1601 (on new issues tracker).
358 * aclocal.m4 (makeopts.m4): New build-aux module; include it.
359 (MINGW_AC_PROG_LEX): New macro; implement it.
361 * configure.ac (AC_INIT): Make version number tripartite.
362 (MINGW_AC_MAKE_NO_PRINT_DIRECTORY): Use this new makeopts.m4 macro.
363 (MINGW_AC_PROG_LEX): Use it, in place of...
364 (AC_PROG_LEX): ...this.
366 * Makefile.in (MAKE): New macro; assign using autoconf's SET_MAKE.
367 (QUIET_MAKE): New macro; derive it from $(MAKE) --no-print-directory.
368 (LEX_COMMAND, LEX_COMMAND_ABORT): New macros; define them.
369 (LEX_MISSING, LEX_MISSING_MESSAGE, LEX_OUTPUT): Likewise.
370 (FORMAT_MESSAGE, MESSAGE_FOLD_WIDTH): Likewise; implemented from...
371 (AWK_CLEAR_LINE_BUFFER, AWK_FLUSH_BUFFER, AWK_PRINT_AND_CLEAR_BUFFER):
372 (AWK_COLLECT_MESSAGE, AWK_COLLECT_BLANK_LINE, AWK_PRINT_LINE_BUFFER):
373 ...this collection of internal helper macros; define them.
374 (%.c: %.l): Replacement for built-in rule; it handles "missing lex" in
375 a manner consistent with expectations of autoconf's AC_PROG_LEX.
376 (execute-command): New phoney build goal; it is used with...
377 (WITH_REQUEST): ...this new macro, to invoke commands recursively.
379 2013-03-25 Keith Marshall <keithmarshall@users.sourceforge.net>
381 Adapt DMH for use in setup tool.
383 * src/dmh.cpp: File renamed to...
384 * src/dmhcore.cpp: ...this; some code rearranged, to facilitate...
385 [IMPLEMENTATION_LEVEL == PACKAGE_BASE_COMPONENT]: ...marking of code
386 sections which are required in the base package build, but which may
387 be filtered out of the build context for the setup tool.
389 * src/guidmh.cpp: File renamed to this...
390 * src/dmhguix.cpp: ...this; also add marking for...
391 [IMPLEMENTATION_LEVEL == PACKAGE_BASE_COMPONENT]: ...sections which
392 may be filtered out of the build context for the setup tool.
393 (dmhTypePTY::printf): Improve stratagem for output.
395 * Makefile.in (CORE_DLL_OBJECTS, GUIMAIN_OBJECTS): Adjust references
396 to renamed source files.
398 2013-03-22 Keith Marshall <keithmarshall@users.sourceforge.net>
400 Enable context hooks for build time code filtering.
402 * src/pkgimpl.h: New file; it defines...
403 (PACKAGE_BASE_COMPONENT, SETUP_TOOL_COMPONENT): ...these contexts;
404 either of these may be selected, by defining as manifest value for...
405 (IMPLEMENTATION_LEVEL): ...this; default is PACKAGE_BASE_COMPONENT.
407 * src/pkgbase.h: Include pkgimpl.h
408 [IMPLEMENTATION_LEVEL != PACKAGE_BASE_COMPONENT]: Occlude content.
410 2013-03-21 Keith Marshall <keithmarshall@users.sourceforge.net>
412 Specify additional files for clean-up.
414 * Makefile.in (distclean): Additionally specify...
415 (build.tag, build.time): ...these, as removable files.
417 2013-03-21 Keith Marshall <keithmarshall@users.sourceforge.net>
419 Add a missing distribution dependency.
421 * Makefile.in (srcdist): Explicitly require...
422 (pkginfo.c): ...this; previously, it was only an implicit build time
423 requirement, and may not have persisted until distribution time.
425 2013-03-21 Keith Marshall <keithmarshall@users.sourceforge.net>
427 Implement by-name association of resource scripts with programs.
429 * src/guidata.rc: Renamed as...
430 * src/guimain.rc: ...this, reflecting its association with...
431 * src/guimain.cpp: ...this program source.
433 * Makefile.in (GUIMAIN_OBJECTS): Update dependency...
434 (%.$OBJEXT:%.rc): ...replacing use of this pattern rule...
435 (%.res.$OBJEXT:%.rc): ...with this.
437 2013-01-18 Keith Marshall <keithmarshall@users.sourceforge.net>
439 Make GUI support visual styles in current Windows versions.
441 * src/guidata.rc: Add an appropriate inline manifest resource.
443 * src/guiexec.cpp (AppWindowMaker::Invoked): Ensure UpdateWindow() is
444 called after the initial call to AdjustLayout(); this is required to
445 ensure that all child windows are properly displayed from the outset.
447 * src/pkgview.cpp (AppWindowMaker::LayoutEngine):
448 [ID_PACKAGE_DATASHEET]: Adjust the top position of the frame, to make
449 the border coincide with the bottom border of the tab strip above.
451 2013-01-12 Keith Marshall <keithmarshall@users.sourceforge.net>
453 Merge gui-dev branch head to master; close gui-dev branch.
455 * configure.ac (AC_INIT): Reset version to 0.6; reset all package
456 files to state prevailing at gui-dev branch head.
458 2013-01-11 Keith Marshall <keithmarshall@users.sourceforge.net>
460 Create release branch for further r0.5 development.
462 * configure.ac (AC_INIT): Bump version number to 0.5.1; assign branch
463 label (mercurial bookmark) as "r0-5-1" for all files; (this is not to
464 be released, at this time).
466 2013-01-10 Keith Marshall <keithmarshall@users.sourceforge.net>
468 Implement data sheet compiler for list of installed files.
470 * src/pkgdata.cpp: #include pkgproc.h; it furnishes...
471 (pkgManifest): ...this class declaration, which is required by...
472 (DataSheetMaker::DisplayFilesManifest): ...this new private inline
473 method; declare and implement it; subsequently, invoke it...
474 (DataSheetMaker::OnPaint) [PKG_DATASHEET_INSTALLED_FILES]: ...here.
475 (pkgTroffLayoutEngine::WriteLn): Correct a defect in handling of
476 excess-length unbreakable "words" outside the viewport; previously
477 they were not dropped from the input queue, resulting in repeated
478 reprocessing in an infinite loop.
480 2013-01-09 Keith Marshall <keithmarshall@users.sourceforge.net>
482 Include release tags in GUI displayed package versions.
484 * src/pkglist.cpp (pkgVersionString) [ReleaseStatus != NULL]:
485 Append ReleaseStatus and ReleaseIndex to generated version string.
487 2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
489 Fix enumeration of pending install actions for scheduled upgrades.
491 * src/pkgdata.cpp (pkgActionItem::EnumeratePendingActions):
492 [action == ACTION_UPGRADE && classified == ACTION_INSTALL]: Enumerate
493 upgrade as a special case of the install classification.
495 2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
497 Implement "Mark All Upgrades" GUI capability.
499 * src/guimain.h (IDM_REPO_APPLY): Renumbered; make room for...
500 (IDM_REPO_MARK_UPGRADES): ...this new constant; define it.
502 * src/guidata.rc (IDM_REPO_MARK_UPGRADES): New option; add it...
503 (ID_MAIN_WINDOW_WINDOW) [Installation]: ...to this drop-down menu.
505 * src/pkgbase.h (pkgActionItem::SuppressRedundantUpgrades): New
506 public inline method; declare it.
508 * src/guiexec.cpp (AppWindowMaker::OnCommand):
509 [IDM_REPO_MARK_UPGRADES]: Add case handler for this menu selection.
510 (pkgActionItem::SuppressRedundantUpgrades): New method; implement it.
512 2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
514 Avoid unnecessary reloading of package list.
516 * src/guiexec.cpp (AppWindowMaker::OnCommand) [IDM_REPO_APPLY]:
517 Do not reload package list after processing; update it in place.
519 2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
521 Avoid potential heap corruption in action scheduler.
523 * src/guiexec.cpp (pkgActionItem::Clear): Factor out; relocate to...
524 * src/pkgexec.cpp (pkgActionItem::Clear): ...here; this keeps all use
525 of new and delete operators on the same side of the EXE/DLL boundary
526 as the constructor and destructor for pkgActionItem objects.
527 (pkgActionItem::Schedule): Ensure that all min_wanted and max_wanted
528 references are unique to each allocated pkgActionItem object, so that
529 the destructor may safely release their associated heap memory blocks.
531 2013-01-07 Keith Marshall <keithmarshall@users.sourceforge.net>
533 Update copyright notification for development in new year.
535 * configure.ac (YEARS_OF_ISSUE): Add year 2013.
537 * Makefile.in (version.c, guidata.$OBJEXT): Make them depend on...
538 (Makefile): ...this, so YEARS_OF_ISSUE propagates to built objects.
540 2012-12-24 Keith Marshall <keithmarshall@users.sourceforge.net>
542 Work around a GUI action scheduling instability.
544 * src/guimain.h (AppWindowMaker::UpdateDataSheet): Declare new method.
545 * src/pkgdata.cpp (AppWindowMaker::UpdateDataSheet): Implement it.
546 (AppWindowMaker::OnNotify): Use it.
548 * src/guiexec.cpp (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]:
549 Don't refresh package list view in-place; clear and reload it instead.
551 2012-12-21 Keith Marshall <keithmarshall@users.sourceforge.net>
553 Update distribution build rules.
555 * Makefile.in (SRCDIST_FILES): Remove version.c.in; this was moved
556 to src/version.c.in, and is now automatically included via...
557 (SRCDIST_SUBDIRS): ...this; remove build-aux and build-aux/m4; we want
558 only selected files from these, as filtered by specification in...
559 (BUILD_AUX_DIRS, BUILD_AUX_FILES): ...these new macros; define them.
560 (BLDTAG, SCMTAG, GCMTAG): New release class macros; define them.
561 (bindist, licdist, srcdist): Use them.
563 2012-12-21 Keith Marshall <keithmarshall@users.sourceforge.net>
565 Update CLI implementation hooks for GUI integration.
567 * Makefile.in (LIBEXEC_PROGRAMS): Replace gui$EXEEXT with
568 guistub$EXEEXT; update make goal references accordingly.
570 * src/rites.c (MINGW_GET_GUI): Redefine to be guimain$EXEEXT.
571 (MINGW_GET_GFB): Define new fall-back; let it be guistub$EXEEXT.
572 (RITES_IMPLEMENTATION): Perform rites for MINGW_GET_GUI.
574 * src/clistub.c (main) [cannot exec MINGW_GET_GUI]: Try
575 MINGW_GET_GFB instead.
577 2012-12-21 Keith Marshall <keithmarshall@users.sourceforge.net>
579 Rename executive core file for GUI implementation.
581 * src/guixmld.cpp: File renamed...
582 * src/guiexec.cpp: ...to this; its function exceeds original intent.
583 * Makefile.in (GUIMAIN_OBJECTS): Update reference accordingly.
585 2012-12-20 Keith Marshall <keithmarshall@users.sourceforge.net>
587 Create foundation for implementation of package category tree view.
589 * Makefile.in (GUIMAIN_OBJECTS): Add pkgtree.$OBJEXT reference to...
590 * src/pkgtree.cpp: ...incorporate this new file; it implements...
591 (AppWindowMaker::InitPackageTreeView): ...this new class method...
592 (pkgInitCategoryTreeGraft): ...and this new extern "C" function.
594 * src/guimain.h (pkgInitCategoryTreeGraft): Declare prototype.
595 (AppWindowMaker::InitPackageTreeView): New private method; declare it.
596 (AppWindowMaker::PackageTreeView): New member variable; declare it.
598 * src/guixmld.cpp (AppWindowMaker::LoadPackageData): Call
599 pkgInitCategoryTreeGraft(), after loading profile.xml
600 (AppWindowMaker::Invoked): Call InitPackageTreeView()
602 * src/pkgview.cpp (AppWindowMaker::LayoutEngine):
603 [ID_PACKAGE_TREEVIEW]: Handle it.
605 2012-12-19 Keith Marshall <keithmarshall@users.sourceforge.net>
607 Make the "Apply Changes" dialogue "failure-aware".
609 * src/pkgtask.h (ACTION_APPLY_FAILED): Redefine, in terms of...
610 (ACTION_INSTALL_FAILED, ACTION_REMOVE_FAILED): New manifest defines.
611 (ACTION_UNSUCCESSFUL): New manifest constant; define it.
613 * src/pkgdata.cpp (pkgActionItem::EnumeratePendingActions):
614 [ACTION_UNSUCCESSFUL]: Make it a special case for enumeration.
616 * src/guixmld.cpp (pkgApplyChanges): Enumerate...
617 [ACTION_UNSUCCESSFUL > 0]: ...all such cases; when true...
618 [IDD_AUTO_CLOSE_OPTION]: ...this; select alternative close-out
619 messages, as appropriate.
620 (pkgActionItem::Assert): Factor out; relocate to...
621 * src/pkgexec.cpp (pkgActionItem::Assert): ...here; this moves its
622 object code into the mingw-get DLL.
624 * src/pkgunst.cpp (pkgRemove) [ACTION_REMOVE_FAILED]:
625 * src/pkginst.cpp (pkgInstall) [ACTION_INSTALL_FAILED]:
626 Assert as appropriate.
628 2012-12-19 Keith Marshall <keithmarshall@users.sourceforge.net>
630 Improve progress reporting in "Apply Changes" dialogue.
632 * src/pkgstat.h: New header file; it declares...
633 (pkgSpinWait): ...this new pure abstract base class; it specifies an
634 infrastructure for posting arbitrary text to dialogue controls.
636 * src/pkgexec.cpp (pkgSpinWait): Implement its static elements.
637 (pkgActionItem::Execute): Dispatch progress reports, handled by...
638 (pkgSpinWait::Report, pkgSpinWait::Indicator): ...these.
640 * src/guixmld.cpp (pkgDialogueSpinWait): New class; declare it and
641 implement locally. It is derived from, and provides a listener for...
642 (pkgSpinWait): ...this abstract class.
643 (pkgApplyChanges): Use it.
645 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDataStream): Call...
646 (pkgSpinWait::Report): ...this, to report extracted files.
648 * src/pkgunst.cpp (pkg_unst): Call...
649 (pkgSpinWait::Report): ...this, to report deleted files.
651 * src/sysroot.cpp (pkgXmlDocument::UpdateSystemMap): Call...
652 (pkgSpinWait::Report, pkgSpinWait::Indicator): ...these, to confirm
653 continuing database update activity.
655 2012-12-18 Keith Marshall <keithmarshall@users.sourceforge.net>
657 Update tab display on right-click in package list view.
659 * src/pkgdata.cpp (AppWindowMaker::OnNotify) [NM_RCLICK]:
660 Call DataSheetMaker::DisplayData(), before invoking pop-up menu.
662 2012-12-17 Keith Marshall <keithmarshall@users.sourceforge.net>
664 Add more protection against NULL pointer abuse.
666 * src/pkgbase.h (pkgActionItem::Reset): Method renamed to...
667 * src/guixmld.cpp (pkgActionItem::Assert): ...this; also renamed here.
668 (AppWindowMaker::OnCommand): When calling...
669 (pkgListViewMaker::MarkScheduledActions): ...this, pass argument as...
670 (pkgXmlDocument::ClearScheduledActions): ...pointer returned by this.
672 * src/pkgdata.cpp (AppWindowMaker::MarkSchedule):
673 [pending_actions == NULL]: Do not propagate invocation request to...
674 (pkgListViewMaker::MarkScheduledActions): ...this.
676 * src/pkglist.cpp (pkgListViewMaker::MarkScheduledActions):
677 [schedule == NULL]: Do nothing.
679 2012-12-14 Keith Marshall <keithmarshall@users.sourceforge.net>
681 Implement some additional permanent debugging support.
683 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
684 [DEBUG_TRACE_DEPENDENCIES]: Enable DMH digest mode for messages.
686 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDataStream):
687 [DEBUG_TRACE_TRANSACTIONS]: Add logging of installed file path names.
689 2012-12-14 Keith Marshall <keithmarshall@users.sourceforge.net>
691 Insert a missing snprintf format effector.
693 * src/pkgnget.cpp (pkgDownloadMeterGUI::Update): Add omitted '%'
694 format specifier, in "%%", for formatting percentage-complete value.
695 Rename "size_buf" automatic variable as "buf"; this results in shorter
696 source lines, and consequently a tidier source code layout.
697 (pkgDownloadMeterGUI::ResetGUI): Likewise s/size_buf/buf/
699 2012-12-14 Keith Marshall <keithmarshall@users.sourceforge.net>
701 Add a missing header reference.
703 * src/approot.h: Include stdint.h; this ensures that wchar_t is
704 properly typedef'd, before attempting to use it.
706 2012-12-12 Keith Marshall <keithmarshall@users.sourceforge.net>
708 Make a clone of the package menu available as a pop-up.
710 * src/guimain.h (AppWindowMaker::SelectPackageAction): New private
713 * src/pkgdata.cpp (AppWindowMaker::SelectPackageAction): Implement it.
714 (AppWindowMaker::OnNotify) [ID_PACKAGE_LISTVIEW]: Use it.
716 2012-12-12 Keith Marshall <keithmarshall@users.sourceforge.net>
718 Improve conditionally enabled state manipulation for menu items.
720 * src/guidata.rc (IDM_REPO_APPLY): Set its initial state as GRAYED.
722 * src/pkgdata.cpp (AppWindowMaker::UpdatePackageMenuBindings):
723 [IDM_PACKAGE_REINSTALL]: Always leave it GRAYED; this is a temporary
724 provision, until the GUI is updated to support "reinstall" capability.
725 [IDM_REPO_APPLY && !(EnumeratePendingActions > 0)]: Make it GRAYED.
726 [IDM_REPO_APPLY && (EnumeratePendingActions > 0)]: Enable it.
728 2012-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
730 Implement GUI bindings for processing a schedule of actions.
732 * src/guimain.h (IDD_DMH_CONSOLE): New resource ID; define it.
733 (IDD_APPLY_EXECUTE): New dialogue template resource ID; define it.
734 (AppWindowMaker::ExecuteScheduledActions): New method; declare it.
736 * src/guidata.rc (IDD_APPLY_EXECUTE): Implement dialogue template.
738 * src/guixmld.cpp (pkgApplyChanges): New thread function; implement it.
739 (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]: Use it; it is invoked...
740 (IDD_APPLY_EXECUTE): ...via this dialogue box, subsequently calling...
741 (AppWindowMaker::ExecuteScheduledActions): ...this; implement it.
743 * src/pkgexec.cpp (pkgActionItem::Execute): Add argument; use it.
744 (pkgActionItem::~pkgActionItem): Unlink chained references.
746 * src/pkgbase.h (pkgActionItem::Execute): Adjust prototype.
748 2012-12-11 Keith Marshall <keithmarshall@users.sourceforge.net>
750 Do not preserve unnecessary download requests.
752 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles):
753 [(flags & ACTION_INSTALL) != ACTION_INSTALL]: Actions having no
754 "install" effect do not require a download; cancel any associated
757 2012-12-10 Keith Marshall <keithmarshall@users.sourceforge.net>
759 Implement GUI bindings for package download agent.
761 * src/guimain.h (IDD_PROGRESS_VAL, IDD_PROGRESS_MAX):
762 (IDD_PROGRESS_PCT): New manifest resource IDs; define them. They will
763 be used to identify dialogue controls, to be associated with...
764 (IDD_APPLY_DOWNLOAD): ...this new dialogue template ID; define it.
765 (AppWindowMaker::DownloadArchiveFiles): New inline method; declare it.
767 * src/guidata.rc (IDD_APPLY_DOWNLOAD): Implement dialogue template.
769 * src/pkgbase.h (pkgActionItem::DownloadArchiveFiles): New public
770 inline method; declare it. It overloads an existing private method of
771 the same name, which it subsequently invokes.
773 * src/pkginet.h: New header file; it declares...
774 (pkgInvokeDownload): ...this new extern "C" function prototype, and...
775 (pkgDownloadMeter): ...this abstract class; it is factored from its
776 original implementation in pkginet.cpp, augmented by addition of...
777 (pkgDownloadMeter::primary): New static member variable; declare it.
778 (pkgDownloadMeter::UseGUI): New public method; implement it inline.
779 (pkgDownloadMeter::ResetGUI): New public method; declare it, providing
780 a do-nothing inline default implementation. Any derived class, which
781 supports GUI capability, should override this.
783 * src/pkgnget.cpp: New file; it implements...
784 (pkgDownloadMeterGUI): New class, derived from pkgDownloadMeter.
785 (pkgActionItem::DownloadArchiveFiles): New overloaded inline method.
786 (AppWindowMaker::DownloadArchiveFiles): New inline method.
787 (pkgInvokeDownload): New dialogue box worker thread handler.
789 * src/pkginet.cpp: Include pkginet.h; hence...
790 (pkgDownloadMeter): ...remove redundant class declaration.
791 (pkgDownloadMeter::primary): Define and initialise it.
792 (pkgInternetStreamingAgent::Get) [pkgDownloadMeter::UseGUI]: Delegate
793 progress metering to referenced pkgDownloadMeterGUI class instance.
794 [! pkgDownloadMeter::UseGUI]: Continue to use the existing built-in
795 pkgDownloadMeterTTY mechanism.
796 (pkgActionItem::DownloadSingleArchive) [ACTION_DOWLOAD_FAILED]: Assert
797 this initially; subsequently clear it on successful completion.
798 (pkgActionItem::DownloadArchiveFiles): Collect diagnostic messages
799 into a single DMH_BEGIN_DIGEST ... DMH_END_DIGEST group.
801 * src/guixmld.cpp: Include pkginet.h; it is required by...
802 (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]: Use pkgInvokeDownload.
804 * Makefile.in (GUIMAIN_OBJECTS): Include pkgnget.$OBJEXT
806 2012-12-08 Keith Marshall <keithmarshall@users.sourceforge.net>
808 Implement "Discard" handler for GUI "Apply Changes" dialogue.
810 * src/pkgbase.h (pkgActionItem::Reset): New public method; declare it.
811 (pkgActionItem::Clear): New public method; declare two overloaded
812 variants, of which implement one inline.
813 (pkgXmlDocument::ClearScheduledActions): New public method; declare
814 and implement it inline.
816 * src/pkgtask.h (ACTION_DOWNLOAD_FAILED, ACTION_APPLY_FAILED): New
817 manifest bit-flag constants; define them. They provide a mechanism
818 for blocking the discard event in respect of failed actions.
820 * src/guixmld.cpp (pkgActionItem::Reset): Implement it.
821 (pkgActionItem::Clear): Implement second, out-of-line variant.
822 (ACTION_PRESERVE_FAILED): New local manifest bit-flag constant; define
823 it as an aggregate of ACTION_DOWNLOAD_FAILED and ACTION_APPLY_FAILED.
824 (AppWindowMaker::OnCommand) [IDD_REPO_APPLY]: Use them.
826 2012-12-07 Keith Marshall <keithmarshall@users.sourceforge.net>
828 Implement GUI dialogue for "Apply Changes" action approval.
830 * src/guidata.rc (ID_MAIN_WINDOW_MENU): Rename...
831 ("&Repository"): ...this drop-down menu entry...
832 ("&Installation"): ...this; add...
833 ("&Apply Changes"): ...this new selection.
834 (IDD_APPLY_APPROVE): New dialogue box resource template; define it.
835 (SS_CTEXTBOX): New aggregate style convenience macro; define it.
836 (ES_VT100): Likewise.
838 * src/guimain.h (IDM_REPO_APPLY): New resource ID; define it.
839 (IDM_REPO_QUIT): Redefined resource ID; was 302; changed to 312.
840 (IDD_APPLY_APPROVE, IDD_PROGRESS_TXT): New resource IDs; define them.
841 (IDD_APPLY_REMOVES_PACKAGES, IDD_APPLY_REMOVES_SUMMARY): Likewise.
842 (IDD_APPLY_INSTALLS_PACKAGES, IDD_APPLY_INSTALLS_SUMMARY): Likewise.
843 (IDD_APPLY_UPGRADES_PACKAGES, IDD_APPLY_UPGRADES_SUMMARY): Likewise.
844 (ID_APPLY, ID_DISCARD, ID_DEFER): New response IDs; define them.
845 (AppWindowMaker::EnumerateActions): New inline method; declare it.
846 (AppWindowMaker::DialogueResponse): New inline method; declare and
849 * src/guixmld.cpp (pkglist.h): #included.
850 (dmh_setpty): Add locally declared prototype.
851 (AppWindowMaker::EnumerateActions): Implement it.
852 (pkgActionCount): New static helper function; implement it.
853 (ACTION_APPLY, APPLIES_TO): New macros; define them.
854 (FMT_APPLY_REMOVES, FMT_APPLY_INSTALLS, FMT_APPLY_UPGRADES): New
855 manifest string constants; define them.
856 (pkgApplyApproved): New static call-back function; implement...
857 (AppWindowMaker::OnCommand) [IDM_REPO_APPLY]: ...and use it.
859 2012-12-06 Keith Marshall <keithmarshall@users.sourceforge.net>
861 Implement enhanced action item enumeration capability.
863 * src/pkgbase.h (pkgActionItem::EnumeratePendingActions): New public
864 method; declare it. It provides the capability to enumerate scheduled
865 actions, filtered by action classification; when invoked such that it
866 selects all actions, it may be used as a replacement for...
867 (pkgActionItem::Unapplied): ...this; delete declaration.
869 * src/pkgdata.cpp (pkgActionItem::EnumeratePendingActions): Implement
870 it; it is derived, with enhancement, from original implementation...
871 (pkgActionItem::Unapplied): ...of this; delete it, and...
872 (AppWindowMaker::OnClose): ...update calling reference accordingly.
874 2012-12-05 Keith Marshall <keithmarshall@users.sourceforge.net>
876 Implement PTY display emulation for GUI mode DMH.
878 * src/dmhcore.h (dmhTypeGeneric::set_console_hook): New public virtual
879 method; declare it, providing inline default do-nothing implementation.
880 (dmhTypeGeneric::severity_tag): New protected static method; declare it.
881 (dmhTypeGeneric::notification_format): New protected static property;
884 * src/dmh.cpp (dmhTypeGeneric::severity_tag): Implement it.
885 (dmhTypeGeneric::notification_format): Define and initialise it.
886 (dmhTypeTTY::notify): Use them.
887 (dmh_setpty): New function; declare prototype and implement it.
889 * src/guidmh.cpp (dmhTypePTY): New locally implemented class.
890 (dmhTypeGUI::set_console_hook): New virtual method; declare and
891 implement it; it stores a dmhTypePTY reference pointer into...
892 (dmhTypeGUI::console_hook): ...this new private member variable.
893 (dmhTypeGUI::dmhTypeGUI): Initialise it.
894 (dmhTypeGUI::notify) [console_hook != NULL]: Delegate to it.
895 (dmhTypeGUI::printf) [console_hook != NULL]: Likewise.
897 2012-12-03 Keith Marshall <keithmarshall@users.sourceforge.net>
899 Implement generalised API for dialogue boxes with worker threads.
901 * src/guimain.h (pkgDialogueThread): New typedef; declare it.
902 (AppWindowMaker::DialogueThread): New static property; declare it.
903 (AppWindowMaker::DispatchDialogueThread): New method; declare it.
905 * src/guixmld.cpp: Formatting of several comments adjusted.
906 (pkgUpdate, pkgInitDataLoad): Defunct functions; replaced by...
907 (pkgDialogue): ...this new static call-back function; implement it.
908 (AppWindowMaker::DialogueThread): Instantiate and initialise it.
909 (AppWindowMaker::DispatchDialogueThread): Implement it.
910 (AppWindowMaker::Invoked): Use it to invoke pkgInvokeInitDataLoad()...
911 (AppWindowMaker::OnCommand): ...and pkgInvokeUpdate().
913 2012-12-03 Keith Marshall <keithmarshall@users.sourceforge.net>
915 Consolidate GUI implementation for package list view management.
917 * src/pkglist.h (pkgListViewMaker::GetTitle): Disused overloaded
918 method; remove all declarations.
919 (pkgListViewMaker::GetVersionString): Disused method; remove
921 (pkgListViewMaker::GetItem): New private inline method; declare it.
922 (pkgListViewMaker::UpdateItem): New private method; declare it.
923 (pkgListViewMaker::UpdateListView): New public method; declare it.
924 (pkgListViewMaker::MarkScheduledActions): Likewise.
926 * src/guimain.h (AppWindowMaker::MarkSchedule): New public inline
927 method; declare it, but defer implementation to...
929 * src/pkgdata.cpp (AppWindowMaker::MarkSchedule): ...here; not used
930 elsewhere, it is derived from, and replaces...
931 (pkgMarkSchedule): ...this function; factor out redundant code, in
932 favour of delegation to pkgListViewMaker::MarkScheduledActions(), with
933 following call to AppWindowMaker::UpdatePackageMenuBindings(); update
934 calling function references...
935 (AppWindowMaker::UnmarkSelectedPackage): ...here, and...
936 (AppWindowMaker::Schedule): ...here.
938 * src/pkglist.cpp (pkgVersionString): New static function; implement
939 it as a local replacement for...
940 (pkgListViewMaker::GetVersionString): ...this defunct class method.
941 (pkgGetTitle): New overloaded static function; implement two variants,
942 as local replacements for...
943 (pkgListViewMaker::GetTitle): ...this defunct overloaded class method.
944 (pkgListViewMaker::UpdateItem): Implement it; factor code from...
945 (pkgListViewMaker::InsertItem): ...here, whence use it.
946 (pkgListViewMaker::MarkScheduledActions): Implement it.
947 (pkgListViewMaker::UpdateListView): Implement it.
948 (pkgListViewMaker::pkgListViewMaker): Remove references to...
949 (LVIF_TEXT): ...this.
951 2012-11-30 Keith Marshall <keithmarshall@users.sourceforge.net>
953 Increase width of window sash bars by 50%.
955 * src/guimain.h (SASH_BAR_THICKNESS): Increase from 4 to 6; this makes
956 it easier to grab the sash bars, so they may be dragged; IMO, it also
957 results in a better appearance.
959 2012-11-29 Keith Marshall <keithmarshall@users.sourceforge.net>
961 Maintain consistent internal vs. external installation records.
963 * src/pkginst.cpp (pkgInstall): Set "installed" attribute on internal
964 package reference, to "yes", after installation; CLI didn't need this,
965 but GUI will do so, for any package revisited in a single session.
967 * src/pkgunst.cpp (pkgRemove): Similarly, negate "installed" attribute
968 after package removal.
970 2012-11-17 Keith Marshall <keithmarshall@users.sourceforge.net>
972 Refactor to consolidate three instances of duplicate code.
974 * src/pkglist.h (pkgGetStatus): New function; declare it.
975 * src/pkglist.cpp (pkgGetStatus): Implement it; factor out from...
976 (pkgListViewMaker::InsertItem): ...here, whence use it.
977 * src/pkgdata.cpp (pkgMarkSchedule): Likewise here...
978 (DataSheetMaker::DisplayGeneralData): ...and here.
980 2012-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
982 Add GUI support for install, upgrade, and remove action scheduling.
984 * src/guimain.h (EXTERN_C): Ensure it is defined.
985 (pkgActionItem): Add forward declaration of class name.
986 (pkgMarkSchedule): New EXTERN_C function; declare and prototype it.
987 (AppWindowMaker::OnClose): New virtual method; declare it.
988 (AppWindowMaker::Schedule): New public method; declare it.
989 (AppWindowMaker::UnmarkSelectedPackage): Likewise.
991 * src/pkgbase.h (pkgActionItem::HasAttribute) [this == NULL]: Add
992 protective logic; ignore attempts to access non-existent objects.
993 (pkgActionItem::SelectPackage) [this == NULL]: Likewise.
994 (pkgActionItem::Selection) [this == NULL]: Likewise.
995 (pkgActionItem::GetReference): New overloaded public method; declare
996 prototype variant with argument type of pkgXmlNode*.
997 (pkgActionItem::Unapplied): New public method; declare it.
998 (pkgActionItem::CancelScheduledAction): Likewise.
999 (pkgXmlDocument::Schedule): Change return type from void to
1000 pkgActionItem*; add default argument values.
1002 * src/guixmld.cpp (AppWindowMaker::OnCommand): Add menu case hooks...
1003 [IDM_PACKAGE_INSTALL]: ...to schedule package 'install' action...
1004 [IDM_PACKAGE_UPGRADE]: ...package 'upgrade' action...
1005 [IDM_PACKAGE_REMOVE]: ...package 'remove' action, or...
1006 [IDM_PACKAGE_UNMARK]: ...to cancel any of these scheduling requests.
1007 [IDM_REPO_QUIT]: Correct typo; s/WM_QUIT/WM_CLOSE/ in comment.
1009 * src/pkgdata.cpp (pkgMarkSchedule): Implement it.
1010 (pkgActionItem::CancelScheduledAction): Implement it.
1011 (pkgActionItem::Unapplied): Implement it.
1012 (AppWindowMaker::UpdatePackageMenuBindings): Improve comments.
1013 (AppWindowMaker::UnmarkSelectedPackage): Implement it.
1014 (AppWindowMaker::Schedule): Implement it.
1015 (AppWindowMaker::OnClose): Implement it.
1017 * src/pkgdeps.cpp (pkgActionItem::GetReference): Implement overload.
1018 (pkgXmlDocument::Schedule): Change return type, and return value.
1019 [this == NULL]: Add protective logic; ignore non-existent objects.
1020 [name == NULL]: Do not schedule; just return existing action list.
1022 2012-11-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1024 Add dynamically enabled state control for package menu items.
1026 * src/guimain.h (AppWindowMaker::UpdatePackageMenuBindings): New
1027 private method; declare it.
1029 * src/pkgdata.cpp (AppWindowMaker::UpdatePackageMenuBindings):
1030 Implement it, and...
1031 (AppWindowMaker::OnNotify): ...use it.
1033 2012-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1035 Avoid excessive inter-word spaces in adjusted text.
1037 * src/pkgdata.cpp (pkgTroffLayoutEngine::WriteLn): Check extent of
1038 padding to be added at each inter-word space, when adjusting text; do
1039 not adjust, if it exceeds 5% of available display pane width.
1041 2012-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1043 Elide unbreakable text which will not fit within display width.
1045 * src/pkgdata.cpp (pkgTroffLayoutEngine::WriteLn): Add logic to detect
1046 over-width unbreakable text; elide characters from the right, to make
1047 it fit within the display width, with trailing ellipsis.
1049 2012-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1051 Add content compiler for package data sheet "general" tab.
1053 * src/pkgbase.h (pkgActionItem::PrintURI): Make it public. Add a
1054 call-back reference argument, for output function; assign puts() as
1055 default, where previously had hard coded printf() emulating puts()
1057 * src/pkginet.cpp (pkgActionItem::PrintURI): Use call-back hook.
1059 * src/pkgdata.cpp (DataSheetMaker::Display): New static property; it
1060 stores a reference to the active class instance, so static call-back
1061 methods may delegate processing requests to non-static methods.
1062 (DataSheetMaker::Advance): New static property; it is used to instruct
1063 call-back methods to interpose paragraph leading it the output stream.
1064 (DataSheetMaker::FormatRecord): New private method; implement it.
1065 (DataSheetMaker::FormatText): Don't pass "canvas" as an argument; we
1066 can access it directly as a class property. Update all callers as
1067 necessary, to conform to modified function prototype.
1068 (pkgListSelection): New static function; implement it, and...
1069 (DataSheetMaker::OnPaint): ...use it in switch cases, when calling...
1070 [PKG_DATASHEET_GENERAL]: DataSheetMaker::DisplayGeneralData(), and...
1071 [PKG_DATASHEET_DESCRIPTION]: DataSheetMaker::DisplayDescription().
1072 (DataSheetMaker::DisplayGeneralData): New public method; implement it.
1073 (DataSheetMaker::DisplayPackageURL): New static method; implement it.
1074 (DataSheetMaker::DisplayLicenceURL): Likewise.
1075 (DataSheetMaker::DisplaySourceURL): Likewise.
1077 2012-10-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1079 Fix error in counting of catalogue files during loading.
1081 * src/pkgbind.cpp (pkgRepository::GetPackageList): Increment count
1082 variable once only, at start of each cycle of the catalogue loading
1083 loop; previous strategy of counting in discrete logic paths could
1084 miss several required increments, particularly in CLI mode.
1086 2012-10-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1088 Avoid DMH message digest fragmentation when downloading.
1090 * src/dmh.h (DMH_GET_CONTROL_STATE): New macro; define it.
1091 * src/pkginet.cpp (pkgInternetAgent::OpenURL): Use it; do not close
1092 locally opened message digest, when called with one already open.
1094 2012-10-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1096 Initiate progress metering for catalogue load and update operations.
1098 * src/guidata.rc (IDD_REPO_UPDATE): New dialogue template; define it.
1099 (IDM_REPO_UPDATE): Enable selection from "Repository" drop-down menu.
1101 * src/guimain.h (IDD_REPO_UPDATE, IDD_CLOSE_OPTIONS):
1102 (IDD_AUTO_CLOSE_OPTION, IDD_PROGRESS_BAR, IDD_PROGRESS_MSG): New
1103 resource identification manifest constants; define them.
1104 (pkgXmlNode, pkgProgressMeter): Add forward class declarations.
1105 (AppWindowMaker::AttachedProgressMeter): New private data; define...
1106 (AppWindowMaker::AppWindowMaker): ...and initialise it.
1107 (AppWindowMaker::AttachProgressMeter): New public method; declare it.
1108 (AppWindowMaker::DetachProgressMeter): Likewise.
1109 (AppWindowMaker::LoadPackageData, AppWindowMaker::ClearPackageList):
1110 (AppWindowMaker::UpdatePackageList): Make them public.
1112 * src/pkgbase.h (pkgProgressMeter): New abstract class; declare it.
1113 (AppWindowMaker) [GUIMAIN_H undefined]: Add forward class declaration.
1114 (pkgXmlDocument::progress_meter): New private data member; declare...
1115 (pkgXmlDocument::pkgXmlDocument): ...and initialise it.
1116 (pkgXmlDocument::ProgressMeter, pkgXmlDocument::AttachProgressMeter):
1117 (pkgXmlDocument::DetachProgressMeter): New public inline methods;
1120 * src/pkgview.cpp (WTK::GenericDialogue): Delete disused reference.
1121 (AppWindowMaker::OnCommand): Factor out implementation; relocate it...
1122 * src/guixmld.cpp: ...to here; thus it may utilise dependants of...
1123 (ProgressMeterMaker): ...this new locally implemented class.
1124 (AppWindowMaker::AttachProgressMeter): Implement it.
1125 (AppWindowMaker::AttachProgressMeter): Likewise.
1126 (pkgProgressMeter::~pkgProgressMeter): Likewise.
1127 (pkgUpdate, pkgInvokeUpdate): New static functions; implement them.
1128 (AppWindowMaker::Invoked): Replace direct call to LoadPackageData by
1129 an indirect invocation, via a progress metering dialogue box using...
1130 (pkgInitDataLoad): ...this new static callback function, invoking...
1131 (pkgInvokeInitDataLoad): ...this new static thread function, whence...
1132 (AppWindowMaker::LoadPackageData): ...this; add hook-up call to...
1133 (pkgXmlDocument::AttachProgressMeter): ...incorporate this.
1135 * src/pkgbind.cpp (pkgRepository::total, pkgRepository::count): New
1136 private static properties; declare and instantiate them; provide...
1137 (pkgRepository::Reset, pkgRepository::IncrementTotal): ...new public
1138 static methods to manipulate them; declare and implement them inline.
1139 (pkgRepository::GetPackageList): Use them to manage updates to the
1140 pkgProgressMeter class instance, if any, which has been bound to
1141 the controlling pkgXmlDocument class instance, when invoking...
1142 (pkgXmlXmlDocument::BindRepositories): ...this.
1144 2012-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1146 Associate DMH message boxes with active dialogues.
1148 * src/guidmh.cpp (last_active_popup): New static inline function.
1149 (dmhTypeGUI::dispatch_message): Use it.
1151 2012-10-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1153 Fix Diagnostic Message Handler initialisation logic.
1155 * src/dmh.cpp (dmh_init) [DMH_SUBSYSTEM_GUI]: Correct a logic error;
1156 it previously fell through after any successful initialisation of the
1157 DMH_SUBSYSTEM_GUI handler, replacing it with a DMH_SUBSYSTEM_TTY type
1158 handler. Also, assign a heap copy of the passed "progname" string
1159 resource, which is volatile, to ensure that the handler retains a
1162 2012-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1164 Implement preliminary GUI mode data sheet compiler.
1166 * src/guimain.h (DataSheetMaker): New class; forward declare it.
1167 (AppWindowMaker::InitPackageTabControl): New private method; declare it.
1168 (AppWindowMaker::DataSheet, AppWindowMaker::PackageTabControl):
1169 (AppWindowMaker::TabDataPane, AppWindowMaker::PackageTabPane): New
1170 private data members; declare them.
1171 (ID_SASH_WINDOW_PANE_CLASS): New string resource identifier; define it.
1172 (ID_PACKAGE_DATASHEET, ID_PACKAGE_TABPANE): New window identifiers;
1175 * src/guidata.rc (ID_SASH_WINDOW_PANE_CLASS): Specify string resource.
1177 * src/pkgview.cpp (AppWindowMaker::OnSize): Add handler for...
1178 (ID_PACKAGE_TABPANE, ID_PACKAGE_TABCONTROL, ID_PACKAGE_DATASHHET):
1179 ...this group of sash pane child window entities.
1180 (AppWindowMaker::OnNotify): Comment out disused stub implementation.
1182 * src/pkgshow.cpp (pkgUTF8Parser): Factor out class declaration...
1183 (UTF32_MAX, UTF32_OVERFLOW, UTF32_INVALID): ...these definitions...
1184 (utf32_t): ...and this typedef; relocate to, and #include...
1185 * src/pkgdata.h: ...this new header file.
1187 * src/pkgdata.cpp (DataSheetMaker): New class; declare and implement it.
1188 (AppWindowMaker::InitPackageTabControl): Implement it.
1189 (AppWindowMaker::OnNotify): Reimplement it.
1191 * Makefile.in (GUIMAIN_OBJECTS): Add pkgdata.OBJEXT
1193 * src/guixmld.cpp (AppWindowMaker::Invoked): Add call to invoke
1194 AppWindowMaker::InitPackageTabControl()
1196 2012-10-09 Keith Marshall <keithmarshall@users.sourceforge.net>
1198 Remove a grossly heuristic list view hack.
1200 * src/pkglist.cpp (pkgListViewMaker::GetTitle): Remove code for the
1201 heuristic deletion of any redundant package name prefixes from package
1202 title attributes; by now, all such prefixes should have been removed
1203 from the catalogue, explicitly, at source.
1205 2012-10-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1207 Implement GUI list view compiler for XML catalogue.
1209 * src/pkgview.cpp (AppWindowMaker::LayoutEngine): Add case handler...
1210 [pane_id == ID_PACKAGE_LISTVIEW]: ...for this window pane class.
1212 * src/guimain.h (ID_PKGLIST_TABLE_HEADINGS):
1213 (ID_PKGNAME_COLUMN_HEADING, ID_PKGTYPE_COLUMN_HEADING):
1214 (ID_INSTVER_COLUMN_HEADING, ID_REPOVER_COLUMN_HEADING):
1215 (ID_PKGDESC_COLUMN_HEADING): New resource identifiers; define them.
1216 (ID_PKGSTATE_AVAILABLE, ID_PKGSTATE_AVAILABLE_NEW):
1217 (ID_PKGSTATE_AVAILABLE_LOCKED, ID_PKGSTATE_AVAILABLE_INSTALL):
1218 (ID_PKGSTATE_INSTALLED_CURRENT, ID_PKGSTATE_INSTALLED_LOCKED):
1219 (ID_PKGSTATE_INSTALLED_OLD, ID_PKGSTATE_UPGRADE, ID_PKGSTATE_REMOVE):
1220 (ID_PKGSTATE_REINSTALL, ID_PKGSTATE_DOWNGRADE, ID_PKGSTATE_BROKEN):
1221 (ID_PKGSTATE_PURGE): New icon resource identifiers; define them.
1222 (AppWindowMaker::InitPackageListView): New private method; declare it.
1223 (AppWindowMaker::UpdatePackageList): New private method; declare it.
1224 (AppWindowMaker::ClearPackageList): New private method; declare and
1225 implement it inline.
1227 * src/guidata.rc (ID_PKGSTATE_AVAILABLE, ID_PKGSTATE_AVAILABLE_NEW):
1228 (ID_PKGSTATE_AVAILABLE_LOCKED, ID_PKGSTATE_AVAILABLE_INSTALL):
1229 (ID_PKGSTATE_INSTALLED_CURRENT, ID_PKGSTATE_INSTALLED_LOCKED):
1230 (ID_PKGSTATE_INSTALLED_OLD, ID_PKGSTATE_UPGRADE, ID_PKGSTATE_REMOVE):
1231 (ID_PKGSTATE_REINSTALL, ID_PKGSTATE_DOWNGRADE, ID_PKGSTATE_BROKEN):
1232 (ID_PKGSTATE_PURGE): New icon resources; implement them.
1234 * icons/state01.ico icons/state02.ico icons/state03.ico:
1235 * icons/state04.ico icons/state05.ico icons/state06.ico:
1236 * icons/state07.ico icons/state08.ico icons/state09.ico:
1237 * icons/state10.ico icons/state11.ico icons/state12.ico:
1238 * icons/state13.ico: New files. All are cloned from synaptic icons;
1239 see src/guimain.rc for symbolic/functional reference names.
1241 * src/pkglist.h [GUIMAIN_H defined] (pkgListViewMaker): New class;
1242 declare it for use in modules which #include guimain.h
1244 * src/pkglist.cpp: New file; it implements...
1245 (pkgListViewMaker): ...this new class, and its clients...
1246 (AppWindowMaker::InitPackageListView): New method.
1247 (AppWindowMaker::UpdatePackageList): Likewise.
1249 * Makefile.in (GUIMAIN_OBJECTS): Add pkglist.OBJEXT
1251 * src/guixmld.cpp (AppWindowMaker::Invoke): Call InitCommonControls(),
1252 as prerequisite to AppWindowMaker::InitPackageListView(); follow up by
1253 calling AppWindowMaker::AdjustLayout().
1255 2012-10-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1257 Add GUI initialiser hook for XML catalogue interface.
1259 * src/guimain.h (AppWindowMaker::Invoke): New public method; declare
1260 it; it overrides the generic WTK::MainWindowMaker::Invoke() method, so
1261 providing the initialiser hook which will invoke this...
1262 (AppWindowMaker::LoadPackageData): ...new private method; declare it.
1264 * src/guixmld.cpp: New file.
1265 (AppWindowMaker::Invoke): Implement it.
1266 (AppWindowMaker::LoadPackageData): Likewise.
1268 * Makefile.in (GUIMAIN_OBJECTS): Add guixmld.OBJEXT
1270 2012-09-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1272 Add initial working GUI mode DMH class implementation.
1274 * src/dmh.h (DMH_SEVERITY_MASK): New manifest constant; define it.
1275 (DMH_DIGEST_MASK, DMH_COMPILE_DIGEST, DMH_DISPATCH_DIGEST): Likewise.
1276 (DMH_BEGIN_DIGEST, DMH_END_DIGEST): Redefine in terms of above.
1278 * src/dmhcore.h: New header file; it declares...
1279 (dmhTypeGeneric): ...this abstract base class, factored from...
1281 * src/dmh.cpp (dmhTypeGeneric): ...here, whence remove it; it is
1282 still required, thus include dmhcore.h so that it remains visible.
1283 (dmh_exception): Remove errant namespace qualifier from constructor.
1284 (dmhTypeGUI): Delete class declaration and original constructor.
1285 (dmh_init): Delete reference to dmhTypeGUI; replace by call to...
1286 (dmh_init_gui): ...this new static function; it is a stub which
1287 invokes a DLL import of the same name, to instantiate a dmhTypeGUI.
1288 (dmhTypeGUI::control, dmhTypeGUI::notify, dmhTypeGUI::printf): Delete
1289 original method stubs.
1291 * src/guidmh.cpp: New file; it reimplements...
1292 (dmhTypeGUI): ...this class; declare it and implement its constructor.
1293 (dmh_init_gui): Provide its DLL exported implementation.
1294 (dmhTypeGUI::dispatch_message): New private method; add it to the
1295 class declaration and implement it; it is a helper method for...
1296 (dmhTypeGUI::control, dmhTypeGUI::notify): ...these; implement them.
1297 (dmhTypeGUI::printf): Provide a replacement stub.
1299 * Makefile.in (GUIMAIN_OBJECTS): Add guidmh.OBJEXT
1301 * src/guimain.h (AppWindowMaker::Create): New method; add it to the
1302 class declaration; it overrides the default Create() method inherited
1303 from WTK::MainWindowMaker
1305 * src/pkgview.cpp (AppWindowMaker::Create): Implement it; it handles
1306 window class registration and dmhTypeGUI initialisation, in addition
1307 to the inherited CreateWindow() behaviour.
1309 * src/guimain.cpp: Include dmh.h
1310 (WinMain): Add catch block for dmh_exception. Remove window class
1311 registration request; it is now delegated to AppWindowMaker::Create()
1313 2012-09-26 Keith Marshall <keithmarshall@users.sourceforge.net>
1315 Add .hgignore as tracked file.
1317 * .hgignore: New file.
1319 2012-09-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1321 Defer generation of version.c until "make" time.
1323 * version.c.in: Move it...
1324 * src/version.c.in: ...to here.
1325 (PACKAGE_NAME, PACKAGE_VERSION, COPYRIGHT_HOLDER, YEARS_OF_ISSUE):
1326 Change substitution field marker character from "@" to "%".
1328 * configure.ac (AC_CONFIG_FILES): Remove version.c
1330 * Makefile.in (TAG_SCRIPT): New macro, factored out from...
1331 (RC_SCRIPT): ...here, whence use it; also use it to implement...
1332 (VERSION_SCRIPT): ...this further new macro; use it in...
1333 (%.c): ...this generic template rule for version.c
1334 (time-stamp, %.time, %.tagged.time, %.tag): New generic build
1335 goals; use them to track package release progression via...
1336 (build.tag): ...this new intermediate; make it a pre-requisite...
1337 (guidata.OBJEXT, version.c): ...of these.
1339 2012-09-21 Keith Marshall <keithmarshall@users.sourceforge.net>
1341 Implement framework for GUI sash window layout controller.
1343 * configure.ac (AC_INIT): Bump version number to 0.6
1344 (CLI_RELEASE_CLASS): New AC_SUBST variable; default to "beta".
1345 (GUI_RELEASE_CLASS): New AC_SUBST variable; default to "alpha".
1346 (SNAPSHOT_CLASS): Recognise as user specified environent variable
1347 override for both CLI_RELEASE_CLASS and GUI_RELEASE_CLASS.
1348 (RC): New AC_CHECK_TOOL substitution variable name; it replaces...
1349 (WINDRES): ...this, as reference name for the resource compiler.
1350 (MINGW_AC_ASSERT_MISSING): Add AC_CHECK_HEADER traps for missing
1351 "lua-dev" and "wtklite-dev" support.
1353 * Makefile.in (CLI_RELEASE_CLASS, GUI_RELEASE_CLASS): Use them.
1354 (BUILD_TAG, RC_SCRIPT, RC_INCLUDES): New macros; define and use...
1355 (RC): ...with this, to implement new target rule for compiling...
1356 (%.rc): ...resource definition files to %.OBJEXT objects.
1357 (GUIMAIN_OBJECTS, GUIMAIN_LIBS): New macros; define and use...
1358 (guimain.EXEEXT): ...to implement build rule for this.
1359 (LIBEXEC_PROGRAMS): Add guimain.EXEEXT
1360 (lastrites.EXEEXT): Use GUI_LDFLAGS.
1362 * src/guimain.h src/guimain.cpp src/guidata.rc: New files.
1363 * src/pkgview.cpp: New file.
1365 2012-09-20 Keith Marshall <keithmarshall@users.sourceforge.net>
1367 Adjust incorrectly resolved 2012-09-14 merge from master.
1369 * src/Makefile.in: Restore lost reference to guistub.cpp
1371 2012-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1373 Implement GUI hooks in "rites of passage" internal API.
1375 * src/pkglock.h: New file; it adds the pkgLock() and pkgRelease()
1376 inline wrapper functions, through which the GUI application acquires
1377 and manages an exclusive access lock for the XML catalogue.
1379 * src/rites.c (lockfile_name): Explicitly cast memory allocated for
1380 the returned name to (char *), so this may be embedded in C++ code.
1381 (pkgInitRites): Factor out lock acquisition failure diagnostics...
1382 (pkgLockFail): ...to this inline helper function; conditionally...
1383 [ifdef GUIMAIN_H]: ...provide one implementation for GUI use...
1384 [ifndef GUIMAIN_H]: ...and an alternative for CLI use.
1386 2012-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
1388 Be case agnostic when matching shortcut targets.
1390 * scripts/libexec/unlink.js [ref.TargetPath == chklink]: Apply
1391 toLowerCase() on both sides of the comparison.
1393 2012-09-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1395 Note relocation of m4 when packaging source distribution.
1397 * Makefile.in (SRCDIST_SUBDIRS): Refer to build-aux/m4, not m4.
1399 2012-09-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1401 Move guimain.cpp out of the way.
1403 * src/guimain.cpp: Rename file as...
1404 * src/guistub.cpp: ...this; we want to keep current features for now,
1405 but to use the guimain.cpp name for main GUI application development.
1406 * Makefile.in: Adjust references accordingly.
1408 2012-09-09 Keith Marshall <keithmarshall@users.sourceforge.net>
1410 Fix typo, and update licensing terms for embedded getopt.c
1412 * src/getopt.c: Incorporate MIT/X style licence; update copyright
1413 notice, to reflect chronology of publication; correct degenerate RCS
1414 keyword usage in EOF marker comment.
1416 2012-09-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1418 Correct omission from copyright notice.
1420 * src/pkgkeys.c: Add year 2012, to reflect 2012-09-02 update.
1422 2012-09-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1424 Redefine paragraph_key with project global scope.
1426 * src/pkgkeys.h (paragraph_key): Declare it.
1427 * src/pkgkeys.c (paragraph_key): Define it.
1429 * src/pkgshow.cpp (pkgDirectoryViewer::EmitDescription): Delete
1430 function local definition; use global definition instead.
1432 2012-09-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1434 Correct defect introduced by 2012-08-03 commit.
1436 * src/approot.c (AppPathNameW): Add omitted 'else', so that tail
1437 pointer isn't moved after the APPROOT prefix is truncated.
1439 2012-09-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1441 Remap Mercurial subrepository reference via local hg-git clone.
1443 * .hgsub (build-aux): Point to ../build-aux; this must be a locally
1444 hosted hg clone of the git origin repository, and it must pre-exist as
1445 a sibling of any created hg clone of the mingw-get repository.
1447 * .hgsubstate: New file, automatically generated by Mercurial.
1449 2012-08-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1451 Add Mercurial subrepository reference for build-aux.
1455 2012-08-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1457 More code refactoring, to facilitate GUI implementation.
1459 * src/clistub.c (AppPathNameW): Factor out; relocate to...
1460 * src/approot.c: ...this new file; it reproduces the original
1461 implementation, modified to also consider any "libexec" directory in
1462 the executable path as the first child of the APPROOT prefix. Note
1463 also, that no longer terminates APPROOT with a trailing backslash.
1465 * src/approot.h: New file; it trivially declares the prototype for...
1466 (AppPathNameW): ...this relocated extern "C" function.
1468 * src/clistub.c (main): Adapt usage of AppPathNameW(), to reinstate
1469 trailing backslash on assignment to APPROOT environment variable.
1471 * Makefile.in (CLI_EXE_OBJECTS): New macro; define it as the original
1472 set of prerequisites, with the addition of approot.OBJEXT, for...
1473 (mingw-get.EXEEXT): ...this; use it.
1475 * src/rites.c: Add comment regarding APPROOT usage.
1477 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
1479 Find missing.m4 in build-aux/m4 directory.
1481 * aclocal.m4: Change path m4/missing.m4 to build-aux/m4/missing.m4.
1483 2012-07-31 Earnie Boyd <earnie@users.sourceforge.net>
1485 Add build-aux as a submodule.
1486 Move .cvsignore to .gitignore.
1488 * .gitmodules: New file.
1489 * build-aux: New submodule directory.
1490 * .cvsignore: Remove.
1491 * .gitignore: New file.
1493 2012-07-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1495 Disable globbing of command line arguments.
1497 * src/clistub.c (_CRT_glob): Define and initialise to zero; we don't
1498 need globbing, and it may cause case transliteration of case-sensitive
1499 action keywords, when a file system entity with a case-insensitively
1500 matching name exists.
1502 2012-06-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1504 Refactor API to facilitate implementation of GUI ListView hooks.
1506 * src/pkgkeys.h (title_key, description_key): Declare them.
1507 * src/pkgkeys.c (title_key, description_key): Define them; relocate...
1508 * src/pkgshow.cpp (pkgDirectoryViewer::EmitDescription): ...from here.
1509 (pkgXmlDocument::CalalogueAllPackages): New public method; factor...
1510 (pkgXmlDocument::DisplayPackageInfo): ...from here, whence use it.
1511 (pkgDirectoryViewerEngine::EnumerateComponents): New private method;
1512 implement as a concrete method of this abstract base class; factor...
1513 (pkgDirectoryViewer::Dispatch): ...from original inline implementation
1514 within this method of the concrete derived class, whence use it.
1515 (pkgDirectoryViewerEngine, pkgDirectory): Factor class declarations...
1516 * src/pkglist.h: ...into this new header file; include it.
1518 * src/pkgbase.h (pkgDirectory): Add forward class declaration.
1519 (pkgXmlDocument::CatalogueAllPackages): Declare it.
1521 2012-05-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1523 Update help text to document package version selection capability.
1525 * src/clistub.c (help_text): Add description of command line syntax
1526 which may be used to specify an alternative to the default package
1527 version selection, for install and upgrade actions.
1529 2012-05-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1531 Support options set by preferences assigned within profile.xml
1533 * xml/profile.xml (preferences): New element; add defaults.
1535 * src/pkgopts.h (OPTION_ASSIGNED_FLAGS, OPTION_DESKTOP_ARGS):
1536 (OPTION_START_MENU_ARGS): New enumerated constants; define them.
1537 (OPTION_DESKTOP, OPTION_START_MENU): New manifest constants.
1538 (OPTION_ASSIGNED, mark_option_as_set): New macros; define them.
1539 (pkgOpts::GetValue, pkgOpts::GetString): Restrict look-up index to
1540 least significant 12-bits of full-range index value.
1541 (pkgOpts::IsSet): New inline method; implement it.
1543 * src/clistub.c (main): Reimplement --desktop and --start-menu
1544 options; each now becomes an OPTION_GENERIC optarg string store.
1545 (set_script_hook): Function no longer used; delete it; delegate to...
1546 * src/pkgbase.h (pkgXmlDocument::EstablishPreferences): ...this new
1547 method; declare it, providing its implementation in...
1548 * src/pkgopts.cpp: ...this new file; invoke it...
1549 * src/climain.cpp (climain): ...here.
1551 * Makefile.in (CORE_DLL_OBJECTS): Add pkgopts.$OBJEXT
1553 2012-04-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1555 Correct sequence of installation/removal progress reporting.
1557 * src/pkgunst.cpp (pkgRemove): Delay output of "removing package ..."
1558 message, until after pre-remove hooks have run; this ensures that any
1559 output from the pre-remove hook scripts appears in correct sequence.
1561 * src/pkginst.cpp (pkgInstall): Likewise, for "installing package ..."
1562 message, in relation to pre-install hooks.
1564 2012-04-26 Keith Marshall <keithmarshall@users.sourceforge.net>
1566 mingw-get-0.5-beta-20120426-1 released.
1568 * configure.ac (AC_INIT): Version number updated.
1569 * srcdist-doc/NEWS.in: Updated; bug-fix notifications added.
1570 * All files (r0-5-beta-20120426-1): Tag assigned.
1572 2012-04-25 Keith Marshall <keithmarshall@users.sourceforge.net>
1574 Interim work-around for MinGW-Bug #3520864.
1576 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
1577 [DEBUG_TRACE_DEPENDENCIES]: Add request flags to messages reporting
1578 the scheduling of installation activities.
1580 * src/pkgexec.cpp (pkgXmlDocument::Schedule): Add temporary diagnostic
1581 hooks to confirm request flags; bracket them with #if 0 ... #endif.
1582 [ACTION_PRIMARY && pre-scheduled request]: Don't trash request flags
1583 when updating the pre-existing action item data.
1585 2012-04-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1587 Fix MinGW-Bug #3520488
1589 * src/pkgexec.cpp (action_code): Check for, and reject NULL pointer
1590 passed as action request string; also reject ambiguous abbreviations.
1592 * src/climain.cpp (climain): Discriminate between NULL pointer and
1593 other forms of invalid action keyword matching failures.
1595 2012-04-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1597 mingw-get-0.5-beta-20120416-1 released.
1599 * configure.ac (AC_INIT): Version number updated.
1600 (YEARS_OF_ISSUE): 2012 added.
1602 * srcdist-doc/NEWS.in: Updated; release notes added.
1603 * All files (r0-5-beta-20120416-1): Tag assigned.
1605 2012-04-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1607 Assign icon to temporary GUI executable file.
1609 * icons/pkgicon.ico: New file, shamelessly copied from synaptic.
1611 * configure.ac: Add identification for windres; propagate it to...
1612 * Makefile.in: ...here; use it to compile object from icon files...
1613 (srcdir/icons) [%.ico]: ...from this new vpath location.
1614 (gui.exe): Link to compiled icon's object file.
1615 (SRCDIST_SUBDIRS): Add icons directory.
1617 2012-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
1619 Ensure that package removal requests are correctly scheduled.
1621 * src/pkgdeps.cpp (pkgXmlDocument::Schedule) [ACTION_REMOVE]: Schedule
1622 as a distinct case, when the installed version is not the most recent
1623 available release; consideration of this distinct case was previously
1624 erroneously overlooked.
1626 2012-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
1628 Correct scheduling of new prerequisites when upgrading.
1630 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
1631 [ACTION_UPGRADE && ACTION_PRIMARY]: Don't exclude scheduling for this
1632 case of a prerequisite with no previously installed version; it may be
1633 a delegated primary requirement of a meta-package.
1635 2012-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
1637 Don't require subsystem within user specified version bounds.
1639 * src/pkgdeps.cpp (pkgActionItem::ApplyBounds): Automatically consider
1640 "*" wild-card matches for subsystem, if user doesn't specify it.
1642 2012-04-09 Charles Wilson <mingw@cwilson.fastmail.fm>
1644 Fix missing include.
1646 * src/pkgdeps.cpp (pkgopts.h): Include unconditionally; do not rely...
1647 (debug.h) [DEBUG_TRACE_DYNAMIC]: ...on this, for indirect inclusion.
1649 2012-04-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1651 Correct a srcdist package construction defect.
1653 * Makefile.in (srcdist) [for SRCDIST_SUBDIRS]: Use...
1654 (mkinstalldirs): ...this, to create package image directories.
1656 2012-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
1658 Add scripting hooks to support creation of MS-Windows shortcuts.
1660 * src/clistub.c (progname): New static variable with file scope; it
1661 replaces former automatic variable, of same name, in main() function.
1662 (set_script_hook): New static function; implement it, and call it...
1663 (main) [--desktop, --start-menu]: ...from here, to interpret these new
1664 command line options; they are propagated to scripts via...
1665 (MINGW_GET_DESKTOP_HOOK, MINGW_GET_START_MENU_HOOK): ...these new
1666 internally assigned environment variables.
1667 (help_text): Document --desktop and --start-menu.
1669 * scripts/libexec/setup.lua scripts/libexec/wsh.lua: New lua module
1670 files; they implement a lua scripting API; they delegate requests to
1671 the Windows Scripting Host, via either of this pair of...
1672 * scripts/libexec/shlink.js: ...new script to create shortcuts, or...
1673 * scripts/libexec/unlink.js: ...its complement, to remove them.
1674 * Makefile.in (SRCDIST_SUBDIRS): Integrate them; enumerate them in...
1675 (scripts_srcdir, LIBEXEC_SCRIPTS): ...these new macros; use to...
1676 (install): ...install them.
1678 2012-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
1680 Initialise $LUA_PATH to locate mingw-get specific scripts.
1682 * src/pkgexec.cpp (lua_path_init): New static inline function.
1683 (pkgXmlNode::DispatchScript): Call it on first time invocation, per...
1684 [lua_path_setup == false]: ...this static function local variable.
1686 2012-04-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1688 Support installation of releases other than latest available.
1690 * src/pkgbase.h (pkgActionItem::ApplyBounds): New method; declare it.
1692 * src/pkgdeps.cpp (pkgActionItem::ApplyBounds): Implement it.
1693 (pkgXmlDocument::Schedule): Use it to interpret user specified version
1694 bounds, and apply them to scheduled action items. Having used...
1695 (get_version_bounds): ...this new static inline function...
1696 ...to acquire any user specified version bounds, check that they can
1697 be honoured, before scheduling any action; delegate diagnostics to...
1698 (dmh_notify_no_match): ...this new local helper function, to report
1699 when they can't, and to indicate viable alternatives.
1701 2012-03-26 Keith Marshall <keithmarshall@users.sourceforge.net>
1703 Rework previously inadequate solution for MinGW-Bug #3424406
1705 * src/pkgtask.h: Update copyright notice for current year.
1706 (ACTION_MAY_SELECT): New manifest constant for use as flag; define it.
1707 * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit): Assign it.
1709 * src/pkgdeps.cpp (STATIC_INLINE): New macro; define it.
1710 (ACTION_RECURSIVE_REINSTALL, ACTION_RECURSIVE_UPGRADE):
1711 (ACTION_RECURSIVE_REPLACE): New action code constants; define them.
1712 (with_flags): Original macro deleted; replace it with...
1713 (with_request_flags): ...this new static inline function.
1714 (if_noref, if_match, if_alias, with_download, promote): New static
1715 inline functions; they replace original macros of the same names.
1716 (is_recursive_action): Function no longer used; delete it.
1717 (action_class): New static inline function; implement and use it...
1718 (pkgXmlDocument::ResolveDependencies): ...here, to identify scheduling
1719 requirements for packages which are already installed; depends on...
1720 (request_mode): ...this new automatic variable; it augments and...
1721 (recursive_mode): ...replaces this one; rename it accordingly.
1722 (viable): Automatic variable no longer used; delete it.
1723 [DEBUG_REQUEST & DEBUG_TRACE_DEPENDENCIES]: Emit notification for
1724 scheduled installation.
1725 (pkgXmlDocument::Schedule): Add an implied...
1726 (ACTION_REMOVE): ...when scheduling a reinstallation.
1728 2012-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1730 Address reinstallation issues per MinGW-Bugs #3416013 and #3424406
1732 * src/pkgexec.cpp (reinstall_action_scheduled): New inline function.
1733 (pkgActionItem::Execute): Use it to identify cases where...
1734 [--reinstall]: ...implicit package removal is required, and also to
1735 facilitate improved progress reporting in such cases.
1737 * src/pkgdeps.cpp (is_recursive_action): New inline function.
1738 (pkgXmlDocument::ResolveDependencies): Use it in tandem with...
1739 (recursive_mode): ...this new automatic variable, so as to handle...
1740 [meta-package dependency]: ...implicit recursion, to extend the scope
1741 of the current action to the first level of non-meta dependency.
1742 [install --reinstall]: ...reinstall original version of nominated
1743 package, ignoring any available upgrade; extend scope of operation...
1744 [install --reinstall --recursive]: ...to all prerequisite packages.
1745 [upgrade --reinstall]: ...upgrade nominated package if possible; if no
1746 upgrade available, reinstall current version; extend scope...
1747 [upgrade --reinstall --recursive]: ...to all prerequisites.
1748 (pkgXmlDocument::Schedule): Partially revert 2012-03-05 change;
1749 reimplement selectively; never promote...
1750 [install, install --reinstall]: ...these operations to become...
1751 [upgrade]: ...this, even if available; issue diagnostic instead.
1753 2012-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1755 Rationalise implementation and usage of --all-related option.
1757 * src/pkgopts.h: Update copyright notice; add year 2012.
1758 (OPTION_RECURSIVE, OPTION_ALL_RELATED): New constants; define them.
1759 (pkgOpts::SetFlags): New method; declare and implement it inline.
1761 * src/clistub.c: Update copyright notice; add year 2012.
1762 (options) [recursive, all-related]: Redefine in terms of...
1763 (OPTION_RECURSIVE, OPTION_ALL_RELATED): ...these.
1764 (help_text): Update appropriately.
1766 * src/climain.cpp: Update copyright notice; add year 2012.
1767 (climain) [all-related]: Associate its use exclusively with...
1768 (source, licence): ...these package processing operations; use...
1769 (pkgOptions::SetFlags): ...this, to propagate its effect.
1771 2012-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1773 Don't report failed downloads in respect of virtual packages.
1775 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): Clear...
1776 [ACTION_DOWNLOAD]: ...this status flag for any package identified as
1777 a meta-package; this corrects a further regression introduced with the
1778 2011-11-09 update, whereby pending download requests for such virtual
1779 packages were not cancelled, resulting in failure to install due to
1780 failed downloads, when no download is actually required.
1782 2012-03-05 Keith Marshall <keithmarshall@users.sourceforge.net>
1784 Don't suppress implied downloads for top-level actions.
1786 * src/pkgdeps.cpp: Update copyright notice for new year.
1787 (pkgXmlDocument::Schedule) [!OPTION_PRINT_URIS]: Ensure that...
1788 [ACTION_DOWNLOAD]: ...this is enabled, when scheduling an install or
1789 an upgrade action for a package specified as a command line argument;
1790 this corrects a regression introduced on 2011-11-09, which resulted in
1791 ACTION_DOWNLOAD being enabled only for second tier dependent actions.
1793 2012-02-20 Keith Marshall <keithmarshall@users.sourceforge.net>
1795 Copyright notice updates.
1797 * Makefile.in: Add 2012 as year of republication.
1798 * src/pkgbase.h src/sysroot.cpp src/pkgexec.cpp: Likewise.
1799 * src/rites.c src/pkginst.cpp src/pkgunst.cpp: Likewise.
1801 2012-02-20 Keith Marshall <keithmarshall@users.sourceforge.net>
1803 Fix ill-advised optimisation in $APPROOT environment lookup.
1805 * src/rites.c (approot_path): Don't save result of getenv() lookup
1806 across calls; the environment may have been moved in the interim,
1807 making the original result invalid on any subsequent call. Also,
1808 prefer MS-Windows style (with backslashes) for default.
1809 (pkgLastRites): Report full path name for lastrites.exe, on execl()
1810 failure, rather than only the path relative to $APPROOT.
1812 2012-02-20 Keith Marshall <keithmarshall@users.sourceforge.net>
1814 Propagate sysroot path settings to scripts via the environment.
1816 * src/pkgbase.h (PKG_PUTENV_FLAGS_MASK): New constant; it maps...
1817 (PKG_PUTENV_DIRSEP_MSW, PKG_PUTENV_DIRSEP_POSIX): ...these flags...
1818 (PKG_PUTENV_SCAN_VARNAME, PKG_PUTENV_NAME_TOUPPER): ...and these;
1819 they are used to specify optional behavioural choices for...
1820 (pkgPutEnv): ...this new function; declare it.
1822 * src/sysroot.cpp (pkgPutEnv): Implement it.
1823 (pkgXmlDocument::LoadSystemMap): Use it to add $SUBSYSTEM_SYSROOT path
1824 specifications to the environment, for each named subsystem associated
1825 with the active system map.
1827 * src/pkgexec.cpp (pkgActionItem::Execute): Invoke pkgPutEnv() prior
1828 to processing of each package install, upgrade, or remove action, so
1829 as to update environment variable $SYSROOT to represent the sysroot
1830 path for each package processed, during execution of script hooks.
1832 2012-02-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1834 Implement hooks to support lua scripting interface.
1836 * Makefile.in (LIBS): Add -llua.
1838 * src/pkgbase.h (pkgXmlNode::InvokeScript): New method; declare it
1839 as private, and provide overloaded public inline API implementation.
1840 (pkgXmlNode::DispatchScript): New private method; declare it.
1842 * src/pkgexec.cpp (pkgXmlNode::InvokeScript): Implement it.
1843 (pkgXmlNode::DispatchScript): Likewise; it directs InvokeScript to...
1844 (pkgInvokeScript): ...this new static function; implement it.
1846 * src/pkginst.cpp (pkgInstall): Call InvokeScript as appropriate.
1847 * src/pkgunst.cpp (pkgRemove): Likewise.
1849 2011-11-24 Keith Marshall <keithmarshall@users.sourceforge.net>
1851 Avoid implicit cast warnings; reported by Robert Hartmann.
1853 * src/dmh.h (DMH_BEGIN_DIGEST): Explicitly cast to uint16_t.
1854 (DMH_END_DIGEST): Likewise.
1856 2011-11-09 Keith Marshall <keithmarshall@users.sourceforge.net>
1858 Avoid unnecessary downloads for already installed packages.
1860 * src/pkginet.cpp (pkgActionItem::DownloadSingleArchive): Require
1861 external scheduling of ACTION_DOWNLOAD; cancel the scheduled request
1862 on completion, or when not required due to pre-existing local copy.
1864 * src/climain.cpp (pkgActionItem::GetSourceArchive): Must always be
1865 prepared to download the associated archive; enable ACTION_DOWNLOAD.
1867 * src/pkgexec.cpp (pkgActionItem::Schedule) [OPTION_REINSTALL]:
1868 May need to download the archive, even when the requested package was
1869 previously installed; schedule ACTION_DOWNLOAD to enable this.
1871 * src/pkgdeps.cpp (promote): Macro redefined in terms of...
1872 (with_flags, with_download): ...these new macros; implement and...
1873 (pkgXmlDocument::ResolveDependencies): ...use them to enable/schedule
1874 ACTION_DOWNLOAD only when expected that it may be necessary.
1876 2011-11-06 Keith Marshall <keithmarshall@users.sourceforge.net>
1878 Fix packaging anomalies for source and licence distributions.
1880 * Makefile.in (licdist): Link README from ${CURDIR}, not from '..'.
1881 (srcdist): Explicitly link pkginfo.c from ${CURDIR} to src/pkginfo,
1882 rather than as implied prerequisite; this avoids a bogus attempt to
1883 link srcdist-doc into src/pkginfo.
1885 2011-11-06 Keith Marshall <keithmarshall@users.sourceforge.net>
1887 Bump version number for subsequent CVS snapshots.
1889 * configure.ac (AC_INIT): Set version to 0.4-alpha-1.1cvs
1891 2011-11-06 Keith Marshall <keithmarshall@users.sourceforge.net>
1893 mingw-get-0.4-mingw32-alpha-1 released.
1895 * configure.ac (AC_INIT): Adjust version number.
1896 * srcdist-doc/NEWS.in: Updated; document new features and bugs fixed.
1897 * All files (r0-4-alpha-1): Tag assigned.
1899 2011-11-04 Keith Marshall <keithmarshall@users.sourceforge.net>
1901 Don't upgrade installed DLL components to incompatible version.
1902 Provide clearer diagnostics for failed requests on implied packages.
1904 * src/pkgdeps.cpp (is_abi_compatible): New static inline function.
1905 (pkgXmlDocument::ResolveDependencies) [is_installed]: Use it.
1906 (pkgXmlDocument::ResolveDependencies) [DEBUG_TRACE_DEPENDENCIES]:
1907 Clean up and improve diagnostic message content and formatting.
1908 (pkgXmlDocument::Schedule) [(upgrade || remove) && ! installed]:
1909 Downgrade diagnostic to WARNING, for implicitly specified component
1910 packages; provide additional explanatory diagnostics.
1912 * src/pkgspec.cpp (pkgSpecs::VersionComparator):
1913 * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit):
1914 [DEBUG_TRACE_DEPENDENCIES]: Eliminate diagnostic noise.
1916 2011-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1918 Fix --download-only vs. --reinstall conflict.
1920 * src/pkgexec.cpp (pkgActionItem::Execute) [OPTION_DOWNLOAD_ONLY]:
1921 Test for explicit inequality, rather than equality to zero; since the
1922 2011-08-30 update, which made --download-only also imply --reinstall,
1923 it will test as non-zero when --reinstall is specified, even though
1924 --download-only is not.
1926 2011-10-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1928 Add support for non-specific upgrade of all installed packages.
1930 * src/pkgbase.h (pkgXmlDocument::RescheduleInstalledPackages):
1931 New public method; declare it.
1933 * src/pkgdeps.cpp (pkgXmlDocument::RescheduleInstalledPackages):
1936 * src/climain.cpp (climain) [ACTION_UPGRADE && argc < 2]: Invoke
1937 pkgXmlDocument::RescheduleInstalledPackages() to schedule the upgrade
1938 request for all packages currently registered as installed.
1940 2011-10-06 Keith Marshall <keithmarshall@users.sourceforge.net>
1942 Implement "source" and "licence" operations.
1944 * src/pkgopts.h (OPTION_ALL_DEPS): New option code; define it.
1945 * src/clistub.c (main): Associate it with...
1946 (all-related, recursive): ...these synonymous option names...
1947 (options): ...defined within this local structured array.
1948 (help_text): Document them; also document "source" and "licence" as
1949 new operations which may be specified on the command line.
1951 * src/pkgtask.h (action_source, action_licence): Enumerate them.
1952 (ACTION_SOURCE, ACTION_LICENCE): Define their manifest values, and...
1953 * src/pkgexec.cpp (action_name): ...associate with operation names.
1955 * src/pkgbase.h (pkgActionItem::GetScheduledSourceArchives):
1956 (pkgActionItem::GetSourceArchive, pkgXmlDocument::GetSourceArchive):
1957 New public methods; declare them for external implementation.
1958 (pkgXmlDocument::GetScheduledSourceArchives): New public method;
1959 implement it as inline.
1961 * src/climain.cpp (pkgProcessedArchives): New pointer to stack of...
1962 (pkgArchiveNameList): ...this new locally defined class; implement it.
1963 (pkgActionItem::GetSourceArchive, pkgXmlDocument::GetSourceArchive):
1964 (pkgActionItem::GetScheduledSourceArchives): Implement them.
1965 (climain): Add invocation hooks.
1967 2011-10-04 Keith Marshall <keithmarshall@users.sourceforge.net>
1969 Establish mapping from release tarname to source tarname.
1971 * src/pkgreqs.cpp (inherited_requirement): New inline function.
1972 (requirement): Use it; adapt to propagate release archive format and
1973 compression type fields, in addition to version fields, when resolving
1974 "%" wildcard matches within the template for the resultant tarname.
1975 (pkgAssociateName): New public function; implement it for use by...
1976 * src/pkgname.cpp (pkgResolvedName): ...this new inline function.
1977 (pkgXmlNode::SourceArchiveName): Use it; adapt to accept a category
1978 selector, so it may resolve source or licence tarnames on demand.
1980 * src/pkgbase.h (pkgXmlNode::SourceArchiveName): Modify declaration;
1981 add category selector argument to support source/licence choice.
1983 2011-10-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1985 Facilitate downloads using diverse cache directories.
1987 * src/pkgbase.h (pkgActionItem::DownloadSingleArchive): New private
1988 method; declare it; it handles the download for a single named archive
1989 file, and stores it in a specifed cache directory.
1991 * src/pkginet.cpp (pkgActionItem::DownloadSingleArchive): Implement
1992 it; factor its code from the original implementation within...
1993 (pkgActionItem::DownloadArchiveFiles): ...this; adapt to use it.
1995 2011-10-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1997 Establish cache directory for source archive downloads.
1999 * src/mkpath.h (pkgSourceArchivePath): New function; declare it.
2000 * src/mkpath.c (pkgSourceArchivePath): Implement it.
2002 2011-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2004 Support archive extraction to arbitrary destination without install.
2006 * src/pkgproc.h (pkgArchiveProcessor::ExtractFile): New virtual
2007 helper method for use, as core helper, by derived classes; declare it.
2008 (pkgArchiveProcessor::CreateExtractionDirectory): Likewise.
2009 (pkgTarArchiveProcessor): Declare overloaded default constructor.
2010 (pkgTarArchiveExtractor): New class definition; it is derived from
2011 pkgTarArchiveProcessor.
2013 * src/tarproc.cpp (pkgArchiveProcessor::ExtractFile): Implement it.
2014 (pkgArchiveProcessor::CreateExtractionDirectory): Likewise.
2015 (pkgTarArchiveExtractor): Implement constructor, together with...
2016 (pkgTarArchiveExtractor::ProcessDirectory): ...this method, and also...
2017 (pkgTarArchiveExtractor::ProcessDataStream): ...this one; these are
2018 declared as abstract, in the pkgTarArchiveProcessor base class.
2019 (pkgTarArchiveInstaller::ProcessDirectory): Simplify; it now delegates
2020 directory creation to pkgArchiveProcessor::CreateExtractionDirectory.
2021 (pkgTarArchiveInstaller::ProcessDataStream): Simplify; delegate file
2022 handling to pkgArchiveProcessor::ExtractFile, as appropriate.
2024 2011-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2026 Make --download-only and --print-uris imply --reinstall.
2028 * src/pkgopts.h (OPTION_PRINT_URIS): Adjust definition.
2029 (OPTION_DNLOAD_ONLY, OPTION_DOWNLOAD_ONLY): Likewise.
2031 2011-08-07 Keith Marshall <keithmarshall@users.sourceforge.net>
2033 Implement --download-only and --print-uris options.
2035 * src/pkgopts.h (OPTION_DOWNLOAD_ONLY, OPTION_PRINT_URIS):
2036 New manifest constants, identifying flag bits; define them.
2037 (OPTION_DNLOAD_ONLY): Likewise; an alias for OPTION_DOWNLOAD_ONLY.
2039 * src/pkgbase.h (pkgActionItem::PrintURI): New private method.
2040 * src/pkginet.cpp: Implement it.
2042 * src/clistub.c (options): Add "download-only" and "print-uris".
2043 (help_text): Document them.
2044 * src/pkgexec.cpp (pkgActionItem::Execute): Process them.
2046 2011-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2048 mingw-get-0.3-mingw32-alpha-2.1 released.
2050 * configure.ac (AC_INIT): Adjust version number.
2051 * srcdist-doc/NEWS.in: Updated; document bugs fixed.
2052 * All files (r0-3-alpha-2-1): Tag assigned.
2054 2011-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2056 Adopt tar.xz as default package archive format.
2058 * Makefile.in (TARZIP, TAREXT): New macros; define them.
2059 (bindist, licdist, srcdist): Use them in place of hardcoded tar.gz
2060 (maintainer-clean): Expunge tar files of any compression format.
2062 2011-07-27 Keith Marshall <keithmarshall@users.sourceforge.net>
2064 Correct handling of release status in requirements specifications.
2066 * src/debug.h (DEBUG_TRACE_DEPENDENCIES): New tracing hook; define it.
2067 * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit): Use it; add
2068 function entry/exit tracing report hooks.
2069 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): Likewise;
2070 also add internal trace point reporting, which may also require...
2071 (show_required): ...this new static inline DEBUG_INVOKED function.
2073 * src/pkgreqs.cpp (requirement): Propagate release status and release
2074 reference index fields from requirer, when package version requirement
2075 is specified by a '%' token, and no explicit release status override
2076 is included in the requirement specification.
2078 * src/pkgspec.cpp (is_wildcard_spec): New static inline helper.
2079 (pkgSpecs::VersionComparator): Use it to identify any package version
2080 specification which may require the extension of a wildcard match, to
2081 span the package version and release status fields; also add tracing
2082 hooks, triggered on DEBUG_TRACE_DEPENDENCIES, to facilitate debugging.
2084 2011-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2086 Avoid accidental RCS keyword substitutions.
2088 * Makefile.in (DOLLAR): New macro; define it.
2089 (readme.txt, readme.txt.in): Use it, where unexpanded RCS Id keyword
2090 matching is intended.
2092 2011-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2094 Mercurial support revisited.
2096 * .cvsignore (.hgtags): Add to CVS untracked list.
2098 2011-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2100 Update readme.txt ID tag-line to track NEWS rather than README.
2102 * Makefile.in (readme.txt.in): New rule; implement it.
2103 (readme.txt.tag): Likewise; this implements the tag-line tracking.
2104 (readme.txt): Rule redefined in terms of the preceding pair.
2106 2011-06-17 Keith Marshall <keithmarshall@users.sourceforge.net>
2108 mingw-get-0.3-mingw32-alpha-2 released.
2110 * configure.ac (AC_INIT): Adjust version number.
2111 * srcdist-doc/NEWS.in: Updated; document new features and bugs fixed.
2112 * All files (r0-3-alpha-2): Tag assigned.
2114 2011-06-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2116 Add internal documentation for --reinstall option.
2118 * src/clistub.c (help_text): Add description for "--reinstall".
2120 2011-06-14 Keith Marshall <keithmarshall@users.sourceforge.net>
2122 Support use of Mercurial within a CVS working copy.
2124 * .cvsignore (.hg, .hgignore): Don't have CVS track these.
2126 2011-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
2128 Implement --reinstall option.
2130 * src/pkgopts.h (OPTION_REINSTALL): New macro; define it.
2131 (OPTION_GENERIC, OPTION_SHIFT_MASK): Likewise.
2132 (OPTION_EXTRA_FLAGS): New field; declare it.
2134 * src/clistub.c (options): Add "reinstall".
2135 (OPTION_GENERIC): Use it where appropriate; within its scope...
2136 (OPTION_STORAGE_CLASS): Improve descriptive comments; add handling for
2137 default case of flag type options requiring an alignment shift.
2139 * src/pkgexec.cpp: Remove previous "always reinstall" kludge.
2140 (pkgOptionSelected, PKG_OPTION_REINSTALL): Remove obsolete macros.
2141 (pkgActionItem::Execute): Check for "upgrade" request on any package
2142 which is already up to date; report this state, otherwise...
2143 [OPTION_REINSTALL || ACTION_UPGRADE]: Mark package as "removed", to
2144 avoid bail-out on "package already installed", when calling...
2145 (pkgInstall): ...this.
2147 2011-06-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2149 Don't require -vv to report progress of update operation.
2151 * src/pkgbind.cpp (pkgRepository::GetPackageList): Eliminate all
2152 basename() calls; `dname' already tells us what it should return.
2153 [update]: Report progress, irrespective of verbosity setting.
2155 2011-06-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2157 Fix MinGW-Bug #3313806.
2159 * src/pkginfo/pkginfo.l (CMS_KEYWORDS): Do not match them within the
2160 PACKAGE_NAME field; this avoids misinterpretation as a release status
2161 qualifier when intended as part of the package name, as in msys-cvs.
2163 2011-06-07 Keith Marshall <keithmarshall@users.sourceforge.net>
2165 Provisional correction for MinGW-Bug #3309438.
2167 * src/debug.h [DEBUGLEVEL == 0]: Provide defaults for...
2168 (DEBUG_ENABLED, DEBUG_REQUEST): ...these macros.
2170 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDirectory):
2171 (pkgTarArchiveInstaller::ProcessDataStream): Use DEBUG_REQUEST to
2172 enable runtime trace activation for previous compile time choices.
2174 2011-05-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2176 mingw-get-0.3-mingw32-alpha-1 released.
2178 * configure.ac (AC_INIT): Adjust version number.
2179 * srcdist-doc/NEWS.in: Updated; document new features.
2180 * All files (r0-3-alpha-1): Tag assigned.
2182 2011-05-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2184 Support assignment of DEBUGLEVEL at configure time.
2186 * configure.ac (DEBUGLEVEL): Declare as a precious variable, using
2187 AC_ARG_VAR; also declare with AC_SUBST, to ensure it is initialised.
2189 * Makefile.in (DEBUGLEVEL): Let AC_SUBST assign it.
2191 2011-05-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2193 Work around bugs in MinGW and GNU getopt_long_only() implementations.
2195 * src/getopt.c: New file; this is a free-standing replacement for any
2196 implementation provided by system libraries. We will always use this
2197 to ensure correct operation irrespective of system bugs; (different
2198 bug manifestations have been identified in the stock MinGW and GNU
2201 * Makefile.in (mingw-get.EXEEXT): Use it.
2203 * src/clistub.c (options): Remove redundant declaration of `-v' as a
2206 2011-05-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2208 Implement user selection of traceable features at run-time.
2210 * src.pkgopts.h (OPTION_VERBOSE_MAX): New macro; define it.
2212 * src/debug.h (DEBUG_ENABLED): New macro; define it.
2213 (DEBUG_REQUEST, DEBUG_REQUEST_FLAGS, DEBUG_TRACE_DYNAMIC): Likewise.
2215 * src/clistub.c (main) [--trace]: Don't make it available unless...
2216 [DEBUG_ENABLED(DEBUG_TRACE_DYNAMIC)]: ...this is set (at compile-time).
2217 [--verbose]: Limit to OPTION_VERBOSE_MAX, using...
2218 (atmost): ...this new macro; define it.
2219 (options): Declare `-v' as both long and short form, pending bug fix
2220 in MinGW's getopt_long_only() implementation.
2222 * src/pkginet.cpp (pkgInternetAgent::OpenURL): Use DEBUG_REQUEST.
2223 (pkgInternetLzmaStreamingAgent::TransferData): Likewise.
2224 (pkgInternetStreamingAgent::TransferData): Likewise.
2225 (pkgInternetStreamingAgent::Get): Likewise.
2227 * src/pkgunst.cpp (pkgActionItem::SetAuthorities): Use DEBUG_REQUEST.
2228 (pkg_rmdir, pkg_unlink): Likewise.
2230 * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Use DEBUG_REQUEST.
2232 2011-05-21 Keith Marshall <keithmarshall@users.sourceforge.net>
2234 Implement protocol for processing global program options.
2236 * src/pkgopts.h: New file.
2238 * src/climain.cpp (cli_setopts): New function; implement it.
2239 (pkgOptions): Likewise.
2241 * src/clistub.c (xatoi): New function; implement it.
2242 (cli_setargv): New inline helper function; implement it.
2243 (main): Use it. Also incorporate implementation of...
2244 (parsed_options): New structure; it accommodates...
2245 (verbose, trace): New options; interpret them, and...
2246 (help_text): ...document them.
2248 * src/pkgbind.cpp (pkgRepository::GetPackageList): Make catalogue
2249 loading notifications and progress reports conditional on...
2250 [OPTION_VERBOSE > 1]: ...this.
2252 2011-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2254 Augment known development status keywords and accept CMS labels.
2256 * src/pkginfo/pkginfo.l (CMS_KEYWORDS): Define new provisional list;
2257 add transitional state scanner rule and code to interpret them.
2258 (STATUS_KEYWORDS): Add "pre" and "rc" to existing list; modify scanner
2259 code to maintain consistency with CMS_KEYWORDS processing; also extend
2260 this coding strategy to other rules.
2262 * src/pkginfo/driver.c (spec): Strip initial '$' token from displayed
2263 field values; (we expect it only for a CMS_KEYWORDS field value).
2265 * src/pkgreqs.cpp (pkgSpecs::GetTarName): Remove any initial '$' token
2266 from PACKAGE_RELEASE_STATUS field, when performing reverse of tarname
2267 decomposition transformation.
2269 2011-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2271 Correct omission from 2011-02-18 commit.
2273 * src/tarproc.cpp (Copyright Notice): Add 2011 as year of release.
2275 2011-05-14 Keith Marshall <keithmarshall@users.sourceforge.net>
2277 mingw-get-0.2-mingw32-alpha-4 released.
2279 * configure.ac (AC_INIT): Adjust version number.
2280 * srcdist-doc/NEWS.in: Updated; add bug-fix/feature descriptions.
2281 * All files (r0-2-alpha-4): Tag assigned.
2283 2011-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2285 Fix MinGW-Bug #3297660 (reported by Chris Sutcliffe).
2287 * src/pkgbase.h (pkgActionItem::SetAuthorities): Return unsigned long.
2288 (pkgActionItem::HasAttribute): New inline method; implement it.
2290 * src/pkgtask.h (ACTION_DOWNLOAD, ACTION_DOWNLOAD_OK): New macros.
2292 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles):
2293 [ACTION_DOWNLOAD]: Assert it at commencement of each package download;
2294 clear it again, on successful download completion.
2296 * src/pkginst.cpp (pkgtask.h): #include it.
2297 (pkgInstall) [ACTION_DOWNLOAD]: Don't proceed with installation when
2298 set; this indicates failed download; diagnose it.
2300 * src/pkgunst.cpp (pkgRemove) [ACTION_DOWNLOAD && ACTION_UPGRADE]:
2301 Don't proceed with pre-emptive removal when both set; this indicates
2302 failed download of replacement package; diagnose it.
2304 2011-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2306 Fix MinGW-Bug #3295526 (reported by Charles Wilson).
2308 * src/pkgunst.cpp (sys/stat.h): #include it; we need it for...
2309 (pkg_unlink): ...chmod( file, S_IWRITE ), emulating `rm -f' semantics.
2311 2011-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2313 Diagnose and aggressively retry failed download connections.
2315 * src/debug.h (DEBUG_TRACE_INTERNET_REQUESTS): New macro; define it.
2317 * src/pkginet.cpp (debug.h): #include it.
2318 (pkgDownloadMeter): New abstract class; declare it and implement its
2319 default (non-abstract) data and methods; derive...
2320 (pkgDownloadMeterTTY): ...this new class from it; implement it...
2321 (pkgInternetStreamingAgent::Get): ...and instantiate it (naively for
2322 now), as associated pkgDownloadMeter object; add tracing diagnostic.
2323 (pkgInternetAgent::OpenURL): Don't inline it; move implementation out
2324 of line; add retry loops to aggressively retry failed connections.
2325 (pkgInternetAgent::QueryContentLength): New method; implement it.
2326 (pkgInternetStreamingAgent::TransferData): Avoid Microsoft specific
2327 data type `DWORD'; prefer equivalent standard `unsigned long'. Add
2328 tracing diagnostic. Remove progress diagnostic; replace it with an
2329 `Update' request to associated pkgDownloadMeter.
2330 (pkgInternetLzmaStreamingAgent::GetRawData): Avoid `DWORD' data type.
2331 (pkgInternetLzmaStreamingAgent::TransferData): Likewise; add tracing
2332 diagnostic on failure.
2334 2011-03-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2336 mingw-get-0.2-mingw32-alpha-3 released.
2338 * configure.ac (AC_INIT): Adjust version number.
2339 * srcdist-doc/NEWS.in: Updated; add bug-fix description.
2340 * All files (r0-2-alpha-3): Tag assigned.
2342 2011-03-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2344 Provisional handling for http proxy authentication.
2345 (Adapted from patch by Scott Michel <pingbak@users.sourceforge.net>)
2346 (ref: MinGW-Patch #3158453)
2348 * src/pkginet.cpp: Several format/layout adjustments; add comments.
2349 Eliminate several instances of Microsoft specific typedef nastiness.
2350 (dmh_dialogue_context): New macro; kludge definition to support...
2351 (pkgInternetAgent::OpenURL) [HTTP_STATUS_PROXY_AUTH_REQ]: Detect
2354 2011-03-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2356 Expand macros in path names for files and directories to be removed.
2358 * src/pkgunst.cpp (pkgRemove): Format sysroot as a template, so...
2359 (pkg_rmdir, pkg_unlink): ...are able to use mkpath() to construct the
2360 full path name for each file or directory to be removed.
2362 2011-03-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2364 Correct defective activation logic for some debugging hooks.
2366 * src/pkgunst.cpp (pkg_rmdir, pkg_unlink) [DEBUG_INVOKE_IF]:
2367 (pkgActionItem::SetAuthorities) [DEBUG_INVOKE_IF]: Use bit-wise `&'
2368 operator, not `&&', to evaluate DEBUGLEVEL state.
2370 2011-03-22 Keith Marshall <keithmarshall@users.sourceforge.net>
2372 Avoid Unicode hyphens in generated ASCII document files.
2374 * Makefile.in (NROFF): New macro; define it to invoke `nroff -Tascii'.
2375 (%.dist, readme.txt): Use it to ensure that output is pure ASCII.
2377 2011-03-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2379 mingw-get-0.2-mingw32-alpha-2 released.
2381 * configure.ac (AC_INIT): Adjust version number.
2382 * srcdist-doc/NEWS.in: Updated; add bug-fix description.
2383 * All files (r0-2-alpha-2): Tag assigned.
2385 2011-03-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2387 Fix MinGW-Bug 3212246.
2389 * src/keyword.c (has_keyword): Avoid incrementing the comparison
2390 pointers when a significant character in one string is not matched in
2391 the other; previously the pointers were left pointing one character to
2392 the right of the mismatch, and this was overlooked if the mismatch
2393 occurred at the rightmost character in both strings.
2395 2011-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2397 mingw-get-0.2-mingw32-alpha-1 released.
2399 * configure.ac (AC_INIT): Set version number; correct capitalisation
2400 in URI reference to bug reporting instructions.
2402 * srcdist-doc/NEWS.in: Confirm release date.
2403 [bug reporting]: Remove redundant paragraph; the information is
2404 provided, via reference to mingw.org. in the README and INSTALL files.
2406 * All files (r0-2-alpha-1): Tag assigned.
2408 2011-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2410 * srcdist-doc/INSTALL.in [building]: Qualify liblzma.a requirement;
2411 add earliest acceptable snapshot release date.
2413 2011-03-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2415 Remove unused 7zip and boost source code from CVS trunk.
2417 * 7z: Directory and all content removed.
2420 2011-03-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2422 Refactor and update existing installation and usage instructions.
2424 * src/clistub.c (help_text): Updated.
2426 * srcdist-doc: New directory.
2428 * README: Deleted; its content refactored into...
2429 * srcdist-doc/README.in srcdist-doc/INSTALL.in srcdist-doc/NEWS.in:
2430 ...these new template files, updated for current development state.
2432 * srcdist-doc/gendoc.sed.in: New sed script; it directs formatting of
2433 generated text files derived from the srcdist-doc templates.
2435 * Makefile.in (SRCDIST_SUBDIRS): Add srcdist-doc.
2436 (SRCDIST_FILES): Add NEWS and INSTALL.
2437 (srcdist-doc): New build rule to generate README, NEWS and INSTALL.
2438 (srcdist, licdist): Adjust path to locate them.
2439 (readme.txt): New build rule to generate on-line package description.
2441 (distclean): Don't remove Makefile...
2442 (maintainer-clean): ...but do it here instead. Also remove generated
2443 README, NEWS and INSTALL, the autom4te cache, and all distributable
2444 zip files, in addition to tarballs, for the current version.
2446 2011-02-27 Keith Marshall <keithmarshall@users.sourceforge.net>
2448 Initial implementation for "remove" feature.
2450 * src/pkgbase.h: Update copyright notice; add current year.
2451 (pkgActionItem::SetPrimary): New inline public method; declare it.
2452 (pkgActionItem::SetAuthorities): New public method; declare it.
2454 * src/pkgtask.h (ACTION_PREFLIGHT, ACTION_REMOVE_OK): New defines.
2456 * src/pkgproc.h: Update copyright notice; add current year.
2457 (pkgManifest::GetSysRootReference): New public method; declare it.
2458 (pkgManifest::GetRoot): New inline method; declare and implement it.
2459 (pkgManifest::DetachSysRoot): Argument type changed to const char*.
2460 (pkgRemove): New extern "C" function; declare it.
2462 * src/pkgexec.cpp (pkgActionItem::SetPrimary): Implement it, and...
2463 (pkgXmlDocument::Schedule): ...use it to promote actions on all user
2464 specified packages, as listed on the command line, to primary status.
2465 (pkgActionItem::Execute): Repeatedly invoke...
2466 (pkgActionItem::SetAuthorities): ...this; incorporate call of...
2467 (pkgActionItem::DownloadArchiveFiles): ...this, within the loop, so
2468 that we retry failed downloads at least a second time.
2469 [ACTION_REMOVE]: Delete stub; invoke pkgRemove().
2471 * src/pkgunst.cpp: New file.
2472 (pkgActionItem::SetAuthorities): Implement it.
2473 (pkgManifest::GetSysRootReference): Implement it.
2474 (pkgManifest::DetachSysRoot): Implement it per new declaration.
2475 (pkgRemove): Implement it.
2477 * Makefile.in (CORE_DLL_OBJECTS): Add pkgunst.OBJEXT
2479 2011-02-26 Keith Marshall <keithmarshall@users.sourceforge.net>
2481 Work-around for improper stderr buffering in MSYS mintty and rxvt.
2482 (Merged from r0-1-alpha-5 branch).
2484 * src/dmh.cpp (dmhTypeTTY::emit_and_flush): New private method.
2485 (dmhTypeTTY::printf, dmhTypeTTY::notify): Use it to force an fflush()
2486 after each output record is written to stderr.
2488 * README: Update as appropriate.
2490 2011-02-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2492 Tidy up some debugging hooks.
2494 * src/debug.h (DEBUG_INVOKED): New macro; define it.
2495 (DEBUG_INVOKE_IF): Likewise; this takes arguments providing for
2496 conditional invocation of code when DEBUGLEVEL is non-zero; make it
2497 expand to nothing, when DEBUGLEVEL is zero.
2498 (DEBUG_TRACE_INIT): Redefined macro; value changed to 0x0010.
2499 (DEBUG_TRACE_TRANSACTIONS, DEBUG_SUPPRESS_INSTALLATION):
2500 (DEBUG_UPDATE_INVENTORY): New macros; define them.
2502 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDirectory):
2503 (pkgTarArchiveInstaller::ProcessDataStream): Refactor debugging hooks;
2504 implement them in terms of DEBUGLEVEL, with reference to...
2505 (DEBUG_SUPPRESS_INSTALLATION, DEBUG_UPDATE_INVENTORY): ...these.
2507 2011-02-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2509 Make package version comparisons more robust.
2511 Fixes an issue reported by Chris Sutcliffe: previously, version
2512 comparisons were evaluated solely on the basis of differences in the
2513 package version field itself. Henceforth, if this field compares as
2514 equal, then the comparison is extended to also consider differences
2515 between development phase qualifiers, and, if these too compare as
2516 equal, to differences in the target subsystem version fields.
2518 * src/pkginfo/pkginfo.h (pkgSpecs::VersionComparator): New private
2521 * src/pkgspec.cpp (pkgSpecs::VersionComparator): Implement it.
2522 (pkgSpecs::operator<, pkgSpecs::operator<=, pkgSpecs::operator>=):
2523 (pkgSpecs::operator>): Use it, replacing...
2524 (version): ...this static function; now unreferenced; delete it.
2526 * src/vercmp.h (pkgVersionInfo::pkgVersionInfo): Make it inline; it
2527 now delegates the entire class construction operation to...
2528 (pkgVersionInfo::Parse): ...this new private method; declare it. This
2529 is also used to facilitate implementation of...
2530 (pkgVersionInfo::Reset): ...this new inline method, also requiring...
2531 (pkgVersionInfo::FreeAll): ...this new inline method; also now used by
2532 the class destructor, it encapsulates separate calls to...
2533 (pkgVersionInfo::Free): ...this original inline method, renamed...
2534 (pkgVersionInfo::FreeEntry): ...as this.
2536 * src/vercmp.cpp (pkgVersionInfo::Parse): Implement it.
2538 2011-02-13 Keith Marshall <keithmarshall@users.sourceforge.net>
2540 Merge from mingw-get-0.1-mingw32-alpha-5 bug-fix branch.
2542 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): Promote
2543 "install" action on new prerequisites, where a previously uninstalled
2544 package is required to satisfy any "upgrade" dependency.
2546 * src/pkgexec.cpp (pkgActionList::Execute): Don't make misleading
2547 claims concerning package removal.
2549 * src/pkgtask.h (STRICTLY_GT, STRICTLY_LT, ACTION_PRIMARY): Add one
2550 level of parentheses around defining expressions.
2552 2011-02-10 Keith Marshall <keithmarshall@users.sourceforge.net>
2554 Publish mingw-get-0.0-mingw32-alpha-5.1 bug-fix release.
2556 * README: Updated to reflect changes.
2558 2011-02-08 Keith Marshall <keithmarshall@users.sourceforge.net>
2560 Improve diagnostics for failed GUI invocation.
2562 * src/guimain.cpp: New file; currently delivers only a diagnostic
2563 stub, provided by Sze Howe Koh <axfangli@users.sourceforge.net>, to
2564 pop-up a message block explaining why GUI mode cannot be invoked.
2566 * Makefile.in (GUI_LDFLAGS): New macro; it is required by...
2567 (gui$EXEEXT): ...this new build rule; add to prerequisites of...
2568 (all): ...this [default] build rule; redefine this in terms of...
2569 (BIN_PROGRAMS, LIBEXEC_PROGRAMS, LIBEXEC_DATA): ...these new macros;
2570 define them, and also use them as loop iterator objectives for...
2571 (install, install_strip): ...these; also schedule them...
2572 (clean): ...for removal by this.
2574 * src/clistub.c (Copyright): Add new year.
2575 (main): Amend error message, if gui$EXEEXT doesn't start; make it
2576 more intelligible to normal users.
2578 2011-02-07 Keith Marshall <keithmarshall@users.sourceforge.net>
2580 Correct omissions from packaged source tarball.
2582 * Makefile.in (Copyright): Add new year.
2583 (SRCDIST_FILES): Add aclocal.m4
2584 (SRCDIST_SUBDIRS): Add m4
2586 2011-01-05 Keith Marshall <keithmarshall@users.sourceforge.net>
2588 Reduce path names to base names, in some diagnostic message contexts.
2590 * src/climain.cpp: Update copyright notice for new year.
2591 (climain): Extract base name from argv[0], to pass as program name tag
2592 in initialisation of diagnostic message handler.
2594 * src/dmh.h, src/dmh.cpp: Update copyright notices; make some layout
2595 adjustments, for more consistent formatting style.
2597 * src/pkgbind.cpp: Update copyright notice.
2598 (pkgRepository::GetPackageList): Reduce path names for catalogue files
2599 to their base names, when reporting them in diagnostic messages.
2601 2011-01-05 Keith Marshall <keithmarshall@users.sourceforge.net>
2603 Avoid a potential out-of-range action name look-up.
2605 * src/pkgdeps.cpp: Update copyright notice for new year.
2606 (pkgXmlDocument::Schedule): Mask action code with ACTION_MASK, to
2607 determine correct action name when diagnosing uninstalled package.
2609 2011-01-03 Keith Marshall <keithmarshall@users.sourceforge.net>
2611 Make "install" and "remove" notifications symmetric.
2613 * configure.ac (AC_INIT): Bump version to "0.1-alpha-6cvs".
2614 (YEARS_OF_ISSUE): Add new year.
2616 * src/pkginst.cpp: Update copyright notice for new year.
2617 (pkgInstall): Add notification for package being installed.
2619 2010-12-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2621 Add preliminary CLI support for "list" and "show" actions.
2623 * src/pkgtask.h (ACTION_PRIMARY): New manifest constant; define it.
2624 (ACTION_LIST, ACTION_SHOW): Likewise; cast to enumerated values for...
2625 (action_list, action_show): ...these; define them.
2627 * src/pkgexec.cpp (action_name): Add defining text for...
2628 (action_list, action_show): ...these.
2630 * src/climain.cpp: Partially revert 2010-11-01 change...
2631 (climain) [! ACTION_UPDATE]: Reinstate original "if" block, moving
2632 the "switch" block within it, but without the ACTION_UPDATE case.
2633 [ACTION_LIST, ACTION_SHOW]: New "switch" cases; they invoke...
2634 (pkgXmlDocument::DisplayPackageInfo): ...this new method.
2636 * src/pkgbase.h (pkgXmlDocument::DisplayPackageInfo): Declare it.
2637 (pkgActionItem::ConfirmInstallationStatus): New method; declare it.
2638 (pkgXmlNode::GetSysRoot): Make declaration style consistent with
2639 others in the class; do not name arguments in the declaration.
2640 (pkgXmlNode::FindFirstAssociate): Likewise.
2641 (pkgXmlNode::FindNextAssociate): Likewise.
2643 * src/pkgshow.cpp: New file.
2644 (pkgXmlDocument::DisplayPackageInfo): Implement it.
2646 * src/pkgdeps.cpp (pkgMsgUnknownPackage): New extern "C" function;
2647 implement it temporarily, pending a future i18n reimplementation.
2648 (assert_installed): Drop "inline" attribute; leave it as "static".
2649 Set "tarname" correctly, to match the installed package version; (it
2650 previously incorrectly returned the latest available version).
2651 (pkgActionItem::ConfirmInstallationStatus): Implement it.
2652 (pkgXmlDocument::Schedule) [ACTION_PRIMARY]: Set as appropriate.
2653 (pkgXmlDocument::Schedule) [ACTION_REMOVE || ACTION_UPGRADE]: Complain
2654 if requested package is not recorded as having been installed.
2655 (pkgXmlDocument::ResolveDependencies) [! ACTION_INSTALL]: Do not
2656 invoke it recursively.
2658 * Makefile.in (pkgshow.$OBJEXT): Add reference.
2660 2010-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
2662 Lay groundwork for implentation of additional actions.
2664 * src/climain.cpp (climain): Adjust indentation; replace `if' block...
2665 [action != ACTION_UPDATE]: ...with this default `switch' case, and...
2666 [action == ACTION_UPDATE]: ...this as explicit "do nothing" case.
2668 2010-10-29 Keith Marshall <keithmarshall@users.sourceforge.net>
2670 mingw-get-0.1-mingw32-alpha-5 released.
2672 * configure.ac (AC_INIT): Bump version to 0.1-alpha-5.
2673 * README: Update release notes accordingly.
2674 * All files (r0-1-alpha-5): Tag assigned.
2676 2010-10-22 Keith Marshall <keithmarshall@users.sourceforge.net>
2678 Make pkgInitRites/pkgLastRites processing more robust;
2679 avoid a potential race condition in mingw-get-inst.
2681 * src/rites.c: Refactor conditional code to segregate execution of...
2682 [defined IMPLEMENT_INITIATION_RITES]: ...this into distinct phases.
2683 (PHASE_ONE_RITES, PHASE_TWO_RITES): Define constants to identify them.
2684 (do_init_rites): Renamed to...
2685 (invoke_rites): ...this; inline it.
2686 (pkgLastRites): Invoke it, to pre-empt rename action of...
2687 (lastrites.exe): ...this, subsequently exec()ed process.
2688 (perror): Issue more informative diagnostic on exec() failure.
2690 * src/clistub.c (IMPLEMENT_INITIATION_RITES): Stipulate as...
2691 (PHASE_ONE_RITES): ...this phase of implementation only.
2693 * src/pkgexec.cpp (IMPLEMENT_INITIATION_RITES): Define to provide...
2694 (PHASE_TWO_RITES): ...this phase of implementation, facilitated by...
2695 (self_upgrade_rites): ...this locally defined RITES_INLINE function.
2696 (pkgActionItem::Execute): Invoke it, in remove/install loop, while...
2697 [init_rites_pending]: ...new loop local variable remains true.
2699 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
2701 Fix packaging bug in -lic package.
2703 * Makefile.in (licdist): Use directory named
2704 "share", not "shared".
2706 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
2708 mingw-get-0.1-mingw32-alpha-4 released.
2710 * All files (r0-1-alpha-4): Tag assigned.
2712 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
2714 Add rudimentary help option.
2716 * README: Update release notes.
2718 * src/clistub.c: Add --help option.
2720 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
2722 Fix "mingw-get deletes itself" bug in last rites handling.
2724 * README: Add new release notes.
2726 * configure.ac: Bump version to 0.1-alpha-4.
2728 * src/dmh.h: If __cplusplus, include <exception> and
2729 declare dmh_exception class.
2731 * src/dmh.cpp (class dmh_exception): Implement.
2732 (abort_if_fatal): If DMH_FATAL, throw dmh_exception rather
2733 than calling exit().
2735 * src/climain.cpp (climain): Wrap entire function body in try/
2736 catch block. If dmh_exception is caught, return EXIT_FAILURE.
2738 * src/clistub.c (main): Capture return value of climain(). If
2739 non-zero, perform last rites and return EXIT_FAILURE.
2741 2010-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2743 mingw-get-0.1-mingw32-alpha-3 released.
2745 * README: Add new release notes.
2747 * All files (r0-1-alpha-3): Tag assigned.
2749 2010-08-27 Keith Marshall <keithmarshall@users.sourceforge.net>
2751 Add runtime hooks to support self-upgrade for future releases.
2753 * src/rites.c: New file; compile it free-standing, to provide...
2754 (lastrites.exe): ...this helper application for context clean-up;
2755 alternatively, use it as an include file, with pre-definition of...
2756 (IMPLEMENT_INITIATION_RITES): ...this, to implement...
2757 (pkgInitRites, pkgLastRites): ...these inline functions.
2759 * src/clistub.c (main) [argc > 1]: Use them.
2760 (progname): New local variable within `main'; set it once, then use it
2761 instead of repeated references to `basename(*argv)' in diagnostics.
2762 (MINGW_GET_DLL, MINGW_GET_GUI): Relocate to `src/rites.c'.
2764 * src/debug.h (DEBUG_INHIBIT_RITES_OF_PASSAGE):
2765 (DEBUG_FAIL_FILE_RENAME_RITE, DEBUG_FAIL_FILE_UNLINK_RITE): New
2766 defines; they facilitate debugging of the src/rites.c code.
2768 * Makefile.in (lastrites$EXEEXT): New target; build as prerequisite...
2769 (all): ...of this primary target.
2770 (install, install-strip): Install it.
2771 (SRCDIST_FILES): Remove install-sh; it is now included in...
2772 (build-aux): ...this directory; add it to...
2773 (SRCDIST_SUBDIRS): ...this.
2775 2010-08-24 Keith Marshall <keithmarshall@users.sourceforge.net>
2777 Set default sysroots relative to mingw-get installation directory.
2779 * xml/profile.xml (system-map) [name == default]: For each of...
2780 [subsystem == mingw32]: ...set sysroot path to value of %R macro...
2781 [subsystem == msys]: ...and to its %R/msys/1.0 subdirectory.
2783 2010-08-19 Keith Marshall <keithmarshall@users.sourceforge.net>
2785 Some dependency resolver enhancements and bug fixes.
2787 * src/pkgbase.h (pkgXmlNode::GetContainerAttribute): New method;
2790 * src/pkgdeps.cpp (pkgXmlNode::GetContainerAttribute): Implement it;
2791 it is used to retrieve package name attributes from the containing
2792 'package' element, when given a pointer to a 'release' element by...
2793 (assert_unmatched, assert_installed): ...these new static functions.
2794 (pkgXmlDocument::Schedule): Use them to reconstruct and register
2795 dependency reference data for previously installed packages which are
2796 no longer included in the distribution manifest.
2797 (pkgXmlDocument::ResolveDependencies): Fix a block nesting error;
2798 catch and diagnose unresolved dependencies; don't look beyond the XML
2799 document root node, (tinyxml error not caught?), when searching for
2800 requirements specified on container nodes.
2802 2010-08-17 Keith Marshall <keithmarshall@users.sourceforge.net>
2804 Improve scheduling of package processing requests.
2806 * src/pkgexec.cpp (pkgXmlDocument::Schedule): Inspect entire `actions'
2807 list, when checking for duplicate package processing requests; decline
2808 to schedule any such duplicate, or any request which lacks a package
2811 2010-08-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2813 Lay foundation for selective compilation of debugging code.
2815 * src/debug.h: New file...
2816 * src/sysroot.cpp: Include it.
2817 (pkgXmlDocument::LoadSystemMap): Make debugging output conditional...
2818 [DEBUGLEVEL & DEBUG_TRACE_INIT]: ...on this new debugging state.
2820 2010-08-15 Keith Marshall <keithmarshall@users.sourceforge.net>
2822 * src/pkgkeys.h: Typo in comment: file was previously identified as
2823 pkgkeys.c; corrected.
2825 2010-08-13 Keith Marshall <keithmarshall@users.sourceforge.net>
2827 Improve diagnostics for invalid references to non-release XML nodes.
2829 * src/pkgkeys.h (value_unknown): New global string; declare it.
2830 * src/pkgkeys.c (value_unknown): Implement it.
2832 * src/pkgname.cpp (pkgArchiveName): Identify XML element type when
2833 diagnosing references to elements of types other than release; use...
2834 (value_unknown): ...this, as appropriate.
2836 2010-08-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2838 Guard against a potential buffer overrun.
2840 * src/pkgreqs.cpp (pkgSpecs::SetProperty): Allocate an additional
2841 byte to accommodate an extra field separator, when inserting a new
2842 data value into a previously empty field.
2844 2010-07-27 Cesar Strauss <cestrauss@gmail.com>
2846 Handle the GNU long name tar header format.
2848 * src/pkgproc.h (TAR_ENTITY_TYPE_GNU_LONGNAME): New manifest constant;
2850 (pkgTarArchiveProcessor::EntityDataAsString): New protected method;
2852 * src/tarproc.cpp: ...implement it.
2853 (pkgTarArchiveProcessor::Process): Before building the entry pathname,
2854 check for a GNU long name type header; when found, read pathname from
2855 the entry data area, before fetching the following header, from which
2856 to retrieve the associated entity data.
2858 2010-06-24 Keith Marshall <keithmarshall@users.sourceforge.net>
2860 Work around an autoconf bug (reported by Stefano Sabatini).
2862 * Makefile.in (VPATH): Use @top_srcdir@ instead of ${srcdir}; current
2863 autoconf incorrectly elides references to @srcdir@ and ${srcdir} when
2864 substituting within a VPATH specification for building `in-source'.
2865 Also, prefer colons to blanks as path name separators, for improved
2866 portability to non-GNU implementations of make; (recommendation by
2869 2010-06-24 Keith Marshall <keithmarshall@users.sourceforge.net>
2871 Include alias search, when matching component package name.
2873 * src/keyword.c (has_keyword): Rearrange argument declarations for
2874 more natural order; update all callers accordingly. Simplify; compare
2875 keyword to be matched with each successive candidate from match-list,
2876 character-by-character and in-place, so avoiding memory allocation
2877 for any local duplicate of the passed match-list; thus...
2878 (safe_strdup): ...this static function no longer required; delete it.
2879 (string.h): No references remain; do not include it.
2881 * src/pkgfind.cpp (pkgXmlNode::FindPackageByName): Augment component
2882 package name matching to include potential matches of the look-up name
2883 with trailing component name stripped off, when that matches the class
2884 name of an identified component package, and the initial substring of
2885 the look-up name, after stripping, matches any specified alias name
2886 for the containing package.
2888 2010-06-10 Keith Marshall <keithmarshall@users.sourceforge.net>
2890 Address FIXME relating to identification of distributable files.
2892 * install-sh: Move to...
2893 * build-aux: ...this new directory.
2895 * Makefile.in (PACKAGE_DISTVERSION): Modify `sed' edit sequence; make
2896 it depend on, and ensure that it incorporates the expansion of...
2897 (PACKAGE_SUBSYSTEM): ...this new macro; defined as substitution of...
2898 (host_os): ...this autoconf variable, set by...
2900 * configure.ac (AC_CANONICAL_HOST): ...this; add it, requiring...
2901 (AC_CONFIG_AUX_DIR): ...`build-aux' directory reference, providing...
2903 * build-aux/config.guess, build-aux/config.sub: ...these new standard
2904 files; import them from the standard `build-aux' repository.
2906 2010-05-17 Keith Marshall <keithmarshall@users.sourceforge.net>
2908 Bump version for next release cycle.
2910 * configure.ac (AC_INIT): Bump version suffix to alpha-3.
2912 2010-05-17 Keith Marshall <keithmarshall@users.sourceforge.net>
2914 mingw-get-0.1-mingw32-alpha-2 released.
2916 * README: Add new release notes.
2918 * xml/profile.xml: Update to use default referencing for...
2919 (package-list.xml.lzma): ...this repository master catalogue.
2921 * All files (r0-1-alpha-2): Tag assigned.
2923 2010-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2925 Make provision to protect user's profile settings during upgrade.
2927 * Makefile.in (install): Remove `profile.xml'; replace it with...
2928 (install-profile): ...this new prerequisite installation goal; it
2929 renames the installed copy of `profile.xml' as `defaults.xml', within
2930 the installed package image.
2932 * src/pkgkeys.h (defaults_key): New key; declare it.
2933 * src/pkgkeys.c: Some cosmetic formatting (tabulation) adjustments.
2934 (defaults_key): Implement it; it refers to the `defaults.xml' file.
2936 * src/climain.cpp (climain): Check `profile_key' for accessibility of
2937 the `profile.xml' file; if [! R_OK] emit a diagnostic warning, fall
2938 back on `defaults_key', and attempt to load configuration from the
2939 distributed `defaults.xml' file.
2941 2010-05-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2943 Add preliminary support for future `-reinstall' option.
2945 * src/pkgexec.cpp (pkgActionItem::Execute) [ACTION_INSTALL]: Force
2946 installation if `-reinstall' option is selected, overriding state of
2947 any prior installation; temporarily assume that this option is always
2948 selected, to permit proper `upgrade' operation in the absence of any
2949 functional `uninstall' capability, and pending implementation of a
2950 mechanism for interpreting user specified options.
2952 2010-05-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2954 Correct handling for "%R" macro in relative sysroot path specs.
2956 * src/tarproc.cpp (pkgTarArchiveProcessor): In constructor, expand the
2957 sysroot path specification a second time, to capture the effect of any
2958 embedded macros, before computing the recorded `sysroot_len' value.
2960 2010-05-05 Keith Marshall <keithmarshall@users.sourceforge.net>
2962 Handle "%" wildcard matches in package and subsystem version strings.
2964 * src/pkgbase.h (pkgSpecs): Forward declare it.
2965 (pkgActionItem::~pkgActionItem): Declare explicit destructor.
2966 (pkgActionItem::SetRequirements): Add extra `pkgSpecs*' argument;
2967 update references, passing additional argument in...
2969 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): ...this.
2971 * src/pkgexec.cpp (pkgActionItem::~pkgActionItem): Implement it.
2972 (pkgActionItem::SetRequirements): Delete obsolete implementation.
2974 * src/pkginfo/pkginfo.h: Update copyright notice; add year 2010.
2975 (pkgSpecs::GetTarName): New public method; declare it.
2976 (pkgSpecs::SetProperty): New private method; declare it.
2977 (pkgSpecs::SetPackageName): New inline method; implement it.
2978 (pkgSpecs::SetPackageVersion, pkgSpecs::SetPackageBuild): Likewise.
2979 (pkgSpecs::SetSubSystemName, pkgSpecs::SetSubSystemVersion): Likewise.
2980 (pkgSpecs::SetSubSystemBuild, pkgSpecs::SetReleaseStatus): Likewise.
2981 (pkgSpecs::SetReleaseIndex, pkgSpecs::SetComponentClass): Likewise.
2982 (pkgSpecs::SetComponentVersion, pkgSpecs::SetPackageFormat): Likewise.
2983 (pkgSpecs::SetCompressionType): Likewise.
2985 * src/pkginfo/pkginfo.l: Update copyright notice; add year 2010.
2986 (TRANS): Interpret "%" as wildcard in version string matches.
2988 * src/pkgreqs.cpp: New file.
2989 (pkgActionItem::SetRequirements): Reimplement per new declaration;
2990 it now always allocates heap memory for requirements specifications.
2991 (pkgSpecs::GetTarName, pkgSpecs::SetProperty): Implement them.
2993 * Makefile.in (CORE_DLL_OBJECTS): Add `pkgreqs.$(OBJEXT)'.
2995 2010-04-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2997 Revert 2010-04-04 refactoring of tarproc.cpp and tarinst.cpp
2999 * src/tarinst.cpp: File removed; its content merged into...
3000 * src/tarproc.cpp: ...this; it cannot be cleanly separated out.
3002 * Makefile.in (tarinst.$OBJEXT): Remove reference.
3004 2010-04-29 Keith Marshall <keithmarshall@users.sourceforge.net>
3006 Handle "*" wildcard matches in package and subsystem version strings.
3008 * src/vercmp.h (pkgVersionInfo::version_string): New private member
3009 variable; it stores a pointer to a dynamically allocated local copy of
3010 the invariant `version' argument, to facilitate correct parsing.
3011 (pkgVersionInfo::build_string): Likewise; it provides similar handling
3012 for the invariant `build' argument.
3013 (pkgVersionInfo::Free): New private inline method; it provides a NULL
3014 pointer safe wrapper, calling the C library `free()' function, (since
3015 some implementations are believed to be unsafe); it is used by...
3016 (pkgVersionInfo::~pkgVersionInfo): ...this new inline destructor, to
3017 release the memory allocated by the constructor, for `version_string'
3020 * src/vercmp.cpp (pkgVersionInfo::pkgVersionInfo): Allocate memory for
3021 `version_string' and `build_string', as required; populate it.
3022 Explicitly handle "*" as a `match anything' wildcard...
3023 (pkgVersionInfo::Compare): ...matching it as `equal' to everything.
3025 2010-04-18 Keith Marshall <keithmarshall@users.sourceforge.net>
3027 Correct omission from configure script prerequisite checks.
3029 * aclocal.m4 (MINGW_AC_OUTPUT): New macro; it wraps AC_OUTPUT itself,
3030 adding a trap to force an abort if any preceding prerequisite check
3031 was handled by MINGW_AC_ASSERT_MISSING.
3033 * configure.ac: Qualify package component types, in prerequisite
3034 checks handled by MINGW_AC_ASSERT_MISSING; invoke MINGW_AC_OUTPUT
3035 in place of AC_OUTPUT.
3037 2010-04-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3039 Add configure script checks for prerequisite library headers.
3040 (Thanks to Cesar Strauss for proposing a rudimentary implementation).
3042 * aclocal.m4: New file; it does no more than include...
3043 * m4/missing.m4: ...this; new file incorporated from build-aux module.
3045 * configure.ac: Add AC_CHECK_HEADER assertions for...
3046 (zlib.h, bzlib.h, lzma.h): ...these; invoke MINGW_AC_ASSERT_MISSING in
3047 respect of each failing assertion.
3049 2010-04-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3051 Case-insensitive subsystem name matching revisited.
3053 * src/pkgfind.cpp (pkgXmlDocument::FindPackageByName): Use...
3054 (subsystem_strcmp): ...this to match subsystem names, instead of...
3055 (match_if_explicit): ...this.
3057 2010-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
3059 Enable recursive processing of repository package lists.
3061 * src/pkgbase.h (pkgXmlDocument::SyncRepository): Make it public.
3063 * src/pkgbind.cpp (pkgRepository): New locally defined and implemented
3064 class; it facilitates recursive loading and parsing of package lists,
3065 replacing much of the original non-recursive functionality within...
3066 (pkgXmlDocument::BindRepositories): ...this; use it.
3068 2010-04-04 Keith Marshall <keithmarshall@users.sourceforge.net>
3070 Implement installer function; use per-package file manifests.
3072 * src/pkgproc.h (pkgManifest): New class; declare it.
3073 (pkgArchiveProcessor::origin): New protected member variable.
3074 (pkgArchiveProcessor::sysroot_len): New protected member variable.
3075 (pkgArchiveProcessor::installed): Type changed to `pkgManifest *'.
3076 (pkgTarArchiveInstaller::Process): Declare specialisation hook.
3077 (pkgTarArchiveInstaller::UpdateInstallationManifest): Disused member
3078 function; remove redundant declaration from class definition.
3079 (pkgInstall): New generalised installation function; declare it.
3080 (pkgRegister): New function; declare it.
3082 * src/pkginst.cpp: New file.
3083 (pkgManifest, pkgInstall, pkgRegister): Implement them.
3085 * src/pkgexec.cpp (pkgActionItem::Execute): Use `pkgInstall' in place
3086 of stub formerly provided here.
3088 * src/pkgkeys.h (manifest_key, reference_key): New keys; declare them.
3089 * src/pkgkeys.c (manifest_key, reference_key): Implement them.
3091 * src/tarproc.cpp: Code refactored.
3092 (pkgTarArchiveProcessor::sysroot_len): Initialise it.
3093 (pkgTarArchiveProcessor::origin): Initialise it.
3094 (pkgTarArchiveProcessor::installed): Initialise; associate it with a
3095 pkgManifest class entity, and populate this as appropriate.
3096 (pkgTarArchiveProcessor::~pkgTarArchiveProcessor): Add explicit clean
3097 up of linked `pkgManifest *' entity referenced by `installed'.
3098 (pkgTarArchiveProcessor::Process) [TAR_ENTITY_TYPE_DIRECTORY]: Add
3099 braces to demarcate localised inner scope of string scan for removal
3100 of trailing directory name separators; (thanks to Cesar Strauss for
3101 reporting invalid local pointer declaration error in GCC >= 4.4).
3102 (pkgTarArchiveInstaller::UpdateInstallationManifest): Deleted.
3103 (pkgTarArchiveInstaller::pkgTarArchiveInstaller): Factor out.
3104 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
3105 (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
3106 (commit_saved_entity): Likewise.
3108 * src/tarinst.cpp: New file; it implements...
3109 (pkgTarArchiveInstaller::Process): ...this new specialisation
3110 of the original pkgTarArchiveProcessor::Process method...
3111 (pkgTarArchiveInstaller::pkgTarArchiveInstaller): ...and this
3112 refactored code, abstracted from src/tarproc.cpp and modified to
3113 use the pkgManifest class for installation tracking.
3114 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
3115 (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
3116 (commit_saved_entity): Relocated from src/tarproc.cpp.
3118 * Makefile.in (CORE_DLL_OBJECTS): Add...
3119 (pkginst.OBJEXT, tarinst.OBJEXT): ...these new object files.
3121 2010-03-31 Keith Marshall <keithmarshall@users.sourceforge.net>
3123 Guard against NULL pointer dereferences in tinyxml code.
3125 * src/pkgbase.h (pkgXmlNode::GetName): Verify `this' pointer is
3126 non-NULL, before invoking the underlying tinyxml method.
3127 (pkgXmlNode::GetParent, pkgXmlNode::GetChildren): Likewise.
3128 (pkgXmlNode::GetNext, pkgXmlNode::GetPropVal): Likewise.
3129 (pkgXmlNode::AddChild, pkgXmlNode::DeleteChild): Likewise.
3130 (pkgXmlNode::GetDocumentRoot): Likewise.
3131 (pkgXmlNode::IsElementOfType): Likewise.
3133 2010-03-28 Cesar Strauss <cestrauss@gmail.com>
3135 Avoid running InternetAttemptConnect in pkgInternetAgent
3136 constructor, since it is called during DLL initialisation.
3138 * src/pkginet.cpp (pkgInternetAgent::pkgInternetAgent): Move the
3139 InternetAttemptConnect call from constructor...
3140 (pkgInternetAgent::OpenURL): ...to here.
3142 2010-03-23 Keith Marshall <keithmarshall@users.sourceforge.net>
3144 Automate object code dependency tracking.
3146 * Makefile.in (DEPFLAGS): New macro; define it.
3147 (%.OBJEXT: %.c, %.OBJEXT: %.cpp): Add dependency generator commands...
3148 (%.d): ...to create these dependency maps; `sinclude' them, and...
3149 (clean): ...remove them.
3151 * .cvsignore (*.d): Add wild card template to match them.
3153 2010-03-22 Keith Marshall <keithmarshall@users.sourceforge.net>
3155 Support case insensitive matching for file and subsystem names.
3157 * src/pkgbase.h (safe_strcmp): New inline function; it provides NULL
3158 argument safe comparison of strings, returning the boolean inverse of
3159 the `strcmp' result, using either case-sensitive or case-insensitive
3160 semantics; derive it from...
3161 (match_if_explicit): ...this; redefine as macro; invoke `safe_strcmp'
3162 using explicitly case-sensitive semantics.
3163 (subsystem_strcmp): New macro; it invokes `safe_strcmp' with either
3164 case-sensitive or case-insensitive semantics, depending on...
3165 (CASE_INSENSITIVE_SUBSYSTEMS): ...this new context selection macro; it
3166 fixes the choice between case-sensitive and case-insensitive matching
3167 semantics for any given implementation, at compile time.
3168 (pkg_strcmp): New macro; it invokes `safe_strcmp' with either
3169 case-sensitive or case-insensitive semantics, depending on...
3170 (CASE_INSENSITIVE_FILESYSTEM): ...this new context selection macro; it
3171 fixes the choice between case-sensitive and case-insensitive matching
3172 semantics for any given implementation, at compile time.
3174 * src/sysroot.cpp (pkgXmlNode::GetSysRoot): Use `subsystem_strcmp'.
3176 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
3178 Add preliminary support for virtual packages.
3180 * src/pkgkeys.h (yes_value, no_value): Redefine as aliases...
3181 (value_yes, value_no): ...for these new global strings; declare them.
3182 (value_none, value_virtual): New global strings; declare them.
3184 * src/pkgkeys.c (yes_value, no_value): Rename...
3185 (value_yes, value_no): ...to implement these, respectively.
3186 (value_none, value_virtual): Implement them.
3188 * src/pkgname.cpp (pkgXmlNode::ArchiveName): Check containing package
3189 node for `class' attribute set to `value_virtual'; if present, always
3190 return the effective `tarname' property as `value_none'.
3192 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): For packages
3193 with an effective `tarname' of `value_none', do not download anything.
3195 * src/pkgexec.cpp (pkgActionItem::Execute): For packages with an
3196 effective `tarname' of `value_none', do not invoke any tar archive
3197 processing function.
3199 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
3201 Don't write installation records for unavailable packages.
3203 * src/tarproc.cpp (pkgTarArchiveInstaller): In constructor, ensure
3204 archive is ready for processing, before initialising an installation
3207 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
3209 Rationalise path identification for XML file locations.
3211 * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Use `xmlfile()'
3212 function to locate `sysroot' map file; free memory when done.
3213 (pkgXmlDocument::UpdateSystemMap): Likewise.
3214 (sigpath): Static global variable disused; delete it.
3216 2010-03-01 Keith Marshall <keithmarshall@users.sourceforge.net>
3218 Extend package name search to include component packages.
3220 * src/pkgfind.cpp (pkgHasMatchingName): Remove; fold it into...
3221 (pkgXmlNode::FindPackageByName): ...this; augment to extend search
3222 within package definition elements, seeking a potential match on an
3223 included component package name or component class-implied name.
3225 * src/pkgkeys.h (class_key): New global string constant; declare it.
3226 * src/pkgkeys.c (class_key): Implement it.
3228 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3230 Bump version for next release cycle.
3232 * configure.ac (AC_INIT): Bump version suffix to alpha-2.
3234 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3236 mingw-get-0.1-mingw32-alpha-1 released.
3238 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3240 Prepare initial package release.
3242 * README: New file; use it to source release notes.
3244 * Makefile.in (SRCDIST_FILES): Use ...
3245 (LICENCE_FILES): ...this new macro; define it.
3246 (licdist): New build goal; implement it.
3247 (bindist): Require it; add alternative `zip' format package.
3249 * xml/profile.xml (repository): Set default `package-index' name.
3250 (system-map): Normalise spelling for default `sysroot' path names.
3252 2010-02-10 Keith Marshall <keithmarshall@users.sourceforge.net>
3254 Add directory/file records in installation manifests.
3256 * src/pkgkeys.h (dirname_key, filename_key): New strings; declare...
3257 * src/pkgkeys.c (dirname_key, filename_key): ...and implement them.
3259 * src/pkgproc.h (pkgArchiveProcessor::installed): New class member
3260 variable; declare it.
3261 (pkgTarArchiveInstaller::UpdateInstallationManifest): New method;
3264 * src/tarproc.cpp: Miscellaneous comment updates.
3265 (pkgTarArchiveInstaller): In constructor...
3266 (pkgTarArchiveInstaller::installed): ...use new member variable...
3267 (pkgArchiveProcessor::installed): ...inherited from this.
3268 (pkgTarArchiveInstaller::UpdateInstallationManifest): Implement and...
3269 (pkgTarArchiveInstaller::ProcessDataStream): ...use it.
3270 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
3272 2010-02-06 Keith Marshall <keithmarshall@users.sourceforge.net>
3274 Work around a deficiency in Microsoft's stat() implementation.
3276 * src/tarproc.cpp (pkgTarArchiveProcessor::ProcessDirectory): Don't
3277 pass a `pathname' argument with trailing slashes; strip them off.
3279 2010-02-06 Keith Marshall <keithmarshall@users.sourceforge.net>
3281 Add machinery for installation and packaging for distribution.
3283 * install-sh: New file; source it from autoconf distribution.
3285 * configure.ac (AC_PREFIX_DEFAULT): Assign it as `C:/MinGW'.
3286 (AC_PROG_MKDIR_P, AC_PROG_INSTALL, AC_PROG_LN_S): Invoke these.
3287 (STRIP): New output variable; use AC_CHECK_TOOL to define it.
3289 * Makefile.in (abs_top_srcdir): Define to AC_SUBST value.
3290 (PACKAGE_TARNAME, PACKAGE_VERSION): Define to AC_SUBST values.
3291 (prefix, exec_prefix, bindir, libexecdir, localstatedir): Likewise.
3292 (INSTALL, INSTALL_PROGRAM, INSTALL_SCRIPT, INSTALL_DATA): Likewise.
3293 (STRIP): New macro; define it using AC_CHECK_TOOL substitution.
3294 (mkinstalldirs): New macro; define it as AC_PROG_MKDIR_P result.
3295 (LN_S): New macro; define it as AC_PROG_LN_S result.
3296 (dist, srcdist, bindist): New build objectives; implement them.
3297 (install, installdirs, install-strip, maintainer-clean): Likewise.
3298 (SRCDIST_FILES, SRCDIST_SUBDIRS): New macros; define them.
3299 (PACKAGE_DISTNAME, PACKAGE_DISTVERSION): Likewise.
3300 (PACKAGE_DISTROOT, PACKAGE_ROOTVERSION): Likewise.
3301 (PACKAGE_CONFIG_DIR): Likewise.
3303 2010-02-02 Keith Marshall <keithmarshall@users.sourceforge.net>
3305 Implement package installer for tar archives.
3307 * src/pkgexec.cpp (pkgXmlDocument::Execute): Replace existing
3308 stub implementation of installer, using methods provided by...
3309 * src/pkgproc.h, src/tarproc.cpp: ...these new files, with trap...
3310 * src/pkgdeps.cpp (pkgXmlDocument::Schedule) [installed]: Add entry...
3311 (pkgActionItem::Selection) [to_remove]: ...for this; use it to detect
3312 `install' requests for packages which are aleady installed.
3314 * Makefile.in (CORE_DLL_OBJECTS): Add tarproc.$(OBJEXT); specify
3315 dependencies as appropriate.
3317 * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Don't commit
3318 newly created `sysroot' mapping records to disk; defer to...
3319 (pkgXmlDocument::UpdateSystemMap): ...this new method.
3320 (sigpath): Make it a global variable, with file (static) scope.
3322 * src/climain.cpp (pkgXmlDocument::UpdateSystemMap): Invoke it.
3324 * src/pkgkeys.h (download_key, modified_key, source_key): New global
3325 string variables; declare them, providing their implementations...
3326 * src/pkgkeys.c (download_key, modified_key, source_key): ...here.
3327 * src/pkgname.cpp (download_key, source_key): Use them.
3329 * src/pkginet.cpp (pkgActionItem::ArchivePath): Delete; replace...
3330 * src/mkpath.c (pkgArchivePath): ...with this free standing function.
3331 * src/mkpath.h (pkgArchivePath): Declare its prototype.
3333 * src/pkgbase.h (pkgActionItem::ArchivePath): Delete declaration.
3334 (pkgXmlDocument): Add a default constructor; implement as `inline'.
3335 (pkgXmlDocument::AddDeclaration): Use heap memory to allocate the new
3336 declaration object, instead of `auto' variable, to avoid scope error.
3337 (pkgXmlDocument::UpdateSystemMap): Declare it.
3339 2010-01-26 Keith Marshall <keithmarshall@users.sourceforge.net>
3341 Implement rudimentary dependency resolver.
3343 * src/pkgdeps.cpp: New file.
3345 * Makefile.in (CORE_DLL_OBJECTS): Add pkgdeps.$(OBJEXT) reference;
3346 establish header file dependencies.
3348 * src/pkgbase.h (to_remove, to_install, selection_types): New enum.
3349 (pkgActionItem::selection): Extend it to store as enumerated pair...
3350 (pkgActionItem::SelectPackage): New inline method; assign them.
3351 (pkgActionItem::Selection): New inline method; retrieve them.
3352 (pkgXmlNode::GetInstallationRecord): New method; declare it.
3354 * src/pkgexec.cpp (pkgActionItem): In constructor...
3355 (selection): ...initialise both references in enumerated pair.
3356 (pkgActionItem::GetReference): Use `Selection()' method.
3357 (pkgActionItem::SelectIfMostRecent): Ditto; also correct logic for
3358 making selection, and assign to `to_install' element.
3359 (pkgXmlDocument::Schedule): Don't update `request'.
3360 (pkgActionItem::Execute): Implement as stub.
3362 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): Use new
3363 `Selection()' method.
3365 * src/pkgkeys.h (yes_value, no_value): Declare new string constants.
3366 * src/pkgkeys.c (yes_value, no_value): Implement them.
3368 * src/vercmp.cpp: Update copyright notice.
3369 (pkgVersionInfo::operator<=): Bug fix; must test for `<', but had `>'.
3371 2010-01-23 Keith Marshall <keithmarshall@users.sourceforge.net>
3373 Avoid segmentation faults when processing invalid data streams.
3375 * src/pkgstrm.h: Update copyright notice.
3376 (pkgArchiveStream::IsReady): New pure virtual method.
3377 (pkgRawArchiveStream::IsReady): Provide inline implementation.
3378 (pkgGzipArchiveStream::IsReady): Likewise.
3379 (pkgBzipArchiveStream::IsReady): Likewise.
3380 (pkgLzmaArchiveStream::IsReady): Likewise.
3381 (pkgXzArchiveStream::IsReady): Likewise.
3383 * src/pkgstrm.cpp: Update copyright notice.
3384 (pkgLzmaArchiveStream, pkgXzArchiveStream) [fd == -1]: Decline to
3385 perform any form of read or decode processing.
3387 * src/pkginet.cpp (pkgInternetLzmaStreamingAgent): Use `fd = -2' as
3388 pseudo-descriptor for the pkgLzmaArchiveStream derived component of
3389 this internet data streaming class.
3391 2010-01-23 Keith Marshall <keithmarshall@users.sourceforge.net>
3393 Require liblzma >= liblzma-4.999.9beta_20091209-3-mingw32-dev
3395 * src/pkgstrm.h (LZMA_API_STATIC): Remove definition and associated
3396 comment; it was required to permit, (but not to enforce), linking to
3397 the static liblzma.a library, with earlier beta releases, but this
3398 anomaly has now been corrected.
3400 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
3402 Remove zlib sources from trunk.
3403 (Application builders should use free standing implementation of
3404 zlib, from MinGW's package distribution page on SourceForge).
3406 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
3408 Remove bzip2 sources from trunk.
3409 (Application builders should use free standing implementation of
3410 bzip2, from MinGW's package distribution page on SourceForge).
3412 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
3414 Add subsystem specific sysroot mapping facility.
3416 * src/pkghash.c: New file; required by...
3417 * src/sysroot.cpp: New file; it implements...
3418 (pkgXmlDocument::LoadSystemMap, pkgXmlNode::GetSysRoot): New methods.
3420 * src/pkgbase.h: Update copyright notice.
3421 (pkgXmlDocument::LoadSystemMap): Declare it.
3422 (pkgXmlDocument::AddDeclaration): New inline method.
3423 (pkgXmlDocument::SetRoot, pkgXmlDocument::Save): Likewise.
3424 (pkgXmlNode::GetSysRoot): Declare it.
3425 (pkgXmlNode::GetDocumentRoot): New inline method.
3426 (pkgXmlNode::AddChild, pkgXmlNode::DeleteChild): Likewise.
3428 * src/climain.cpp: Update copyright notice.
3429 (climain): Invoke pkgXmlDocument::LoadSystemMap() as required.
3431 * Makefile.in (CORE_DLL_OBJECTS): Add ...
3432 (pkghash.$(OBJEXT), sysroot.$(OBJEXT)): ...these; upate dependencies.
3433 (DEBUGLEVEL): New macro; define it.
3436 2010-01-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3438 Assign standardised keys for XML database lookup.
3440 * src/pkgkeys.h: New file; provide public key declarations.
3441 * src/pkgkeys.c: New file; implement them.
3443 * src/pkgbind.cpp: Use them; update copyright notice.
3444 * src/pkgexec.cpp, src/pkgfind.cpp, src/pkginet.cpp: Likewise.
3445 * src/pkgname.cpp, src/pkgspec.cpp: Likewise.
3447 * Makfile.in (CORE_DLL_OBJECTS): Add pkgkeys.$(OBJEXT); update all
3448 dependencies accordingly.
3450 2010-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
3452 Add CLI version reporting option.
3454 * configure.ac: Update copyright notice for new year.
3455 (COPYRIGHT_HOLDER): New AC_SUBST variable; define it.
3456 (YEARS_OF_ISSUE): New AC_SUBST variable; define it.
3457 (AC_CONFIG_FILES): Add `version.c'; source it from...
3459 * version.c.in: ...this new file.
3461 * Makefile.in: Update copyright notice for new year.
3462 (mingw-get$(EXEEXT)): Add dependency on `version.$(OBJEXT)'.
3463 (distclean): Add `version.c'.
3465 * configure: Regenerated.
3467 * src/clistub.c: Update copyright notice for new year.
3468 (options): New array of `struct option'; define and use it as the
3469 reference for `argv' parsing with `getopt_long_only()'.
3471 2009-12-17 Keith Marshall <keithmarshall@users.sourceforge.net>
3473 Add CLI support for "update" action.
3475 * src/pkgtask.h (ACTION_UPDATE): Define it, derived from...
3476 (action_update): ...this new entry in anonymous enumeration.
3478 * src/pkgexec.cpp (action_name): Add "update" keyword identification.
3480 * src/pkgbase.h: Typo in comment; s/xwXmlDocument/wxXmlDocument/.
3481 (pkgXmlDocument::BindRepositories): Add `force_update' parameter...
3482 * src/pkgbind.cpp (pkgXmlDocument::BindRepositories): Use it to...
3483 (pkgXmlDocument::SyncRepository): ...invoke this method when passed as
3484 a `true' flag, in addition to (as previously) first time reference.
3486 * src/climain.cpp (climain): Interpret "update" keyword for...
3487 [ACTION_UPDATE]: ...passing state as `force_update' parameter to...
3488 (pkgXmlDocument::BindRepositories): ...this method, then...
3489 [!ACTION_UPDATE]: Follow with normal action processing.
3491 2009-12-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3493 Add status checking for Internet URL connections.
3495 * src/pkginet.cpp (pkgInternetAgent::QueryStatus): New method.
3496 (pkgInternetStreamingAgent::Get): Use it; set `dl_status' as return
3497 value, deferring failure diagnostics to callers, i.e. to...
3498 (pkgXmlDocument::SyncRepositories): ...this, and to...
3499 (pkgActionItem::DownloadArchiveFiles): ...this.
3501 2009-11-23 Keith Marshall <keithmarshall@users.sourceforge.net>
3503 Add package download and repository synchronisation machinery.
3505 * src/pkgstrm.h: New header file.
3507 * src/pkgbind.cpp, src/pkginet.cpp, src/pkgstrm.cpp,
3508 src/pkgfind.cpp, src/pkgname.cpp, src/keyword.c: New files.
3509 * Makefile.in (CORE_DLL_OBJECTS): Add build goals for them.
3511 * xml: New directory.
3513 * src/climain.cpp (climain): Establish repository bindings from...
3514 * xml/profile.xml: ...this new configuration file.
3516 2009-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
3518 Add XML database bindings and preliminary action executive for CLI.
3520 * src/pkgbase.h, src/pkgtask.h,
3521 src/mkpath.h, src/vercmp.h: New header files.
3523 * src/climain.cpp, src/pkgexec.cpp, src/pkgspec.cpp,
3524 src/mkpath.c, src/vercmp.cpp, src/xmlfile.c: New files.
3526 * Makefile.in (CORE_DLL_OBJECTS): Define initial set of files...
3527 (mingw-get-0.dll): ...build them into this new DLL target; add it...
3528 (all): ...as prerequisite for this primary build goal.
3530 2009-11-12 Keith Marshall <keithmarshall@users.sourceforge.net>
3532 Avoid some potential GCC warnings.
3534 * src/clistub.c: Include process.h for `execv' prototype...
3535 (main): Cast `argv' to appropriately matched type when calling it.
3537 * src/pkginfo/driver.c: Include stdlib.h for `free' prototype.
3539 2009-11-11 Keith Marshall <keithmarshall@users.sourceforge.net>
3541 Create diagnostic message handler for CLI usage.
3543 * src/dmh.h: New header file; it defines the public interface.
3544 * src/dmh.cpp: New file; it implements the message handler.
3546 2009-11-05 Keith Marshall <keithmarshall@users.sourceforge.net>
3548 Correct some identified TinyXML issues.
3550 * tinyxml/tinyxml.h (IsWhiteSpace): Add FIXME annotation to flag
3551 probable redundancy of checks for '\n' and '\r'.
3552 * tinyxml/tinyxmlparser.cpp: Revert John E's 2008-08-09 change; remove
3553 all such redundancies in IsWhiteSpace() calls throughout.
3555 * tinyxml/tinyxml.cpp (TiXmlAttribute::SetDoubleValue): Correct format
3556 specification in sprintf()/snprintf() calls; "%lf" is invalid; replace
3559 2009-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
3561 Add CLI loader stub.
3563 * src/clistub.c: New file.
3564 * Makefile.in: Add build rule for it; build as...
3565 (mingw-get.exe): ...this; also add to...
3566 (clean): ...this goal.
3568 2009-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
3570 Set up build mechanism.
3572 * configure.ac, Makefile.in: New files.
3573 * .cvsignore (configure, autom4te.cache): Add to ignored files.
3575 2009-10-30 Keith Marshall <keithmarshall@users.sourceforge.net>
3577 Add GPL-v3 licensing terms.
3579 * COPYING: New file, sourced from gnu.org.
3581 2009-10-12 Keith Marshall <keithmarshall@users.sourceforge.net>
3583 Add pkginfo implementation.
3585 * src, src/pkginfo: New directories.
3586 * src/pkginfo/pkginfo.h, src/pkginfo/pkginfo.l: New files.
3587 * src/pkginfo/driver.c: New file.
3589 2009-10-12 Keith Marshall <keithmarshall@users.sourceforge.net>
3593 * All files (tdm-branch): Assign new branch tag.
3594 * All top-level files: Remove from trunk.
3595 * ChangeLog: New file.