1 2012-09-02 Keith Marshall <keithmarshall@users.sourceforge.net>
3 Redefine paragraph_key with project global scope.
5 * src/pkgkeys.h (paragraph_key): Declare it.
6 * src/pkgkeys.c (paragraph_key): Define it.
8 * src/pkgshow.cpp (pkgDirectoryViewer::EmitDescription): Delete
9 function local definition; use global definition instead.
11 2012-09-02 Keith Marshall <keithmarshall@users.sourceforge.net>
13 Correct defect introduced by 2012-08-03 commit.
15 * src/approot.c (AppPathNameW): Add omitted 'else', so that tail
16 pointer isn't moved after the APPROOT prefix is truncated.
18 2012-09-02 Keith Marshall <keithmarshall@users.sourceforge.net>
20 Remap Mercurial subrepository reference via local hg-git clone.
22 * .hgsub (build-aux): Point to ../build-aux; this must be a locally
23 hosted hg clone of the git origin repository, and it must pre-exist as
24 a sibling of any created hg clone of the mingw-get repository.
26 2012-08-31 Keith Marshall <keithmarshall@users.sourceforge.net>
28 Add Mercurial subrepository reference for build-aux.
32 2012-08-03 Keith Marshall <keithmarshall@users.sourceforge.net>
34 More code refactoring, to facilitate GUI implementation.
36 * src/clistub.c (AppPathNameW): Factor out; relocate to...
37 * src/approot.c: ...this new file; it reproduces the original
38 implementation, modified to also consider any "libexec" directory in
39 the executable path as the first child of the APPROOT prefix. Note
40 also, that no longer terminates APPROOT with a trailing backslash.
42 * src/approot.h: New file; it trivially declares the prototype for...
43 (AppPathNameW): ...this relocated extern "C" function.
45 * src/clistub.c (main): Adapt usage of AppPathNameW(), to reinstate
46 trailing backslash on assignment to APPROOT environment variable.
48 * Makefile.in (CLI_EXE_OBJECTS): New macro; define it as the original
49 set of prerequisites, with the addition of approot.OBJEXT, for...
50 (mingw-get.EXEEXT): ...this; use it.
52 * src/rites.c: Add comment regarding APPROOT usage.
54 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
56 Find missing.m4 in build-aux/m4 directory.
58 * aclocal.m4: Change path m4/missing.m4 to build-aux/m4/missing.m4.
60 2012-07-31 Earnie Boyd <earnie@users.sourceforge.net>
62 Add build-aux as a submodule.
63 Move .cvsignore to .gitignore.
65 * .gitmodules: New file.
66 * build-aux: New submodule directory.
68 * .gitignore: New file.
70 2012-07-13 Keith Marshall <keithmarshall@users.sourceforge.net>
72 Disable globbing of command line arguments.
74 * src/clistub.c (_CRT_glob): Define and initialise to zero; we don't
75 need globbing, and it may cause case transliteration of case-sensitive
76 action keywords, when a file system entity with a case-insensitively
79 2012-06-02 Keith Marshall <keithmarshall@users.sourceforge.net>
81 Refactor API to facilitate implementation of GUI ListView hooks.
83 * src/pkgkeys.h (title_key, description_key): Declare them.
84 * src/pkgkeys.c (title_key, description_key): Define them; relocate...
85 * src/pkgshow.cpp (pkgDirectoryViewer::EmitDescription): ...from here.
86 (pkgXmlDocument::CalalogueAllPackages): New public method; factor...
87 (pkgXmlDocument::DisplayPackageInfo): ...from here, whence use it.
88 (pkgDirectoryViewerEngine::EnumerateComponents): New private method;
89 implement as a concrete method of this abstract base class; factor...
90 (pkgDirectoryViewer::Dispatch): ...from original inline implementation
91 within this method of the concrete derived class, whence use it.
92 (pkgDirectoryViewerEngine, pkgDirectory): Factor class declarations...
93 * src/pkglist.h: ...into this new header file; include it.
95 * src/pkgbase.h (pkgDirectory): Add forward class declaration.
96 (pkgXmlDocument::CatalogueAllPackages): Declare it.
98 2012-05-02 Keith Marshall <keithmarshall@users.sourceforge.net>
100 Update help text to document package version selection capability.
102 * src/clistub.c (help_text): Add description of command line syntax
103 which may be used to specify an alternative to the default package
104 version selection, for install and upgrade actions.
106 2012-05-01 Keith Marshall <keithmarshall@users.sourceforge.net>
108 Support options set by preferences assigned within profile.xml
110 * xml/profile.xml (preferences): New element; add defaults.
112 * src/pkgopts.h (OPTION_ASSIGNED_FLAGS, OPTION_DESKTOP_ARGS):
113 (OPTION_START_MENU_ARGS): New enumerated constants; define them.
114 (OPTION_DESKTOP, OPTION_START_MENU): New manifest constants.
115 (OPTION_ASSIGNED, mark_option_as_set): New macros; define them.
116 (pkgOpts::GetValue, pkgOpts::GetString): Restrict look-up index to
117 least significant 12-bits of full-range index value.
118 (pkgOpts::IsSet): New inline method; implement it.
120 * src/clistub.c (main): Reimplement --desktop and --start-menu
121 options; each now becomes an OPTION_GENERIC optarg string store.
122 (set_script_hook): Function no longer used; delete it; delegate to...
123 * src/pkgbase.h (pkgXmlDocument::EstablishPreferences): ...this new
124 method; declare it, providing its implementation in...
125 * src/pkgopts.cpp: ...this new file; invoke it...
126 * src/climain.cpp (climain): ...here.
128 * Makefile.in (CORE_DLL_OBJECTS): Add pkgopts.$OBJEXT
130 2012-04-30 Keith Marshall <keithmarshall@users.sourceforge.net>
132 Correct sequence of installation/removal progress reporting.
134 * src/pkgunst.cpp (pkgRemove): Delay output of "removing package ..."
135 message, until after pre-remove hooks have run; this ensures that any
136 output from the pre-remove hook scripts appears in correct sequence.
138 * src/pkginst.cpp (pkgInstall): Likewise, for "installing package ..."
139 message, in relation to pre-install hooks.
141 2012-04-26 Keith Marshall <keithmarshall@users.sourceforge.net>
143 mingw-get-0.5-beta-20120426-1 released.
145 * configure.ac (AC_INIT): Version number updated.
146 * srcdist-doc/NEWS.in: Updated; bug-fix notifications added.
147 * All files (r0-5-beta-20120426-1): Tag assigned.
149 2012-04-25 Keith Marshall <keithmarshall@users.sourceforge.net>
151 Interim work-around for MinGW-Bug #3520864.
153 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
154 [DEBUG_TRACE_DEPENDENCIES]: Add request flags to messages reporting
155 the scheduling of installation activities.
157 * src/pkgexec.cpp (pkgXmlDocument::Schedule): Add temporary diagnostic
158 hooks to confirm request flags; bracket them with #if 0 ... #endif.
159 [ACTION_PRIMARY && pre-scheduled request]: Don't trash request flags
160 when updating the pre-existing action item data.
162 2012-04-23 Keith Marshall <keithmarshall@users.sourceforge.net>
164 Fix MinGW-Bug #3520488
166 * src/pkgexec.cpp (action_code): Check for, and reject NULL pointer
167 passed as action request string; also reject ambiguous abbreviations.
169 * src/climain.cpp (climain): Discriminate between NULL pointer and
170 other forms of invalid action keyword matching failures.
172 2012-04-16 Keith Marshall <keithmarshall@users.sourceforge.net>
174 mingw-get-0.5-beta-20120416-1 released.
176 * configure.ac (AC_INIT): Version number updated.
177 (YEARS_OF_ISSUE): 2012 added.
179 * srcdist-doc/NEWS.in: Updated; release notes added.
180 * All files (r0-5-beta-20120416-1): Tag assigned.
182 2012-04-16 Keith Marshall <keithmarshall@users.sourceforge.net>
184 Assign icon to temporary GUI executable file.
186 * icons/pkgicon.ico: New file, shamelessly copied from synaptic.
188 * configure.ac: Add identification for windres; propagate it to...
189 * Makefile.in: ...here; use it to compile object from icon files...
190 (srcdir/icons) [%.ico]: ...from this new vpath location.
191 (gui.exe): Link to compiled icon's object file.
192 (SRCDIST_SUBDIRS): Add icons directory.
194 2012-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
196 Ensure that package removal requests are correctly scheduled.
198 * src/pkgdeps.cpp (pkgXmlDocument::Schedule) [ACTION_REMOVE]: Schedule
199 as a distinct case, when the installed version is not the most recent
200 available release; consideration of this distinct case was previously
201 erroneously overlooked.
203 2012-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
205 Correct scheduling of new prerequisites when upgrading.
207 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
208 [ACTION_UPGRADE && ACTION_PRIMARY]: Don't exclude scheduling for this
209 case of a prerequisite with no previously installed version; it may be
210 a delegated primary requirement of a meta-package.
212 2012-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
214 Don't require subsystem within user specified version bounds.
216 * src/pkgdeps.cpp (pkgActionItem::ApplyBounds): Automatically consider
217 "*" wild-card matches for subsystem, if user doesn't specify it.
219 2012-04-09 Charles Wilson <mingw@cwilson.fastmail.fm>
223 * src/pkgdeps.cpp (pkgopts.h): Include unconditionally; do not rely...
224 (debug.h) [DEBUG_TRACE_DYNAMIC]: ...on this, for indirect inclusion.
226 2012-04-07 Keith Marshall <keithmarshall@users.sourceforge.net>
228 Correct a srcdist package construction defect.
230 * Makefile.in (srcdist) [for SRCDIST_SUBDIRS]: Use...
231 (mkinstalldirs): ...this, to create package image directories.
233 2012-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
235 Add scripting hooks to support creation of MS-Windows shortcuts.
237 * src/clistub.c (progname): New static variable with file scope; it
238 replaces former automatic variable, of same name, in main() function.
239 (set_script_hook): New static function; implement it, and call it...
240 (main) [--desktop, --start-menu]: ...from here, to interpret these new
241 command line options; they are propagated to scripts via...
242 (MINGW_GET_DESKTOP_HOOK, MINGW_GET_START_MENU_HOOK): ...these new
243 internally assigned environment variables.
244 (help_text): Document --desktop and --start-menu.
246 * scripts/libexec/setup.lua scripts/libexec/wsh.lua: New lua module
247 files; they implement a lua scripting API; they delegate requests to
248 the Windows Scripting Host, via either of this pair of...
249 * scripts/libexec/shlink.js: ...new script to create shortcuts, or...
250 * scripts/libexec/unlink.js: ...its complement, to remove them.
251 * Makefile.in (SRCDIST_SUBDIRS): Integrate them; enumerate them in...
252 (scripts_srcdir, LIBEXEC_SCRIPTS): ...these new macros; use to...
253 (install): ...install them.
255 2012-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
257 Initialise $LUA_PATH to locate mingw-get specific scripts.
259 * src/pkgexec.cpp (lua_path_init): New static inline function.
260 (pkgXmlNode::DispatchScript): Call it on first time invocation, per...
261 [lua_path_setup == false]: ...this static function local variable.
263 2012-04-01 Keith Marshall <keithmarshall@users.sourceforge.net>
265 Support installation of releases other than latest available.
267 * src/pkgbase.h (pkgActionItem::ApplyBounds): New method; declare it.
269 * src/pkgdeps.cpp (pkgActionItem::ApplyBounds): Implement it.
270 (pkgXmlDocument::Schedule): Use it to interpret user specified version
271 bounds, and apply them to scheduled action items. Having used...
272 (get_version_bounds): ...this new static inline function...
273 ...to acquire any user specified version bounds, check that they can
274 be honoured, before scheduling any action; delegate diagnostics to...
275 (dmh_notify_no_match): ...this new local helper function, to report
276 when they can't, and to indicate viable alternatives.
278 2012-03-26 Keith Marshall <keithmarshall@users.sourceforge.net>
280 Rework previously inadequate solution for MinGW-Bug #3424406
282 * src/pkgtask.h: Update copyright notice for current year.
283 (ACTION_MAY_SELECT): New manifest constant for use as flag; define it.
284 * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit): Assign it.
286 * src/pkgdeps.cpp (STATIC_INLINE): New macro; define it.
287 (ACTION_RECURSIVE_REINSTALL, ACTION_RECURSIVE_UPGRADE):
288 (ACTION_RECURSIVE_REPLACE): New action code constants; define them.
289 (with_flags): Original macro deleted; replace it with...
290 (with_request_flags): ...this new static inline function.
291 (if_noref, if_match, if_alias, with_download, promote): New static
292 inline functions; they replace original macros of the same names.
293 (is_recursive_action): Function no longer used; delete it.
294 (action_class): New static inline function; implement and use it...
295 (pkgXmlDocument::ResolveDependencies): ...here, to identify scheduling
296 requirements for packages which are already installed; depends on...
297 (request_mode): ...this new automatic variable; it augments and...
298 (recursive_mode): ...replaces this one; rename it accordingly.
299 (viable): Automatic variable no longer used; delete it.
300 [DEBUG_REQUEST & DEBUG_TRACE_DEPENDENCIES]: Emit notification for
301 scheduled installation.
302 (pkgXmlDocument::Schedule): Add an implied...
303 (ACTION_REMOVE): ...when scheduling a reinstallation.
305 2012-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
307 Address reinstallation issues per MinGW-Bugs #3416013 and #3424406
309 * src/pkgexec.cpp (reinstall_action_scheduled): New inline function.
310 (pkgActionItem::Execute): Use it to identify cases where...
311 [--reinstall]: ...implicit package removal is required, and also to
312 facilitate improved progress reporting in such cases.
314 * src/pkgdeps.cpp (is_recursive_action): New inline function.
315 (pkgXmlDocument::ResolveDependencies): Use it in tandem with...
316 (recursive_mode): ...this new automatic variable, so as to handle...
317 [meta-package dependency]: ...implicit recursion, to extend the scope
318 of the current action to the first level of non-meta dependency.
319 [install --reinstall]: ...reinstall original version of nominated
320 package, ignoring any available upgrade; extend scope of operation...
321 [install --reinstall --recursive]: ...to all prerequisite packages.
322 [upgrade --reinstall]: ...upgrade nominated package if possible; if no
323 upgrade available, reinstall current version; extend scope...
324 [upgrade --reinstall --recursive]: ...to all prerequisites.
325 (pkgXmlDocument::Schedule): Partially revert 2012-03-05 change;
326 reimplement selectively; never promote...
327 [install, install --reinstall]: ...these operations to become...
328 [upgrade]: ...this, even if available; issue diagnostic instead.
330 2012-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
332 Rationalise implementation and usage of --all-related option.
334 * src/pkgopts.h: Update copyright notice; add year 2012.
335 (OPTION_RECURSIVE, OPTION_ALL_RELATED): New constants; define them.
336 (pkgOpts::SetFlags): New method; declare and implement it inline.
338 * src/clistub.c: Update copyright notice; add year 2012.
339 (options) [recursive, all-related]: Redefine in terms of...
340 (OPTION_RECURSIVE, OPTION_ALL_RELATED): ...these.
341 (help_text): Update appropriately.
343 * src/climain.cpp: Update copyright notice; add year 2012.
344 (climain) [all-related]: Associate its use exclusively with...
345 (source, licence): ...these package processing operations; use...
346 (pkgOptions::SetFlags): ...this, to propagate its effect.
348 2012-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
350 Don't report failed downloads in respect of virtual packages.
352 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): Clear...
353 [ACTION_DOWNLOAD]: ...this status flag for any package identified as
354 a meta-package; this corrects a further regression introduced with the
355 2011-11-09 update, whereby pending download requests for such virtual
356 packages were not cancelled, resulting in failure to install due to
357 failed downloads, when no download is actually required.
359 2012-03-05 Keith Marshall <keithmarshall@users.sourceforge.net>
361 Don't suppress implied downloads for top-level actions.
363 * src/pkgdeps.cpp: Update copyright notice for new year.
364 (pkgXmlDocument::Schedule) [!OPTION_PRINT_URIS]: Ensure that...
365 [ACTION_DOWNLOAD]: ...this is enabled, when scheduling an install or
366 an upgrade action for a package specified as a command line argument;
367 this corrects a regression introduced on 2011-11-09, which resulted in
368 ACTION_DOWNLOAD being enabled only for second tier dependent actions.
370 2012-02-20 Keith Marshall <keithmarshall@users.sourceforge.net>
372 Copyright notice updates.
374 * Makefile.in: Add 2012 as year of republication.
375 * src/pkgbase.h src/sysroot.cpp src/pkgexec.cpp: Likewise.
376 * src/rites.c src/pkginst.cpp src/pkgunst.cpp: Likewise.
378 2012-02-20 Keith Marshall <keithmarshall@users.sourceforge.net>
380 Fix ill-advised optimisation in $APPROOT environment lookup.
382 * src/rites.c (approot_path): Don't save result of getenv() lookup
383 across calls; the environment may have been moved in the interim,
384 making the original result invalid on any subsequent call. Also,
385 prefer MS-Windows style (with backslashes) for default.
386 (pkgLastRites): Report full path name for lastrites.exe, on execl()
387 failure, rather than only the path relative to $APPROOT.
389 2012-02-20 Keith Marshall <keithmarshall@users.sourceforge.net>
391 Propagate sysroot path settings to scripts via the environment.
393 * src/pkgbase.h (PKG_PUTENV_FLAGS_MASK): New constant; it maps...
394 (PKG_PUTENV_DIRSEP_MSW, PKG_PUTENV_DIRSEP_POSIX): ...these flags...
395 (PKG_PUTENV_SCAN_VARNAME, PKG_PUTENV_NAME_TOUPPER): ...and these;
396 they are used to specify optional behavioural choices for...
397 (pkgPutEnv): ...this new function; declare it.
399 * src/sysroot.cpp (pkgPutEnv): Implement it.
400 (pkgXmlDocument::LoadSystemMap): Use it to add $SUBSYSTEM_SYSROOT path
401 specifications to the environment, for each named subsystem associated
402 with the active system map.
404 * src/pkgexec.cpp (pkgActionItem::Execute): Invoke pkgPutEnv() prior
405 to processing of each package install, upgrade, or remove action, so
406 as to update environment variable $SYSROOT to represent the sysroot
407 path for each package processed, during execution of script hooks.
409 2012-02-17 Keith Marshall <keithmarshall@users.sourceforge.net>
411 Implement hooks to support lua scripting interface.
413 * Makefile.in (LIBS): Add -llua.
415 * src/pkgbase.h (pkgXmlNode::InvokeScript): New method; declare it
416 as private, and provide overloaded public inline API implementation.
417 (pkgXmlNode::DispatchScript): New private method; declare it.
419 * src/pkgexec.cpp (pkgXmlNode::InvokeScript): Implement it.
420 (pkgXmlNode::DispatchScript): Likewise; it directs InvokeScript to...
421 (pkgInvokeScript): ...this new static function; implement it.
423 * src/pkginst.cpp (pkgInstall): Call InvokeScript as appropriate.
424 * src/pkgunst.cpp (pkgRemove): Likewise.
426 2011-11-24 Keith Marshall <keithmarshall@users.sourceforge.net>
428 Avoid implicit cast warnings; reported by Robert Hartmann.
430 * src/dmh.h (DMH_BEGIN_DIGEST): Explicitly cast to uint16_t.
431 (DMH_END_DIGEST): Likewise.
433 2011-11-09 Keith Marshall <keithmarshall@users.sourceforge.net>
435 Avoid unnecessary downloads for already installed packages.
437 * src/pkginet.cpp (pkgActionItem::DownloadSingleArchive): Require
438 external scheduling of ACTION_DOWNLOAD; cancel the scheduled request
439 on completion, or when not required due to pre-existing local copy.
441 * src/climain.cpp (pkgActionItem::GetSourceArchive): Must always be
442 prepared to download the associated archive; enable ACTION_DOWNLOAD.
444 * src/pkgexec.cpp (pkgActionItem::Schedule) [OPTION_REINSTALL]:
445 May need to download the archive, even when the requested package was
446 previously installed; schedule ACTION_DOWNLOAD to enable this.
448 * src/pkgdeps.cpp (promote): Macro redefined in terms of...
449 (with_flags, with_download): ...these new macros; implement and...
450 (pkgXmlDocument::ResolveDependencies): ...use them to enable/schedule
451 ACTION_DOWNLOAD only when expected that it may be necessary.
453 2011-11-06 Keith Marshall <keithmarshall@users.sourceforge.net>
455 Fix packaging anomalies for source and licence distributions.
457 * Makefile.in (licdist): Link README from ${CURDIR}, not from '..'.
458 (srcdist): Explicitly link pkginfo.c from ${CURDIR} to src/pkginfo,
459 rather than as implied prerequisite; this avoids a bogus attempt to
460 link srcdist-doc into src/pkginfo.
462 2011-11-06 Keith Marshall <keithmarshall@users.sourceforge.net>
464 Bump version number for subsequent CVS snapshots.
466 * configure.ac (AC_INIT): Set version to 0.4-alpha-1.1cvs
468 2011-11-06 Keith Marshall <keithmarshall@users.sourceforge.net>
470 mingw-get-0.4-mingw32-alpha-1 released.
472 * configure.ac (AC_INIT): Adjust version number.
473 * srcdist-doc/NEWS.in: Updated; document new features and bugs fixed.
474 * All files (r0-4-alpha-1): Tag assigned.
476 2011-11-04 Keith Marshall <keithmarshall@users.sourceforge.net>
478 Don't upgrade installed DLL components to incompatible version.
479 Provide clearer diagnostics for failed requests on implied packages.
481 * src/pkgdeps.cpp (is_abi_compatible): New static inline function.
482 (pkgXmlDocument::ResolveDependencies) [is_installed]: Use it.
483 (pkgXmlDocument::ResolveDependencies) [DEBUG_TRACE_DEPENDENCIES]:
484 Clean up and improve diagnostic message content and formatting.
485 (pkgXmlDocument::Schedule) [(upgrade || remove) && ! installed]:
486 Downgrade diagnostic to WARNING, for implicitly specified component
487 packages; provide additional explanatory diagnostics.
489 * src/pkgspec.cpp (pkgSpecs::VersionComparator):
490 * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit):
491 [DEBUG_TRACE_DEPENDENCIES]: Eliminate diagnostic noise.
493 2011-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
495 Fix --download-only vs. --reinstall conflict.
497 * src/pkgexec.cpp (pkgActionItem::Execute) [OPTION_DOWNLOAD_ONLY]:
498 Test for explicit inequality, rather than equality to zero; since the
499 2011-08-30 update, which made --download-only also imply --reinstall,
500 it will test as non-zero when --reinstall is specified, even though
501 --download-only is not.
503 2011-10-07 Keith Marshall <keithmarshall@users.sourceforge.net>
505 Add support for non-specific upgrade of all installed packages.
507 * src/pkgbase.h (pkgXmlDocument::RescheduleInstalledPackages):
508 New public method; declare it.
510 * src/pkgdeps.cpp (pkgXmlDocument::RescheduleInstalledPackages):
513 * src/climain.cpp (climain) [ACTION_UPGRADE && argc < 2]: Invoke
514 pkgXmlDocument::RescheduleInstalledPackages() to schedule the upgrade
515 request for all packages currently registered as installed.
517 2011-10-06 Keith Marshall <keithmarshall@users.sourceforge.net>
519 Implement "source" and "licence" operations.
521 * src/pkgopts.h (OPTION_ALL_DEPS): New option code; define it.
522 * src/clistub.c (main): Associate it with...
523 (all-related, recursive): ...these synonymous option names...
524 (options): ...defined within this local structured array.
525 (help_text): Document them; also document "source" and "licence" as
526 new operations which may be specified on the command line.
528 * src/pkgtask.h (action_source, action_licence): Enumerate them.
529 (ACTION_SOURCE, ACTION_LICENCE): Define their manifest values, and...
530 * src/pkgexec.cpp (action_name): ...associate with operation names.
532 * src/pkgbase.h (pkgActionItem::GetScheduledSourceArchives):
533 (pkgActionItem::GetSourceArchive, pkgXmlDocument::GetSourceArchive):
534 New public methods; declare them for external implementation.
535 (pkgXmlDocument::GetScheduledSourceArchives): New public method;
536 implement it as inline.
538 * src/climain.cpp (pkgProcessedArchives): New pointer to stack of...
539 (pkgArchiveNameList): ...this new locally defined class; implement it.
540 (pkgActionItem::GetSourceArchive, pkgXmlDocument::GetSourceArchive):
541 (pkgActionItem::GetScheduledSourceArchives): Implement them.
542 (climain): Add invocation hooks.
544 2011-10-04 Keith Marshall <keithmarshall@users.sourceforge.net>
546 Establish mapping from release tarname to source tarname.
548 * src/pkgreqs.cpp (inherited_requirement): New inline function.
549 (requirement): Use it; adapt to propagate release archive format and
550 compression type fields, in addition to version fields, when resolving
551 "%" wildcard matches within the template for the resultant tarname.
552 (pkgAssociateName): New public function; implement it for use by...
553 * src/pkgname.cpp (pkgResolvedName): ...this new inline function.
554 (pkgXmlNode::SourceArchiveName): Use it; adapt to accept a category
555 selector, so it may resolve source or licence tarnames on demand.
557 * src/pkgbase.h (pkgXmlNode::SourceArchiveName): Modify declaration;
558 add category selector argument to support source/licence choice.
560 2011-10-02 Keith Marshall <keithmarshall@users.sourceforge.net>
562 Facilitate downloads using diverse cache directories.
564 * src/pkgbase.h (pkgActionItem::DownloadSingleArchive): New private
565 method; declare it; it handles the download for a single named archive
566 file, and stores it in a specifed cache directory.
568 * src/pkginet.cpp (pkgActionItem::DownloadSingleArchive): Implement
569 it; factor its code from the original implementation within...
570 (pkgActionItem::DownloadArchiveFiles): ...this; adapt to use it.
572 2011-10-02 Keith Marshall <keithmarshall@users.sourceforge.net>
574 Establish cache directory for source archive downloads.
576 * src/mkpath.h (pkgSourceArchivePath): New function; declare it.
577 * src/mkpath.c (pkgSourceArchivePath): Implement it.
579 2011-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
581 Support archive extraction to arbitrary destination without install.
583 * src/pkgproc.h (pkgArchiveProcessor::ExtractFile): New virtual
584 helper method for use, as core helper, by derived classes; declare it.
585 (pkgArchiveProcessor::CreateExtractionDirectory): Likewise.
586 (pkgTarArchiveProcessor): Declare overloaded default constructor.
587 (pkgTarArchiveExtractor): New class definition; it is derived from
588 pkgTarArchiveProcessor.
590 * src/tarproc.cpp (pkgArchiveProcessor::ExtractFile): Implement it.
591 (pkgArchiveProcessor::CreateExtractionDirectory): Likewise.
592 (pkgTarArchiveExtractor): Implement constructor, together with...
593 (pkgTarArchiveExtractor::ProcessDirectory): ...this method, and also...
594 (pkgTarArchiveExtractor::ProcessDataStream): ...this one; these are
595 declared as abstract, in the pkgTarArchiveProcessor base class.
596 (pkgTarArchiveInstaller::ProcessDirectory): Simplify; it now delegates
597 directory creation to pkgArchiveProcessor::CreateExtractionDirectory.
598 (pkgTarArchiveInstaller::ProcessDataStream): Simplify; delegate file
599 handling to pkgArchiveProcessor::ExtractFile, as appropriate.
601 2011-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
603 Make --download-only and --print-uris imply --reinstall.
605 * src/pkgopts.h (OPTION_PRINT_URIS): Adjust definition.
606 (OPTION_DNLOAD_ONLY, OPTION_DOWNLOAD_ONLY): Likewise.
608 2011-08-07 Keith Marshall <keithmarshall@users.sourceforge.net>
610 Implement --download-only and --print-uris options.
612 * src/pkgopts.h (OPTION_DOWNLOAD_ONLY, OPTION_PRINT_URIS):
613 New manifest constants, identifying flag bits; define them.
614 (OPTION_DNLOAD_ONLY): Likewise; an alias for OPTION_DOWNLOAD_ONLY.
616 * src/pkgbase.h (pkgActionItem::PrintURI): New private method.
617 * src/pkginet.cpp: Implement it.
619 * src/clistub.c (options): Add "download-only" and "print-uris".
620 (help_text): Document them.
621 * src/pkgexec.cpp (pkgActionItem::Execute): Process them.
623 2011-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
625 mingw-get-0.3-mingw32-alpha-2.1 released.
627 * configure.ac (AC_INIT): Adjust version number.
628 * srcdist-doc/NEWS.in: Updated; document bugs fixed.
629 * All files (r0-3-alpha-2-1): Tag assigned.
631 2011-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
633 Adopt tar.xz as default package archive format.
635 * Makefile.in (TARZIP, TAREXT): New macros; define them.
636 (bindist, licdist, srcdist): Use them in place of hardcoded tar.gz
637 (maintainer-clean): Expunge tar files of any compression format.
639 2011-07-27 Keith Marshall <keithmarshall@users.sourceforge.net>
641 Correct handling of release status in requirements specifications.
643 * src/debug.h (DEBUG_TRACE_DEPENDENCIES): New tracing hook; define it.
644 * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit): Use it; add
645 function entry/exit tracing report hooks.
646 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): Likewise;
647 also add internal trace point reporting, which may also require...
648 (show_required): ...this new static inline DEBUG_INVOKED function.
650 * src/pkgreqs.cpp (requirement): Propagate release status and release
651 reference index fields from requirer, when package version requirement
652 is specified by a '%' token, and no explicit release status override
653 is included in the requirement specification.
655 * src/pkgspec.cpp (is_wildcard_spec): New static inline helper.
656 (pkgSpecs::VersionComparator): Use it to identify any package version
657 specification which may require the extension of a wildcard match, to
658 span the package version and release status fields; also add tracing
659 hooks, triggered on DEBUG_TRACE_DEPENDENCIES, to facilitate debugging.
661 2011-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
663 Avoid accidental RCS keyword substitutions.
665 * Makefile.in (DOLLAR): New macro; define it.
666 (readme.txt, readme.txt.in): Use it, where unexpanded RCS Id keyword
667 matching is intended.
669 2011-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
671 Mercurial support revisited.
673 * .cvsignore (.hgtags): Add to CVS untracked list.
675 2011-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
677 Update readme.txt ID tag-line to track NEWS rather than README.
679 * Makefile.in (readme.txt.in): New rule; implement it.
680 (readme.txt.tag): Likewise; this implements the tag-line tracking.
681 (readme.txt): Rule redefined in terms of the preceding pair.
683 2011-06-17 Keith Marshall <keithmarshall@users.sourceforge.net>
685 mingw-get-0.3-mingw32-alpha-2 released.
687 * configure.ac (AC_INIT): Adjust version number.
688 * srcdist-doc/NEWS.in: Updated; document new features and bugs fixed.
689 * All files (r0-3-alpha-2): Tag assigned.
691 2011-06-15 Keith Marshall <keithmarshall@users.sourceforge.net>
693 Add internal documentation for --reinstall option.
695 * src/clistub.c (help_text): Add description for "--reinstall".
697 2011-06-14 Keith Marshall <keithmarshall@users.sourceforge.net>
699 Support use of Mercurial within a CVS working copy.
701 * .cvsignore (.hg, .hgignore): Don't have CVS track these.
703 2011-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
705 Implement --reinstall option.
707 * src/pkgopts.h (OPTION_REINSTALL): New macro; define it.
708 (OPTION_GENERIC, OPTION_SHIFT_MASK): Likewise.
709 (OPTION_EXTRA_FLAGS): New field; declare it.
711 * src/clistub.c (options): Add "reinstall".
712 (OPTION_GENERIC): Use it where appropriate; within its scope...
713 (OPTION_STORAGE_CLASS): Improve descriptive comments; add handling for
714 default case of flag type options requiring an alignment shift.
716 * src/pkgexec.cpp: Remove previous "always reinstall" kludge.
717 (pkgOptionSelected, PKG_OPTION_REINSTALL): Remove obsolete macros.
718 (pkgActionItem::Execute): Check for "upgrade" request on any package
719 which is already up to date; report this state, otherwise...
720 [OPTION_REINSTALL || ACTION_UPGRADE]: Mark package as "removed", to
721 avoid bail-out on "package already installed", when calling...
722 (pkgInstall): ...this.
724 2011-06-12 Keith Marshall <keithmarshall@users.sourceforge.net>
726 Don't require -vv to report progress of update operation.
728 * src/pkgbind.cpp (pkgRepository::GetPackageList): Eliminate all
729 basename() calls; `dname' already tells us what it should return.
730 [update]: Report progress, irrespective of verbosity setting.
732 2011-06-11 Keith Marshall <keithmarshall@users.sourceforge.net>
734 Fix MinGW-Bug #3313806.
736 * src/pkginfo/pkginfo.l (CMS_KEYWORDS): Do not match them within the
737 PACKAGE_NAME field; this avoids misinterpretation as a release status
738 qualifier when intended as part of the package name, as in msys-cvs.
740 2011-06-07 Keith Marshall <keithmarshall@users.sourceforge.net>
742 Provisional correction for MinGW-Bug #3309438.
744 * src/debug.h [DEBUGLEVEL == 0]: Provide defaults for...
745 (DEBUG_ENABLED, DEBUG_REQUEST): ...these macros.
747 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDirectory):
748 (pkgTarArchiveInstaller::ProcessDataStream): Use DEBUG_REQUEST to
749 enable runtime trace activation for previous compile time choices.
751 2011-05-30 Keith Marshall <keithmarshall@users.sourceforge.net>
753 mingw-get-0.3-mingw32-alpha-1 released.
755 * configure.ac (AC_INIT): Adjust version number.
756 * srcdist-doc/NEWS.in: Updated; document new features.
757 * All files (r0-3-alpha-1): Tag assigned.
759 2011-05-30 Keith Marshall <keithmarshall@users.sourceforge.net>
761 Support assignment of DEBUGLEVEL at configure time.
763 * configure.ac (DEBUGLEVEL): Declare as a precious variable, using
764 AC_ARG_VAR; also declare with AC_SUBST, to ensure it is initialised.
766 * Makefile.in (DEBUGLEVEL): Let AC_SUBST assign it.
768 2011-05-29 Keith Marshall <keithmarshall@users.sourceforge.net>
770 Work around bugs in MinGW and GNU getopt_long_only() implementations.
772 * src/getopt.c: New file; this is a free-standing replacement for any
773 implementation provided by system libraries. We will always use this
774 to ensure correct operation irrespective of system bugs; (different
775 bug manifestations have been identified in the stock MinGW and GNU
778 * Makefile.in (mingw-get.EXEEXT): Use it.
780 * src/clistub.c (options): Remove redundant declaration of `-v' as a
783 2011-05-29 Keith Marshall <keithmarshall@users.sourceforge.net>
785 Implement user selection of traceable features at run-time.
787 * src.pkgopts.h (OPTION_VERBOSE_MAX): New macro; define it.
789 * src/debug.h (DEBUG_ENABLED): New macro; define it.
790 (DEBUG_REQUEST, DEBUG_REQUEST_FLAGS, DEBUG_TRACE_DYNAMIC): Likewise.
792 * src/clistub.c (main) [--trace]: Don't make it available unless...
793 [DEBUG_ENABLED(DEBUG_TRACE_DYNAMIC)]: ...this is set (at compile-time).
794 [--verbose]: Limit to OPTION_VERBOSE_MAX, using...
795 (atmost): ...this new macro; define it.
796 (options): Declare `-v' as both long and short form, pending bug fix
797 in MinGW's getopt_long_only() implementation.
799 * src/pkginet.cpp (pkgInternetAgent::OpenURL): Use DEBUG_REQUEST.
800 (pkgInternetLzmaStreamingAgent::TransferData): Likewise.
801 (pkgInternetStreamingAgent::TransferData): Likewise.
802 (pkgInternetStreamingAgent::Get): Likewise.
804 * src/pkgunst.cpp (pkgActionItem::SetAuthorities): Use DEBUG_REQUEST.
805 (pkg_rmdir, pkg_unlink): Likewise.
807 * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Use DEBUG_REQUEST.
809 2011-05-21 Keith Marshall <keithmarshall@users.sourceforge.net>
811 Implement protocol for processing global program options.
813 * src/pkgopts.h: New file.
815 * src/climain.cpp (cli_setopts): New function; implement it.
816 (pkgOptions): Likewise.
818 * src/clistub.c (xatoi): New function; implement it.
819 (cli_setargv): New inline helper function; implement it.
820 (main): Use it. Also incorporate implementation of...
821 (parsed_options): New structure; it accommodates...
822 (verbose, trace): New options; interpret them, and...
823 (help_text): ...document them.
825 * src/pkgbind.cpp (pkgRepository::GetPackageList): Make catalogue
826 loading notifications and progress reports conditional on...
827 [OPTION_VERBOSE > 1]: ...this.
829 2011-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
831 Augment known development status keywords and accept CMS labels.
833 * src/pkginfo/pkginfo.l (CMS_KEYWORDS): Define new provisional list;
834 add transitional state scanner rule and code to interpret them.
835 (STATUS_KEYWORDS): Add "pre" and "rc" to existing list; modify scanner
836 code to maintain consistency with CMS_KEYWORDS processing; also extend
837 this coding strategy to other rules.
839 * src/pkginfo/driver.c (spec): Strip initial '$' token from displayed
840 field values; (we expect it only for a CMS_KEYWORDS field value).
842 * src/pkgreqs.cpp (pkgSpecs::GetTarName): Remove any initial '$' token
843 from PACKAGE_RELEASE_STATUS field, when performing reverse of tarname
844 decomposition transformation.
846 2011-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
848 Correct omission from 2011-02-18 commit.
850 * src/tarproc.cpp (Copyright Notice): Add 2011 as year of release.
852 2011-05-14 Keith Marshall <keithmarshall@users.sourceforge.net>
854 mingw-get-0.2-mingw32-alpha-4 released.
856 * configure.ac (AC_INIT): Adjust version number.
857 * srcdist-doc/NEWS.in: Updated; add bug-fix/feature descriptions.
858 * All files (r0-2-alpha-4): Tag assigned.
860 2011-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
862 Fix MinGW-Bug #3297660 (reported by Chris Sutcliffe).
864 * src/pkgbase.h (pkgActionItem::SetAuthorities): Return unsigned long.
865 (pkgActionItem::HasAttribute): New inline method; implement it.
867 * src/pkgtask.h (ACTION_DOWNLOAD, ACTION_DOWNLOAD_OK): New macros.
869 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles):
870 [ACTION_DOWNLOAD]: Assert it at commencement of each package download;
871 clear it again, on successful download completion.
873 * src/pkginst.cpp (pkgtask.h): #include it.
874 (pkgInstall) [ACTION_DOWNLOAD]: Don't proceed with installation when
875 set; this indicates failed download; diagnose it.
877 * src/pkgunst.cpp (pkgRemove) [ACTION_DOWNLOAD && ACTION_UPGRADE]:
878 Don't proceed with pre-emptive removal when both set; this indicates
879 failed download of replacement package; diagnose it.
881 2011-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
883 Fix MinGW-Bug #3295526 (reported by Charles Wilson).
885 * src/pkgunst.cpp (sys/stat.h): #include it; we need it for...
886 (pkg_unlink): ...chmod( file, S_IWRITE ), emulating `rm -f' semantics.
888 2011-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
890 Diagnose and aggressively retry failed download connections.
892 * src/debug.h (DEBUG_TRACE_INTERNET_REQUESTS): New macro; define it.
894 * src/pkginet.cpp (debug.h): #include it.
895 (pkgDownloadMeter): New abstract class; declare it and implement its
896 default (non-abstract) data and methods; derive...
897 (pkgDownloadMeterTTY): ...this new class from it; implement it...
898 (pkgInternetStreamingAgent::Get): ...and instantiate it (naively for
899 now), as associated pkgDownloadMeter object; add tracing diagnostic.
900 (pkgInternetAgent::OpenURL): Don't inline it; move implementation out
901 of line; add retry loops to aggressively retry failed connections.
902 (pkgInternetAgent::QueryContentLength): New method; implement it.
903 (pkgInternetStreamingAgent::TransferData): Avoid Microsoft specific
904 data type `DWORD'; prefer equivalent standard `unsigned long'. Add
905 tracing diagnostic. Remove progress diagnostic; replace it with an
906 `Update' request to associated pkgDownloadMeter.
907 (pkgInternetLzmaStreamingAgent::GetRawData): Avoid `DWORD' data type.
908 (pkgInternetLzmaStreamingAgent::TransferData): Likewise; add tracing
909 diagnostic on failure.
911 2011-03-31 Keith Marshall <keithmarshall@users.sourceforge.net>
913 mingw-get-0.2-mingw32-alpha-3 released.
915 * configure.ac (AC_INIT): Adjust version number.
916 * srcdist-doc/NEWS.in: Updated; add bug-fix description.
917 * All files (r0-2-alpha-3): Tag assigned.
919 2011-03-30 Keith Marshall <keithmarshall@users.sourceforge.net>
921 Provisional handling for http proxy authentication.
922 (Adapted from patch by Scott Michel <pingbak@users.sourceforge.net>)
923 (ref: MinGW-Patch #3158453)
925 * src/pkginet.cpp: Several format/layout adjustments; add comments.
926 Eliminate several instances of Microsoft specific typedef nastiness.
927 (dmh_dialogue_context): New macro; kludge definition to support...
928 (pkgInternetAgent::OpenURL) [HTTP_STATUS_PROXY_AUTH_REQ]: Detect
931 2011-03-30 Keith Marshall <keithmarshall@users.sourceforge.net>
933 Expand macros in path names for files and directories to be removed.
935 * src/pkgunst.cpp (pkgRemove): Format sysroot as a template, so...
936 (pkg_rmdir, pkg_unlink): ...are able to use mkpath() to construct the
937 full path name for each file or directory to be removed.
939 2011-03-29 Keith Marshall <keithmarshall@users.sourceforge.net>
941 Correct defective activation logic for some debugging hooks.
943 * src/pkgunst.cpp (pkg_rmdir, pkg_unlink) [DEBUG_INVOKE_IF]:
944 (pkgActionItem::SetAuthorities) [DEBUG_INVOKE_IF]: Use bit-wise `&'
945 operator, not `&&', to evaluate DEBUGLEVEL state.
947 2011-03-22 Keith Marshall <keithmarshall@users.sourceforge.net>
949 Avoid Unicode hyphens in generated ASCII document files.
951 * Makefile.in (NROFF): New macro; define it to invoke `nroff -Tascii'.
952 (%.dist, readme.txt): Use it to ensure that output is pure ASCII.
954 2011-03-15 Keith Marshall <keithmarshall@users.sourceforge.net>
956 mingw-get-0.2-mingw32-alpha-2 released.
958 * configure.ac (AC_INIT): Adjust version number.
959 * srcdist-doc/NEWS.in: Updated; add bug-fix description.
960 * All files (r0-2-alpha-2): Tag assigned.
962 2011-03-15 Keith Marshall <keithmarshall@users.sourceforge.net>
964 Fix MinGW-Bug 3212246.
966 * src/keyword.c (has_keyword): Avoid incrementing the comparison
967 pointers when a significant character in one string is not matched in
968 the other; previously the pointers were left pointing one character to
969 the right of the mismatch, and this was overlooked if the mismatch
970 occurred at the rightmost character in both strings.
972 2011-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
974 mingw-get-0.2-mingw32-alpha-1 released.
976 * configure.ac (AC_INIT): Set version number; correct capitalisation
977 in URI reference to bug reporting instructions.
979 * srcdist-doc/NEWS.in: Confirm release date.
980 [bug reporting]: Remove redundant paragraph; the information is
981 provided, via reference to mingw.org. in the README and INSTALL files.
983 * All files (r0-2-alpha-1): Tag assigned.
985 2011-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
987 * srcdist-doc/INSTALL.in [building]: Qualify liblzma.a requirement;
988 add earliest acceptable snapshot release date.
990 2011-03-11 Keith Marshall <keithmarshall@users.sourceforge.net>
992 Remove unused 7zip and boost source code from CVS trunk.
994 * 7z: Directory and all content removed.
997 2011-03-11 Keith Marshall <keithmarshall@users.sourceforge.net>
999 Refactor and update existing installation and usage instructions.
1001 * src/clistub.c (help_text): Updated.
1003 * srcdist-doc: New directory.
1005 * README: Deleted; its content refactored into...
1006 * srcdist-doc/README.in srcdist-doc/INSTALL.in srcdist-doc/NEWS.in:
1007 ...these new template files, updated for current development state.
1009 * srcdist-doc/gendoc.sed.in: New sed script; it directs formatting of
1010 generated text files derived from the srcdist-doc templates.
1012 * Makefile.in (SRCDIST_SUBDIRS): Add srcdist-doc.
1013 (SRCDIST_FILES): Add NEWS and INSTALL.
1014 (srcdist-doc): New build rule to generate README, NEWS and INSTALL.
1015 (srcdist, licdist): Adjust path to locate them.
1016 (readme.txt): New build rule to generate on-line package description.
1018 (distclean): Don't remove Makefile...
1019 (maintainer-clean): ...but do it here instead. Also remove generated
1020 README, NEWS and INSTALL, the autom4te cache, and all distributable
1021 zip files, in addition to tarballs, for the current version.
1023 2011-02-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1025 Initial implementation for "remove" feature.
1027 * src/pkgbase.h: Update copyright notice; add current year.
1028 (pkgActionItem::SetPrimary): New inline public method; declare it.
1029 (pkgActionItem::SetAuthorities): New public method; declare it.
1031 * src/pkgtask.h (ACTION_PREFLIGHT, ACTION_REMOVE_OK): New defines.
1033 * src/pkgproc.h: Update copyright notice; add current year.
1034 (pkgManifest::GetSysRootReference): New public method; declare it.
1035 (pkgManifest::GetRoot): New inline method; declare and implement it.
1036 (pkgManifest::DetachSysRoot): Argument type changed to const char*.
1037 (pkgRemove): New extern "C" function; declare it.
1039 * src/pkgexec.cpp (pkgActionItem::SetPrimary): Implement it, and...
1040 (pkgXmlDocument::Schedule): ...use it to promote actions on all user
1041 specified packages, as listed on the command line, to primary status.
1042 (pkgActionItem::Execute): Repeatedly invoke...
1043 (pkgActionItem::SetAuthorities): ...this; incorporate call of...
1044 (pkgActionItem::DownloadArchiveFiles): ...this, within the loop, so
1045 that we retry failed downloads at least a second time.
1046 [ACTION_REMOVE]: Delete stub; invoke pkgRemove().
1048 * src/pkgunst.cpp: New file.
1049 (pkgActionItem::SetAuthorities): Implement it.
1050 (pkgManifest::GetSysRootReference): Implement it.
1051 (pkgManifest::DetachSysRoot): Implement it per new declaration.
1052 (pkgRemove): Implement it.
1054 * Makefile.in (CORE_DLL_OBJECTS): Add pkgunst.OBJEXT
1056 2011-02-26 Keith Marshall <keithmarshall@users.sourceforge.net>
1058 Work-around for improper stderr buffering in MSYS mintty and rxvt.
1059 (Merged from r0-1-alpha-5 branch).
1061 * src/dmh.cpp (dmhTypeTTY::emit_and_flush): New private method.
1062 (dmhTypeTTY::printf, dmhTypeTTY::notify): Use it to force an fflush()
1063 after each output record is written to stderr.
1065 * README: Update as appropriate.
1067 2011-02-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1069 Tidy up some debugging hooks.
1071 * src/debug.h (DEBUG_INVOKED): New macro; define it.
1072 (DEBUG_INVOKE_IF): Likewise; this takes arguments providing for
1073 conditional invocation of code when DEBUGLEVEL is non-zero; make it
1074 expand to nothing, when DEBUGLEVEL is zero.
1075 (DEBUG_TRACE_INIT): Redefined macro; value changed to 0x0010.
1076 (DEBUG_TRACE_TRANSACTIONS, DEBUG_SUPPRESS_INSTALLATION):
1077 (DEBUG_UPDATE_INVENTORY): New macros; define them.
1079 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDirectory):
1080 (pkgTarArchiveInstaller::ProcessDataStream): Refactor debugging hooks;
1081 implement them in terms of DEBUGLEVEL, with reference to...
1082 (DEBUG_SUPPRESS_INSTALLATION, DEBUG_UPDATE_INVENTORY): ...these.
1084 2011-02-15 Keith Marshall <keithmarshall@users.sourceforge.net>
1086 Make package version comparisons more robust.
1088 Fixes an issue reported by Chris Sutcliffe: previously, version
1089 comparisons were evaluated solely on the basis of differences in the
1090 package version field itself. Henceforth, if this field compares as
1091 equal, then the comparison is extended to also consider differences
1092 between development phase qualifiers, and, if these too compare as
1093 equal, to differences in the target subsystem version fields.
1095 * src/pkginfo/pkginfo.h (pkgSpecs::VersionComparator): New private
1098 * src/pkgspec.cpp (pkgSpecs::VersionComparator): Implement it.
1099 (pkgSpecs::operator<, pkgSpecs::operator<=, pkgSpecs::operator>=):
1100 (pkgSpecs::operator>): Use it, replacing...
1101 (version): ...this static function; now unreferenced; delete it.
1103 * src/vercmp.h (pkgVersionInfo::pkgVersionInfo): Make it inline; it
1104 now delegates the entire class construction operation to...
1105 (pkgVersionInfo::Parse): ...this new private method; declare it. This
1106 is also used to facilitate implementation of...
1107 (pkgVersionInfo::Reset): ...this new inline method, also requiring...
1108 (pkgVersionInfo::FreeAll): ...this new inline method; also now used by
1109 the class destructor, it encapsulates separate calls to...
1110 (pkgVersionInfo::Free): ...this original inline method, renamed...
1111 (pkgVersionInfo::FreeEntry): ...as this.
1113 * src/vercmp.cpp (pkgVersionInfo::Parse): Implement it.
1115 2011-02-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1117 Merge from mingw-get-0.1-mingw32-alpha-5 bug-fix branch.
1119 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): Promote
1120 "install" action on new prerequisites, where a previously uninstalled
1121 package is required to satisfy any "upgrade" dependency.
1123 * src/pkgexec.cpp (pkgActionList::Execute): Don't make misleading
1124 claims concerning package removal.
1126 * src/pkgtask.h (STRICTLY_GT, STRICTLY_LT, ACTION_PRIMARY): Add one
1127 level of parentheses around defining expressions.
1129 2011-02-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1131 Publish mingw-get-0.0-mingw32-alpha-5.1 bug-fix release.
1133 * README: Updated to reflect changes.
1135 2011-02-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1137 Improve diagnostics for failed GUI invocation.
1139 * src/guimain.cpp: New file; currently delivers only a diagnostic
1140 stub, provided by Sze Howe Koh <axfangli@users.sourceforge.net>, to
1141 pop-up a message block explaining why GUI mode cannot be invoked.
1143 * Makefile.in (GUI_LDFLAGS): New macro; it is required by...
1144 (gui$EXEEXT): ...this new build rule; add to prerequisites of...
1145 (all): ...this [default] build rule; redefine this in terms of...
1146 (BIN_PROGRAMS, LIBEXEC_PROGRAMS, LIBEXEC_DATA): ...these new macros;
1147 define them, and also use them as loop iterator objectives for...
1148 (install, install_strip): ...these; also schedule them...
1149 (clean): ...for removal by this.
1151 * src/clistub.c (Copyright): Add new year.
1152 (main): Amend error message, if gui$EXEEXT doesn't start; make it
1153 more intelligible to normal users.
1155 2011-02-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1157 Correct omissions from packaged source tarball.
1159 * Makefile.in (Copyright): Add new year.
1160 (SRCDIST_FILES): Add aclocal.m4
1161 (SRCDIST_SUBDIRS): Add m4
1163 2011-01-05 Keith Marshall <keithmarshall@users.sourceforge.net>
1165 Reduce path names to base names, in some diagnostic message contexts.
1167 * src/climain.cpp: Update copyright notice for new year.
1168 (climain): Extract base name from argv[0], to pass as program name tag
1169 in initialisation of diagnostic message handler.
1171 * src/dmh.h, src/dmh.cpp: Update copyright notices; make some layout
1172 adjustments, for more consistent formatting style.
1174 * src/pkgbind.cpp: Update copyright notice.
1175 (pkgRepository::GetPackageList): Reduce path names for catalogue files
1176 to their base names, when reporting them in diagnostic messages.
1178 2011-01-05 Keith Marshall <keithmarshall@users.sourceforge.net>
1180 Avoid a potential out-of-range action name look-up.
1182 * src/pkgdeps.cpp: Update copyright notice for new year.
1183 (pkgXmlDocument::Schedule): Mask action code with ACTION_MASK, to
1184 determine correct action name when diagnosing uninstalled package.
1186 2011-01-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1188 Make "install" and "remove" notifications symmetric.
1190 * configure.ac (AC_INIT): Bump version to "0.1-alpha-6cvs".
1191 (YEARS_OF_ISSUE): Add new year.
1193 * src/pkginst.cpp: Update copyright notice for new year.
1194 (pkgInstall): Add notification for package being installed.
1196 2010-12-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1198 Add preliminary CLI support for "list" and "show" actions.
1200 * src/pkgtask.h (ACTION_PRIMARY): New manifest constant; define it.
1201 (ACTION_LIST, ACTION_SHOW): Likewise; cast to enumerated values for...
1202 (action_list, action_show): ...these; define them.
1204 * src/pkgexec.cpp (action_name): Add defining text for...
1205 (action_list, action_show): ...these.
1207 * src/climain.cpp: Partially revert 2010-11-01 change...
1208 (climain) [! ACTION_UPDATE]: Reinstate original "if" block, moving
1209 the "switch" block within it, but without the ACTION_UPDATE case.
1210 [ACTION_LIST, ACTION_SHOW]: New "switch" cases; they invoke...
1211 (pkgXmlDocument::DisplayPackageInfo): ...this new method.
1213 * src/pkgbase.h (pkgXmlDocument::DisplayPackageInfo): Declare it.
1214 (pkgActionItem::ConfirmInstallationStatus): New method; declare it.
1215 (pkgXmlNode::GetSysRoot): Make declaration style consistent with
1216 others in the class; do not name arguments in the declaration.
1217 (pkgXmlNode::FindFirstAssociate): Likewise.
1218 (pkgXmlNode::FindNextAssociate): Likewise.
1220 * src/pkgshow.cpp: New file.
1221 (pkgXmlDocument::DisplayPackageInfo): Implement it.
1223 * src/pkgdeps.cpp (pkgMsgUnknownPackage): New extern "C" function;
1224 implement it temporarily, pending a future i18n reimplementation.
1225 (assert_installed): Drop "inline" attribute; leave it as "static".
1226 Set "tarname" correctly, to match the installed package version; (it
1227 previously incorrectly returned the latest available version).
1228 (pkgActionItem::ConfirmInstallationStatus): Implement it.
1229 (pkgXmlDocument::Schedule) [ACTION_PRIMARY]: Set as appropriate.
1230 (pkgXmlDocument::Schedule) [ACTION_REMOVE || ACTION_UPGRADE]: Complain
1231 if requested package is not recorded as having been installed.
1232 (pkgXmlDocument::ResolveDependencies) [! ACTION_INSTALL]: Do not
1233 invoke it recursively.
1235 * Makefile.in (pkgshow.$OBJEXT): Add reference.
1237 2010-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1239 Lay groundwork for implentation of additional actions.
1241 * src/climain.cpp (climain): Adjust indentation; replace `if' block...
1242 [action != ACTION_UPDATE]: ...with this default `switch' case, and...
1243 [action == ACTION_UPDATE]: ...this as explicit "do nothing" case.
1245 2010-10-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1247 mingw-get-0.1-mingw32-alpha-5 released.
1249 * configure.ac (AC_INIT): Bump version to 0.1-alpha-5.
1250 * README: Update release notes accordingly.
1251 * All files (r0-1-alpha-5): Tag assigned.
1253 2010-10-22 Keith Marshall <keithmarshall@users.sourceforge.net>
1255 Make pkgInitRites/pkgLastRites processing more robust;
1256 avoid a potential race condition in mingw-get-inst.
1258 * src/rites.c: Refactor conditional code to segregate execution of...
1259 [defined IMPLEMENT_INITIATION_RITES]: ...this into distinct phases.
1260 (PHASE_ONE_RITES, PHASE_TWO_RITES): Define constants to identify them.
1261 (do_init_rites): Renamed to...
1262 (invoke_rites): ...this; inline it.
1263 (pkgLastRites): Invoke it, to pre-empt rename action of...
1264 (lastrites.exe): ...this, subsequently exec()ed process.
1265 (perror): Issue more informative diagnostic on exec() failure.
1267 * src/clistub.c (IMPLEMENT_INITIATION_RITES): Stipulate as...
1268 (PHASE_ONE_RITES): ...this phase of implementation only.
1270 * src/pkgexec.cpp (IMPLEMENT_INITIATION_RITES): Define to provide...
1271 (PHASE_TWO_RITES): ...this phase of implementation, facilitated by...
1272 (self_upgrade_rites): ...this locally defined RITES_INLINE function.
1273 (pkgActionItem::Execute): Invoke it, in remove/install loop, while...
1274 [init_rites_pending]: ...new loop local variable remains true.
1276 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
1278 Fix packaging bug in -lic package.
1280 * Makefile.in (licdist): Use directory named
1281 "share", not "shared".
1283 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
1285 mingw-get-0.1-mingw32-alpha-4 released.
1287 * All files (r0-1-alpha-4): Tag assigned.
1289 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
1291 Add rudimentary help option.
1293 * README: Update release notes.
1295 * src/clistub.c: Add --help option.
1297 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
1299 Fix "mingw-get deletes itself" bug in last rites handling.
1301 * README: Add new release notes.
1303 * configure.ac: Bump version to 0.1-alpha-4.
1305 * src/dmh.h: If __cplusplus, include <exception> and
1306 declare dmh_exception class.
1308 * src/dmh.cpp (class dmh_exception): Implement.
1309 (abort_if_fatal): If DMH_FATAL, throw dmh_exception rather
1310 than calling exit().
1312 * src/climain.cpp (climain): Wrap entire function body in try/
1313 catch block. If dmh_exception is caught, return EXIT_FAILURE.
1315 * src/clistub.c (main): Capture return value of climain(). If
1316 non-zero, perform last rites and return EXIT_FAILURE.
1318 2010-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1320 mingw-get-0.1-mingw32-alpha-3 released.
1322 * README: Add new release notes.
1324 * All files (r0-1-alpha-3): Tag assigned.
1326 2010-08-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1328 Add runtime hooks to support self-upgrade for future releases.
1330 * src/rites.c: New file; compile it free-standing, to provide...
1331 (lastrites.exe): ...this helper application for context clean-up;
1332 alternatively, use it as an include file, with pre-definition of...
1333 (IMPLEMENT_INITIATION_RITES): ...this, to implement...
1334 (pkgInitRites, pkgLastRites): ...these inline functions.
1336 * src/clistub.c (main) [argc > 1]: Use them.
1337 (progname): New local variable within `main'; set it once, then use it
1338 instead of repeated references to `basename(*argv)' in diagnostics.
1339 (MINGW_GET_DLL, MINGW_GET_GUI): Relocate to `src/rites.c'.
1341 * src/debug.h (DEBUG_INHIBIT_RITES_OF_PASSAGE):
1342 (DEBUG_FAIL_FILE_RENAME_RITE, DEBUG_FAIL_FILE_UNLINK_RITE): New
1343 defines; they facilitate debugging of the src/rites.c code.
1345 * Makefile.in (lastrites$EXEEXT): New target; build as prerequisite...
1346 (all): ...of this primary target.
1347 (install, install-strip): Install it.
1348 (SRCDIST_FILES): Remove install-sh; it is now included in...
1349 (build-aux): ...this directory; add it to...
1350 (SRCDIST_SUBDIRS): ...this.
1352 2010-08-24 Keith Marshall <keithmarshall@users.sourceforge.net>
1354 Set default sysroots relative to mingw-get installation directory.
1356 * xml/profile.xml (system-map) [name == default]: For each of...
1357 [subsystem == mingw32]: ...set sysroot path to value of %R macro...
1358 [subsystem == msys]: ...and to its %R/msys/1.0 subdirectory.
1360 2010-08-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1362 Some dependency resolver enhancements and bug fixes.
1364 * src/pkgbase.h (pkgXmlNode::GetContainerAttribute): New method;
1367 * src/pkgdeps.cpp (pkgXmlNode::GetContainerAttribute): Implement it;
1368 it is used to retrieve package name attributes from the containing
1369 'package' element, when given a pointer to a 'release' element by...
1370 (assert_unmatched, assert_installed): ...these new static functions.
1371 (pkgXmlDocument::Schedule): Use them to reconstruct and register
1372 dependency reference data for previously installed packages which are
1373 no longer included in the distribution manifest.
1374 (pkgXmlDocument::ResolveDependencies): Fix a block nesting error;
1375 catch and diagnose unresolved dependencies; don't look beyond the XML
1376 document root node, (tinyxml error not caught?), when searching for
1377 requirements specified on container nodes.
1379 2010-08-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1381 Improve scheduling of package processing requests.
1383 * src/pkgexec.cpp (pkgXmlDocument::Schedule): Inspect entire `actions'
1384 list, when checking for duplicate package processing requests; decline
1385 to schedule any such duplicate, or any request which lacks a package
1388 2010-08-15 Keith Marshall <keithmarshall@users.sourceforge.net>
1390 Lay foundation for selective compilation of debugging code.
1392 * src/debug.h: New file...
1393 * src/sysroot.cpp: Include it.
1394 (pkgXmlDocument::LoadSystemMap): Make debugging output conditional...
1395 [DEBUGLEVEL & DEBUG_TRACE_INIT]: ...on this new debugging state.
1397 2010-08-15 Keith Marshall <keithmarshall@users.sourceforge.net>
1399 * src/pkgkeys.h: Typo in comment: file was previously identified as
1400 pkgkeys.c; corrected.
1402 2010-08-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1404 Improve diagnostics for invalid references to non-release XML nodes.
1406 * src/pkgkeys.h (value_unknown): New global string; declare it.
1407 * src/pkgkeys.c (value_unknown): Implement it.
1409 * src/pkgname.cpp (pkgArchiveName): Identify XML element type when
1410 diagnosing references to elements of types other than release; use...
1411 (value_unknown): ...this, as appropriate.
1413 2010-08-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1415 Guard against a potential buffer overrun.
1417 * src/pkgreqs.cpp (pkgSpecs::SetProperty): Allocate an additional
1418 byte to accommodate an extra field separator, when inserting a new
1419 data value into a previously empty field.
1421 2010-07-27 Cesar Strauss <cestrauss@gmail.com>
1423 Handle the GNU long name tar header format.
1425 * src/pkgproc.h (TAR_ENTITY_TYPE_GNU_LONGNAME): New manifest constant;
1427 (pkgTarArchiveProcessor::EntityDataAsString): New protected method;
1429 * src/tarproc.cpp: ...implement it.
1430 (pkgTarArchiveProcessor::Process): Before building the entry pathname,
1431 check for a GNU long name type header; when found, read pathname from
1432 the entry data area, before fetching the following header, from which
1433 to retrieve the associated entity data.
1435 2010-06-24 Keith Marshall <keithmarshall@users.sourceforge.net>
1437 Work around an autoconf bug (reported by Stefano Sabatini).
1439 * Makefile.in (VPATH): Use @top_srcdir@ instead of ${srcdir}; current
1440 autoconf incorrectly elides references to @srcdir@ and ${srcdir} when
1441 substituting within a VPATH specification for building `in-source'.
1442 Also, prefer colons to blanks as path name separators, for improved
1443 portability to non-GNU implementations of make; (recommendation by
1446 2010-06-24 Keith Marshall <keithmarshall@users.sourceforge.net>
1448 Include alias search, when matching component package name.
1450 * src/keyword.c (has_keyword): Rearrange argument declarations for
1451 more natural order; update all callers accordingly. Simplify; compare
1452 keyword to be matched with each successive candidate from match-list,
1453 character-by-character and in-place, so avoiding memory allocation
1454 for any local duplicate of the passed match-list; thus...
1455 (safe_strdup): ...this static function no longer required; delete it.
1456 (string.h): No references remain; do not include it.
1458 * src/pkgfind.cpp (pkgXmlNode::FindPackageByName): Augment component
1459 package name matching to include potential matches of the look-up name
1460 with trailing component name stripped off, when that matches the class
1461 name of an identified component package, and the initial substring of
1462 the look-up name, after stripping, matches any specified alias name
1463 for the containing package.
1465 2010-06-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1467 Address FIXME relating to identification of distributable files.
1469 * install-sh: Move to...
1470 * build-aux: ...this new directory.
1472 * Makefile.in (PACKAGE_DISTVERSION): Modify `sed' edit sequence; make
1473 it depend on, and ensure that it incorporates the expansion of...
1474 (PACKAGE_SUBSYSTEM): ...this new macro; defined as substitution of...
1475 (host_os): ...this autoconf variable, set by...
1477 * configure.ac (AC_CANONICAL_HOST): ...this; add it, requiring...
1478 (AC_CONFIG_AUX_DIR): ...`build-aux' directory reference, providing...
1480 * build-aux/config.guess, build-aux/config.sub: ...these new standard
1481 files; import them from the standard `build-aux' repository.
1483 2010-05-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1485 Bump version for next release cycle.
1487 * configure.ac (AC_INIT): Bump version suffix to alpha-3.
1489 2010-05-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1491 mingw-get-0.1-mingw32-alpha-2 released.
1493 * README: Add new release notes.
1495 * xml/profile.xml: Update to use default referencing for...
1496 (package-list.xml.lzma): ...this repository master catalogue.
1498 * All files (r0-1-alpha-2): Tag assigned.
1500 2010-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1502 Make provision to protect user's profile settings during upgrade.
1504 * Makefile.in (install): Remove `profile.xml'; replace it with...
1505 (install-profile): ...this new prerequisite installation goal; it
1506 renames the installed copy of `profile.xml' as `defaults.xml', within
1507 the installed package image.
1509 * src/pkgkeys.h (defaults_key): New key; declare it.
1510 * src/pkgkeys.c: Some cosmetic formatting (tabulation) adjustments.
1511 (defaults_key): Implement it; it refers to the `defaults.xml' file.
1513 * src/climain.cpp (climain): Check `profile_key' for accessibility of
1514 the `profile.xml' file; if [! R_OK] emit a diagnostic warning, fall
1515 back on `defaults_key', and attempt to load configuration from the
1516 distributed `defaults.xml' file.
1518 2010-05-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1520 Add preliminary support for future `-reinstall' option.
1522 * src/pkgexec.cpp (pkgActionItem::Execute) [ACTION_INSTALL]: Force
1523 installation if `-reinstall' option is selected, overriding state of
1524 any prior installation; temporarily assume that this option is always
1525 selected, to permit proper `upgrade' operation in the absence of any
1526 functional `uninstall' capability, and pending implementation of a
1527 mechanism for interpreting user specified options.
1529 2010-05-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1531 Correct handling for "%R" macro in relative sysroot path specs.
1533 * src/tarproc.cpp (pkgTarArchiveProcessor): In constructor, expand the
1534 sysroot path specification a second time, to capture the effect of any
1535 embedded macros, before computing the recorded `sysroot_len' value.
1537 2010-05-05 Keith Marshall <keithmarshall@users.sourceforge.net>
1539 Handle "%" wildcard matches in package and subsystem version strings.
1541 * src/pkgbase.h (pkgSpecs): Forward declare it.
1542 (pkgActionItem::~pkgActionItem): Declare explicit destructor.
1543 (pkgActionItem::SetRequirements): Add extra `pkgSpecs*' argument;
1544 update references, passing additional argument in...
1546 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): ...this.
1548 * src/pkgexec.cpp (pkgActionItem::~pkgActionItem): Implement it.
1549 (pkgActionItem::SetRequirements): Delete obsolete implementation.
1551 * src/pkginfo/pkginfo.h: Update copyright notice; add year 2010.
1552 (pkgSpecs::GetTarName): New public method; declare it.
1553 (pkgSpecs::SetProperty): New private method; declare it.
1554 (pkgSpecs::SetPackageName): New inline method; implement it.
1555 (pkgSpecs::SetPackageVersion, pkgSpecs::SetPackageBuild): Likewise.
1556 (pkgSpecs::SetSubSystemName, pkgSpecs::SetSubSystemVersion): Likewise.
1557 (pkgSpecs::SetSubSystemBuild, pkgSpecs::SetReleaseStatus): Likewise.
1558 (pkgSpecs::SetReleaseIndex, pkgSpecs::SetComponentClass): Likewise.
1559 (pkgSpecs::SetComponentVersion, pkgSpecs::SetPackageFormat): Likewise.
1560 (pkgSpecs::SetCompressionType): Likewise.
1562 * src/pkginfo/pkginfo.l: Update copyright notice; add year 2010.
1563 (TRANS): Interpret "%" as wildcard in version string matches.
1565 * src/pkgreqs.cpp: New file.
1566 (pkgActionItem::SetRequirements): Reimplement per new declaration;
1567 it now always allocates heap memory for requirements specifications.
1568 (pkgSpecs::GetTarName, pkgSpecs::SetProperty): Implement them.
1570 * Makefile.in (CORE_DLL_OBJECTS): Add `pkgreqs.$(OBJEXT)'.
1572 2010-04-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1574 Revert 2010-04-04 refactoring of tarproc.cpp and tarinst.cpp
1576 * src/tarinst.cpp: File removed; its content merged into...
1577 * src/tarproc.cpp: ...this; it cannot be cleanly separated out.
1579 * Makefile.in (tarinst.$OBJEXT): Remove reference.
1581 2010-04-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1583 Handle "*" wildcard matches in package and subsystem version strings.
1585 * src/vercmp.h (pkgVersionInfo::version_string): New private member
1586 variable; it stores a pointer to a dynamically allocated local copy of
1587 the invariant `version' argument, to facilitate correct parsing.
1588 (pkgVersionInfo::build_string): Likewise; it provides similar handling
1589 for the invariant `build' argument.
1590 (pkgVersionInfo::Free): New private inline method; it provides a NULL
1591 pointer safe wrapper, calling the C library `free()' function, (since
1592 some implementations are believed to be unsafe); it is used by...
1593 (pkgVersionInfo::~pkgVersionInfo): ...this new inline destructor, to
1594 release the memory allocated by the constructor, for `version_string'
1597 * src/vercmp.cpp (pkgVersionInfo::pkgVersionInfo): Allocate memory for
1598 `version_string' and `build_string', as required; populate it.
1599 Explicitly handle "*" as a `match anything' wildcard...
1600 (pkgVersionInfo::Compare): ...matching it as `equal' to everything.
1602 2010-04-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1604 Correct omission from configure script prerequisite checks.
1606 * aclocal.m4 (MINGW_AC_OUTPUT): New macro; it wraps AC_OUTPUT itself,
1607 adding a trap to force an abort if any preceding prerequisite check
1608 was handled by MINGW_AC_ASSERT_MISSING.
1610 * configure.ac: Qualify package component types, in prerequisite
1611 checks handled by MINGW_AC_ASSERT_MISSING; invoke MINGW_AC_OUTPUT
1612 in place of AC_OUTPUT.
1614 2010-04-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1616 Add configure script checks for prerequisite library headers.
1617 (Thanks to Cesar Strauss for proposing a rudimentary implementation).
1619 * aclocal.m4: New file; it does no more than include...
1620 * m4/missing.m4: ...this; new file incorporated from build-aux module.
1622 * configure.ac: Add AC_CHECK_HEADER assertions for...
1623 (zlib.h, bzlib.h, lzma.h): ...these; invoke MINGW_AC_ASSERT_MISSING in
1624 respect of each failing assertion.
1626 2010-04-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1628 Case-insensitive subsystem name matching revisited.
1630 * src/pkgfind.cpp (pkgXmlDocument::FindPackageByName): Use...
1631 (subsystem_strcmp): ...this to match subsystem names, instead of...
1632 (match_if_explicit): ...this.
1634 2010-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
1636 Enable recursive processing of repository package lists.
1638 * src/pkgbase.h (pkgXmlDocument::SyncRepository): Make it public.
1640 * src/pkgbind.cpp (pkgRepository): New locally defined and implemented
1641 class; it facilitates recursive loading and parsing of package lists,
1642 replacing much of the original non-recursive functionality within...
1643 (pkgXmlDocument::BindRepositories): ...this; use it.
1645 2010-04-04 Keith Marshall <keithmarshall@users.sourceforge.net>
1647 Implement installer function; use per-package file manifests.
1649 * src/pkgproc.h (pkgManifest): New class; declare it.
1650 (pkgArchiveProcessor::origin): New protected member variable.
1651 (pkgArchiveProcessor::sysroot_len): New protected member variable.
1652 (pkgArchiveProcessor::installed): Type changed to `pkgManifest *'.
1653 (pkgTarArchiveInstaller::Process): Declare specialisation hook.
1654 (pkgTarArchiveInstaller::UpdateInstallationManifest): Disused member
1655 function; remove redundant declaration from class definition.
1656 (pkgInstall): New generalised installation function; declare it.
1657 (pkgRegister): New function; declare it.
1659 * src/pkginst.cpp: New file.
1660 (pkgManifest, pkgInstall, pkgRegister): Implement them.
1662 * src/pkgexec.cpp (pkgActionItem::Execute): Use `pkgInstall' in place
1663 of stub formerly provided here.
1665 * src/pkgkeys.h (manifest_key, reference_key): New keys; declare them.
1666 * src/pkgkeys.c (manifest_key, reference_key): Implement them.
1668 * src/tarproc.cpp: Code refactored.
1669 (pkgTarArchiveProcessor::sysroot_len): Initialise it.
1670 (pkgTarArchiveProcessor::origin): Initialise it.
1671 (pkgTarArchiveProcessor::installed): Initialise; associate it with a
1672 pkgManifest class entity, and populate this as appropriate.
1673 (pkgTarArchiveProcessor::~pkgTarArchiveProcessor): Add explicit clean
1674 up of linked `pkgManifest *' entity referenced by `installed'.
1675 (pkgTarArchiveProcessor::Process) [TAR_ENTITY_TYPE_DIRECTORY]: Add
1676 braces to demarcate localised inner scope of string scan for removal
1677 of trailing directory name separators; (thanks to Cesar Strauss for
1678 reporting invalid local pointer declaration error in GCC >= 4.4).
1679 (pkgTarArchiveInstaller::UpdateInstallationManifest): Deleted.
1680 (pkgTarArchiveInstaller::pkgTarArchiveInstaller): Factor out.
1681 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
1682 (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
1683 (commit_saved_entity): Likewise.
1685 * src/tarinst.cpp: New file; it implements...
1686 (pkgTarArchiveInstaller::Process): ...this new specialisation
1687 of the original pkgTarArchiveProcessor::Process method...
1688 (pkgTarArchiveInstaller::pkgTarArchiveInstaller): ...and this
1689 refactored code, abstracted from src/tarproc.cpp and modified to
1690 use the pkgManifest class for installation tracking.
1691 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
1692 (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
1693 (commit_saved_entity): Relocated from src/tarproc.cpp.
1695 * Makefile.in (CORE_DLL_OBJECTS): Add...
1696 (pkginst.OBJEXT, tarinst.OBJEXT): ...these new object files.
1698 2010-03-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1700 Guard against NULL pointer dereferences in tinyxml code.
1702 * src/pkgbase.h (pkgXmlNode::GetName): Verify `this' pointer is
1703 non-NULL, before invoking the underlying tinyxml method.
1704 (pkgXmlNode::GetParent, pkgXmlNode::GetChildren): Likewise.
1705 (pkgXmlNode::GetNext, pkgXmlNode::GetPropVal): Likewise.
1706 (pkgXmlNode::AddChild, pkgXmlNode::DeleteChild): Likewise.
1707 (pkgXmlNode::GetDocumentRoot): Likewise.
1708 (pkgXmlNode::IsElementOfType): Likewise.
1710 2010-03-28 Cesar Strauss <cestrauss@gmail.com>
1712 Avoid running InternetAttemptConnect in pkgInternetAgent
1713 constructor, since it is called during DLL initialisation.
1715 * src/pkginet.cpp (pkgInternetAgent::pkgInternetAgent): Move the
1716 InternetAttemptConnect call from constructor...
1717 (pkgInternetAgent::OpenURL): ...to here.
1719 2010-03-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1721 Automate object code dependency tracking.
1723 * Makefile.in (DEPFLAGS): New macro; define it.
1724 (%.OBJEXT: %.c, %.OBJEXT: %.cpp): Add dependency generator commands...
1725 (%.d): ...to create these dependency maps; `sinclude' them, and...
1726 (clean): ...remove them.
1728 * .cvsignore (*.d): Add wild card template to match them.
1730 2010-03-22 Keith Marshall <keithmarshall@users.sourceforge.net>
1732 Support case insensitive matching for file and subsystem names.
1734 * src/pkgbase.h (safe_strcmp): New inline function; it provides NULL
1735 argument safe comparison of strings, returning the boolean inverse of
1736 the `strcmp' result, using either case-sensitive or case-insensitive
1737 semantics; derive it from...
1738 (match_if_explicit): ...this; redefine as macro; invoke `safe_strcmp'
1739 using explicitly case-sensitive semantics.
1740 (subsystem_strcmp): New macro; it invokes `safe_strcmp' with either
1741 case-sensitive or case-insensitive semantics, depending on...
1742 (CASE_INSENSITIVE_SUBSYSTEMS): ...this new context selection macro; it
1743 fixes the choice between case-sensitive and case-insensitive matching
1744 semantics for any given implementation, at compile time.
1745 (pkg_strcmp): New macro; it invokes `safe_strcmp' with either
1746 case-sensitive or case-insensitive semantics, depending on...
1747 (CASE_INSENSITIVE_FILESYSTEM): ...this new context selection macro; it
1748 fixes the choice between case-sensitive and case-insensitive matching
1749 semantics for any given implementation, at compile time.
1751 * src/sysroot.cpp (pkgXmlNode::GetSysRoot): Use `subsystem_strcmp'.
1753 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1755 Add preliminary support for virtual packages.
1757 * src/pkgkeys.h (yes_value, no_value): Redefine as aliases...
1758 (value_yes, value_no): ...for these new global strings; declare them.
1759 (value_none, value_virtual): New global strings; declare them.
1761 * src/pkgkeys.c (yes_value, no_value): Rename...
1762 (value_yes, value_no): ...to implement these, respectively.
1763 (value_none, value_virtual): Implement them.
1765 * src/pkgname.cpp (pkgXmlNode::ArchiveName): Check containing package
1766 node for `class' attribute set to `value_virtual'; if present, always
1767 return the effective `tarname' property as `value_none'.
1769 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): For packages
1770 with an effective `tarname' of `value_none', do not download anything.
1772 * src/pkgexec.cpp (pkgActionItem::Execute): For packages with an
1773 effective `tarname' of `value_none', do not invoke any tar archive
1774 processing function.
1776 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1778 Don't write installation records for unavailable packages.
1780 * src/tarproc.cpp (pkgTarArchiveInstaller): In constructor, ensure
1781 archive is ready for processing, before initialising an installation
1784 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1786 Rationalise path identification for XML file locations.
1788 * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Use `xmlfile()'
1789 function to locate `sysroot' map file; free memory when done.
1790 (pkgXmlDocument::UpdateSystemMap): Likewise.
1791 (sigpath): Static global variable disused; delete it.
1793 2010-03-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1795 Extend package name search to include component packages.
1797 * src/pkgfind.cpp (pkgHasMatchingName): Remove; fold it into...
1798 (pkgXmlNode::FindPackageByName): ...this; augment to extend search
1799 within package definition elements, seeking a potential match on an
1800 included component package name or component class-implied name.
1802 * src/pkgkeys.h (class_key): New global string constant; declare it.
1803 * src/pkgkeys.c (class_key): Implement it.
1805 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1807 Bump version for next release cycle.
1809 * configure.ac (AC_INIT): Bump version suffix to alpha-2.
1811 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1813 mingw-get-0.1-mingw32-alpha-1 released.
1815 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1817 Prepare initial package release.
1819 * README: New file; use it to source release notes.
1821 * Makefile.in (SRCDIST_FILES): Use ...
1822 (LICENCE_FILES): ...this new macro; define it.
1823 (licdist): New build goal; implement it.
1824 (bindist): Require it; add alternative `zip' format package.
1826 * xml/profile.xml (repository): Set default `package-index' name.
1827 (system-map): Normalise spelling for default `sysroot' path names.
1829 2010-02-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1831 Add directory/file records in installation manifests.
1833 * src/pkgkeys.h (dirname_key, filename_key): New strings; declare...
1834 * src/pkgkeys.c (dirname_key, filename_key): ...and implement them.
1836 * src/pkgproc.h (pkgArchiveProcessor::installed): New class member
1837 variable; declare it.
1838 (pkgTarArchiveInstaller::UpdateInstallationManifest): New method;
1841 * src/tarproc.cpp: Miscellaneous comment updates.
1842 (pkgTarArchiveInstaller): In constructor...
1843 (pkgTarArchiveInstaller::installed): ...use new member variable...
1844 (pkgArchiveProcessor::installed): ...inherited from this.
1845 (pkgTarArchiveInstaller::UpdateInstallationManifest): Implement and...
1846 (pkgTarArchiveInstaller::ProcessDataStream): ...use it.
1847 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
1849 2010-02-06 Keith Marshall <keithmarshall@users.sourceforge.net>
1851 Work around a deficiency in Microsoft's stat() implementation.
1853 * src/tarproc.cpp (pkgTarArchiveProcessor::ProcessDirectory): Don't
1854 pass a `pathname' argument with trailing slashes; strip them off.
1856 2010-02-06 Keith Marshall <keithmarshall@users.sourceforge.net>
1858 Add machinery for installation and packaging for distribution.
1860 * install-sh: New file; source it from autoconf distribution.
1862 * configure.ac (AC_PREFIX_DEFAULT): Assign it as `C:/MinGW'.
1863 (AC_PROG_MKDIR_P, AC_PROG_INSTALL, AC_PROG_LN_S): Invoke these.
1864 (STRIP): New output variable; use AC_CHECK_TOOL to define it.
1866 * Makefile.in (abs_top_srcdir): Define to AC_SUBST value.
1867 (PACKAGE_TARNAME, PACKAGE_VERSION): Define to AC_SUBST values.
1868 (prefix, exec_prefix, bindir, libexecdir, localstatedir): Likewise.
1869 (INSTALL, INSTALL_PROGRAM, INSTALL_SCRIPT, INSTALL_DATA): Likewise.
1870 (STRIP): New macro; define it using AC_CHECK_TOOL substitution.
1871 (mkinstalldirs): New macro; define it as AC_PROG_MKDIR_P result.
1872 (LN_S): New macro; define it as AC_PROG_LN_S result.
1873 (dist, srcdist, bindist): New build objectives; implement them.
1874 (install, installdirs, install-strip, maintainer-clean): Likewise.
1875 (SRCDIST_FILES, SRCDIST_SUBDIRS): New macros; define them.
1876 (PACKAGE_DISTNAME, PACKAGE_DISTVERSION): Likewise.
1877 (PACKAGE_DISTROOT, PACKAGE_ROOTVERSION): Likewise.
1878 (PACKAGE_CONFIG_DIR): Likewise.
1880 2010-02-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1882 Implement package installer for tar archives.
1884 * src/pkgexec.cpp (pkgXmlDocument::Execute): Replace existing
1885 stub implementation of installer, using methods provided by...
1886 * src/pkgproc.h, src/tarproc.cpp: ...these new files, with trap...
1887 * src/pkgdeps.cpp (pkgXmlDocument::Schedule) [installed]: Add entry...
1888 (pkgActionItem::Selection) [to_remove]: ...for this; use it to detect
1889 `install' requests for packages which are aleady installed.
1891 * Makefile.in (CORE_DLL_OBJECTS): Add tarproc.$(OBJEXT); specify
1892 dependencies as appropriate.
1894 * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Don't commit
1895 newly created `sysroot' mapping records to disk; defer to...
1896 (pkgXmlDocument::UpdateSystemMap): ...this new method.
1897 (sigpath): Make it a global variable, with file (static) scope.
1899 * src/climain.cpp (pkgXmlDocument::UpdateSystemMap): Invoke it.
1901 * src/pkgkeys.h (download_key, modified_key, source_key): New global
1902 string variables; declare them, providing their implementations...
1903 * src/pkgkeys.c (download_key, modified_key, source_key): ...here.
1904 * src/pkgname.cpp (download_key, source_key): Use them.
1906 * src/pkginet.cpp (pkgActionItem::ArchivePath): Delete; replace...
1907 * src/mkpath.c (pkgArchivePath): ...with this free standing function.
1908 * src/mkpath.h (pkgArchivePath): Declare its prototype.
1910 * src/pkgbase.h (pkgActionItem::ArchivePath): Delete declaration.
1911 (pkgXmlDocument): Add a default constructor; implement as `inline'.
1912 (pkgXmlDocument::AddDeclaration): Use heap memory to allocate the new
1913 declaration object, instead of `auto' variable, to avoid scope error.
1914 (pkgXmlDocument::UpdateSystemMap): Declare it.
1916 2010-01-26 Keith Marshall <keithmarshall@users.sourceforge.net>
1918 Implement rudimentary dependency resolver.
1920 * src/pkgdeps.cpp: New file.
1922 * Makefile.in (CORE_DLL_OBJECTS): Add pkgdeps.$(OBJEXT) reference;
1923 establish header file dependencies.
1925 * src/pkgbase.h (to_remove, to_install, selection_types): New enum.
1926 (pkgActionItem::selection): Extend it to store as enumerated pair...
1927 (pkgActionItem::SelectPackage): New inline method; assign them.
1928 (pkgActionItem::Selection): New inline method; retrieve them.
1929 (pkgXmlNode::GetInstallationRecord): New method; declare it.
1931 * src/pkgexec.cpp (pkgActionItem): In constructor...
1932 (selection): ...initialise both references in enumerated pair.
1933 (pkgActionItem::GetReference): Use `Selection()' method.
1934 (pkgActionItem::SelectIfMostRecent): Ditto; also correct logic for
1935 making selection, and assign to `to_install' element.
1936 (pkgXmlDocument::Schedule): Don't update `request'.
1937 (pkgActionItem::Execute): Implement as stub.
1939 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): Use new
1940 `Selection()' method.
1942 * src/pkgkeys.h (yes_value, no_value): Declare new string constants.
1943 * src/pkgkeys.c (yes_value, no_value): Implement them.
1945 * src/vercmp.cpp: Update copyright notice.
1946 (pkgVersionInfo::operator<=): Bug fix; must test for `<', but had `>'.
1948 2010-01-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1950 Avoid segmentation faults when processing invalid data streams.
1952 * src/pkgstrm.h: Update copyright notice.
1953 (pkgArchiveStream::IsReady): New pure virtual method.
1954 (pkgRawArchiveStream::IsReady): Provide inline implementation.
1955 (pkgGzipArchiveStream::IsReady): Likewise.
1956 (pkgBzipArchiveStream::IsReady): Likewise.
1957 (pkgLzmaArchiveStream::IsReady): Likewise.
1958 (pkgXzArchiveStream::IsReady): Likewise.
1960 * src/pkgstrm.cpp: Update copyright notice.
1961 (pkgLzmaArchiveStream, pkgXzArchiveStream) [fd == -1]: Decline to
1962 perform any form of read or decode processing.
1964 * src/pkginet.cpp (pkgInternetLzmaStreamingAgent): Use `fd = -2' as
1965 pseudo-descriptor for the pkgLzmaArchiveStream derived component of
1966 this internet data streaming class.
1968 2010-01-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1970 Require liblzma >= liblzma-4.999.9beta_20091209-3-mingw32-dev
1972 * src/pkgstrm.h (LZMA_API_STATIC): Remove definition and associated
1973 comment; it was required to permit, (but not to enforce), linking to
1974 the static liblzma.a library, with earlier beta releases, but this
1975 anomaly has now been corrected.
1977 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
1979 Remove zlib sources from trunk.
1980 (Application builders should use free standing implementation of
1981 zlib, from MinGW's package distribution page on SourceForge).
1983 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
1985 Remove bzip2 sources from trunk.
1986 (Application builders should use free standing implementation of
1987 bzip2, from MinGW's package distribution page on SourceForge).
1989 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
1991 Add subsystem specific sysroot mapping facility.
1993 * src/pkghash.c: New file; required by...
1994 * src/sysroot.cpp: New file; it implements...
1995 (pkgXmlDocument::LoadSystemMap, pkgXmlNode::GetSysRoot): New methods.
1997 * src/pkgbase.h: Update copyright notice.
1998 (pkgXmlDocument::LoadSystemMap): Declare it.
1999 (pkgXmlDocument::AddDeclaration): New inline method.
2000 (pkgXmlDocument::SetRoot, pkgXmlDocument::Save): Likewise.
2001 (pkgXmlNode::GetSysRoot): Declare it.
2002 (pkgXmlNode::GetDocumentRoot): New inline method.
2003 (pkgXmlNode::AddChild, pkgXmlNode::DeleteChild): Likewise.
2005 * src/climain.cpp: Update copyright notice.
2006 (climain): Invoke pkgXmlDocument::LoadSystemMap() as required.
2008 * Makefile.in (CORE_DLL_OBJECTS): Add ...
2009 (pkghash.$(OBJEXT), sysroot.$(OBJEXT)): ...these; upate dependencies.
2010 (DEBUGLEVEL): New macro; define it.
2013 2010-01-16 Keith Marshall <keithmarshall@users.sourceforge.net>
2015 Assign standardised keys for XML database lookup.
2017 * src/pkgkeys.h: New file; provide public key declarations.
2018 * src/pkgkeys.c: New file; implement them.
2020 * src/pkgbind.cpp: Use them; update copyright notice.
2021 * src/pkgexec.cpp, src/pkgfind.cpp, src/pkginet.cpp: Likewise.
2022 * src/pkgname.cpp, src/pkgspec.cpp: Likewise.
2024 * Makfile.in (CORE_DLL_OBJECTS): Add pkgkeys.$(OBJEXT); update all
2025 dependencies accordingly.
2027 2010-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
2029 Add CLI version reporting option.
2031 * configure.ac: Update copyright notice for new year.
2032 (COPYRIGHT_HOLDER): New AC_SUBST variable; define it.
2033 (YEARS_OF_ISSUE): New AC_SUBST variable; define it.
2034 (AC_CONFIG_FILES): Add `version.c'; source it from...
2036 * version.c.in: ...this new file.
2038 * Makefile.in: Update copyright notice for new year.
2039 (mingw-get$(EXEEXT)): Add dependency on `version.$(OBJEXT)'.
2040 (distclean): Add `version.c'.
2042 * configure: Regenerated.
2044 * src/clistub.c: Update copyright notice for new year.
2045 (options): New array of `struct option'; define and use it as the
2046 reference for `argv' parsing with `getopt_long_only()'.
2048 2009-12-17 Keith Marshall <keithmarshall@users.sourceforge.net>
2050 Add CLI support for "update" action.
2052 * src/pkgtask.h (ACTION_UPDATE): Define it, derived from...
2053 (action_update): ...this new entry in anonymous enumeration.
2055 * src/pkgexec.cpp (action_name): Add "update" keyword identification.
2057 * src/pkgbase.h: Typo in comment; s/xwXmlDocument/wxXmlDocument/.
2058 (pkgXmlDocument::BindRepositories): Add `force_update' parameter...
2059 * src/pkgbind.cpp (pkgXmlDocument::BindRepositories): Use it to...
2060 (pkgXmlDocument::SyncRepository): ...invoke this method when passed as
2061 a `true' flag, in addition to (as previously) first time reference.
2063 * src/climain.cpp (climain): Interpret "update" keyword for...
2064 [ACTION_UPDATE]: ...passing state as `force_update' parameter to...
2065 (pkgXmlDocument::BindRepositories): ...this method, then...
2066 [!ACTION_UPDATE]: Follow with normal action processing.
2068 2009-12-16 Keith Marshall <keithmarshall@users.sourceforge.net>
2070 Add status checking for Internet URL connections.
2072 * src/pkginet.cpp (pkgInternetAgent::QueryStatus): New method.
2073 (pkgInternetStreamingAgent::Get): Use it; set `dl_status' as return
2074 value, deferring failure diagnostics to callers, i.e. to...
2075 (pkgXmlDocument::SyncRepositories): ...this, and to...
2076 (pkgActionItem::DownloadArchiveFiles): ...this.
2078 2009-11-23 Keith Marshall <keithmarshall@users.sourceforge.net>
2080 Add package download and repository synchronisation machinery.
2082 * src/pkgstrm.h: New header file.
2084 * src/pkgbind.cpp, src/pkginet.cpp, src/pkgstrm.cpp,
2085 src/pkgfind.cpp, src/pkgname.cpp, src/keyword.c: New files.
2086 * Makefile.in (CORE_DLL_OBJECTS): Add build goals for them.
2088 * xml: New directory.
2090 * src/climain.cpp (climain): Establish repository bindings from...
2091 * xml/profile.xml: ...this new configuration file.
2093 2009-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
2095 Add XML database bindings and preliminary action executive for CLI.
2097 * src/pkgbase.h, src/pkgtask.h,
2098 src/mkpath.h, src/vercmp.h: New header files.
2100 * src/climain.cpp, src/pkgexec.cpp, src/pkgspec.cpp,
2101 src/mkpath.c, src/vercmp.cpp, src/xmlfile.c: New files.
2103 * Makefile.in (CORE_DLL_OBJECTS): Define initial set of files...
2104 (mingw-get-0.dll): ...build them into this new DLL target; add it...
2105 (all): ...as prerequisite for this primary build goal.
2107 2009-11-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2109 Avoid some potential GCC warnings.
2111 * src/clistub.c: Include process.h for `execv' prototype...
2112 (main): Cast `argv' to appropriately matched type when calling it.
2114 * src/pkginfo/driver.c: Include stdlib.h for `free' prototype.
2116 2009-11-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2118 Create diagnostic message handler for CLI usage.
2120 * src/dmh.h: New header file; it defines the public interface.
2121 * src/dmh.cpp: New file; it implements the message handler.
2123 2009-11-05 Keith Marshall <keithmarshall@users.sourceforge.net>
2125 Correct some identified TinyXML issues.
2127 * tinyxml/tinyxml.h (IsWhiteSpace): Add FIXME annotation to flag
2128 probable redundancy of checks for '\n' and '\r'.
2129 * tinyxml/tinyxmlparser.cpp: Revert John E's 2008-08-09 change; remove
2130 all such redundancies in IsWhiteSpace() calls throughout.
2132 * tinyxml/tinyxml.cpp (TiXmlAttribute::SetDoubleValue): Correct format
2133 specification in sprintf()/snprintf() calls; "%lf" is invalid; replace
2136 2009-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2138 Add CLI loader stub.
2140 * src/clistub.c: New file.
2141 * Makefile.in: Add build rule for it; build as...
2142 (mingw-get.exe): ...this; also add to...
2143 (clean): ...this goal.
2145 2009-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2147 Set up build mechanism.
2149 * configure.ac, Makefile.in: New files.
2150 * .cvsignore (configure, autom4te.cache): Add to ignored files.
2152 2009-10-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2154 Add GPL-v3 licensing terms.
2156 * COPYING: New file, sourced from gnu.org.
2158 2009-10-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2160 Add pkginfo implementation.
2162 * src, src/pkginfo: New directories.
2163 * src/pkginfo/pkginfo.h, src/pkginfo/pkginfo.l: New files.
2164 * src/pkginfo/driver.c: New file.
2166 2009-10-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2170 * All files (tdm-branch): Assign new branch tag.
2171 * All top-level files: Remove from trunk.
2172 * ChangeLog: New file.