1 2012-09-09 Keith Marshall <keithmarshall@users.sourceforge.net>
3 Fix typo, and update licensing terms for embedded getopt.c
5 * src/getopt.c: Incorporate MIT/X style licence; update copyright
6 notice, to reflect chronology of publication; correct degenerate RCS
7 keyword usage in EOF marker comment.
9 2012-09-03 Keith Marshall <keithmarshall@users.sourceforge.net>
11 Correct omission from copyright notice.
13 * src/pkgkeys.c: Add year 2012, to reflect 2012-09-02 update.
15 2012-09-02 Keith Marshall <keithmarshall@users.sourceforge.net>
17 Redefine paragraph_key with project global scope.
19 * src/pkgkeys.h (paragraph_key): Declare it.
20 * src/pkgkeys.c (paragraph_key): Define it.
22 * src/pkgshow.cpp (pkgDirectoryViewer::EmitDescription): Delete
23 function local definition; use global definition instead.
25 2012-09-02 Keith Marshall <keithmarshall@users.sourceforge.net>
27 Correct defect introduced by 2012-08-03 commit.
29 * src/approot.c (AppPathNameW): Add omitted 'else', so that tail
30 pointer isn't moved after the APPROOT prefix is truncated.
32 2012-09-02 Keith Marshall <keithmarshall@users.sourceforge.net>
34 Remap Mercurial subrepository reference via local hg-git clone.
36 * .hgsub (build-aux): Point to ../build-aux; this must be a locally
37 hosted hg clone of the git origin repository, and it must pre-exist as
38 a sibling of any created hg clone of the mingw-get repository.
40 * .hgsubstate: New file, automatically generated by Mercurial.
42 2012-08-31 Keith Marshall <keithmarshall@users.sourceforge.net>
44 Add Mercurial subrepository reference for build-aux.
48 2012-08-03 Keith Marshall <keithmarshall@users.sourceforge.net>
50 More code refactoring, to facilitate GUI implementation.
52 * src/clistub.c (AppPathNameW): Factor out; relocate to...
53 * src/approot.c: ...this new file; it reproduces the original
54 implementation, modified to also consider any "libexec" directory in
55 the executable path as the first child of the APPROOT prefix. Note
56 also, that no longer terminates APPROOT with a trailing backslash.
58 * src/approot.h: New file; it trivially declares the prototype for...
59 (AppPathNameW): ...this relocated extern "C" function.
61 * src/clistub.c (main): Adapt usage of AppPathNameW(), to reinstate
62 trailing backslash on assignment to APPROOT environment variable.
64 * Makefile.in (CLI_EXE_OBJECTS): New macro; define it as the original
65 set of prerequisites, with the addition of approot.OBJEXT, for...
66 (mingw-get.EXEEXT): ...this; use it.
68 * src/rites.c: Add comment regarding APPROOT usage.
70 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
72 Find missing.m4 in build-aux/m4 directory.
74 * aclocal.m4: Change path m4/missing.m4 to build-aux/m4/missing.m4.
76 2012-07-31 Earnie Boyd <earnie@users.sourceforge.net>
78 Add build-aux as a submodule.
79 Move .cvsignore to .gitignore.
81 * .gitmodules: New file.
82 * build-aux: New submodule directory.
84 * .gitignore: New file.
86 2012-07-13 Keith Marshall <keithmarshall@users.sourceforge.net>
88 Disable globbing of command line arguments.
90 * src/clistub.c (_CRT_glob): Define and initialise to zero; we don't
91 need globbing, and it may cause case transliteration of case-sensitive
92 action keywords, when a file system entity with a case-insensitively
95 2012-06-02 Keith Marshall <keithmarshall@users.sourceforge.net>
97 Refactor API to facilitate implementation of GUI ListView hooks.
99 * src/pkgkeys.h (title_key, description_key): Declare them.
100 * src/pkgkeys.c (title_key, description_key): Define them; relocate...
101 * src/pkgshow.cpp (pkgDirectoryViewer::EmitDescription): ...from here.
102 (pkgXmlDocument::CalalogueAllPackages): New public method; factor...
103 (pkgXmlDocument::DisplayPackageInfo): ...from here, whence use it.
104 (pkgDirectoryViewerEngine::EnumerateComponents): New private method;
105 implement as a concrete method of this abstract base class; factor...
106 (pkgDirectoryViewer::Dispatch): ...from original inline implementation
107 within this method of the concrete derived class, whence use it.
108 (pkgDirectoryViewerEngine, pkgDirectory): Factor class declarations...
109 * src/pkglist.h: ...into this new header file; include it.
111 * src/pkgbase.h (pkgDirectory): Add forward class declaration.
112 (pkgXmlDocument::CatalogueAllPackages): Declare it.
114 2012-05-02 Keith Marshall <keithmarshall@users.sourceforge.net>
116 Update help text to document package version selection capability.
118 * src/clistub.c (help_text): Add description of command line syntax
119 which may be used to specify an alternative to the default package
120 version selection, for install and upgrade actions.
122 2012-05-01 Keith Marshall <keithmarshall@users.sourceforge.net>
124 Support options set by preferences assigned within profile.xml
126 * xml/profile.xml (preferences): New element; add defaults.
128 * src/pkgopts.h (OPTION_ASSIGNED_FLAGS, OPTION_DESKTOP_ARGS):
129 (OPTION_START_MENU_ARGS): New enumerated constants; define them.
130 (OPTION_DESKTOP, OPTION_START_MENU): New manifest constants.
131 (OPTION_ASSIGNED, mark_option_as_set): New macros; define them.
132 (pkgOpts::GetValue, pkgOpts::GetString): Restrict look-up index to
133 least significant 12-bits of full-range index value.
134 (pkgOpts::IsSet): New inline method; implement it.
136 * src/clistub.c (main): Reimplement --desktop and --start-menu
137 options; each now becomes an OPTION_GENERIC optarg string store.
138 (set_script_hook): Function no longer used; delete it; delegate to...
139 * src/pkgbase.h (pkgXmlDocument::EstablishPreferences): ...this new
140 method; declare it, providing its implementation in...
141 * src/pkgopts.cpp: ...this new file; invoke it...
142 * src/climain.cpp (climain): ...here.
144 * Makefile.in (CORE_DLL_OBJECTS): Add pkgopts.$OBJEXT
146 2012-04-30 Keith Marshall <keithmarshall@users.sourceforge.net>
148 Correct sequence of installation/removal progress reporting.
150 * src/pkgunst.cpp (pkgRemove): Delay output of "removing package ..."
151 message, until after pre-remove hooks have run; this ensures that any
152 output from the pre-remove hook scripts appears in correct sequence.
154 * src/pkginst.cpp (pkgInstall): Likewise, for "installing package ..."
155 message, in relation to pre-install hooks.
157 2012-04-26 Keith Marshall <keithmarshall@users.sourceforge.net>
159 mingw-get-0.5-beta-20120426-1 released.
161 * configure.ac (AC_INIT): Version number updated.
162 * srcdist-doc/NEWS.in: Updated; bug-fix notifications added.
163 * All files (r0-5-beta-20120426-1): Tag assigned.
165 2012-04-25 Keith Marshall <keithmarshall@users.sourceforge.net>
167 Interim work-around for MinGW-Bug #3520864.
169 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
170 [DEBUG_TRACE_DEPENDENCIES]: Add request flags to messages reporting
171 the scheduling of installation activities.
173 * src/pkgexec.cpp (pkgXmlDocument::Schedule): Add temporary diagnostic
174 hooks to confirm request flags; bracket them with #if 0 ... #endif.
175 [ACTION_PRIMARY && pre-scheduled request]: Don't trash request flags
176 when updating the pre-existing action item data.
178 2012-04-23 Keith Marshall <keithmarshall@users.sourceforge.net>
180 Fix MinGW-Bug #3520488
182 * src/pkgexec.cpp (action_code): Check for, and reject NULL pointer
183 passed as action request string; also reject ambiguous abbreviations.
185 * src/climain.cpp (climain): Discriminate between NULL pointer and
186 other forms of invalid action keyword matching failures.
188 2012-04-16 Keith Marshall <keithmarshall@users.sourceforge.net>
190 mingw-get-0.5-beta-20120416-1 released.
192 * configure.ac (AC_INIT): Version number updated.
193 (YEARS_OF_ISSUE): 2012 added.
195 * srcdist-doc/NEWS.in: Updated; release notes added.
196 * All files (r0-5-beta-20120416-1): Tag assigned.
198 2012-04-16 Keith Marshall <keithmarshall@users.sourceforge.net>
200 Assign icon to temporary GUI executable file.
202 * icons/pkgicon.ico: New file, shamelessly copied from synaptic.
204 * configure.ac: Add identification for windres; propagate it to...
205 * Makefile.in: ...here; use it to compile object from icon files...
206 (srcdir/icons) [%.ico]: ...from this new vpath location.
207 (gui.exe): Link to compiled icon's object file.
208 (SRCDIST_SUBDIRS): Add icons directory.
210 2012-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
212 Ensure that package removal requests are correctly scheduled.
214 * src/pkgdeps.cpp (pkgXmlDocument::Schedule) [ACTION_REMOVE]: Schedule
215 as a distinct case, when the installed version is not the most recent
216 available release; consideration of this distinct case was previously
217 erroneously overlooked.
219 2012-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
221 Correct scheduling of new prerequisites when upgrading.
223 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
224 [ACTION_UPGRADE && ACTION_PRIMARY]: Don't exclude scheduling for this
225 case of a prerequisite with no previously installed version; it may be
226 a delegated primary requirement of a meta-package.
228 2012-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
230 Don't require subsystem within user specified version bounds.
232 * src/pkgdeps.cpp (pkgActionItem::ApplyBounds): Automatically consider
233 "*" wild-card matches for subsystem, if user doesn't specify it.
235 2012-04-09 Charles Wilson <mingw@cwilson.fastmail.fm>
239 * src/pkgdeps.cpp (pkgopts.h): Include unconditionally; do not rely...
240 (debug.h) [DEBUG_TRACE_DYNAMIC]: ...on this, for indirect inclusion.
242 2012-04-07 Keith Marshall <keithmarshall@users.sourceforge.net>
244 Correct a srcdist package construction defect.
246 * Makefile.in (srcdist) [for SRCDIST_SUBDIRS]: Use...
247 (mkinstalldirs): ...this, to create package image directories.
249 2012-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
251 Add scripting hooks to support creation of MS-Windows shortcuts.
253 * src/clistub.c (progname): New static variable with file scope; it
254 replaces former automatic variable, of same name, in main() function.
255 (set_script_hook): New static function; implement it, and call it...
256 (main) [--desktop, --start-menu]: ...from here, to interpret these new
257 command line options; they are propagated to scripts via...
258 (MINGW_GET_DESKTOP_HOOK, MINGW_GET_START_MENU_HOOK): ...these new
259 internally assigned environment variables.
260 (help_text): Document --desktop and --start-menu.
262 * scripts/libexec/setup.lua scripts/libexec/wsh.lua: New lua module
263 files; they implement a lua scripting API; they delegate requests to
264 the Windows Scripting Host, via either of this pair of...
265 * scripts/libexec/shlink.js: ...new script to create shortcuts, or...
266 * scripts/libexec/unlink.js: ...its complement, to remove them.
267 * Makefile.in (SRCDIST_SUBDIRS): Integrate them; enumerate them in...
268 (scripts_srcdir, LIBEXEC_SCRIPTS): ...these new macros; use to...
269 (install): ...install them.
271 2012-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
273 Initialise $LUA_PATH to locate mingw-get specific scripts.
275 * src/pkgexec.cpp (lua_path_init): New static inline function.
276 (pkgXmlNode::DispatchScript): Call it on first time invocation, per...
277 [lua_path_setup == false]: ...this static function local variable.
279 2012-04-01 Keith Marshall <keithmarshall@users.sourceforge.net>
281 Support installation of releases other than latest available.
283 * src/pkgbase.h (pkgActionItem::ApplyBounds): New method; declare it.
285 * src/pkgdeps.cpp (pkgActionItem::ApplyBounds): Implement it.
286 (pkgXmlDocument::Schedule): Use it to interpret user specified version
287 bounds, and apply them to scheduled action items. Having used...
288 (get_version_bounds): ...this new static inline function...
289 ...to acquire any user specified version bounds, check that they can
290 be honoured, before scheduling any action; delegate diagnostics to...
291 (dmh_notify_no_match): ...this new local helper function, to report
292 when they can't, and to indicate viable alternatives.
294 2012-03-26 Keith Marshall <keithmarshall@users.sourceforge.net>
296 Rework previously inadequate solution for MinGW-Bug #3424406
298 * src/pkgtask.h: Update copyright notice for current year.
299 (ACTION_MAY_SELECT): New manifest constant for use as flag; define it.
300 * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit): Assign it.
302 * src/pkgdeps.cpp (STATIC_INLINE): New macro; define it.
303 (ACTION_RECURSIVE_REINSTALL, ACTION_RECURSIVE_UPGRADE):
304 (ACTION_RECURSIVE_REPLACE): New action code constants; define them.
305 (with_flags): Original macro deleted; replace it with...
306 (with_request_flags): ...this new static inline function.
307 (if_noref, if_match, if_alias, with_download, promote): New static
308 inline functions; they replace original macros of the same names.
309 (is_recursive_action): Function no longer used; delete it.
310 (action_class): New static inline function; implement and use it...
311 (pkgXmlDocument::ResolveDependencies): ...here, to identify scheduling
312 requirements for packages which are already installed; depends on...
313 (request_mode): ...this new automatic variable; it augments and...
314 (recursive_mode): ...replaces this one; rename it accordingly.
315 (viable): Automatic variable no longer used; delete it.
316 [DEBUG_REQUEST & DEBUG_TRACE_DEPENDENCIES]: Emit notification for
317 scheduled installation.
318 (pkgXmlDocument::Schedule): Add an implied...
319 (ACTION_REMOVE): ...when scheduling a reinstallation.
321 2012-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
323 Address reinstallation issues per MinGW-Bugs #3416013 and #3424406
325 * src/pkgexec.cpp (reinstall_action_scheduled): New inline function.
326 (pkgActionItem::Execute): Use it to identify cases where...
327 [--reinstall]: ...implicit package removal is required, and also to
328 facilitate improved progress reporting in such cases.
330 * src/pkgdeps.cpp (is_recursive_action): New inline function.
331 (pkgXmlDocument::ResolveDependencies): Use it in tandem with...
332 (recursive_mode): ...this new automatic variable, so as to handle...
333 [meta-package dependency]: ...implicit recursion, to extend the scope
334 of the current action to the first level of non-meta dependency.
335 [install --reinstall]: ...reinstall original version of nominated
336 package, ignoring any available upgrade; extend scope of operation...
337 [install --reinstall --recursive]: ...to all prerequisite packages.
338 [upgrade --reinstall]: ...upgrade nominated package if possible; if no
339 upgrade available, reinstall current version; extend scope...
340 [upgrade --reinstall --recursive]: ...to all prerequisites.
341 (pkgXmlDocument::Schedule): Partially revert 2012-03-05 change;
342 reimplement selectively; never promote...
343 [install, install --reinstall]: ...these operations to become...
344 [upgrade]: ...this, even if available; issue diagnostic instead.
346 2012-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
348 Rationalise implementation and usage of --all-related option.
350 * src/pkgopts.h: Update copyright notice; add year 2012.
351 (OPTION_RECURSIVE, OPTION_ALL_RELATED): New constants; define them.
352 (pkgOpts::SetFlags): New method; declare and implement it inline.
354 * src/clistub.c: Update copyright notice; add year 2012.
355 (options) [recursive, all-related]: Redefine in terms of...
356 (OPTION_RECURSIVE, OPTION_ALL_RELATED): ...these.
357 (help_text): Update appropriately.
359 * src/climain.cpp: Update copyright notice; add year 2012.
360 (climain) [all-related]: Associate its use exclusively with...
361 (source, licence): ...these package processing operations; use...
362 (pkgOptions::SetFlags): ...this, to propagate its effect.
364 2012-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
366 Don't report failed downloads in respect of virtual packages.
368 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): Clear...
369 [ACTION_DOWNLOAD]: ...this status flag for any package identified as
370 a meta-package; this corrects a further regression introduced with the
371 2011-11-09 update, whereby pending download requests for such virtual
372 packages were not cancelled, resulting in failure to install due to
373 failed downloads, when no download is actually required.
375 2012-03-05 Keith Marshall <keithmarshall@users.sourceforge.net>
377 Don't suppress implied downloads for top-level actions.
379 * src/pkgdeps.cpp: Update copyright notice for new year.
380 (pkgXmlDocument::Schedule) [!OPTION_PRINT_URIS]: Ensure that...
381 [ACTION_DOWNLOAD]: ...this is enabled, when scheduling an install or
382 an upgrade action for a package specified as a command line argument;
383 this corrects a regression introduced on 2011-11-09, which resulted in
384 ACTION_DOWNLOAD being enabled only for second tier dependent actions.
386 2012-02-20 Keith Marshall <keithmarshall@users.sourceforge.net>
388 Copyright notice updates.
390 * Makefile.in: Add 2012 as year of republication.
391 * src/pkgbase.h src/sysroot.cpp src/pkgexec.cpp: Likewise.
392 * src/rites.c src/pkginst.cpp src/pkgunst.cpp: Likewise.
394 2012-02-20 Keith Marshall <keithmarshall@users.sourceforge.net>
396 Fix ill-advised optimisation in $APPROOT environment lookup.
398 * src/rites.c (approot_path): Don't save result of getenv() lookup
399 across calls; the environment may have been moved in the interim,
400 making the original result invalid on any subsequent call. Also,
401 prefer MS-Windows style (with backslashes) for default.
402 (pkgLastRites): Report full path name for lastrites.exe, on execl()
403 failure, rather than only the path relative to $APPROOT.
405 2012-02-20 Keith Marshall <keithmarshall@users.sourceforge.net>
407 Propagate sysroot path settings to scripts via the environment.
409 * src/pkgbase.h (PKG_PUTENV_FLAGS_MASK): New constant; it maps...
410 (PKG_PUTENV_DIRSEP_MSW, PKG_PUTENV_DIRSEP_POSIX): ...these flags...
411 (PKG_PUTENV_SCAN_VARNAME, PKG_PUTENV_NAME_TOUPPER): ...and these;
412 they are used to specify optional behavioural choices for...
413 (pkgPutEnv): ...this new function; declare it.
415 * src/sysroot.cpp (pkgPutEnv): Implement it.
416 (pkgXmlDocument::LoadSystemMap): Use it to add $SUBSYSTEM_SYSROOT path
417 specifications to the environment, for each named subsystem associated
418 with the active system map.
420 * src/pkgexec.cpp (pkgActionItem::Execute): Invoke pkgPutEnv() prior
421 to processing of each package install, upgrade, or remove action, so
422 as to update environment variable $SYSROOT to represent the sysroot
423 path for each package processed, during execution of script hooks.
425 2012-02-17 Keith Marshall <keithmarshall@users.sourceforge.net>
427 Implement hooks to support lua scripting interface.
429 * Makefile.in (LIBS): Add -llua.
431 * src/pkgbase.h (pkgXmlNode::InvokeScript): New method; declare it
432 as private, and provide overloaded public inline API implementation.
433 (pkgXmlNode::DispatchScript): New private method; declare it.
435 * src/pkgexec.cpp (pkgXmlNode::InvokeScript): Implement it.
436 (pkgXmlNode::DispatchScript): Likewise; it directs InvokeScript to...
437 (pkgInvokeScript): ...this new static function; implement it.
439 * src/pkginst.cpp (pkgInstall): Call InvokeScript as appropriate.
440 * src/pkgunst.cpp (pkgRemove): Likewise.
442 2011-11-24 Keith Marshall <keithmarshall@users.sourceforge.net>
444 Avoid implicit cast warnings; reported by Robert Hartmann.
446 * src/dmh.h (DMH_BEGIN_DIGEST): Explicitly cast to uint16_t.
447 (DMH_END_DIGEST): Likewise.
449 2011-11-09 Keith Marshall <keithmarshall@users.sourceforge.net>
451 Avoid unnecessary downloads for already installed packages.
453 * src/pkginet.cpp (pkgActionItem::DownloadSingleArchive): Require
454 external scheduling of ACTION_DOWNLOAD; cancel the scheduled request
455 on completion, or when not required due to pre-existing local copy.
457 * src/climain.cpp (pkgActionItem::GetSourceArchive): Must always be
458 prepared to download the associated archive; enable ACTION_DOWNLOAD.
460 * src/pkgexec.cpp (pkgActionItem::Schedule) [OPTION_REINSTALL]:
461 May need to download the archive, even when the requested package was
462 previously installed; schedule ACTION_DOWNLOAD to enable this.
464 * src/pkgdeps.cpp (promote): Macro redefined in terms of...
465 (with_flags, with_download): ...these new macros; implement and...
466 (pkgXmlDocument::ResolveDependencies): ...use them to enable/schedule
467 ACTION_DOWNLOAD only when expected that it may be necessary.
469 2011-11-06 Keith Marshall <keithmarshall@users.sourceforge.net>
471 Fix packaging anomalies for source and licence distributions.
473 * Makefile.in (licdist): Link README from ${CURDIR}, not from '..'.
474 (srcdist): Explicitly link pkginfo.c from ${CURDIR} to src/pkginfo,
475 rather than as implied prerequisite; this avoids a bogus attempt to
476 link srcdist-doc into src/pkginfo.
478 2011-11-06 Keith Marshall <keithmarshall@users.sourceforge.net>
480 Bump version number for subsequent CVS snapshots.
482 * configure.ac (AC_INIT): Set version to 0.4-alpha-1.1cvs
484 2011-11-06 Keith Marshall <keithmarshall@users.sourceforge.net>
486 mingw-get-0.4-mingw32-alpha-1 released.
488 * configure.ac (AC_INIT): Adjust version number.
489 * srcdist-doc/NEWS.in: Updated; document new features and bugs fixed.
490 * All files (r0-4-alpha-1): Tag assigned.
492 2011-11-04 Keith Marshall <keithmarshall@users.sourceforge.net>
494 Don't upgrade installed DLL components to incompatible version.
495 Provide clearer diagnostics for failed requests on implied packages.
497 * src/pkgdeps.cpp (is_abi_compatible): New static inline function.
498 (pkgXmlDocument::ResolveDependencies) [is_installed]: Use it.
499 (pkgXmlDocument::ResolveDependencies) [DEBUG_TRACE_DEPENDENCIES]:
500 Clean up and improve diagnostic message content and formatting.
501 (pkgXmlDocument::Schedule) [(upgrade || remove) && ! installed]:
502 Downgrade diagnostic to WARNING, for implicitly specified component
503 packages; provide additional explanatory diagnostics.
505 * src/pkgspec.cpp (pkgSpecs::VersionComparator):
506 * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit):
507 [DEBUG_TRACE_DEPENDENCIES]: Eliminate diagnostic noise.
509 2011-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
511 Fix --download-only vs. --reinstall conflict.
513 * src/pkgexec.cpp (pkgActionItem::Execute) [OPTION_DOWNLOAD_ONLY]:
514 Test for explicit inequality, rather than equality to zero; since the
515 2011-08-30 update, which made --download-only also imply --reinstall,
516 it will test as non-zero when --reinstall is specified, even though
517 --download-only is not.
519 2011-10-07 Keith Marshall <keithmarshall@users.sourceforge.net>
521 Add support for non-specific upgrade of all installed packages.
523 * src/pkgbase.h (pkgXmlDocument::RescheduleInstalledPackages):
524 New public method; declare it.
526 * src/pkgdeps.cpp (pkgXmlDocument::RescheduleInstalledPackages):
529 * src/climain.cpp (climain) [ACTION_UPGRADE && argc < 2]: Invoke
530 pkgXmlDocument::RescheduleInstalledPackages() to schedule the upgrade
531 request for all packages currently registered as installed.
533 2011-10-06 Keith Marshall <keithmarshall@users.sourceforge.net>
535 Implement "source" and "licence" operations.
537 * src/pkgopts.h (OPTION_ALL_DEPS): New option code; define it.
538 * src/clistub.c (main): Associate it with...
539 (all-related, recursive): ...these synonymous option names...
540 (options): ...defined within this local structured array.
541 (help_text): Document them; also document "source" and "licence" as
542 new operations which may be specified on the command line.
544 * src/pkgtask.h (action_source, action_licence): Enumerate them.
545 (ACTION_SOURCE, ACTION_LICENCE): Define their manifest values, and...
546 * src/pkgexec.cpp (action_name): ...associate with operation names.
548 * src/pkgbase.h (pkgActionItem::GetScheduledSourceArchives):
549 (pkgActionItem::GetSourceArchive, pkgXmlDocument::GetSourceArchive):
550 New public methods; declare them for external implementation.
551 (pkgXmlDocument::GetScheduledSourceArchives): New public method;
552 implement it as inline.
554 * src/climain.cpp (pkgProcessedArchives): New pointer to stack of...
555 (pkgArchiveNameList): ...this new locally defined class; implement it.
556 (pkgActionItem::GetSourceArchive, pkgXmlDocument::GetSourceArchive):
557 (pkgActionItem::GetScheduledSourceArchives): Implement them.
558 (climain): Add invocation hooks.
560 2011-10-04 Keith Marshall <keithmarshall@users.sourceforge.net>
562 Establish mapping from release tarname to source tarname.
564 * src/pkgreqs.cpp (inherited_requirement): New inline function.
565 (requirement): Use it; adapt to propagate release archive format and
566 compression type fields, in addition to version fields, when resolving
567 "%" wildcard matches within the template for the resultant tarname.
568 (pkgAssociateName): New public function; implement it for use by...
569 * src/pkgname.cpp (pkgResolvedName): ...this new inline function.
570 (pkgXmlNode::SourceArchiveName): Use it; adapt to accept a category
571 selector, so it may resolve source or licence tarnames on demand.
573 * src/pkgbase.h (pkgXmlNode::SourceArchiveName): Modify declaration;
574 add category selector argument to support source/licence choice.
576 2011-10-02 Keith Marshall <keithmarshall@users.sourceforge.net>
578 Facilitate downloads using diverse cache directories.
580 * src/pkgbase.h (pkgActionItem::DownloadSingleArchive): New private
581 method; declare it; it handles the download for a single named archive
582 file, and stores it in a specifed cache directory.
584 * src/pkginet.cpp (pkgActionItem::DownloadSingleArchive): Implement
585 it; factor its code from the original implementation within...
586 (pkgActionItem::DownloadArchiveFiles): ...this; adapt to use it.
588 2011-10-02 Keith Marshall <keithmarshall@users.sourceforge.net>
590 Establish cache directory for source archive downloads.
592 * src/mkpath.h (pkgSourceArchivePath): New function; declare it.
593 * src/mkpath.c (pkgSourceArchivePath): Implement it.
595 2011-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
597 Support archive extraction to arbitrary destination without install.
599 * src/pkgproc.h (pkgArchiveProcessor::ExtractFile): New virtual
600 helper method for use, as core helper, by derived classes; declare it.
601 (pkgArchiveProcessor::CreateExtractionDirectory): Likewise.
602 (pkgTarArchiveProcessor): Declare overloaded default constructor.
603 (pkgTarArchiveExtractor): New class definition; it is derived from
604 pkgTarArchiveProcessor.
606 * src/tarproc.cpp (pkgArchiveProcessor::ExtractFile): Implement it.
607 (pkgArchiveProcessor::CreateExtractionDirectory): Likewise.
608 (pkgTarArchiveExtractor): Implement constructor, together with...
609 (pkgTarArchiveExtractor::ProcessDirectory): ...this method, and also...
610 (pkgTarArchiveExtractor::ProcessDataStream): ...this one; these are
611 declared as abstract, in the pkgTarArchiveProcessor base class.
612 (pkgTarArchiveInstaller::ProcessDirectory): Simplify; it now delegates
613 directory creation to pkgArchiveProcessor::CreateExtractionDirectory.
614 (pkgTarArchiveInstaller::ProcessDataStream): Simplify; delegate file
615 handling to pkgArchiveProcessor::ExtractFile, as appropriate.
617 2011-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
619 Make --download-only and --print-uris imply --reinstall.
621 * src/pkgopts.h (OPTION_PRINT_URIS): Adjust definition.
622 (OPTION_DNLOAD_ONLY, OPTION_DOWNLOAD_ONLY): Likewise.
624 2011-08-07 Keith Marshall <keithmarshall@users.sourceforge.net>
626 Implement --download-only and --print-uris options.
628 * src/pkgopts.h (OPTION_DOWNLOAD_ONLY, OPTION_PRINT_URIS):
629 New manifest constants, identifying flag bits; define them.
630 (OPTION_DNLOAD_ONLY): Likewise; an alias for OPTION_DOWNLOAD_ONLY.
632 * src/pkgbase.h (pkgActionItem::PrintURI): New private method.
633 * src/pkginet.cpp: Implement it.
635 * src/clistub.c (options): Add "download-only" and "print-uris".
636 (help_text): Document them.
637 * src/pkgexec.cpp (pkgActionItem::Execute): Process them.
639 2011-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
641 mingw-get-0.3-mingw32-alpha-2.1 released.
643 * configure.ac (AC_INIT): Adjust version number.
644 * srcdist-doc/NEWS.in: Updated; document bugs fixed.
645 * All files (r0-3-alpha-2-1): Tag assigned.
647 2011-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
649 Adopt tar.xz as default package archive format.
651 * Makefile.in (TARZIP, TAREXT): New macros; define them.
652 (bindist, licdist, srcdist): Use them in place of hardcoded tar.gz
653 (maintainer-clean): Expunge tar files of any compression format.
655 2011-07-27 Keith Marshall <keithmarshall@users.sourceforge.net>
657 Correct handling of release status in requirements specifications.
659 * src/debug.h (DEBUG_TRACE_DEPENDENCIES): New tracing hook; define it.
660 * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit): Use it; add
661 function entry/exit tracing report hooks.
662 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): Likewise;
663 also add internal trace point reporting, which may also require...
664 (show_required): ...this new static inline DEBUG_INVOKED function.
666 * src/pkgreqs.cpp (requirement): Propagate release status and release
667 reference index fields from requirer, when package version requirement
668 is specified by a '%' token, and no explicit release status override
669 is included in the requirement specification.
671 * src/pkgspec.cpp (is_wildcard_spec): New static inline helper.
672 (pkgSpecs::VersionComparator): Use it to identify any package version
673 specification which may require the extension of a wildcard match, to
674 span the package version and release status fields; also add tracing
675 hooks, triggered on DEBUG_TRACE_DEPENDENCIES, to facilitate debugging.
677 2011-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
679 Avoid accidental RCS keyword substitutions.
681 * Makefile.in (DOLLAR): New macro; define it.
682 (readme.txt, readme.txt.in): Use it, where unexpanded RCS Id keyword
683 matching is intended.
685 2011-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
687 Mercurial support revisited.
689 * .cvsignore (.hgtags): Add to CVS untracked list.
691 2011-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
693 Update readme.txt ID tag-line to track NEWS rather than README.
695 * Makefile.in (readme.txt.in): New rule; implement it.
696 (readme.txt.tag): Likewise; this implements the tag-line tracking.
697 (readme.txt): Rule redefined in terms of the preceding pair.
699 2011-06-17 Keith Marshall <keithmarshall@users.sourceforge.net>
701 mingw-get-0.3-mingw32-alpha-2 released.
703 * configure.ac (AC_INIT): Adjust version number.
704 * srcdist-doc/NEWS.in: Updated; document new features and bugs fixed.
705 * All files (r0-3-alpha-2): Tag assigned.
707 2011-06-15 Keith Marshall <keithmarshall@users.sourceforge.net>
709 Add internal documentation for --reinstall option.
711 * src/clistub.c (help_text): Add description for "--reinstall".
713 2011-06-14 Keith Marshall <keithmarshall@users.sourceforge.net>
715 Support use of Mercurial within a CVS working copy.
717 * .cvsignore (.hg, .hgignore): Don't have CVS track these.
719 2011-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
721 Implement --reinstall option.
723 * src/pkgopts.h (OPTION_REINSTALL): New macro; define it.
724 (OPTION_GENERIC, OPTION_SHIFT_MASK): Likewise.
725 (OPTION_EXTRA_FLAGS): New field; declare it.
727 * src/clistub.c (options): Add "reinstall".
728 (OPTION_GENERIC): Use it where appropriate; within its scope...
729 (OPTION_STORAGE_CLASS): Improve descriptive comments; add handling for
730 default case of flag type options requiring an alignment shift.
732 * src/pkgexec.cpp: Remove previous "always reinstall" kludge.
733 (pkgOptionSelected, PKG_OPTION_REINSTALL): Remove obsolete macros.
734 (pkgActionItem::Execute): Check for "upgrade" request on any package
735 which is already up to date; report this state, otherwise...
736 [OPTION_REINSTALL || ACTION_UPGRADE]: Mark package as "removed", to
737 avoid bail-out on "package already installed", when calling...
738 (pkgInstall): ...this.
740 2011-06-12 Keith Marshall <keithmarshall@users.sourceforge.net>
742 Don't require -vv to report progress of update operation.
744 * src/pkgbind.cpp (pkgRepository::GetPackageList): Eliminate all
745 basename() calls; `dname' already tells us what it should return.
746 [update]: Report progress, irrespective of verbosity setting.
748 2011-06-11 Keith Marshall <keithmarshall@users.sourceforge.net>
750 Fix MinGW-Bug #3313806.
752 * src/pkginfo/pkginfo.l (CMS_KEYWORDS): Do not match them within the
753 PACKAGE_NAME field; this avoids misinterpretation as a release status
754 qualifier when intended as part of the package name, as in msys-cvs.
756 2011-06-07 Keith Marshall <keithmarshall@users.sourceforge.net>
758 Provisional correction for MinGW-Bug #3309438.
760 * src/debug.h [DEBUGLEVEL == 0]: Provide defaults for...
761 (DEBUG_ENABLED, DEBUG_REQUEST): ...these macros.
763 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDirectory):
764 (pkgTarArchiveInstaller::ProcessDataStream): Use DEBUG_REQUEST to
765 enable runtime trace activation for previous compile time choices.
767 2011-05-30 Keith Marshall <keithmarshall@users.sourceforge.net>
769 mingw-get-0.3-mingw32-alpha-1 released.
771 * configure.ac (AC_INIT): Adjust version number.
772 * srcdist-doc/NEWS.in: Updated; document new features.
773 * All files (r0-3-alpha-1): Tag assigned.
775 2011-05-30 Keith Marshall <keithmarshall@users.sourceforge.net>
777 Support assignment of DEBUGLEVEL at configure time.
779 * configure.ac (DEBUGLEVEL): Declare as a precious variable, using
780 AC_ARG_VAR; also declare with AC_SUBST, to ensure it is initialised.
782 * Makefile.in (DEBUGLEVEL): Let AC_SUBST assign it.
784 2011-05-29 Keith Marshall <keithmarshall@users.sourceforge.net>
786 Work around bugs in MinGW and GNU getopt_long_only() implementations.
788 * src/getopt.c: New file; this is a free-standing replacement for any
789 implementation provided by system libraries. We will always use this
790 to ensure correct operation irrespective of system bugs; (different
791 bug manifestations have been identified in the stock MinGW and GNU
794 * Makefile.in (mingw-get.EXEEXT): Use it.
796 * src/clistub.c (options): Remove redundant declaration of `-v' as a
799 2011-05-29 Keith Marshall <keithmarshall@users.sourceforge.net>
801 Implement user selection of traceable features at run-time.
803 * src.pkgopts.h (OPTION_VERBOSE_MAX): New macro; define it.
805 * src/debug.h (DEBUG_ENABLED): New macro; define it.
806 (DEBUG_REQUEST, DEBUG_REQUEST_FLAGS, DEBUG_TRACE_DYNAMIC): Likewise.
808 * src/clistub.c (main) [--trace]: Don't make it available unless...
809 [DEBUG_ENABLED(DEBUG_TRACE_DYNAMIC)]: ...this is set (at compile-time).
810 [--verbose]: Limit to OPTION_VERBOSE_MAX, using...
811 (atmost): ...this new macro; define it.
812 (options): Declare `-v' as both long and short form, pending bug fix
813 in MinGW's getopt_long_only() implementation.
815 * src/pkginet.cpp (pkgInternetAgent::OpenURL): Use DEBUG_REQUEST.
816 (pkgInternetLzmaStreamingAgent::TransferData): Likewise.
817 (pkgInternetStreamingAgent::TransferData): Likewise.
818 (pkgInternetStreamingAgent::Get): Likewise.
820 * src/pkgunst.cpp (pkgActionItem::SetAuthorities): Use DEBUG_REQUEST.
821 (pkg_rmdir, pkg_unlink): Likewise.
823 * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Use DEBUG_REQUEST.
825 2011-05-21 Keith Marshall <keithmarshall@users.sourceforge.net>
827 Implement protocol for processing global program options.
829 * src/pkgopts.h: New file.
831 * src/climain.cpp (cli_setopts): New function; implement it.
832 (pkgOptions): Likewise.
834 * src/clistub.c (xatoi): New function; implement it.
835 (cli_setargv): New inline helper function; implement it.
836 (main): Use it. Also incorporate implementation of...
837 (parsed_options): New structure; it accommodates...
838 (verbose, trace): New options; interpret them, and...
839 (help_text): ...document them.
841 * src/pkgbind.cpp (pkgRepository::GetPackageList): Make catalogue
842 loading notifications and progress reports conditional on...
843 [OPTION_VERBOSE > 1]: ...this.
845 2011-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
847 Augment known development status keywords and accept CMS labels.
849 * src/pkginfo/pkginfo.l (CMS_KEYWORDS): Define new provisional list;
850 add transitional state scanner rule and code to interpret them.
851 (STATUS_KEYWORDS): Add "pre" and "rc" to existing list; modify scanner
852 code to maintain consistency with CMS_KEYWORDS processing; also extend
853 this coding strategy to other rules.
855 * src/pkginfo/driver.c (spec): Strip initial '$' token from displayed
856 field values; (we expect it only for a CMS_KEYWORDS field value).
858 * src/pkgreqs.cpp (pkgSpecs::GetTarName): Remove any initial '$' token
859 from PACKAGE_RELEASE_STATUS field, when performing reverse of tarname
860 decomposition transformation.
862 2011-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
864 Correct omission from 2011-02-18 commit.
866 * src/tarproc.cpp (Copyright Notice): Add 2011 as year of release.
868 2011-05-14 Keith Marshall <keithmarshall@users.sourceforge.net>
870 mingw-get-0.2-mingw32-alpha-4 released.
872 * configure.ac (AC_INIT): Adjust version number.
873 * srcdist-doc/NEWS.in: Updated; add bug-fix/feature descriptions.
874 * All files (r0-2-alpha-4): Tag assigned.
876 2011-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
878 Fix MinGW-Bug #3297660 (reported by Chris Sutcliffe).
880 * src/pkgbase.h (pkgActionItem::SetAuthorities): Return unsigned long.
881 (pkgActionItem::HasAttribute): New inline method; implement it.
883 * src/pkgtask.h (ACTION_DOWNLOAD, ACTION_DOWNLOAD_OK): New macros.
885 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles):
886 [ACTION_DOWNLOAD]: Assert it at commencement of each package download;
887 clear it again, on successful download completion.
889 * src/pkginst.cpp (pkgtask.h): #include it.
890 (pkgInstall) [ACTION_DOWNLOAD]: Don't proceed with installation when
891 set; this indicates failed download; diagnose it.
893 * src/pkgunst.cpp (pkgRemove) [ACTION_DOWNLOAD && ACTION_UPGRADE]:
894 Don't proceed with pre-emptive removal when both set; this indicates
895 failed download of replacement package; diagnose it.
897 2011-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
899 Fix MinGW-Bug #3295526 (reported by Charles Wilson).
901 * src/pkgunst.cpp (sys/stat.h): #include it; we need it for...
902 (pkg_unlink): ...chmod( file, S_IWRITE ), emulating `rm -f' semantics.
904 2011-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
906 Diagnose and aggressively retry failed download connections.
908 * src/debug.h (DEBUG_TRACE_INTERNET_REQUESTS): New macro; define it.
910 * src/pkginet.cpp (debug.h): #include it.
911 (pkgDownloadMeter): New abstract class; declare it and implement its
912 default (non-abstract) data and methods; derive...
913 (pkgDownloadMeterTTY): ...this new class from it; implement it...
914 (pkgInternetStreamingAgent::Get): ...and instantiate it (naively for
915 now), as associated pkgDownloadMeter object; add tracing diagnostic.
916 (pkgInternetAgent::OpenURL): Don't inline it; move implementation out
917 of line; add retry loops to aggressively retry failed connections.
918 (pkgInternetAgent::QueryContentLength): New method; implement it.
919 (pkgInternetStreamingAgent::TransferData): Avoid Microsoft specific
920 data type `DWORD'; prefer equivalent standard `unsigned long'. Add
921 tracing diagnostic. Remove progress diagnostic; replace it with an
922 `Update' request to associated pkgDownloadMeter.
923 (pkgInternetLzmaStreamingAgent::GetRawData): Avoid `DWORD' data type.
924 (pkgInternetLzmaStreamingAgent::TransferData): Likewise; add tracing
925 diagnostic on failure.
927 2011-03-31 Keith Marshall <keithmarshall@users.sourceforge.net>
929 mingw-get-0.2-mingw32-alpha-3 released.
931 * configure.ac (AC_INIT): Adjust version number.
932 * srcdist-doc/NEWS.in: Updated; add bug-fix description.
933 * All files (r0-2-alpha-3): Tag assigned.
935 2011-03-30 Keith Marshall <keithmarshall@users.sourceforge.net>
937 Provisional handling for http proxy authentication.
938 (Adapted from patch by Scott Michel <pingbak@users.sourceforge.net>)
939 (ref: MinGW-Patch #3158453)
941 * src/pkginet.cpp: Several format/layout adjustments; add comments.
942 Eliminate several instances of Microsoft specific typedef nastiness.
943 (dmh_dialogue_context): New macro; kludge definition to support...
944 (pkgInternetAgent::OpenURL) [HTTP_STATUS_PROXY_AUTH_REQ]: Detect
947 2011-03-30 Keith Marshall <keithmarshall@users.sourceforge.net>
949 Expand macros in path names for files and directories to be removed.
951 * src/pkgunst.cpp (pkgRemove): Format sysroot as a template, so...
952 (pkg_rmdir, pkg_unlink): ...are able to use mkpath() to construct the
953 full path name for each file or directory to be removed.
955 2011-03-29 Keith Marshall <keithmarshall@users.sourceforge.net>
957 Correct defective activation logic for some debugging hooks.
959 * src/pkgunst.cpp (pkg_rmdir, pkg_unlink) [DEBUG_INVOKE_IF]:
960 (pkgActionItem::SetAuthorities) [DEBUG_INVOKE_IF]: Use bit-wise `&'
961 operator, not `&&', to evaluate DEBUGLEVEL state.
963 2011-03-22 Keith Marshall <keithmarshall@users.sourceforge.net>
965 Avoid Unicode hyphens in generated ASCII document files.
967 * Makefile.in (NROFF): New macro; define it to invoke `nroff -Tascii'.
968 (%.dist, readme.txt): Use it to ensure that output is pure ASCII.
970 2011-03-15 Keith Marshall <keithmarshall@users.sourceforge.net>
972 mingw-get-0.2-mingw32-alpha-2 released.
974 * configure.ac (AC_INIT): Adjust version number.
975 * srcdist-doc/NEWS.in: Updated; add bug-fix description.
976 * All files (r0-2-alpha-2): Tag assigned.
978 2011-03-15 Keith Marshall <keithmarshall@users.sourceforge.net>
980 Fix MinGW-Bug 3212246.
982 * src/keyword.c (has_keyword): Avoid incrementing the comparison
983 pointers when a significant character in one string is not matched in
984 the other; previously the pointers were left pointing one character to
985 the right of the mismatch, and this was overlooked if the mismatch
986 occurred at the rightmost character in both strings.
988 2011-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
990 mingw-get-0.2-mingw32-alpha-1 released.
992 * configure.ac (AC_INIT): Set version number; correct capitalisation
993 in URI reference to bug reporting instructions.
995 * srcdist-doc/NEWS.in: Confirm release date.
996 [bug reporting]: Remove redundant paragraph; the information is
997 provided, via reference to mingw.org. in the README and INSTALL files.
999 * All files (r0-2-alpha-1): Tag assigned.
1001 2011-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1003 * srcdist-doc/INSTALL.in [building]: Qualify liblzma.a requirement;
1004 add earliest acceptable snapshot release date.
1006 2011-03-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1008 Remove unused 7zip and boost source code from CVS trunk.
1010 * 7z: Directory and all content removed.
1013 2011-03-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1015 Refactor and update existing installation and usage instructions.
1017 * src/clistub.c (help_text): Updated.
1019 * srcdist-doc: New directory.
1021 * README: Deleted; its content refactored into...
1022 * srcdist-doc/README.in srcdist-doc/INSTALL.in srcdist-doc/NEWS.in:
1023 ...these new template files, updated for current development state.
1025 * srcdist-doc/gendoc.sed.in: New sed script; it directs formatting of
1026 generated text files derived from the srcdist-doc templates.
1028 * Makefile.in (SRCDIST_SUBDIRS): Add srcdist-doc.
1029 (SRCDIST_FILES): Add NEWS and INSTALL.
1030 (srcdist-doc): New build rule to generate README, NEWS and INSTALL.
1031 (srcdist, licdist): Adjust path to locate them.
1032 (readme.txt): New build rule to generate on-line package description.
1034 (distclean): Don't remove Makefile...
1035 (maintainer-clean): ...but do it here instead. Also remove generated
1036 README, NEWS and INSTALL, the autom4te cache, and all distributable
1037 zip files, in addition to tarballs, for the current version.
1039 2011-02-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1041 Initial implementation for "remove" feature.
1043 * src/pkgbase.h: Update copyright notice; add current year.
1044 (pkgActionItem::SetPrimary): New inline public method; declare it.
1045 (pkgActionItem::SetAuthorities): New public method; declare it.
1047 * src/pkgtask.h (ACTION_PREFLIGHT, ACTION_REMOVE_OK): New defines.
1049 * src/pkgproc.h: Update copyright notice; add current year.
1050 (pkgManifest::GetSysRootReference): New public method; declare it.
1051 (pkgManifest::GetRoot): New inline method; declare and implement it.
1052 (pkgManifest::DetachSysRoot): Argument type changed to const char*.
1053 (pkgRemove): New extern "C" function; declare it.
1055 * src/pkgexec.cpp (pkgActionItem::SetPrimary): Implement it, and...
1056 (pkgXmlDocument::Schedule): ...use it to promote actions on all user
1057 specified packages, as listed on the command line, to primary status.
1058 (pkgActionItem::Execute): Repeatedly invoke...
1059 (pkgActionItem::SetAuthorities): ...this; incorporate call of...
1060 (pkgActionItem::DownloadArchiveFiles): ...this, within the loop, so
1061 that we retry failed downloads at least a second time.
1062 [ACTION_REMOVE]: Delete stub; invoke pkgRemove().
1064 * src/pkgunst.cpp: New file.
1065 (pkgActionItem::SetAuthorities): Implement it.
1066 (pkgManifest::GetSysRootReference): Implement it.
1067 (pkgManifest::DetachSysRoot): Implement it per new declaration.
1068 (pkgRemove): Implement it.
1070 * Makefile.in (CORE_DLL_OBJECTS): Add pkgunst.OBJEXT
1072 2011-02-26 Keith Marshall <keithmarshall@users.sourceforge.net>
1074 Work-around for improper stderr buffering in MSYS mintty and rxvt.
1075 (Merged from r0-1-alpha-5 branch).
1077 * src/dmh.cpp (dmhTypeTTY::emit_and_flush): New private method.
1078 (dmhTypeTTY::printf, dmhTypeTTY::notify): Use it to force an fflush()
1079 after each output record is written to stderr.
1081 * README: Update as appropriate.
1083 2011-02-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1085 Tidy up some debugging hooks.
1087 * src/debug.h (DEBUG_INVOKED): New macro; define it.
1088 (DEBUG_INVOKE_IF): Likewise; this takes arguments providing for
1089 conditional invocation of code when DEBUGLEVEL is non-zero; make it
1090 expand to nothing, when DEBUGLEVEL is zero.
1091 (DEBUG_TRACE_INIT): Redefined macro; value changed to 0x0010.
1092 (DEBUG_TRACE_TRANSACTIONS, DEBUG_SUPPRESS_INSTALLATION):
1093 (DEBUG_UPDATE_INVENTORY): New macros; define them.
1095 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDirectory):
1096 (pkgTarArchiveInstaller::ProcessDataStream): Refactor debugging hooks;
1097 implement them in terms of DEBUGLEVEL, with reference to...
1098 (DEBUG_SUPPRESS_INSTALLATION, DEBUG_UPDATE_INVENTORY): ...these.
1100 2011-02-15 Keith Marshall <keithmarshall@users.sourceforge.net>
1102 Make package version comparisons more robust.
1104 Fixes an issue reported by Chris Sutcliffe: previously, version
1105 comparisons were evaluated solely on the basis of differences in the
1106 package version field itself. Henceforth, if this field compares as
1107 equal, then the comparison is extended to also consider differences
1108 between development phase qualifiers, and, if these too compare as
1109 equal, to differences in the target subsystem version fields.
1111 * src/pkginfo/pkginfo.h (pkgSpecs::VersionComparator): New private
1114 * src/pkgspec.cpp (pkgSpecs::VersionComparator): Implement it.
1115 (pkgSpecs::operator<, pkgSpecs::operator<=, pkgSpecs::operator>=):
1116 (pkgSpecs::operator>): Use it, replacing...
1117 (version): ...this static function; now unreferenced; delete it.
1119 * src/vercmp.h (pkgVersionInfo::pkgVersionInfo): Make it inline; it
1120 now delegates the entire class construction operation to...
1121 (pkgVersionInfo::Parse): ...this new private method; declare it. This
1122 is also used to facilitate implementation of...
1123 (pkgVersionInfo::Reset): ...this new inline method, also requiring...
1124 (pkgVersionInfo::FreeAll): ...this new inline method; also now used by
1125 the class destructor, it encapsulates separate calls to...
1126 (pkgVersionInfo::Free): ...this original inline method, renamed...
1127 (pkgVersionInfo::FreeEntry): ...as this.
1129 * src/vercmp.cpp (pkgVersionInfo::Parse): Implement it.
1131 2011-02-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1133 Merge from mingw-get-0.1-mingw32-alpha-5 bug-fix branch.
1135 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): Promote
1136 "install" action on new prerequisites, where a previously uninstalled
1137 package is required to satisfy any "upgrade" dependency.
1139 * src/pkgexec.cpp (pkgActionList::Execute): Don't make misleading
1140 claims concerning package removal.
1142 * src/pkgtask.h (STRICTLY_GT, STRICTLY_LT, ACTION_PRIMARY): Add one
1143 level of parentheses around defining expressions.
1145 2011-02-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1147 Publish mingw-get-0.0-mingw32-alpha-5.1 bug-fix release.
1149 * README: Updated to reflect changes.
1151 2011-02-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1153 Improve diagnostics for failed GUI invocation.
1155 * src/guimain.cpp: New file; currently delivers only a diagnostic
1156 stub, provided by Sze Howe Koh <axfangli@users.sourceforge.net>, to
1157 pop-up a message block explaining why GUI mode cannot be invoked.
1159 * Makefile.in (GUI_LDFLAGS): New macro; it is required by...
1160 (gui$EXEEXT): ...this new build rule; add to prerequisites of...
1161 (all): ...this [default] build rule; redefine this in terms of...
1162 (BIN_PROGRAMS, LIBEXEC_PROGRAMS, LIBEXEC_DATA): ...these new macros;
1163 define them, and also use them as loop iterator objectives for...
1164 (install, install_strip): ...these; also schedule them...
1165 (clean): ...for removal by this.
1167 * src/clistub.c (Copyright): Add new year.
1168 (main): Amend error message, if gui$EXEEXT doesn't start; make it
1169 more intelligible to normal users.
1171 2011-02-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1173 Correct omissions from packaged source tarball.
1175 * Makefile.in (Copyright): Add new year.
1176 (SRCDIST_FILES): Add aclocal.m4
1177 (SRCDIST_SUBDIRS): Add m4
1179 2011-01-05 Keith Marshall <keithmarshall@users.sourceforge.net>
1181 Reduce path names to base names, in some diagnostic message contexts.
1183 * src/climain.cpp: Update copyright notice for new year.
1184 (climain): Extract base name from argv[0], to pass as program name tag
1185 in initialisation of diagnostic message handler.
1187 * src/dmh.h, src/dmh.cpp: Update copyright notices; make some layout
1188 adjustments, for more consistent formatting style.
1190 * src/pkgbind.cpp: Update copyright notice.
1191 (pkgRepository::GetPackageList): Reduce path names for catalogue files
1192 to their base names, when reporting them in diagnostic messages.
1194 2011-01-05 Keith Marshall <keithmarshall@users.sourceforge.net>
1196 Avoid a potential out-of-range action name look-up.
1198 * src/pkgdeps.cpp: Update copyright notice for new year.
1199 (pkgXmlDocument::Schedule): Mask action code with ACTION_MASK, to
1200 determine correct action name when diagnosing uninstalled package.
1202 2011-01-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1204 Make "install" and "remove" notifications symmetric.
1206 * configure.ac (AC_INIT): Bump version to "0.1-alpha-6cvs".
1207 (YEARS_OF_ISSUE): Add new year.
1209 * src/pkginst.cpp: Update copyright notice for new year.
1210 (pkgInstall): Add notification for package being installed.
1212 2010-12-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1214 Add preliminary CLI support for "list" and "show" actions.
1216 * src/pkgtask.h (ACTION_PRIMARY): New manifest constant; define it.
1217 (ACTION_LIST, ACTION_SHOW): Likewise; cast to enumerated values for...
1218 (action_list, action_show): ...these; define them.
1220 * src/pkgexec.cpp (action_name): Add defining text for...
1221 (action_list, action_show): ...these.
1223 * src/climain.cpp: Partially revert 2010-11-01 change...
1224 (climain) [! ACTION_UPDATE]: Reinstate original "if" block, moving
1225 the "switch" block within it, but without the ACTION_UPDATE case.
1226 [ACTION_LIST, ACTION_SHOW]: New "switch" cases; they invoke...
1227 (pkgXmlDocument::DisplayPackageInfo): ...this new method.
1229 * src/pkgbase.h (pkgXmlDocument::DisplayPackageInfo): Declare it.
1230 (pkgActionItem::ConfirmInstallationStatus): New method; declare it.
1231 (pkgXmlNode::GetSysRoot): Make declaration style consistent with
1232 others in the class; do not name arguments in the declaration.
1233 (pkgXmlNode::FindFirstAssociate): Likewise.
1234 (pkgXmlNode::FindNextAssociate): Likewise.
1236 * src/pkgshow.cpp: New file.
1237 (pkgXmlDocument::DisplayPackageInfo): Implement it.
1239 * src/pkgdeps.cpp (pkgMsgUnknownPackage): New extern "C" function;
1240 implement it temporarily, pending a future i18n reimplementation.
1241 (assert_installed): Drop "inline" attribute; leave it as "static".
1242 Set "tarname" correctly, to match the installed package version; (it
1243 previously incorrectly returned the latest available version).
1244 (pkgActionItem::ConfirmInstallationStatus): Implement it.
1245 (pkgXmlDocument::Schedule) [ACTION_PRIMARY]: Set as appropriate.
1246 (pkgXmlDocument::Schedule) [ACTION_REMOVE || ACTION_UPGRADE]: Complain
1247 if requested package is not recorded as having been installed.
1248 (pkgXmlDocument::ResolveDependencies) [! ACTION_INSTALL]: Do not
1249 invoke it recursively.
1251 * Makefile.in (pkgshow.$OBJEXT): Add reference.
1253 2010-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1255 Lay groundwork for implentation of additional actions.
1257 * src/climain.cpp (climain): Adjust indentation; replace `if' block...
1258 [action != ACTION_UPDATE]: ...with this default `switch' case, and...
1259 [action == ACTION_UPDATE]: ...this as explicit "do nothing" case.
1261 2010-10-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1263 mingw-get-0.1-mingw32-alpha-5 released.
1265 * configure.ac (AC_INIT): Bump version to 0.1-alpha-5.
1266 * README: Update release notes accordingly.
1267 * All files (r0-1-alpha-5): Tag assigned.
1269 2010-10-22 Keith Marshall <keithmarshall@users.sourceforge.net>
1271 Make pkgInitRites/pkgLastRites processing more robust;
1272 avoid a potential race condition in mingw-get-inst.
1274 * src/rites.c: Refactor conditional code to segregate execution of...
1275 [defined IMPLEMENT_INITIATION_RITES]: ...this into distinct phases.
1276 (PHASE_ONE_RITES, PHASE_TWO_RITES): Define constants to identify them.
1277 (do_init_rites): Renamed to...
1278 (invoke_rites): ...this; inline it.
1279 (pkgLastRites): Invoke it, to pre-empt rename action of...
1280 (lastrites.exe): ...this, subsequently exec()ed process.
1281 (perror): Issue more informative diagnostic on exec() failure.
1283 * src/clistub.c (IMPLEMENT_INITIATION_RITES): Stipulate as...
1284 (PHASE_ONE_RITES): ...this phase of implementation only.
1286 * src/pkgexec.cpp (IMPLEMENT_INITIATION_RITES): Define to provide...
1287 (PHASE_TWO_RITES): ...this phase of implementation, facilitated by...
1288 (self_upgrade_rites): ...this locally defined RITES_INLINE function.
1289 (pkgActionItem::Execute): Invoke it, in remove/install loop, while...
1290 [init_rites_pending]: ...new loop local variable remains true.
1292 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
1294 Fix packaging bug in -lic package.
1296 * Makefile.in (licdist): Use directory named
1297 "share", not "shared".
1299 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
1301 mingw-get-0.1-mingw32-alpha-4 released.
1303 * All files (r0-1-alpha-4): Tag assigned.
1305 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
1307 Add rudimentary help option.
1309 * README: Update release notes.
1311 * src/clistub.c: Add --help option.
1313 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
1315 Fix "mingw-get deletes itself" bug in last rites handling.
1317 * README: Add new release notes.
1319 * configure.ac: Bump version to 0.1-alpha-4.
1321 * src/dmh.h: If __cplusplus, include <exception> and
1322 declare dmh_exception class.
1324 * src/dmh.cpp (class dmh_exception): Implement.
1325 (abort_if_fatal): If DMH_FATAL, throw dmh_exception rather
1326 than calling exit().
1328 * src/climain.cpp (climain): Wrap entire function body in try/
1329 catch block. If dmh_exception is caught, return EXIT_FAILURE.
1331 * src/clistub.c (main): Capture return value of climain(). If
1332 non-zero, perform last rites and return EXIT_FAILURE.
1334 2010-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1336 mingw-get-0.1-mingw32-alpha-3 released.
1338 * README: Add new release notes.
1340 * All files (r0-1-alpha-3): Tag assigned.
1342 2010-08-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1344 Add runtime hooks to support self-upgrade for future releases.
1346 * src/rites.c: New file; compile it free-standing, to provide...
1347 (lastrites.exe): ...this helper application for context clean-up;
1348 alternatively, use it as an include file, with pre-definition of...
1349 (IMPLEMENT_INITIATION_RITES): ...this, to implement...
1350 (pkgInitRites, pkgLastRites): ...these inline functions.
1352 * src/clistub.c (main) [argc > 1]: Use them.
1353 (progname): New local variable within `main'; set it once, then use it
1354 instead of repeated references to `basename(*argv)' in diagnostics.
1355 (MINGW_GET_DLL, MINGW_GET_GUI): Relocate to `src/rites.c'.
1357 * src/debug.h (DEBUG_INHIBIT_RITES_OF_PASSAGE):
1358 (DEBUG_FAIL_FILE_RENAME_RITE, DEBUG_FAIL_FILE_UNLINK_RITE): New
1359 defines; they facilitate debugging of the src/rites.c code.
1361 * Makefile.in (lastrites$EXEEXT): New target; build as prerequisite...
1362 (all): ...of this primary target.
1363 (install, install-strip): Install it.
1364 (SRCDIST_FILES): Remove install-sh; it is now included in...
1365 (build-aux): ...this directory; add it to...
1366 (SRCDIST_SUBDIRS): ...this.
1368 2010-08-24 Keith Marshall <keithmarshall@users.sourceforge.net>
1370 Set default sysroots relative to mingw-get installation directory.
1372 * xml/profile.xml (system-map) [name == default]: For each of...
1373 [subsystem == mingw32]: ...set sysroot path to value of %R macro...
1374 [subsystem == msys]: ...and to its %R/msys/1.0 subdirectory.
1376 2010-08-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1378 Some dependency resolver enhancements and bug fixes.
1380 * src/pkgbase.h (pkgXmlNode::GetContainerAttribute): New method;
1383 * src/pkgdeps.cpp (pkgXmlNode::GetContainerAttribute): Implement it;
1384 it is used to retrieve package name attributes from the containing
1385 'package' element, when given a pointer to a 'release' element by...
1386 (assert_unmatched, assert_installed): ...these new static functions.
1387 (pkgXmlDocument::Schedule): Use them to reconstruct and register
1388 dependency reference data for previously installed packages which are
1389 no longer included in the distribution manifest.
1390 (pkgXmlDocument::ResolveDependencies): Fix a block nesting error;
1391 catch and diagnose unresolved dependencies; don't look beyond the XML
1392 document root node, (tinyxml error not caught?), when searching for
1393 requirements specified on container nodes.
1395 2010-08-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1397 Improve scheduling of package processing requests.
1399 * src/pkgexec.cpp (pkgXmlDocument::Schedule): Inspect entire `actions'
1400 list, when checking for duplicate package processing requests; decline
1401 to schedule any such duplicate, or any request which lacks a package
1404 2010-08-15 Keith Marshall <keithmarshall@users.sourceforge.net>
1406 Lay foundation for selective compilation of debugging code.
1408 * src/debug.h: New file...
1409 * src/sysroot.cpp: Include it.
1410 (pkgXmlDocument::LoadSystemMap): Make debugging output conditional...
1411 [DEBUGLEVEL & DEBUG_TRACE_INIT]: ...on this new debugging state.
1413 2010-08-15 Keith Marshall <keithmarshall@users.sourceforge.net>
1415 * src/pkgkeys.h: Typo in comment: file was previously identified as
1416 pkgkeys.c; corrected.
1418 2010-08-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1420 Improve diagnostics for invalid references to non-release XML nodes.
1422 * src/pkgkeys.h (value_unknown): New global string; declare it.
1423 * src/pkgkeys.c (value_unknown): Implement it.
1425 * src/pkgname.cpp (pkgArchiveName): Identify XML element type when
1426 diagnosing references to elements of types other than release; use...
1427 (value_unknown): ...this, as appropriate.
1429 2010-08-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1431 Guard against a potential buffer overrun.
1433 * src/pkgreqs.cpp (pkgSpecs::SetProperty): Allocate an additional
1434 byte to accommodate an extra field separator, when inserting a new
1435 data value into a previously empty field.
1437 2010-07-27 Cesar Strauss <cestrauss@gmail.com>
1439 Handle the GNU long name tar header format.
1441 * src/pkgproc.h (TAR_ENTITY_TYPE_GNU_LONGNAME): New manifest constant;
1443 (pkgTarArchiveProcessor::EntityDataAsString): New protected method;
1445 * src/tarproc.cpp: ...implement it.
1446 (pkgTarArchiveProcessor::Process): Before building the entry pathname,
1447 check for a GNU long name type header; when found, read pathname from
1448 the entry data area, before fetching the following header, from which
1449 to retrieve the associated entity data.
1451 2010-06-24 Keith Marshall <keithmarshall@users.sourceforge.net>
1453 Work around an autoconf bug (reported by Stefano Sabatini).
1455 * Makefile.in (VPATH): Use @top_srcdir@ instead of ${srcdir}; current
1456 autoconf incorrectly elides references to @srcdir@ and ${srcdir} when
1457 substituting within a VPATH specification for building `in-source'.
1458 Also, prefer colons to blanks as path name separators, for improved
1459 portability to non-GNU implementations of make; (recommendation by
1462 2010-06-24 Keith Marshall <keithmarshall@users.sourceforge.net>
1464 Include alias search, when matching component package name.
1466 * src/keyword.c (has_keyword): Rearrange argument declarations for
1467 more natural order; update all callers accordingly. Simplify; compare
1468 keyword to be matched with each successive candidate from match-list,
1469 character-by-character and in-place, so avoiding memory allocation
1470 for any local duplicate of the passed match-list; thus...
1471 (safe_strdup): ...this static function no longer required; delete it.
1472 (string.h): No references remain; do not include it.
1474 * src/pkgfind.cpp (pkgXmlNode::FindPackageByName): Augment component
1475 package name matching to include potential matches of the look-up name
1476 with trailing component name stripped off, when that matches the class
1477 name of an identified component package, and the initial substring of
1478 the look-up name, after stripping, matches any specified alias name
1479 for the containing package.
1481 2010-06-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1483 Address FIXME relating to identification of distributable files.
1485 * install-sh: Move to...
1486 * build-aux: ...this new directory.
1488 * Makefile.in (PACKAGE_DISTVERSION): Modify `sed' edit sequence; make
1489 it depend on, and ensure that it incorporates the expansion of...
1490 (PACKAGE_SUBSYSTEM): ...this new macro; defined as substitution of...
1491 (host_os): ...this autoconf variable, set by...
1493 * configure.ac (AC_CANONICAL_HOST): ...this; add it, requiring...
1494 (AC_CONFIG_AUX_DIR): ...`build-aux' directory reference, providing...
1496 * build-aux/config.guess, build-aux/config.sub: ...these new standard
1497 files; import them from the standard `build-aux' repository.
1499 2010-05-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1501 Bump version for next release cycle.
1503 * configure.ac (AC_INIT): Bump version suffix to alpha-3.
1505 2010-05-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1507 mingw-get-0.1-mingw32-alpha-2 released.
1509 * README: Add new release notes.
1511 * xml/profile.xml: Update to use default referencing for...
1512 (package-list.xml.lzma): ...this repository master catalogue.
1514 * All files (r0-1-alpha-2): Tag assigned.
1516 2010-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1518 Make provision to protect user's profile settings during upgrade.
1520 * Makefile.in (install): Remove `profile.xml'; replace it with...
1521 (install-profile): ...this new prerequisite installation goal; it
1522 renames the installed copy of `profile.xml' as `defaults.xml', within
1523 the installed package image.
1525 * src/pkgkeys.h (defaults_key): New key; declare it.
1526 * src/pkgkeys.c: Some cosmetic formatting (tabulation) adjustments.
1527 (defaults_key): Implement it; it refers to the `defaults.xml' file.
1529 * src/climain.cpp (climain): Check `profile_key' for accessibility of
1530 the `profile.xml' file; if [! R_OK] emit a diagnostic warning, fall
1531 back on `defaults_key', and attempt to load configuration from the
1532 distributed `defaults.xml' file.
1534 2010-05-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1536 Add preliminary support for future `-reinstall' option.
1538 * src/pkgexec.cpp (pkgActionItem::Execute) [ACTION_INSTALL]: Force
1539 installation if `-reinstall' option is selected, overriding state of
1540 any prior installation; temporarily assume that this option is always
1541 selected, to permit proper `upgrade' operation in the absence of any
1542 functional `uninstall' capability, and pending implementation of a
1543 mechanism for interpreting user specified options.
1545 2010-05-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1547 Correct handling for "%R" macro in relative sysroot path specs.
1549 * src/tarproc.cpp (pkgTarArchiveProcessor): In constructor, expand the
1550 sysroot path specification a second time, to capture the effect of any
1551 embedded macros, before computing the recorded `sysroot_len' value.
1553 2010-05-05 Keith Marshall <keithmarshall@users.sourceforge.net>
1555 Handle "%" wildcard matches in package and subsystem version strings.
1557 * src/pkgbase.h (pkgSpecs): Forward declare it.
1558 (pkgActionItem::~pkgActionItem): Declare explicit destructor.
1559 (pkgActionItem::SetRequirements): Add extra `pkgSpecs*' argument;
1560 update references, passing additional argument in...
1562 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): ...this.
1564 * src/pkgexec.cpp (pkgActionItem::~pkgActionItem): Implement it.
1565 (pkgActionItem::SetRequirements): Delete obsolete implementation.
1567 * src/pkginfo/pkginfo.h: Update copyright notice; add year 2010.
1568 (pkgSpecs::GetTarName): New public method; declare it.
1569 (pkgSpecs::SetProperty): New private method; declare it.
1570 (pkgSpecs::SetPackageName): New inline method; implement it.
1571 (pkgSpecs::SetPackageVersion, pkgSpecs::SetPackageBuild): Likewise.
1572 (pkgSpecs::SetSubSystemName, pkgSpecs::SetSubSystemVersion): Likewise.
1573 (pkgSpecs::SetSubSystemBuild, pkgSpecs::SetReleaseStatus): Likewise.
1574 (pkgSpecs::SetReleaseIndex, pkgSpecs::SetComponentClass): Likewise.
1575 (pkgSpecs::SetComponentVersion, pkgSpecs::SetPackageFormat): Likewise.
1576 (pkgSpecs::SetCompressionType): Likewise.
1578 * src/pkginfo/pkginfo.l: Update copyright notice; add year 2010.
1579 (TRANS): Interpret "%" as wildcard in version string matches.
1581 * src/pkgreqs.cpp: New file.
1582 (pkgActionItem::SetRequirements): Reimplement per new declaration;
1583 it now always allocates heap memory for requirements specifications.
1584 (pkgSpecs::GetTarName, pkgSpecs::SetProperty): Implement them.
1586 * Makefile.in (CORE_DLL_OBJECTS): Add `pkgreqs.$(OBJEXT)'.
1588 2010-04-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1590 Revert 2010-04-04 refactoring of tarproc.cpp and tarinst.cpp
1592 * src/tarinst.cpp: File removed; its content merged into...
1593 * src/tarproc.cpp: ...this; it cannot be cleanly separated out.
1595 * Makefile.in (tarinst.$OBJEXT): Remove reference.
1597 2010-04-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1599 Handle "*" wildcard matches in package and subsystem version strings.
1601 * src/vercmp.h (pkgVersionInfo::version_string): New private member
1602 variable; it stores a pointer to a dynamically allocated local copy of
1603 the invariant `version' argument, to facilitate correct parsing.
1604 (pkgVersionInfo::build_string): Likewise; it provides similar handling
1605 for the invariant `build' argument.
1606 (pkgVersionInfo::Free): New private inline method; it provides a NULL
1607 pointer safe wrapper, calling the C library `free()' function, (since
1608 some implementations are believed to be unsafe); it is used by...
1609 (pkgVersionInfo::~pkgVersionInfo): ...this new inline destructor, to
1610 release the memory allocated by the constructor, for `version_string'
1613 * src/vercmp.cpp (pkgVersionInfo::pkgVersionInfo): Allocate memory for
1614 `version_string' and `build_string', as required; populate it.
1615 Explicitly handle "*" as a `match anything' wildcard...
1616 (pkgVersionInfo::Compare): ...matching it as `equal' to everything.
1618 2010-04-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1620 Correct omission from configure script prerequisite checks.
1622 * aclocal.m4 (MINGW_AC_OUTPUT): New macro; it wraps AC_OUTPUT itself,
1623 adding a trap to force an abort if any preceding prerequisite check
1624 was handled by MINGW_AC_ASSERT_MISSING.
1626 * configure.ac: Qualify package component types, in prerequisite
1627 checks handled by MINGW_AC_ASSERT_MISSING; invoke MINGW_AC_OUTPUT
1628 in place of AC_OUTPUT.
1630 2010-04-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1632 Add configure script checks for prerequisite library headers.
1633 (Thanks to Cesar Strauss for proposing a rudimentary implementation).
1635 * aclocal.m4: New file; it does no more than include...
1636 * m4/missing.m4: ...this; new file incorporated from build-aux module.
1638 * configure.ac: Add AC_CHECK_HEADER assertions for...
1639 (zlib.h, bzlib.h, lzma.h): ...these; invoke MINGW_AC_ASSERT_MISSING in
1640 respect of each failing assertion.
1642 2010-04-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1644 Case-insensitive subsystem name matching revisited.
1646 * src/pkgfind.cpp (pkgXmlDocument::FindPackageByName): Use...
1647 (subsystem_strcmp): ...this to match subsystem names, instead of...
1648 (match_if_explicit): ...this.
1650 2010-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
1652 Enable recursive processing of repository package lists.
1654 * src/pkgbase.h (pkgXmlDocument::SyncRepository): Make it public.
1656 * src/pkgbind.cpp (pkgRepository): New locally defined and implemented
1657 class; it facilitates recursive loading and parsing of package lists,
1658 replacing much of the original non-recursive functionality within...
1659 (pkgXmlDocument::BindRepositories): ...this; use it.
1661 2010-04-04 Keith Marshall <keithmarshall@users.sourceforge.net>
1663 Implement installer function; use per-package file manifests.
1665 * src/pkgproc.h (pkgManifest): New class; declare it.
1666 (pkgArchiveProcessor::origin): New protected member variable.
1667 (pkgArchiveProcessor::sysroot_len): New protected member variable.
1668 (pkgArchiveProcessor::installed): Type changed to `pkgManifest *'.
1669 (pkgTarArchiveInstaller::Process): Declare specialisation hook.
1670 (pkgTarArchiveInstaller::UpdateInstallationManifest): Disused member
1671 function; remove redundant declaration from class definition.
1672 (pkgInstall): New generalised installation function; declare it.
1673 (pkgRegister): New function; declare it.
1675 * src/pkginst.cpp: New file.
1676 (pkgManifest, pkgInstall, pkgRegister): Implement them.
1678 * src/pkgexec.cpp (pkgActionItem::Execute): Use `pkgInstall' in place
1679 of stub formerly provided here.
1681 * src/pkgkeys.h (manifest_key, reference_key): New keys; declare them.
1682 * src/pkgkeys.c (manifest_key, reference_key): Implement them.
1684 * src/tarproc.cpp: Code refactored.
1685 (pkgTarArchiveProcessor::sysroot_len): Initialise it.
1686 (pkgTarArchiveProcessor::origin): Initialise it.
1687 (pkgTarArchiveProcessor::installed): Initialise; associate it with a
1688 pkgManifest class entity, and populate this as appropriate.
1689 (pkgTarArchiveProcessor::~pkgTarArchiveProcessor): Add explicit clean
1690 up of linked `pkgManifest *' entity referenced by `installed'.
1691 (pkgTarArchiveProcessor::Process) [TAR_ENTITY_TYPE_DIRECTORY]: Add
1692 braces to demarcate localised inner scope of string scan for removal
1693 of trailing directory name separators; (thanks to Cesar Strauss for
1694 reporting invalid local pointer declaration error in GCC >= 4.4).
1695 (pkgTarArchiveInstaller::UpdateInstallationManifest): Deleted.
1696 (pkgTarArchiveInstaller::pkgTarArchiveInstaller): Factor out.
1697 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
1698 (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
1699 (commit_saved_entity): Likewise.
1701 * src/tarinst.cpp: New file; it implements...
1702 (pkgTarArchiveInstaller::Process): ...this new specialisation
1703 of the original pkgTarArchiveProcessor::Process method...
1704 (pkgTarArchiveInstaller::pkgTarArchiveInstaller): ...and this
1705 refactored code, abstracted from src/tarproc.cpp and modified to
1706 use the pkgManifest class for installation tracking.
1707 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
1708 (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
1709 (commit_saved_entity): Relocated from src/tarproc.cpp.
1711 * Makefile.in (CORE_DLL_OBJECTS): Add...
1712 (pkginst.OBJEXT, tarinst.OBJEXT): ...these new object files.
1714 2010-03-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1716 Guard against NULL pointer dereferences in tinyxml code.
1718 * src/pkgbase.h (pkgXmlNode::GetName): Verify `this' pointer is
1719 non-NULL, before invoking the underlying tinyxml method.
1720 (pkgXmlNode::GetParent, pkgXmlNode::GetChildren): Likewise.
1721 (pkgXmlNode::GetNext, pkgXmlNode::GetPropVal): Likewise.
1722 (pkgXmlNode::AddChild, pkgXmlNode::DeleteChild): Likewise.
1723 (pkgXmlNode::GetDocumentRoot): Likewise.
1724 (pkgXmlNode::IsElementOfType): Likewise.
1726 2010-03-28 Cesar Strauss <cestrauss@gmail.com>
1728 Avoid running InternetAttemptConnect in pkgInternetAgent
1729 constructor, since it is called during DLL initialisation.
1731 * src/pkginet.cpp (pkgInternetAgent::pkgInternetAgent): Move the
1732 InternetAttemptConnect call from constructor...
1733 (pkgInternetAgent::OpenURL): ...to here.
1735 2010-03-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1737 Automate object code dependency tracking.
1739 * Makefile.in (DEPFLAGS): New macro; define it.
1740 (%.OBJEXT: %.c, %.OBJEXT: %.cpp): Add dependency generator commands...
1741 (%.d): ...to create these dependency maps; `sinclude' them, and...
1742 (clean): ...remove them.
1744 * .cvsignore (*.d): Add wild card template to match them.
1746 2010-03-22 Keith Marshall <keithmarshall@users.sourceforge.net>
1748 Support case insensitive matching for file and subsystem names.
1750 * src/pkgbase.h (safe_strcmp): New inline function; it provides NULL
1751 argument safe comparison of strings, returning the boolean inverse of
1752 the `strcmp' result, using either case-sensitive or case-insensitive
1753 semantics; derive it from...
1754 (match_if_explicit): ...this; redefine as macro; invoke `safe_strcmp'
1755 using explicitly case-sensitive semantics.
1756 (subsystem_strcmp): New macro; it invokes `safe_strcmp' with either
1757 case-sensitive or case-insensitive semantics, depending on...
1758 (CASE_INSENSITIVE_SUBSYSTEMS): ...this new context selection macro; it
1759 fixes the choice between case-sensitive and case-insensitive matching
1760 semantics for any given implementation, at compile time.
1761 (pkg_strcmp): New macro; it invokes `safe_strcmp' with either
1762 case-sensitive or case-insensitive semantics, depending on...
1763 (CASE_INSENSITIVE_FILESYSTEM): ...this new context selection macro; it
1764 fixes the choice between case-sensitive and case-insensitive matching
1765 semantics for any given implementation, at compile time.
1767 * src/sysroot.cpp (pkgXmlNode::GetSysRoot): Use `subsystem_strcmp'.
1769 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1771 Add preliminary support for virtual packages.
1773 * src/pkgkeys.h (yes_value, no_value): Redefine as aliases...
1774 (value_yes, value_no): ...for these new global strings; declare them.
1775 (value_none, value_virtual): New global strings; declare them.
1777 * src/pkgkeys.c (yes_value, no_value): Rename...
1778 (value_yes, value_no): ...to implement these, respectively.
1779 (value_none, value_virtual): Implement them.
1781 * src/pkgname.cpp (pkgXmlNode::ArchiveName): Check containing package
1782 node for `class' attribute set to `value_virtual'; if present, always
1783 return the effective `tarname' property as `value_none'.
1785 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): For packages
1786 with an effective `tarname' of `value_none', do not download anything.
1788 * src/pkgexec.cpp (pkgActionItem::Execute): For packages with an
1789 effective `tarname' of `value_none', do not invoke any tar archive
1790 processing function.
1792 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1794 Don't write installation records for unavailable packages.
1796 * src/tarproc.cpp (pkgTarArchiveInstaller): In constructor, ensure
1797 archive is ready for processing, before initialising an installation
1800 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1802 Rationalise path identification for XML file locations.
1804 * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Use `xmlfile()'
1805 function to locate `sysroot' map file; free memory when done.
1806 (pkgXmlDocument::UpdateSystemMap): Likewise.
1807 (sigpath): Static global variable disused; delete it.
1809 2010-03-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1811 Extend package name search to include component packages.
1813 * src/pkgfind.cpp (pkgHasMatchingName): Remove; fold it into...
1814 (pkgXmlNode::FindPackageByName): ...this; augment to extend search
1815 within package definition elements, seeking a potential match on an
1816 included component package name or component class-implied name.
1818 * src/pkgkeys.h (class_key): New global string constant; declare it.
1819 * src/pkgkeys.c (class_key): Implement it.
1821 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1823 Bump version for next release cycle.
1825 * configure.ac (AC_INIT): Bump version suffix to alpha-2.
1827 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1829 mingw-get-0.1-mingw32-alpha-1 released.
1831 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1833 Prepare initial package release.
1835 * README: New file; use it to source release notes.
1837 * Makefile.in (SRCDIST_FILES): Use ...
1838 (LICENCE_FILES): ...this new macro; define it.
1839 (licdist): New build goal; implement it.
1840 (bindist): Require it; add alternative `zip' format package.
1842 * xml/profile.xml (repository): Set default `package-index' name.
1843 (system-map): Normalise spelling for default `sysroot' path names.
1845 2010-02-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1847 Add directory/file records in installation manifests.
1849 * src/pkgkeys.h (dirname_key, filename_key): New strings; declare...
1850 * src/pkgkeys.c (dirname_key, filename_key): ...and implement them.
1852 * src/pkgproc.h (pkgArchiveProcessor::installed): New class member
1853 variable; declare it.
1854 (pkgTarArchiveInstaller::UpdateInstallationManifest): New method;
1857 * src/tarproc.cpp: Miscellaneous comment updates.
1858 (pkgTarArchiveInstaller): In constructor...
1859 (pkgTarArchiveInstaller::installed): ...use new member variable...
1860 (pkgArchiveProcessor::installed): ...inherited from this.
1861 (pkgTarArchiveInstaller::UpdateInstallationManifest): Implement and...
1862 (pkgTarArchiveInstaller::ProcessDataStream): ...use it.
1863 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
1865 2010-02-06 Keith Marshall <keithmarshall@users.sourceforge.net>
1867 Work around a deficiency in Microsoft's stat() implementation.
1869 * src/tarproc.cpp (pkgTarArchiveProcessor::ProcessDirectory): Don't
1870 pass a `pathname' argument with trailing slashes; strip them off.
1872 2010-02-06 Keith Marshall <keithmarshall@users.sourceforge.net>
1874 Add machinery for installation and packaging for distribution.
1876 * install-sh: New file; source it from autoconf distribution.
1878 * configure.ac (AC_PREFIX_DEFAULT): Assign it as `C:/MinGW'.
1879 (AC_PROG_MKDIR_P, AC_PROG_INSTALL, AC_PROG_LN_S): Invoke these.
1880 (STRIP): New output variable; use AC_CHECK_TOOL to define it.
1882 * Makefile.in (abs_top_srcdir): Define to AC_SUBST value.
1883 (PACKAGE_TARNAME, PACKAGE_VERSION): Define to AC_SUBST values.
1884 (prefix, exec_prefix, bindir, libexecdir, localstatedir): Likewise.
1885 (INSTALL, INSTALL_PROGRAM, INSTALL_SCRIPT, INSTALL_DATA): Likewise.
1886 (STRIP): New macro; define it using AC_CHECK_TOOL substitution.
1887 (mkinstalldirs): New macro; define it as AC_PROG_MKDIR_P result.
1888 (LN_S): New macro; define it as AC_PROG_LN_S result.
1889 (dist, srcdist, bindist): New build objectives; implement them.
1890 (install, installdirs, install-strip, maintainer-clean): Likewise.
1891 (SRCDIST_FILES, SRCDIST_SUBDIRS): New macros; define them.
1892 (PACKAGE_DISTNAME, PACKAGE_DISTVERSION): Likewise.
1893 (PACKAGE_DISTROOT, PACKAGE_ROOTVERSION): Likewise.
1894 (PACKAGE_CONFIG_DIR): Likewise.
1896 2010-02-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1898 Implement package installer for tar archives.
1900 * src/pkgexec.cpp (pkgXmlDocument::Execute): Replace existing
1901 stub implementation of installer, using methods provided by...
1902 * src/pkgproc.h, src/tarproc.cpp: ...these new files, with trap...
1903 * src/pkgdeps.cpp (pkgXmlDocument::Schedule) [installed]: Add entry...
1904 (pkgActionItem::Selection) [to_remove]: ...for this; use it to detect
1905 `install' requests for packages which are aleady installed.
1907 * Makefile.in (CORE_DLL_OBJECTS): Add tarproc.$(OBJEXT); specify
1908 dependencies as appropriate.
1910 * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Don't commit
1911 newly created `sysroot' mapping records to disk; defer to...
1912 (pkgXmlDocument::UpdateSystemMap): ...this new method.
1913 (sigpath): Make it a global variable, with file (static) scope.
1915 * src/climain.cpp (pkgXmlDocument::UpdateSystemMap): Invoke it.
1917 * src/pkgkeys.h (download_key, modified_key, source_key): New global
1918 string variables; declare them, providing their implementations...
1919 * src/pkgkeys.c (download_key, modified_key, source_key): ...here.
1920 * src/pkgname.cpp (download_key, source_key): Use them.
1922 * src/pkginet.cpp (pkgActionItem::ArchivePath): Delete; replace...
1923 * src/mkpath.c (pkgArchivePath): ...with this free standing function.
1924 * src/mkpath.h (pkgArchivePath): Declare its prototype.
1926 * src/pkgbase.h (pkgActionItem::ArchivePath): Delete declaration.
1927 (pkgXmlDocument): Add a default constructor; implement as `inline'.
1928 (pkgXmlDocument::AddDeclaration): Use heap memory to allocate the new
1929 declaration object, instead of `auto' variable, to avoid scope error.
1930 (pkgXmlDocument::UpdateSystemMap): Declare it.
1932 2010-01-26 Keith Marshall <keithmarshall@users.sourceforge.net>
1934 Implement rudimentary dependency resolver.
1936 * src/pkgdeps.cpp: New file.
1938 * Makefile.in (CORE_DLL_OBJECTS): Add pkgdeps.$(OBJEXT) reference;
1939 establish header file dependencies.
1941 * src/pkgbase.h (to_remove, to_install, selection_types): New enum.
1942 (pkgActionItem::selection): Extend it to store as enumerated pair...
1943 (pkgActionItem::SelectPackage): New inline method; assign them.
1944 (pkgActionItem::Selection): New inline method; retrieve them.
1945 (pkgXmlNode::GetInstallationRecord): New method; declare it.
1947 * src/pkgexec.cpp (pkgActionItem): In constructor...
1948 (selection): ...initialise both references in enumerated pair.
1949 (pkgActionItem::GetReference): Use `Selection()' method.
1950 (pkgActionItem::SelectIfMostRecent): Ditto; also correct logic for
1951 making selection, and assign to `to_install' element.
1952 (pkgXmlDocument::Schedule): Don't update `request'.
1953 (pkgActionItem::Execute): Implement as stub.
1955 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): Use new
1956 `Selection()' method.
1958 * src/pkgkeys.h (yes_value, no_value): Declare new string constants.
1959 * src/pkgkeys.c (yes_value, no_value): Implement them.
1961 * src/vercmp.cpp: Update copyright notice.
1962 (pkgVersionInfo::operator<=): Bug fix; must test for `<', but had `>'.
1964 2010-01-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1966 Avoid segmentation faults when processing invalid data streams.
1968 * src/pkgstrm.h: Update copyright notice.
1969 (pkgArchiveStream::IsReady): New pure virtual method.
1970 (pkgRawArchiveStream::IsReady): Provide inline implementation.
1971 (pkgGzipArchiveStream::IsReady): Likewise.
1972 (pkgBzipArchiveStream::IsReady): Likewise.
1973 (pkgLzmaArchiveStream::IsReady): Likewise.
1974 (pkgXzArchiveStream::IsReady): Likewise.
1976 * src/pkgstrm.cpp: Update copyright notice.
1977 (pkgLzmaArchiveStream, pkgXzArchiveStream) [fd == -1]: Decline to
1978 perform any form of read or decode processing.
1980 * src/pkginet.cpp (pkgInternetLzmaStreamingAgent): Use `fd = -2' as
1981 pseudo-descriptor for the pkgLzmaArchiveStream derived component of
1982 this internet data streaming class.
1984 2010-01-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1986 Require liblzma >= liblzma-4.999.9beta_20091209-3-mingw32-dev
1988 * src/pkgstrm.h (LZMA_API_STATIC): Remove definition and associated
1989 comment; it was required to permit, (but not to enforce), linking to
1990 the static liblzma.a library, with earlier beta releases, but this
1991 anomaly has now been corrected.
1993 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
1995 Remove zlib sources from trunk.
1996 (Application builders should use free standing implementation of
1997 zlib, from MinGW's package distribution page on SourceForge).
1999 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
2001 Remove bzip2 sources from trunk.
2002 (Application builders should use free standing implementation of
2003 bzip2, from MinGW's package distribution page on SourceForge).
2005 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
2007 Add subsystem specific sysroot mapping facility.
2009 * src/pkghash.c: New file; required by...
2010 * src/sysroot.cpp: New file; it implements...
2011 (pkgXmlDocument::LoadSystemMap, pkgXmlNode::GetSysRoot): New methods.
2013 * src/pkgbase.h: Update copyright notice.
2014 (pkgXmlDocument::LoadSystemMap): Declare it.
2015 (pkgXmlDocument::AddDeclaration): New inline method.
2016 (pkgXmlDocument::SetRoot, pkgXmlDocument::Save): Likewise.
2017 (pkgXmlNode::GetSysRoot): Declare it.
2018 (pkgXmlNode::GetDocumentRoot): New inline method.
2019 (pkgXmlNode::AddChild, pkgXmlNode::DeleteChild): Likewise.
2021 * src/climain.cpp: Update copyright notice.
2022 (climain): Invoke pkgXmlDocument::LoadSystemMap() as required.
2024 * Makefile.in (CORE_DLL_OBJECTS): Add ...
2025 (pkghash.$(OBJEXT), sysroot.$(OBJEXT)): ...these; upate dependencies.
2026 (DEBUGLEVEL): New macro; define it.
2029 2010-01-16 Keith Marshall <keithmarshall@users.sourceforge.net>
2031 Assign standardised keys for XML database lookup.
2033 * src/pkgkeys.h: New file; provide public key declarations.
2034 * src/pkgkeys.c: New file; implement them.
2036 * src/pkgbind.cpp: Use them; update copyright notice.
2037 * src/pkgexec.cpp, src/pkgfind.cpp, src/pkginet.cpp: Likewise.
2038 * src/pkgname.cpp, src/pkgspec.cpp: Likewise.
2040 * Makfile.in (CORE_DLL_OBJECTS): Add pkgkeys.$(OBJEXT); update all
2041 dependencies accordingly.
2043 2010-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
2045 Add CLI version reporting option.
2047 * configure.ac: Update copyright notice for new year.
2048 (COPYRIGHT_HOLDER): New AC_SUBST variable; define it.
2049 (YEARS_OF_ISSUE): New AC_SUBST variable; define it.
2050 (AC_CONFIG_FILES): Add `version.c'; source it from...
2052 * version.c.in: ...this new file.
2054 * Makefile.in: Update copyright notice for new year.
2055 (mingw-get$(EXEEXT)): Add dependency on `version.$(OBJEXT)'.
2056 (distclean): Add `version.c'.
2058 * configure: Regenerated.
2060 * src/clistub.c: Update copyright notice for new year.
2061 (options): New array of `struct option'; define and use it as the
2062 reference for `argv' parsing with `getopt_long_only()'.
2064 2009-12-17 Keith Marshall <keithmarshall@users.sourceforge.net>
2066 Add CLI support for "update" action.
2068 * src/pkgtask.h (ACTION_UPDATE): Define it, derived from...
2069 (action_update): ...this new entry in anonymous enumeration.
2071 * src/pkgexec.cpp (action_name): Add "update" keyword identification.
2073 * src/pkgbase.h: Typo in comment; s/xwXmlDocument/wxXmlDocument/.
2074 (pkgXmlDocument::BindRepositories): Add `force_update' parameter...
2075 * src/pkgbind.cpp (pkgXmlDocument::BindRepositories): Use it to...
2076 (pkgXmlDocument::SyncRepository): ...invoke this method when passed as
2077 a `true' flag, in addition to (as previously) first time reference.
2079 * src/climain.cpp (climain): Interpret "update" keyword for...
2080 [ACTION_UPDATE]: ...passing state as `force_update' parameter to...
2081 (pkgXmlDocument::BindRepositories): ...this method, then...
2082 [!ACTION_UPDATE]: Follow with normal action processing.
2084 2009-12-16 Keith Marshall <keithmarshall@users.sourceforge.net>
2086 Add status checking for Internet URL connections.
2088 * src/pkginet.cpp (pkgInternetAgent::QueryStatus): New method.
2089 (pkgInternetStreamingAgent::Get): Use it; set `dl_status' as return
2090 value, deferring failure diagnostics to callers, i.e. to...
2091 (pkgXmlDocument::SyncRepositories): ...this, and to...
2092 (pkgActionItem::DownloadArchiveFiles): ...this.
2094 2009-11-23 Keith Marshall <keithmarshall@users.sourceforge.net>
2096 Add package download and repository synchronisation machinery.
2098 * src/pkgstrm.h: New header file.
2100 * src/pkgbind.cpp, src/pkginet.cpp, src/pkgstrm.cpp,
2101 src/pkgfind.cpp, src/pkgname.cpp, src/keyword.c: New files.
2102 * Makefile.in (CORE_DLL_OBJECTS): Add build goals for them.
2104 * xml: New directory.
2106 * src/climain.cpp (climain): Establish repository bindings from...
2107 * xml/profile.xml: ...this new configuration file.
2109 2009-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
2111 Add XML database bindings and preliminary action executive for CLI.
2113 * src/pkgbase.h, src/pkgtask.h,
2114 src/mkpath.h, src/vercmp.h: New header files.
2116 * src/climain.cpp, src/pkgexec.cpp, src/pkgspec.cpp,
2117 src/mkpath.c, src/vercmp.cpp, src/xmlfile.c: New files.
2119 * Makefile.in (CORE_DLL_OBJECTS): Define initial set of files...
2120 (mingw-get-0.dll): ...build them into this new DLL target; add it...
2121 (all): ...as prerequisite for this primary build goal.
2123 2009-11-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2125 Avoid some potential GCC warnings.
2127 * src/clistub.c: Include process.h for `execv' prototype...
2128 (main): Cast `argv' to appropriately matched type when calling it.
2130 * src/pkginfo/driver.c: Include stdlib.h for `free' prototype.
2132 2009-11-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2134 Create diagnostic message handler for CLI usage.
2136 * src/dmh.h: New header file; it defines the public interface.
2137 * src/dmh.cpp: New file; it implements the message handler.
2139 2009-11-05 Keith Marshall <keithmarshall@users.sourceforge.net>
2141 Correct some identified TinyXML issues.
2143 * tinyxml/tinyxml.h (IsWhiteSpace): Add FIXME annotation to flag
2144 probable redundancy of checks for '\n' and '\r'.
2145 * tinyxml/tinyxmlparser.cpp: Revert John E's 2008-08-09 change; remove
2146 all such redundancies in IsWhiteSpace() calls throughout.
2148 * tinyxml/tinyxml.cpp (TiXmlAttribute::SetDoubleValue): Correct format
2149 specification in sprintf()/snprintf() calls; "%lf" is invalid; replace
2152 2009-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2154 Add CLI loader stub.
2156 * src/clistub.c: New file.
2157 * Makefile.in: Add build rule for it; build as...
2158 (mingw-get.exe): ...this; also add to...
2159 (clean): ...this goal.
2161 2009-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2163 Set up build mechanism.
2165 * configure.ac, Makefile.in: New files.
2166 * .cvsignore (configure, autom4te.cache): Add to ignored files.
2168 2009-10-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2170 Add GPL-v3 licensing terms.
2172 * COPYING: New file, sourced from gnu.org.
2174 2009-10-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2176 Add pkginfo implementation.
2178 * src, src/pkginfo: New directories.
2179 * src/pkginfo/pkginfo.h, src/pkginfo/pkginfo.l: New files.
2180 * src/pkginfo/driver.c: New file.
2182 2009-10-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2186 * All files (tdm-branch): Assign new branch tag.
2187 * All top-level files: Remove from trunk.
2188 * ChangeLog: New file.