1 2012-08-31 Keith Marshall <keithmarshall@users.sourceforge.net>
3 Add Mercurial subrepository reference for build-aux.
7 2012-08-03 Keith Marshall <keithmarshall@users.sourceforge.net>
9 More code refactoring, to facilitate GUI implementation.
11 * src/clistub.c (AppPathNameW): Factor out; relocate to...
12 * src/approot.c: ...this new file; it reproduces the original
13 implementation, modified to also consider any "libexec" directory in
14 the executable path as the first child of the APPROOT prefix. Note
15 also, that no longer terminates APPROOT with a trailing backslash.
17 * src/approot.h: New file; it trivially declares the prototype for...
18 (AppPathNameW): ...this relocated extern "C" function.
20 * src/clistub.c (main): Adapt usage of AppPathNameW(), to reinstate
21 trailing backslash on assignment to APPROOT environment variable.
23 * Makefile.in (CLI_EXE_OBJECTS): New macro; define it as the original
24 set of prerequisites, with the addition of approot.OBJEXT, for...
25 (mingw-get.EXEEXT): ...this; use it.
27 * src/rites.c: Add comment regarding APPROOT usage.
29 2012-08-02 Earnie Boyd <earnie@users.sourceforge.net>
31 Find missing.m4 in build-aux/m4 directory.
33 * aclocal.m4: Change path m4/missing.m4 to build-aux/m4/missing.m4.
35 2012-07-31 Earnie Boyd <earnie@users.sourceforge.net>
37 Add build-aux as a submodule.
38 Move .cvsignore to .gitignore.
40 * .gitmodules: New file.
41 * build-aux: New submodule directory.
43 * .gitignore: New file.
45 2012-07-13 Keith Marshall <keithmarshall@users.sourceforge.net>
47 Disable globbing of command line arguments.
49 * src/clistub.c (_CRT_glob): Define and initialise to zero; we don't
50 need globbing, and it may cause case transliteration of case-sensitive
51 action keywords, when a file system entity with a case-insensitively
54 2012-06-02 Keith Marshall <keithmarshall@users.sourceforge.net>
56 Refactor API to facilitate implementation of GUI ListView hooks.
58 * src/pkgkeys.h (title_key, description_key): Declare them.
59 * src/pkgkeys.c (title_key, description_key): Define them; relocate...
60 * src/pkgshow.cpp (pkgDirectoryViewer::EmitDescription): ...from here.
61 (pkgXmlDocument::CalalogueAllPackages): New public method; factor...
62 (pkgXmlDocument::DisplayPackageInfo): ...from here, whence use it.
63 (pkgDirectoryViewerEngine::EnumerateComponents): New private method;
64 implement as a concrete method of this abstract base class; factor...
65 (pkgDirectoryViewer::Dispatch): ...from original inline implementation
66 within this method of the concrete derived class, whence use it.
67 (pkgDirectoryViewerEngine, pkgDirectory): Factor class declarations...
68 * src/pkglist.h: ...into this new header file; include it.
70 * src/pkgbase.h (pkgDirectory): Add forward class declaration.
71 (pkgXmlDocument::CatalogueAllPackages): Declare it.
73 2012-05-02 Keith Marshall <keithmarshall@users.sourceforge.net>
75 Update help text to document package version selection capability.
77 * src/clistub.c (help_text): Add description of command line syntax
78 which may be used to specify an alternative to the default package
79 version selection, for install and upgrade actions.
81 2012-05-01 Keith Marshall <keithmarshall@users.sourceforge.net>
83 Support options set by preferences assigned within profile.xml
85 * xml/profile.xml (preferences): New element; add defaults.
87 * src/pkgopts.h (OPTION_ASSIGNED_FLAGS, OPTION_DESKTOP_ARGS):
88 (OPTION_START_MENU_ARGS): New enumerated constants; define them.
89 (OPTION_DESKTOP, OPTION_START_MENU): New manifest constants.
90 (OPTION_ASSIGNED, mark_option_as_set): New macros; define them.
91 (pkgOpts::GetValue, pkgOpts::GetString): Restrict look-up index to
92 least significant 12-bits of full-range index value.
93 (pkgOpts::IsSet): New inline method; implement it.
95 * src/clistub.c (main): Reimplement --desktop and --start-menu
96 options; each now becomes an OPTION_GENERIC optarg string store.
97 (set_script_hook): Function no longer used; delete it; delegate to...
98 * src/pkgbase.h (pkgXmlDocument::EstablishPreferences): ...this new
99 method; declare it, providing its implementation in...
100 * src/pkgopts.cpp: ...this new file; invoke it...
101 * src/climain.cpp (climain): ...here.
103 * Makefile.in (CORE_DLL_OBJECTS): Add pkgopts.$OBJEXT
105 2012-04-30 Keith Marshall <keithmarshall@users.sourceforge.net>
107 Correct sequence of installation/removal progress reporting.
109 * src/pkgunst.cpp (pkgRemove): Delay output of "removing package ..."
110 message, until after pre-remove hooks have run; this ensures that any
111 output from the pre-remove hook scripts appears in correct sequence.
113 * src/pkginst.cpp (pkgInstall): Likewise, for "installing package ..."
114 message, in relation to pre-install hooks.
116 2012-04-26 Keith Marshall <keithmarshall@users.sourceforge.net>
118 mingw-get-0.5-beta-20120426-1 released.
120 * configure.ac (AC_INIT): Version number updated.
121 * srcdist-doc/NEWS.in: Updated; bug-fix notifications added.
122 * All files (r0-5-beta-20120426-1): Tag assigned.
124 2012-04-25 Keith Marshall <keithmarshall@users.sourceforge.net>
126 Interim work-around for MinGW-Bug #3520864.
128 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
129 [DEBUG_TRACE_DEPENDENCIES]: Add request flags to messages reporting
130 the scheduling of installation activities.
132 * src/pkgexec.cpp (pkgXmlDocument::Schedule): Add temporary diagnostic
133 hooks to confirm request flags; bracket them with #if 0 ... #endif.
134 [ACTION_PRIMARY && pre-scheduled request]: Don't trash request flags
135 when updating the pre-existing action item data.
137 2012-04-23 Keith Marshall <keithmarshall@users.sourceforge.net>
139 Fix MinGW-Bug #3520488
141 * src/pkgexec.cpp (action_code): Check for, and reject NULL pointer
142 passed as action request string; also reject ambiguous abbreviations.
144 * src/climain.cpp (climain): Discriminate between NULL pointer and
145 other forms of invalid action keyword matching failures.
147 2012-04-16 Keith Marshall <keithmarshall@users.sourceforge.net>
149 mingw-get-0.5-beta-20120416-1 released.
151 * configure.ac (AC_INIT): Version number updated.
152 (YEARS_OF_ISSUE): 2012 added.
154 * srcdist-doc/NEWS.in: Updated; release notes added.
155 * All files (r0-5-beta-20120416-1): Tag assigned.
157 2012-04-16 Keith Marshall <keithmarshall@users.sourceforge.net>
159 Assign icon to temporary GUI executable file.
161 * icons/pkgicon.ico: New file, shamelessly copied from synaptic.
163 * configure.ac: Add identification for windres; propagate it to...
164 * Makefile.in: ...here; use it to compile object from icon files...
165 (srcdir/icons) [%.ico]: ...from this new vpath location.
166 (gui.exe): Link to compiled icon's object file.
167 (SRCDIST_SUBDIRS): Add icons directory.
169 2012-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
171 Ensure that package removal requests are correctly scheduled.
173 * src/pkgdeps.cpp (pkgXmlDocument::Schedule) [ACTION_REMOVE]: Schedule
174 as a distinct case, when the installed version is not the most recent
175 available release; consideration of this distinct case was previously
176 erroneously overlooked.
178 2012-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
180 Correct scheduling of new prerequisites when upgrading.
182 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
183 [ACTION_UPGRADE && ACTION_PRIMARY]: Don't exclude scheduling for this
184 case of a prerequisite with no previously installed version; it may be
185 a delegated primary requirement of a meta-package.
187 2012-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
189 Don't require subsystem within user specified version bounds.
191 * src/pkgdeps.cpp (pkgActionItem::ApplyBounds): Automatically consider
192 "*" wild-card matches for subsystem, if user doesn't specify it.
194 2012-04-09 Charles Wilson <mingw@cwilson.fastmail.fm>
198 * src/pkgdeps.cpp (pkgopts.h): Include unconditionally; do not rely...
199 (debug.h) [DEBUG_TRACE_DYNAMIC]: ...on this, for indirect inclusion.
201 2012-04-07 Keith Marshall <keithmarshall@users.sourceforge.net>
203 Correct a srcdist package construction defect.
205 * Makefile.in (srcdist) [for SRCDIST_SUBDIRS]: Use...
206 (mkinstalldirs): ...this, to create package image directories.
208 2012-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
210 Add scripting hooks to support creation of MS-Windows shortcuts.
212 * src/clistub.c (progname): New static variable with file scope; it
213 replaces former automatic variable, of same name, in main() function.
214 (set_script_hook): New static function; implement it, and call it...
215 (main) [--desktop, --start-menu]: ...from here, to interpret these new
216 command line options; they are propagated to scripts via...
217 (MINGW_GET_DESKTOP_HOOK, MINGW_GET_START_MENU_HOOK): ...these new
218 internally assigned environment variables.
219 (help_text): Document --desktop and --start-menu.
221 * scripts/libexec/setup.lua scripts/libexec/wsh.lua: New lua module
222 files; they implement a lua scripting API; they delegate requests to
223 the Windows Scripting Host, via either of this pair of...
224 * scripts/libexec/shlink.js: ...new script to create shortcuts, or...
225 * scripts/libexec/unlink.js: ...its complement, to remove them.
226 * Makefile.in (SRCDIST_SUBDIRS): Integrate them; enumerate them in...
227 (scripts_srcdir, LIBEXEC_SCRIPTS): ...these new macros; use to...
228 (install): ...install them.
230 2012-04-06 Keith Marshall <keithmarshall@users.sourceforge.net>
232 Initialise $LUA_PATH to locate mingw-get specific scripts.
234 * src/pkgexec.cpp (lua_path_init): New static inline function.
235 (pkgXmlNode::DispatchScript): Call it on first time invocation, per...
236 [lua_path_setup == false]: ...this static function local variable.
238 2012-04-01 Keith Marshall <keithmarshall@users.sourceforge.net>
240 Support installation of releases other than latest available.
242 * src/pkgbase.h (pkgActionItem::ApplyBounds): New method; declare it.
244 * src/pkgdeps.cpp (pkgActionItem::ApplyBounds): Implement it.
245 (pkgXmlDocument::Schedule): Use it to interpret user specified version
246 bounds, and apply them to scheduled action items. Having used...
247 (get_version_bounds): ...this new static inline function...
248 ...to acquire any user specified version bounds, check that they can
249 be honoured, before scheduling any action; delegate diagnostics to...
250 (dmh_notify_no_match): ...this new local helper function, to report
251 when they can't, and to indicate viable alternatives.
253 2012-03-26 Keith Marshall <keithmarshall@users.sourceforge.net>
255 Rework previously inadequate solution for MinGW-Bug #3424406
257 * src/pkgtask.h: Update copyright notice for current year.
258 (ACTION_MAY_SELECT): New manifest constant for use as flag; define it.
259 * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit): Assign it.
261 * src/pkgdeps.cpp (STATIC_INLINE): New macro; define it.
262 (ACTION_RECURSIVE_REINSTALL, ACTION_RECURSIVE_UPGRADE):
263 (ACTION_RECURSIVE_REPLACE): New action code constants; define them.
264 (with_flags): Original macro deleted; replace it with...
265 (with_request_flags): ...this new static inline function.
266 (if_noref, if_match, if_alias, with_download, promote): New static
267 inline functions; they replace original macros of the same names.
268 (is_recursive_action): Function no longer used; delete it.
269 (action_class): New static inline function; implement and use it...
270 (pkgXmlDocument::ResolveDependencies): ...here, to identify scheduling
271 requirements for packages which are already installed; depends on...
272 (request_mode): ...this new automatic variable; it augments and...
273 (recursive_mode): ...replaces this one; rename it accordingly.
274 (viable): Automatic variable no longer used; delete it.
275 [DEBUG_REQUEST & DEBUG_TRACE_DEPENDENCIES]: Emit notification for
276 scheduled installation.
277 (pkgXmlDocument::Schedule): Add an implied...
278 (ACTION_REMOVE): ...when scheduling a reinstallation.
280 2012-03-13 Keith Marshall <keithmarshall@users.sourceforge.net>
282 Address reinstallation issues per MinGW-Bugs #3416013 and #3424406
284 * src/pkgexec.cpp (reinstall_action_scheduled): New inline function.
285 (pkgActionItem::Execute): Use it to identify cases where...
286 [--reinstall]: ...implicit package removal is required, and also to
287 facilitate improved progress reporting in such cases.
289 * src/pkgdeps.cpp (is_recursive_action): New inline function.
290 (pkgXmlDocument::ResolveDependencies): Use it in tandem with...
291 (recursive_mode): ...this new automatic variable, so as to handle...
292 [meta-package dependency]: ...implicit recursion, to extend the scope
293 of the current action to the first level of non-meta dependency.
294 [install --reinstall]: ...reinstall original version of nominated
295 package, ignoring any available upgrade; extend scope of operation...
296 [install --reinstall --recursive]: ...to all prerequisite packages.
297 [upgrade --reinstall]: ...upgrade nominated package if possible; if no
298 upgrade available, reinstall current version; extend scope...
299 [upgrade --reinstall --recursive]: ...to all prerequisites.
300 (pkgXmlDocument::Schedule): Partially revert 2012-03-05 change;
301 reimplement selectively; never promote...
302 [install, install --reinstall]: ...these operations to become...
303 [upgrade]: ...this, even if available; issue diagnostic instead.
305 2012-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
307 Rationalise implementation and usage of --all-related option.
309 * src/pkgopts.h: Update copyright notice; add year 2012.
310 (OPTION_RECURSIVE, OPTION_ALL_RELATED): New constants; define them.
311 (pkgOpts::SetFlags): New method; declare and implement it inline.
313 * src/clistub.c: Update copyright notice; add year 2012.
314 (options) [recursive, all-related]: Redefine in terms of...
315 (OPTION_RECURSIVE, OPTION_ALL_RELATED): ...these.
316 (help_text): Update appropriately.
318 * src/climain.cpp: Update copyright notice; add year 2012.
319 (climain) [all-related]: Associate its use exclusively with...
320 (source, licence): ...these package processing operations; use...
321 (pkgOptions::SetFlags): ...this, to propagate its effect.
323 2012-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
325 Don't report failed downloads in respect of virtual packages.
327 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): Clear...
328 [ACTION_DOWNLOAD]: ...this status flag for any package identified as
329 a meta-package; this corrects a further regression introduced with the
330 2011-11-09 update, whereby pending download requests for such virtual
331 packages were not cancelled, resulting in failure to install due to
332 failed downloads, when no download is actually required.
334 2012-03-05 Keith Marshall <keithmarshall@users.sourceforge.net>
336 Don't suppress implied downloads for top-level actions.
338 * src/pkgdeps.cpp: Update copyright notice for new year.
339 (pkgXmlDocument::Schedule) [!OPTION_PRINT_URIS]: Ensure that...
340 [ACTION_DOWNLOAD]: ...this is enabled, when scheduling an install or
341 an upgrade action for a package specified as a command line argument;
342 this corrects a regression introduced on 2011-11-09, which resulted in
343 ACTION_DOWNLOAD being enabled only for second tier dependent actions.
345 2012-02-20 Keith Marshall <keithmarshall@users.sourceforge.net>
347 Copyright notice updates.
349 * Makefile.in: Add 2012 as year of republication.
350 * src/pkgbase.h src/sysroot.cpp src/pkgexec.cpp: Likewise.
351 * src/rites.c src/pkginst.cpp src/pkgunst.cpp: Likewise.
353 2012-02-20 Keith Marshall <keithmarshall@users.sourceforge.net>
355 Fix ill-advised optimisation in $APPROOT environment lookup.
357 * src/rites.c (approot_path): Don't save result of getenv() lookup
358 across calls; the environment may have been moved in the interim,
359 making the original result invalid on any subsequent call. Also,
360 prefer MS-Windows style (with backslashes) for default.
361 (pkgLastRites): Report full path name for lastrites.exe, on execl()
362 failure, rather than only the path relative to $APPROOT.
364 2012-02-20 Keith Marshall <keithmarshall@users.sourceforge.net>
366 Propagate sysroot path settings to scripts via the environment.
368 * src/pkgbase.h (PKG_PUTENV_FLAGS_MASK): New constant; it maps...
369 (PKG_PUTENV_DIRSEP_MSW, PKG_PUTENV_DIRSEP_POSIX): ...these flags...
370 (PKG_PUTENV_SCAN_VARNAME, PKG_PUTENV_NAME_TOUPPER): ...and these;
371 they are used to specify optional behavioural choices for...
372 (pkgPutEnv): ...this new function; declare it.
374 * src/sysroot.cpp (pkgPutEnv): Implement it.
375 (pkgXmlDocument::LoadSystemMap): Use it to add $SUBSYSTEM_SYSROOT path
376 specifications to the environment, for each named subsystem associated
377 with the active system map.
379 * src/pkgexec.cpp (pkgActionItem::Execute): Invoke pkgPutEnv() prior
380 to processing of each package install, upgrade, or remove action, so
381 as to update environment variable $SYSROOT to represent the sysroot
382 path for each package processed, during execution of script hooks.
384 2012-02-17 Keith Marshall <keithmarshall@users.sourceforge.net>
386 Implement hooks to support lua scripting interface.
388 * Makefile.in (LIBS): Add -llua.
390 * src/pkgbase.h (pkgXmlNode::InvokeScript): New method; declare it
391 as private, and provide overloaded public inline API implementation.
392 (pkgXmlNode::DispatchScript): New private method; declare it.
394 * src/pkgexec.cpp (pkgXmlNode::InvokeScript): Implement it.
395 (pkgXmlNode::DispatchScript): Likewise; it directs InvokeScript to...
396 (pkgInvokeScript): ...this new static function; implement it.
398 * src/pkginst.cpp (pkgInstall): Call InvokeScript as appropriate.
399 * src/pkgunst.cpp (pkgRemove): Likewise.
401 2011-11-24 Keith Marshall <keithmarshall@users.sourceforge.net>
403 Avoid implicit cast warnings; reported by Robert Hartmann.
405 * src/dmh.h (DMH_BEGIN_DIGEST): Explicitly cast to uint16_t.
406 (DMH_END_DIGEST): Likewise.
408 2011-11-09 Keith Marshall <keithmarshall@users.sourceforge.net>
410 Avoid unnecessary downloads for already installed packages.
412 * src/pkginet.cpp (pkgActionItem::DownloadSingleArchive): Require
413 external scheduling of ACTION_DOWNLOAD; cancel the scheduled request
414 on completion, or when not required due to pre-existing local copy.
416 * src/climain.cpp (pkgActionItem::GetSourceArchive): Must always be
417 prepared to download the associated archive; enable ACTION_DOWNLOAD.
419 * src/pkgexec.cpp (pkgActionItem::Schedule) [OPTION_REINSTALL]:
420 May need to download the archive, even when the requested package was
421 previously installed; schedule ACTION_DOWNLOAD to enable this.
423 * src/pkgdeps.cpp (promote): Macro redefined in terms of...
424 (with_flags, with_download): ...these new macros; implement and...
425 (pkgXmlDocument::ResolveDependencies): ...use them to enable/schedule
426 ACTION_DOWNLOAD only when expected that it may be necessary.
428 2011-11-06 Keith Marshall <keithmarshall@users.sourceforge.net>
430 Fix packaging anomalies for source and licence distributions.
432 * Makefile.in (licdist): Link README from ${CURDIR}, not from '..'.
433 (srcdist): Explicitly link pkginfo.c from ${CURDIR} to src/pkginfo,
434 rather than as implied prerequisite; this avoids a bogus attempt to
435 link srcdist-doc into src/pkginfo.
437 2011-11-06 Keith Marshall <keithmarshall@users.sourceforge.net>
439 Bump version number for subsequent CVS snapshots.
441 * configure.ac (AC_INIT): Set version to 0.4-alpha-1.1cvs
443 2011-11-06 Keith Marshall <keithmarshall@users.sourceforge.net>
445 mingw-get-0.4-mingw32-alpha-1 released.
447 * configure.ac (AC_INIT): Adjust version number.
448 * srcdist-doc/NEWS.in: Updated; document new features and bugs fixed.
449 * All files (r0-4-alpha-1): Tag assigned.
451 2011-11-04 Keith Marshall <keithmarshall@users.sourceforge.net>
453 Don't upgrade installed DLL components to incompatible version.
454 Provide clearer diagnostics for failed requests on implied packages.
456 * src/pkgdeps.cpp (is_abi_compatible): New static inline function.
457 (pkgXmlDocument::ResolveDependencies) [is_installed]: Use it.
458 (pkgXmlDocument::ResolveDependencies) [DEBUG_TRACE_DEPENDENCIES]:
459 Clean up and improve diagnostic message content and formatting.
460 (pkgXmlDocument::Schedule) [(upgrade || remove) && ! installed]:
461 Downgrade diagnostic to WARNING, for implicitly specified component
462 packages; provide additional explanatory diagnostics.
464 * src/pkgspec.cpp (pkgSpecs::VersionComparator):
465 * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit):
466 [DEBUG_TRACE_DEPENDENCIES]: Eliminate diagnostic noise.
468 2011-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
470 Fix --download-only vs. --reinstall conflict.
472 * src/pkgexec.cpp (pkgActionItem::Execute) [OPTION_DOWNLOAD_ONLY]:
473 Test for explicit inequality, rather than equality to zero; since the
474 2011-08-30 update, which made --download-only also imply --reinstall,
475 it will test as non-zero when --reinstall is specified, even though
476 --download-only is not.
478 2011-10-07 Keith Marshall <keithmarshall@users.sourceforge.net>
480 Add support for non-specific upgrade of all installed packages.
482 * src/pkgbase.h (pkgXmlDocument::RescheduleInstalledPackages):
483 New public method; declare it.
485 * src/pkgdeps.cpp (pkgXmlDocument::RescheduleInstalledPackages):
488 * src/climain.cpp (climain) [ACTION_UPGRADE && argc < 2]: Invoke
489 pkgXmlDocument::RescheduleInstalledPackages() to schedule the upgrade
490 request for all packages currently registered as installed.
492 2011-10-06 Keith Marshall <keithmarshall@users.sourceforge.net>
494 Implement "source" and "licence" operations.
496 * src/pkgopts.h (OPTION_ALL_DEPS): New option code; define it.
497 * src/clistub.c (main): Associate it with...
498 (all-related, recursive): ...these synonymous option names...
499 (options): ...defined within this local structured array.
500 (help_text): Document them; also document "source" and "licence" as
501 new operations which may be specified on the command line.
503 * src/pkgtask.h (action_source, action_licence): Enumerate them.
504 (ACTION_SOURCE, ACTION_LICENCE): Define their manifest values, and...
505 * src/pkgexec.cpp (action_name): ...associate with operation names.
507 * src/pkgbase.h (pkgActionItem::GetScheduledSourceArchives):
508 (pkgActionItem::GetSourceArchive, pkgXmlDocument::GetSourceArchive):
509 New public methods; declare them for external implementation.
510 (pkgXmlDocument::GetScheduledSourceArchives): New public method;
511 implement it as inline.
513 * src/climain.cpp (pkgProcessedArchives): New pointer to stack of...
514 (pkgArchiveNameList): ...this new locally defined class; implement it.
515 (pkgActionItem::GetSourceArchive, pkgXmlDocument::GetSourceArchive):
516 (pkgActionItem::GetScheduledSourceArchives): Implement them.
517 (climain): Add invocation hooks.
519 2011-10-04 Keith Marshall <keithmarshall@users.sourceforge.net>
521 Establish mapping from release tarname to source tarname.
523 * src/pkgreqs.cpp (inherited_requirement): New inline function.
524 (requirement): Use it; adapt to propagate release archive format and
525 compression type fields, in addition to version fields, when resolving
526 "%" wildcard matches within the template for the resultant tarname.
527 (pkgAssociateName): New public function; implement it for use by...
528 * src/pkgname.cpp (pkgResolvedName): ...this new inline function.
529 (pkgXmlNode::SourceArchiveName): Use it; adapt to accept a category
530 selector, so it may resolve source or licence tarnames on demand.
532 * src/pkgbase.h (pkgXmlNode::SourceArchiveName): Modify declaration;
533 add category selector argument to support source/licence choice.
535 2011-10-02 Keith Marshall <keithmarshall@users.sourceforge.net>
537 Facilitate downloads using diverse cache directories.
539 * src/pkgbase.h (pkgActionItem::DownloadSingleArchive): New private
540 method; declare it; it handles the download for a single named archive
541 file, and stores it in a specifed cache directory.
543 * src/pkginet.cpp (pkgActionItem::DownloadSingleArchive): Implement
544 it; factor its code from the original implementation within...
545 (pkgActionItem::DownloadArchiveFiles): ...this; adapt to use it.
547 2011-10-02 Keith Marshall <keithmarshall@users.sourceforge.net>
549 Establish cache directory for source archive downloads.
551 * src/mkpath.h (pkgSourceArchivePath): New function; declare it.
552 * src/mkpath.c (pkgSourceArchivePath): Implement it.
554 2011-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
556 Support archive extraction to arbitrary destination without install.
558 * src/pkgproc.h (pkgArchiveProcessor::ExtractFile): New virtual
559 helper method for use, as core helper, by derived classes; declare it.
560 (pkgArchiveProcessor::CreateExtractionDirectory): Likewise.
561 (pkgTarArchiveProcessor): Declare overloaded default constructor.
562 (pkgTarArchiveExtractor): New class definition; it is derived from
563 pkgTarArchiveProcessor.
565 * src/tarproc.cpp (pkgArchiveProcessor::ExtractFile): Implement it.
566 (pkgArchiveProcessor::CreateExtractionDirectory): Likewise.
567 (pkgTarArchiveExtractor): Implement constructor, together with...
568 (pkgTarArchiveExtractor::ProcessDirectory): ...this method, and also...
569 (pkgTarArchiveExtractor::ProcessDataStream): ...this one; these are
570 declared as abstract, in the pkgTarArchiveProcessor base class.
571 (pkgTarArchiveInstaller::ProcessDirectory): Simplify; it now delegates
572 directory creation to pkgArchiveProcessor::CreateExtractionDirectory.
573 (pkgTarArchiveInstaller::ProcessDataStream): Simplify; delegate file
574 handling to pkgArchiveProcessor::ExtractFile, as appropriate.
576 2011-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
578 Make --download-only and --print-uris imply --reinstall.
580 * src/pkgopts.h (OPTION_PRINT_URIS): Adjust definition.
581 (OPTION_DNLOAD_ONLY, OPTION_DOWNLOAD_ONLY): Likewise.
583 2011-08-07 Keith Marshall <keithmarshall@users.sourceforge.net>
585 Implement --download-only and --print-uris options.
587 * src/pkgopts.h (OPTION_DOWNLOAD_ONLY, OPTION_PRINT_URIS):
588 New manifest constants, identifying flag bits; define them.
589 (OPTION_DNLOAD_ONLY): Likewise; an alias for OPTION_DOWNLOAD_ONLY.
591 * src/pkgbase.h (pkgActionItem::PrintURI): New private method.
592 * src/pkginet.cpp: Implement it.
594 * src/clistub.c (options): Add "download-only" and "print-uris".
595 (help_text): Document them.
596 * src/pkgexec.cpp (pkgActionItem::Execute): Process them.
598 2011-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
600 mingw-get-0.3-mingw32-alpha-2.1 released.
602 * configure.ac (AC_INIT): Adjust version number.
603 * srcdist-doc/NEWS.in: Updated; document bugs fixed.
604 * All files (r0-3-alpha-2-1): Tag assigned.
606 2011-07-29 Keith Marshall <keithmarshall@users.sourceforge.net>
608 Adopt tar.xz as default package archive format.
610 * Makefile.in (TARZIP, TAREXT): New macros; define them.
611 (bindist, licdist, srcdist): Use them in place of hardcoded tar.gz
612 (maintainer-clean): Expunge tar files of any compression format.
614 2011-07-27 Keith Marshall <keithmarshall@users.sourceforge.net>
616 Correct handling of release status in requirements specifications.
618 * src/debug.h (DEBUG_TRACE_DEPENDENCIES): New tracing hook; define it.
619 * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit): Use it; add
620 function entry/exit tracing report hooks.
621 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): Likewise;
622 also add internal trace point reporting, which may also require...
623 (show_required): ...this new static inline DEBUG_INVOKED function.
625 * src/pkgreqs.cpp (requirement): Propagate release status and release
626 reference index fields from requirer, when package version requirement
627 is specified by a '%' token, and no explicit release status override
628 is included in the requirement specification.
630 * src/pkgspec.cpp (is_wildcard_spec): New static inline helper.
631 (pkgSpecs::VersionComparator): Use it to identify any package version
632 specification which may require the extension of a wildcard match, to
633 span the package version and release status fields; also add tracing
634 hooks, triggered on DEBUG_TRACE_DEPENDENCIES, to facilitate debugging.
636 2011-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
638 Avoid accidental RCS keyword substitutions.
640 * Makefile.in (DOLLAR): New macro; define it.
641 (readme.txt, readme.txt.in): Use it, where unexpanded RCS Id keyword
642 matching is intended.
644 2011-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
646 Mercurial support revisited.
648 * .cvsignore (.hgtags): Add to CVS untracked list.
650 2011-06-18 Keith Marshall <keithmarshall@users.sourceforge.net>
652 Update readme.txt ID tag-line to track NEWS rather than README.
654 * Makefile.in (readme.txt.in): New rule; implement it.
655 (readme.txt.tag): Likewise; this implements the tag-line tracking.
656 (readme.txt): Rule redefined in terms of the preceding pair.
658 2011-06-17 Keith Marshall <keithmarshall@users.sourceforge.net>
660 mingw-get-0.3-mingw32-alpha-2 released.
662 * configure.ac (AC_INIT): Adjust version number.
663 * srcdist-doc/NEWS.in: Updated; document new features and bugs fixed.
664 * All files (r0-3-alpha-2): Tag assigned.
666 2011-06-15 Keith Marshall <keithmarshall@users.sourceforge.net>
668 Add internal documentation for --reinstall option.
670 * src/clistub.c (help_text): Add description for "--reinstall".
672 2011-06-14 Keith Marshall <keithmarshall@users.sourceforge.net>
674 Support use of Mercurial within a CVS working copy.
676 * .cvsignore (.hg, .hgignore): Don't have CVS track these.
678 2011-06-13 Keith Marshall <keithmarshall@users.sourceforge.net>
680 Implement --reinstall option.
682 * src/pkgopts.h (OPTION_REINSTALL): New macro; define it.
683 (OPTION_GENERIC, OPTION_SHIFT_MASK): Likewise.
684 (OPTION_EXTRA_FLAGS): New field; declare it.
686 * src/clistub.c (options): Add "reinstall".
687 (OPTION_GENERIC): Use it where appropriate; within its scope...
688 (OPTION_STORAGE_CLASS): Improve descriptive comments; add handling for
689 default case of flag type options requiring an alignment shift.
691 * src/pkgexec.cpp: Remove previous "always reinstall" kludge.
692 (pkgOptionSelected, PKG_OPTION_REINSTALL): Remove obsolete macros.
693 (pkgActionItem::Execute): Check for "upgrade" request on any package
694 which is already up to date; report this state, otherwise...
695 [OPTION_REINSTALL || ACTION_UPGRADE]: Mark package as "removed", to
696 avoid bail-out on "package already installed", when calling...
697 (pkgInstall): ...this.
699 2011-06-12 Keith Marshall <keithmarshall@users.sourceforge.net>
701 Don't require -vv to report progress of update operation.
703 * src/pkgbind.cpp (pkgRepository::GetPackageList): Eliminate all
704 basename() calls; `dname' already tells us what it should return.
705 [update]: Report progress, irrespective of verbosity setting.
707 2011-06-11 Keith Marshall <keithmarshall@users.sourceforge.net>
709 Fix MinGW-Bug #3313806.
711 * src/pkginfo/pkginfo.l (CMS_KEYWORDS): Do not match them within the
712 PACKAGE_NAME field; this avoids misinterpretation as a release status
713 qualifier when intended as part of the package name, as in msys-cvs.
715 2011-06-07 Keith Marshall <keithmarshall@users.sourceforge.net>
717 Provisional correction for MinGW-Bug #3309438.
719 * src/debug.h [DEBUGLEVEL == 0]: Provide defaults for...
720 (DEBUG_ENABLED, DEBUG_REQUEST): ...these macros.
722 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDirectory):
723 (pkgTarArchiveInstaller::ProcessDataStream): Use DEBUG_REQUEST to
724 enable runtime trace activation for previous compile time choices.
726 2011-05-30 Keith Marshall <keithmarshall@users.sourceforge.net>
728 mingw-get-0.3-mingw32-alpha-1 released.
730 * configure.ac (AC_INIT): Adjust version number.
731 * srcdist-doc/NEWS.in: Updated; document new features.
732 * All files (r0-3-alpha-1): Tag assigned.
734 2011-05-30 Keith Marshall <keithmarshall@users.sourceforge.net>
736 Support assignment of DEBUGLEVEL at configure time.
738 * configure.ac (DEBUGLEVEL): Declare as a precious variable, using
739 AC_ARG_VAR; also declare with AC_SUBST, to ensure it is initialised.
741 * Makefile.in (DEBUGLEVEL): Let AC_SUBST assign it.
743 2011-05-29 Keith Marshall <keithmarshall@users.sourceforge.net>
745 Work around bugs in MinGW and GNU getopt_long_only() implementations.
747 * src/getopt.c: New file; this is a free-standing replacement for any
748 implementation provided by system libraries. We will always use this
749 to ensure correct operation irrespective of system bugs; (different
750 bug manifestations have been identified in the stock MinGW and GNU
753 * Makefile.in (mingw-get.EXEEXT): Use it.
755 * src/clistub.c (options): Remove redundant declaration of `-v' as a
758 2011-05-29 Keith Marshall <keithmarshall@users.sourceforge.net>
760 Implement user selection of traceable features at run-time.
762 * src.pkgopts.h (OPTION_VERBOSE_MAX): New macro; define it.
764 * src/debug.h (DEBUG_ENABLED): New macro; define it.
765 (DEBUG_REQUEST, DEBUG_REQUEST_FLAGS, DEBUG_TRACE_DYNAMIC): Likewise.
767 * src/clistub.c (main) [--trace]: Don't make it available unless...
768 [DEBUG_ENABLED(DEBUG_TRACE_DYNAMIC)]: ...this is set (at compile-time).
769 [--verbose]: Limit to OPTION_VERBOSE_MAX, using...
770 (atmost): ...this new macro; define it.
771 (options): Declare `-v' as both long and short form, pending bug fix
772 in MinGW's getopt_long_only() implementation.
774 * src/pkginet.cpp (pkgInternetAgent::OpenURL): Use DEBUG_REQUEST.
775 (pkgInternetLzmaStreamingAgent::TransferData): Likewise.
776 (pkgInternetStreamingAgent::TransferData): Likewise.
777 (pkgInternetStreamingAgent::Get): Likewise.
779 * src/pkgunst.cpp (pkgActionItem::SetAuthorities): Use DEBUG_REQUEST.
780 (pkg_rmdir, pkg_unlink): Likewise.
782 * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Use DEBUG_REQUEST.
784 2011-05-21 Keith Marshall <keithmarshall@users.sourceforge.net>
786 Implement protocol for processing global program options.
788 * src/pkgopts.h: New file.
790 * src/climain.cpp (cli_setopts): New function; implement it.
791 (pkgOptions): Likewise.
793 * src/clistub.c (xatoi): New function; implement it.
794 (cli_setargv): New inline helper function; implement it.
795 (main): Use it. Also incorporate implementation of...
796 (parsed_options): New structure; it accommodates...
797 (verbose, trace): New options; interpret them, and...
798 (help_text): ...document them.
800 * src/pkgbind.cpp (pkgRepository::GetPackageList): Make catalogue
801 loading notifications and progress reports conditional on...
802 [OPTION_VERBOSE > 1]: ...this.
804 2011-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
806 Augment known development status keywords and accept CMS labels.
808 * src/pkginfo/pkginfo.l (CMS_KEYWORDS): Define new provisional list;
809 add transitional state scanner rule and code to interpret them.
810 (STATUS_KEYWORDS): Add "pre" and "rc" to existing list; modify scanner
811 code to maintain consistency with CMS_KEYWORDS processing; also extend
812 this coding strategy to other rules.
814 * src/pkginfo/driver.c (spec): Strip initial '$' token from displayed
815 field values; (we expect it only for a CMS_KEYWORDS field value).
817 * src/pkgreqs.cpp (pkgSpecs::GetTarName): Remove any initial '$' token
818 from PACKAGE_RELEASE_STATUS field, when performing reverse of tarname
819 decomposition transformation.
821 2011-05-18 Keith Marshall <keithmarshall@users.sourceforge.net>
823 Correct omission from 2011-02-18 commit.
825 * src/tarproc.cpp (Copyright Notice): Add 2011 as year of release.
827 2011-05-14 Keith Marshall <keithmarshall@users.sourceforge.net>
829 mingw-get-0.2-mingw32-alpha-4 released.
831 * configure.ac (AC_INIT): Adjust version number.
832 * srcdist-doc/NEWS.in: Updated; add bug-fix/feature descriptions.
833 * All files (r0-2-alpha-4): Tag assigned.
835 2011-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
837 Fix MinGW-Bug #3297660 (reported by Chris Sutcliffe).
839 * src/pkgbase.h (pkgActionItem::SetAuthorities): Return unsigned long.
840 (pkgActionItem::HasAttribute): New inline method; implement it.
842 * src/pkgtask.h (ACTION_DOWNLOAD, ACTION_DOWNLOAD_OK): New macros.
844 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles):
845 [ACTION_DOWNLOAD]: Assert it at commencement of each package download;
846 clear it again, on successful download completion.
848 * src/pkginst.cpp (pkgtask.h): #include it.
849 (pkgInstall) [ACTION_DOWNLOAD]: Don't proceed with installation when
850 set; this indicates failed download; diagnose it.
852 * src/pkgunst.cpp (pkgRemove) [ACTION_DOWNLOAD && ACTION_UPGRADE]:
853 Don't proceed with pre-emptive removal when both set; this indicates
854 failed download of replacement package; diagnose it.
856 2011-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
858 Fix MinGW-Bug #3295526 (reported by Charles Wilson).
860 * src/pkgunst.cpp (sys/stat.h): #include it; we need it for...
861 (pkg_unlink): ...chmod( file, S_IWRITE ), emulating `rm -f' semantics.
863 2011-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
865 Diagnose and aggressively retry failed download connections.
867 * src/debug.h (DEBUG_TRACE_INTERNET_REQUESTS): New macro; define it.
869 * src/pkginet.cpp (debug.h): #include it.
870 (pkgDownloadMeter): New abstract class; declare it and implement its
871 default (non-abstract) data and methods; derive...
872 (pkgDownloadMeterTTY): ...this new class from it; implement it...
873 (pkgInternetStreamingAgent::Get): ...and instantiate it (naively for
874 now), as associated pkgDownloadMeter object; add tracing diagnostic.
875 (pkgInternetAgent::OpenURL): Don't inline it; move implementation out
876 of line; add retry loops to aggressively retry failed connections.
877 (pkgInternetAgent::QueryContentLength): New method; implement it.
878 (pkgInternetStreamingAgent::TransferData): Avoid Microsoft specific
879 data type `DWORD'; prefer equivalent standard `unsigned long'. Add
880 tracing diagnostic. Remove progress diagnostic; replace it with an
881 `Update' request to associated pkgDownloadMeter.
882 (pkgInternetLzmaStreamingAgent::GetRawData): Avoid `DWORD' data type.
883 (pkgInternetLzmaStreamingAgent::TransferData): Likewise; add tracing
884 diagnostic on failure.
886 2011-03-31 Keith Marshall <keithmarshall@users.sourceforge.net>
888 mingw-get-0.2-mingw32-alpha-3 released.
890 * configure.ac (AC_INIT): Adjust version number.
891 * srcdist-doc/NEWS.in: Updated; add bug-fix description.
892 * All files (r0-2-alpha-3): Tag assigned.
894 2011-03-30 Keith Marshall <keithmarshall@users.sourceforge.net>
896 Provisional handling for http proxy authentication.
897 (Adapted from patch by Scott Michel <pingbak@users.sourceforge.net>)
898 (ref: MinGW-Patch #3158453)
900 * src/pkginet.cpp: Several format/layout adjustments; add comments.
901 Eliminate several instances of Microsoft specific typedef nastiness.
902 (dmh_dialogue_context): New macro; kludge definition to support...
903 (pkgInternetAgent::OpenURL) [HTTP_STATUS_PROXY_AUTH_REQ]: Detect
906 2011-03-30 Keith Marshall <keithmarshall@users.sourceforge.net>
908 Expand macros in path names for files and directories to be removed.
910 * src/pkgunst.cpp (pkgRemove): Format sysroot as a template, so...
911 (pkg_rmdir, pkg_unlink): ...are able to use mkpath() to construct the
912 full path name for each file or directory to be removed.
914 2011-03-29 Keith Marshall <keithmarshall@users.sourceforge.net>
916 Correct defective activation logic for some debugging hooks.
918 * src/pkgunst.cpp (pkg_rmdir, pkg_unlink) [DEBUG_INVOKE_IF]:
919 (pkgActionItem::SetAuthorities) [DEBUG_INVOKE_IF]: Use bit-wise `&'
920 operator, not `&&', to evaluate DEBUGLEVEL state.
922 2011-03-22 Keith Marshall <keithmarshall@users.sourceforge.net>
924 Avoid Unicode hyphens in generated ASCII document files.
926 * Makefile.in (NROFF): New macro; define it to invoke `nroff -Tascii'.
927 (%.dist, readme.txt): Use it to ensure that output is pure ASCII.
929 2011-03-15 Keith Marshall <keithmarshall@users.sourceforge.net>
931 mingw-get-0.2-mingw32-alpha-2 released.
933 * configure.ac (AC_INIT): Adjust version number.
934 * srcdist-doc/NEWS.in: Updated; add bug-fix description.
935 * All files (r0-2-alpha-2): Tag assigned.
937 2011-03-15 Keith Marshall <keithmarshall@users.sourceforge.net>
939 Fix MinGW-Bug 3212246.
941 * src/keyword.c (has_keyword): Avoid incrementing the comparison
942 pointers when a significant character in one string is not matched in
943 the other; previously the pointers were left pointing one character to
944 the right of the mismatch, and this was overlooked if the mismatch
945 occurred at the rightmost character in both strings.
947 2011-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
949 mingw-get-0.2-mingw32-alpha-1 released.
951 * configure.ac (AC_INIT): Set version number; correct capitalisation
952 in URI reference to bug reporting instructions.
954 * srcdist-doc/NEWS.in: Confirm release date.
955 [bug reporting]: Remove redundant paragraph; the information is
956 provided, via reference to mingw.org. in the README and INSTALL files.
958 * All files (r0-2-alpha-1): Tag assigned.
960 2011-03-12 Keith Marshall <keithmarshall@users.sourceforge.net>
962 * srcdist-doc/INSTALL.in [building]: Qualify liblzma.a requirement;
963 add earliest acceptable snapshot release date.
965 2011-03-11 Keith Marshall <keithmarshall@users.sourceforge.net>
967 Remove unused 7zip and boost source code from CVS trunk.
969 * 7z: Directory and all content removed.
972 2011-03-11 Keith Marshall <keithmarshall@users.sourceforge.net>
974 Refactor and update existing installation and usage instructions.
976 * src/clistub.c (help_text): Updated.
978 * srcdist-doc: New directory.
980 * README: Deleted; its content refactored into...
981 * srcdist-doc/README.in srcdist-doc/INSTALL.in srcdist-doc/NEWS.in:
982 ...these new template files, updated for current development state.
984 * srcdist-doc/gendoc.sed.in: New sed script; it directs formatting of
985 generated text files derived from the srcdist-doc templates.
987 * Makefile.in (SRCDIST_SUBDIRS): Add srcdist-doc.
988 (SRCDIST_FILES): Add NEWS and INSTALL.
989 (srcdist-doc): New build rule to generate README, NEWS and INSTALL.
990 (srcdist, licdist): Adjust path to locate them.
991 (readme.txt): New build rule to generate on-line package description.
993 (distclean): Don't remove Makefile...
994 (maintainer-clean): ...but do it here instead. Also remove generated
995 README, NEWS and INSTALL, the autom4te cache, and all distributable
996 zip files, in addition to tarballs, for the current version.
998 2011-02-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1000 Initial implementation for "remove" feature.
1002 * src/pkgbase.h: Update copyright notice; add current year.
1003 (pkgActionItem::SetPrimary): New inline public method; declare it.
1004 (pkgActionItem::SetAuthorities): New public method; declare it.
1006 * src/pkgtask.h (ACTION_PREFLIGHT, ACTION_REMOVE_OK): New defines.
1008 * src/pkgproc.h: Update copyright notice; add current year.
1009 (pkgManifest::GetSysRootReference): New public method; declare it.
1010 (pkgManifest::GetRoot): New inline method; declare and implement it.
1011 (pkgManifest::DetachSysRoot): Argument type changed to const char*.
1012 (pkgRemove): New extern "C" function; declare it.
1014 * src/pkgexec.cpp (pkgActionItem::SetPrimary): Implement it, and...
1015 (pkgXmlDocument::Schedule): ...use it to promote actions on all user
1016 specified packages, as listed on the command line, to primary status.
1017 (pkgActionItem::Execute): Repeatedly invoke...
1018 (pkgActionItem::SetAuthorities): ...this; incorporate call of...
1019 (pkgActionItem::DownloadArchiveFiles): ...this, within the loop, so
1020 that we retry failed downloads at least a second time.
1021 [ACTION_REMOVE]: Delete stub; invoke pkgRemove().
1023 * src/pkgunst.cpp: New file.
1024 (pkgActionItem::SetAuthorities): Implement it.
1025 (pkgManifest::GetSysRootReference): Implement it.
1026 (pkgManifest::DetachSysRoot): Implement it per new declaration.
1027 (pkgRemove): Implement it.
1029 * Makefile.in (CORE_DLL_OBJECTS): Add pkgunst.OBJEXT
1031 2011-02-26 Keith Marshall <keithmarshall@users.sourceforge.net>
1033 Work-around for improper stderr buffering in MSYS mintty and rxvt.
1034 (Merged from r0-1-alpha-5 branch).
1036 * src/dmh.cpp (dmhTypeTTY::emit_and_flush): New private method.
1037 (dmhTypeTTY::printf, dmhTypeTTY::notify): Use it to force an fflush()
1038 after each output record is written to stderr.
1040 * README: Update as appropriate.
1042 2011-02-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1044 Tidy up some debugging hooks.
1046 * src/debug.h (DEBUG_INVOKED): New macro; define it.
1047 (DEBUG_INVOKE_IF): Likewise; this takes arguments providing for
1048 conditional invocation of code when DEBUGLEVEL is non-zero; make it
1049 expand to nothing, when DEBUGLEVEL is zero.
1050 (DEBUG_TRACE_INIT): Redefined macro; value changed to 0x0010.
1051 (DEBUG_TRACE_TRANSACTIONS, DEBUG_SUPPRESS_INSTALLATION):
1052 (DEBUG_UPDATE_INVENTORY): New macros; define them.
1054 * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDirectory):
1055 (pkgTarArchiveInstaller::ProcessDataStream): Refactor debugging hooks;
1056 implement them in terms of DEBUGLEVEL, with reference to...
1057 (DEBUG_SUPPRESS_INSTALLATION, DEBUG_UPDATE_INVENTORY): ...these.
1059 2011-02-15 Keith Marshall <keithmarshall@users.sourceforge.net>
1061 Make package version comparisons more robust.
1063 Fixes an issue reported by Chris Sutcliffe: previously, version
1064 comparisons were evaluated solely on the basis of differences in the
1065 package version field itself. Henceforth, if this field compares as
1066 equal, then the comparison is extended to also consider differences
1067 between development phase qualifiers, and, if these too compare as
1068 equal, to differences in the target subsystem version fields.
1070 * src/pkginfo/pkginfo.h (pkgSpecs::VersionComparator): New private
1073 * src/pkgspec.cpp (pkgSpecs::VersionComparator): Implement it.
1074 (pkgSpecs::operator<, pkgSpecs::operator<=, pkgSpecs::operator>=):
1075 (pkgSpecs::operator>): Use it, replacing...
1076 (version): ...this static function; now unreferenced; delete it.
1078 * src/vercmp.h (pkgVersionInfo::pkgVersionInfo): Make it inline; it
1079 now delegates the entire class construction operation to...
1080 (pkgVersionInfo::Parse): ...this new private method; declare it. This
1081 is also used to facilitate implementation of...
1082 (pkgVersionInfo::Reset): ...this new inline method, also requiring...
1083 (pkgVersionInfo::FreeAll): ...this new inline method; also now used by
1084 the class destructor, it encapsulates separate calls to...
1085 (pkgVersionInfo::Free): ...this original inline method, renamed...
1086 (pkgVersionInfo::FreeEntry): ...as this.
1088 * src/vercmp.cpp (pkgVersionInfo::Parse): Implement it.
1090 2011-02-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1092 Merge from mingw-get-0.1-mingw32-alpha-5 bug-fix branch.
1094 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): Promote
1095 "install" action on new prerequisites, where a previously uninstalled
1096 package is required to satisfy any "upgrade" dependency.
1098 * src/pkgexec.cpp (pkgActionList::Execute): Don't make misleading
1099 claims concerning package removal.
1101 * src/pkgtask.h (STRICTLY_GT, STRICTLY_LT, ACTION_PRIMARY): Add one
1102 level of parentheses around defining expressions.
1104 2011-02-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1106 Publish mingw-get-0.0-mingw32-alpha-5.1 bug-fix release.
1108 * README: Updated to reflect changes.
1110 2011-02-08 Keith Marshall <keithmarshall@users.sourceforge.net>
1112 Improve diagnostics for failed GUI invocation.
1114 * src/guimain.cpp: New file; currently delivers only a diagnostic
1115 stub, provided by Sze Howe Koh <axfangli@users.sourceforge.net>, to
1116 pop-up a message block explaining why GUI mode cannot be invoked.
1118 * Makefile.in (GUI_LDFLAGS): New macro; it is required by...
1119 (gui$EXEEXT): ...this new build rule; add to prerequisites of...
1120 (all): ...this [default] build rule; redefine this in terms of...
1121 (BIN_PROGRAMS, LIBEXEC_PROGRAMS, LIBEXEC_DATA): ...these new macros;
1122 define them, and also use them as loop iterator objectives for...
1123 (install, install_strip): ...these; also schedule them...
1124 (clean): ...for removal by this.
1126 * src/clistub.c (Copyright): Add new year.
1127 (main): Amend error message, if gui$EXEEXT doesn't start; make it
1128 more intelligible to normal users.
1130 2011-02-07 Keith Marshall <keithmarshall@users.sourceforge.net>
1132 Correct omissions from packaged source tarball.
1134 * Makefile.in (Copyright): Add new year.
1135 (SRCDIST_FILES): Add aclocal.m4
1136 (SRCDIST_SUBDIRS): Add m4
1138 2011-01-05 Keith Marshall <keithmarshall@users.sourceforge.net>
1140 Reduce path names to base names, in some diagnostic message contexts.
1142 * src/climain.cpp: Update copyright notice for new year.
1143 (climain): Extract base name from argv[0], to pass as program name tag
1144 in initialisation of diagnostic message handler.
1146 * src/dmh.h, src/dmh.cpp: Update copyright notices; make some layout
1147 adjustments, for more consistent formatting style.
1149 * src/pkgbind.cpp: Update copyright notice.
1150 (pkgRepository::GetPackageList): Reduce path names for catalogue files
1151 to their base names, when reporting them in diagnostic messages.
1153 2011-01-05 Keith Marshall <keithmarshall@users.sourceforge.net>
1155 Avoid a potential out-of-range action name look-up.
1157 * src/pkgdeps.cpp: Update copyright notice for new year.
1158 (pkgXmlDocument::Schedule): Mask action code with ACTION_MASK, to
1159 determine correct action name when diagnosing uninstalled package.
1161 2011-01-03 Keith Marshall <keithmarshall@users.sourceforge.net>
1163 Make "install" and "remove" notifications symmetric.
1165 * configure.ac (AC_INIT): Bump version to "0.1-alpha-6cvs".
1166 (YEARS_OF_ISSUE): Add new year.
1168 * src/pkginst.cpp: Update copyright notice for new year.
1169 (pkgInstall): Add notification for package being installed.
1171 2010-12-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1173 Add preliminary CLI support for "list" and "show" actions.
1175 * src/pkgtask.h (ACTION_PRIMARY): New manifest constant; define it.
1176 (ACTION_LIST, ACTION_SHOW): Likewise; cast to enumerated values for...
1177 (action_list, action_show): ...these; define them.
1179 * src/pkgexec.cpp (action_name): Add defining text for...
1180 (action_list, action_show): ...these.
1182 * src/climain.cpp: Partially revert 2010-11-01 change...
1183 (climain) [! ACTION_UPDATE]: Reinstate original "if" block, moving
1184 the "switch" block within it, but without the ACTION_UPDATE case.
1185 [ACTION_LIST, ACTION_SHOW]: New "switch" cases; they invoke...
1186 (pkgXmlDocument::DisplayPackageInfo): ...this new method.
1188 * src/pkgbase.h (pkgXmlDocument::DisplayPackageInfo): Declare it.
1189 (pkgActionItem::ConfirmInstallationStatus): New method; declare it.
1190 (pkgXmlNode::GetSysRoot): Make declaration style consistent with
1191 others in the class; do not name arguments in the declaration.
1192 (pkgXmlNode::FindFirstAssociate): Likewise.
1193 (pkgXmlNode::FindNextAssociate): Likewise.
1195 * src/pkgshow.cpp: New file.
1196 (pkgXmlDocument::DisplayPackageInfo): Implement it.
1198 * src/pkgdeps.cpp (pkgMsgUnknownPackage): New extern "C" function;
1199 implement it temporarily, pending a future i18n reimplementation.
1200 (assert_installed): Drop "inline" attribute; leave it as "static".
1201 Set "tarname" correctly, to match the installed package version; (it
1202 previously incorrectly returned the latest available version).
1203 (pkgActionItem::ConfirmInstallationStatus): Implement it.
1204 (pkgXmlDocument::Schedule) [ACTION_PRIMARY]: Set as appropriate.
1205 (pkgXmlDocument::Schedule) [ACTION_REMOVE || ACTION_UPGRADE]: Complain
1206 if requested package is not recorded as having been installed.
1207 (pkgXmlDocument::ResolveDependencies) [! ACTION_INSTALL]: Do not
1208 invoke it recursively.
1210 * Makefile.in (pkgshow.$OBJEXT): Add reference.
1212 2010-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1214 Lay groundwork for implentation of additional actions.
1216 * src/climain.cpp (climain): Adjust indentation; replace `if' block...
1217 [action != ACTION_UPDATE]: ...with this default `switch' case, and...
1218 [action == ACTION_UPDATE]: ...this as explicit "do nothing" case.
1220 2010-10-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1222 mingw-get-0.1-mingw32-alpha-5 released.
1224 * configure.ac (AC_INIT): Bump version to 0.1-alpha-5.
1225 * README: Update release notes accordingly.
1226 * All files (r0-1-alpha-5): Tag assigned.
1228 2010-10-22 Keith Marshall <keithmarshall@users.sourceforge.net>
1230 Make pkgInitRites/pkgLastRites processing more robust;
1231 avoid a potential race condition in mingw-get-inst.
1233 * src/rites.c: Refactor conditional code to segregate execution of...
1234 [defined IMPLEMENT_INITIATION_RITES]: ...this into distinct phases.
1235 (PHASE_ONE_RITES, PHASE_TWO_RITES): Define constants to identify them.
1236 (do_init_rites): Renamed to...
1237 (invoke_rites): ...this; inline it.
1238 (pkgLastRites): Invoke it, to pre-empt rename action of...
1239 (lastrites.exe): ...this, subsequently exec()ed process.
1240 (perror): Issue more informative diagnostic on exec() failure.
1242 * src/clistub.c (IMPLEMENT_INITIATION_RITES): Stipulate as...
1243 (PHASE_ONE_RITES): ...this phase of implementation only.
1245 * src/pkgexec.cpp (IMPLEMENT_INITIATION_RITES): Define to provide...
1246 (PHASE_TWO_RITES): ...this phase of implementation, facilitated by...
1247 (self_upgrade_rites): ...this locally defined RITES_INLINE function.
1248 (pkgActionItem::Execute): Invoke it, in remove/install loop, while...
1249 [init_rites_pending]: ...new loop local variable remains true.
1251 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
1253 Fix packaging bug in -lic package.
1255 * Makefile.in (licdist): Use directory named
1256 "share", not "shared".
1258 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
1260 mingw-get-0.1-mingw32-alpha-4 released.
1262 * All files (r0-1-alpha-4): Tag assigned.
1264 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
1266 Add rudimentary help option.
1268 * README: Update release notes.
1270 * src/clistub.c: Add --help option.
1272 2010-09-10 Charles Wilson <mingw@cwilson.fastmail.fm>
1274 Fix "mingw-get deletes itself" bug in last rites handling.
1276 * README: Add new release notes.
1278 * configure.ac: Bump version to 0.1-alpha-4.
1280 * src/dmh.h: If __cplusplus, include <exception> and
1281 declare dmh_exception class.
1283 * src/dmh.cpp (class dmh_exception): Implement.
1284 (abort_if_fatal): If DMH_FATAL, throw dmh_exception rather
1285 than calling exit().
1287 * src/climain.cpp (climain): Wrap entire function body in try/
1288 catch block. If dmh_exception is caught, return EXIT_FAILURE.
1290 * src/clistub.c (main): Capture return value of climain(). If
1291 non-zero, perform last rites and return EXIT_FAILURE.
1293 2010-08-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1295 mingw-get-0.1-mingw32-alpha-3 released.
1297 * README: Add new release notes.
1299 * All files (r0-1-alpha-3): Tag assigned.
1301 2010-08-27 Keith Marshall <keithmarshall@users.sourceforge.net>
1303 Add runtime hooks to support self-upgrade for future releases.
1305 * src/rites.c: New file; compile it free-standing, to provide...
1306 (lastrites.exe): ...this helper application for context clean-up;
1307 alternatively, use it as an include file, with pre-definition of...
1308 (IMPLEMENT_INITIATION_RITES): ...this, to implement...
1309 (pkgInitRites, pkgLastRites): ...these inline functions.
1311 * src/clistub.c (main) [argc > 1]: Use them.
1312 (progname): New local variable within `main'; set it once, then use it
1313 instead of repeated references to `basename(*argv)' in diagnostics.
1314 (MINGW_GET_DLL, MINGW_GET_GUI): Relocate to `src/rites.c'.
1316 * src/debug.h (DEBUG_INHIBIT_RITES_OF_PASSAGE):
1317 (DEBUG_FAIL_FILE_RENAME_RITE, DEBUG_FAIL_FILE_UNLINK_RITE): New
1318 defines; they facilitate debugging of the src/rites.c code.
1320 * Makefile.in (lastrites$EXEEXT): New target; build as prerequisite...
1321 (all): ...of this primary target.
1322 (install, install-strip): Install it.
1323 (SRCDIST_FILES): Remove install-sh; it is now included in...
1324 (build-aux): ...this directory; add it to...
1325 (SRCDIST_SUBDIRS): ...this.
1327 2010-08-24 Keith Marshall <keithmarshall@users.sourceforge.net>
1329 Set default sysroots relative to mingw-get installation directory.
1331 * xml/profile.xml (system-map) [name == default]: For each of...
1332 [subsystem == mingw32]: ...set sysroot path to value of %R macro...
1333 [subsystem == msys]: ...and to its %R/msys/1.0 subdirectory.
1335 2010-08-19 Keith Marshall <keithmarshall@users.sourceforge.net>
1337 Some dependency resolver enhancements and bug fixes.
1339 * src/pkgbase.h (pkgXmlNode::GetContainerAttribute): New method;
1342 * src/pkgdeps.cpp (pkgXmlNode::GetContainerAttribute): Implement it;
1343 it is used to retrieve package name attributes from the containing
1344 'package' element, when given a pointer to a 'release' element by...
1345 (assert_unmatched, assert_installed): ...these new static functions.
1346 (pkgXmlDocument::Schedule): Use them to reconstruct and register
1347 dependency reference data for previously installed packages which are
1348 no longer included in the distribution manifest.
1349 (pkgXmlDocument::ResolveDependencies): Fix a block nesting error;
1350 catch and diagnose unresolved dependencies; don't look beyond the XML
1351 document root node, (tinyxml error not caught?), when searching for
1352 requirements specified on container nodes.
1354 2010-08-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1356 Improve scheduling of package processing requests.
1358 * src/pkgexec.cpp (pkgXmlDocument::Schedule): Inspect entire `actions'
1359 list, when checking for duplicate package processing requests; decline
1360 to schedule any such duplicate, or any request which lacks a package
1363 2010-08-15 Keith Marshall <keithmarshall@users.sourceforge.net>
1365 Lay foundation for selective compilation of debugging code.
1367 * src/debug.h: New file...
1368 * src/sysroot.cpp: Include it.
1369 (pkgXmlDocument::LoadSystemMap): Make debugging output conditional...
1370 [DEBUGLEVEL & DEBUG_TRACE_INIT]: ...on this new debugging state.
1372 2010-08-15 Keith Marshall <keithmarshall@users.sourceforge.net>
1374 * src/pkgkeys.h: Typo in comment: file was previously identified as
1375 pkgkeys.c; corrected.
1377 2010-08-13 Keith Marshall <keithmarshall@users.sourceforge.net>
1379 Improve diagnostics for invalid references to non-release XML nodes.
1381 * src/pkgkeys.h (value_unknown): New global string; declare it.
1382 * src/pkgkeys.c (value_unknown): Implement it.
1384 * src/pkgname.cpp (pkgArchiveName): Identify XML element type when
1385 diagnosing references to elements of types other than release; use...
1386 (value_unknown): ...this, as appropriate.
1388 2010-08-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1390 Guard against a potential buffer overrun.
1392 * src/pkgreqs.cpp (pkgSpecs::SetProperty): Allocate an additional
1393 byte to accommodate an extra field separator, when inserting a new
1394 data value into a previously empty field.
1396 2010-07-27 Cesar Strauss <cestrauss@gmail.com>
1398 Handle the GNU long name tar header format.
1400 * src/pkgproc.h (TAR_ENTITY_TYPE_GNU_LONGNAME): New manifest constant;
1402 (pkgTarArchiveProcessor::EntityDataAsString): New protected method;
1404 * src/tarproc.cpp: ...implement it.
1405 (pkgTarArchiveProcessor::Process): Before building the entry pathname,
1406 check for a GNU long name type header; when found, read pathname from
1407 the entry data area, before fetching the following header, from which
1408 to retrieve the associated entity data.
1410 2010-06-24 Keith Marshall <keithmarshall@users.sourceforge.net>
1412 Work around an autoconf bug (reported by Stefano Sabatini).
1414 * Makefile.in (VPATH): Use @top_srcdir@ instead of ${srcdir}; current
1415 autoconf incorrectly elides references to @srcdir@ and ${srcdir} when
1416 substituting within a VPATH specification for building `in-source'.
1417 Also, prefer colons to blanks as path name separators, for improved
1418 portability to non-GNU implementations of make; (recommendation by
1421 2010-06-24 Keith Marshall <keithmarshall@users.sourceforge.net>
1423 Include alias search, when matching component package name.
1425 * src/keyword.c (has_keyword): Rearrange argument declarations for
1426 more natural order; update all callers accordingly. Simplify; compare
1427 keyword to be matched with each successive candidate from match-list,
1428 character-by-character and in-place, so avoiding memory allocation
1429 for any local duplicate of the passed match-list; thus...
1430 (safe_strdup): ...this static function no longer required; delete it.
1431 (string.h): No references remain; do not include it.
1433 * src/pkgfind.cpp (pkgXmlNode::FindPackageByName): Augment component
1434 package name matching to include potential matches of the look-up name
1435 with trailing component name stripped off, when that matches the class
1436 name of an identified component package, and the initial substring of
1437 the look-up name, after stripping, matches any specified alias name
1438 for the containing package.
1440 2010-06-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1442 Address FIXME relating to identification of distributable files.
1444 * install-sh: Move to...
1445 * build-aux: ...this new directory.
1447 * Makefile.in (PACKAGE_DISTVERSION): Modify `sed' edit sequence; make
1448 it depend on, and ensure that it incorporates the expansion of...
1449 (PACKAGE_SUBSYSTEM): ...this new macro; defined as substitution of...
1450 (host_os): ...this autoconf variable, set by...
1452 * configure.ac (AC_CANONICAL_HOST): ...this; add it, requiring...
1453 (AC_CONFIG_AUX_DIR): ...`build-aux' directory reference, providing...
1455 * build-aux/config.guess, build-aux/config.sub: ...these new standard
1456 files; import them from the standard `build-aux' repository.
1458 2010-05-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1460 Bump version for next release cycle.
1462 * configure.ac (AC_INIT): Bump version suffix to alpha-3.
1464 2010-05-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1466 mingw-get-0.1-mingw32-alpha-2 released.
1468 * README: Add new release notes.
1470 * xml/profile.xml: Update to use default referencing for...
1471 (package-list.xml.lzma): ...this repository master catalogue.
1473 * All files (r0-1-alpha-2): Tag assigned.
1475 2010-05-12 Keith Marshall <keithmarshall@users.sourceforge.net>
1477 Make provision to protect user's profile settings during upgrade.
1479 * Makefile.in (install): Remove `profile.xml'; replace it with...
1480 (install-profile): ...this new prerequisite installation goal; it
1481 renames the installed copy of `profile.xml' as `defaults.xml', within
1482 the installed package image.
1484 * src/pkgkeys.h (defaults_key): New key; declare it.
1485 * src/pkgkeys.c: Some cosmetic formatting (tabulation) adjustments.
1486 (defaults_key): Implement it; it refers to the `defaults.xml' file.
1488 * src/climain.cpp (climain): Check `profile_key' for accessibility of
1489 the `profile.xml' file; if [! R_OK] emit a diagnostic warning, fall
1490 back on `defaults_key', and attempt to load configuration from the
1491 distributed `defaults.xml' file.
1493 2010-05-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1495 Add preliminary support for future `-reinstall' option.
1497 * src/pkgexec.cpp (pkgActionItem::Execute) [ACTION_INSTALL]: Force
1498 installation if `-reinstall' option is selected, overriding state of
1499 any prior installation; temporarily assume that this option is always
1500 selected, to permit proper `upgrade' operation in the absence of any
1501 functional `uninstall' capability, and pending implementation of a
1502 mechanism for interpreting user specified options.
1504 2010-05-11 Keith Marshall <keithmarshall@users.sourceforge.net>
1506 Correct handling for "%R" macro in relative sysroot path specs.
1508 * src/tarproc.cpp (pkgTarArchiveProcessor): In constructor, expand the
1509 sysroot path specification a second time, to capture the effect of any
1510 embedded macros, before computing the recorded `sysroot_len' value.
1512 2010-05-05 Keith Marshall <keithmarshall@users.sourceforge.net>
1514 Handle "%" wildcard matches in package and subsystem version strings.
1516 * src/pkgbase.h (pkgSpecs): Forward declare it.
1517 (pkgActionItem::~pkgActionItem): Declare explicit destructor.
1518 (pkgActionItem::SetRequirements): Add extra `pkgSpecs*' argument;
1519 update references, passing additional argument in...
1521 * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): ...this.
1523 * src/pkgexec.cpp (pkgActionItem::~pkgActionItem): Implement it.
1524 (pkgActionItem::SetRequirements): Delete obsolete implementation.
1526 * src/pkginfo/pkginfo.h: Update copyright notice; add year 2010.
1527 (pkgSpecs::GetTarName): New public method; declare it.
1528 (pkgSpecs::SetProperty): New private method; declare it.
1529 (pkgSpecs::SetPackageName): New inline method; implement it.
1530 (pkgSpecs::SetPackageVersion, pkgSpecs::SetPackageBuild): Likewise.
1531 (pkgSpecs::SetSubSystemName, pkgSpecs::SetSubSystemVersion): Likewise.
1532 (pkgSpecs::SetSubSystemBuild, pkgSpecs::SetReleaseStatus): Likewise.
1533 (pkgSpecs::SetReleaseIndex, pkgSpecs::SetComponentClass): Likewise.
1534 (pkgSpecs::SetComponentVersion, pkgSpecs::SetPackageFormat): Likewise.
1535 (pkgSpecs::SetCompressionType): Likewise.
1537 * src/pkginfo/pkginfo.l: Update copyright notice; add year 2010.
1538 (TRANS): Interpret "%" as wildcard in version string matches.
1540 * src/pkgreqs.cpp: New file.
1541 (pkgActionItem::SetRequirements): Reimplement per new declaration;
1542 it now always allocates heap memory for requirements specifications.
1543 (pkgSpecs::GetTarName, pkgSpecs::SetProperty): Implement them.
1545 * Makefile.in (CORE_DLL_OBJECTS): Add `pkgreqs.$(OBJEXT)'.
1547 2010-04-30 Keith Marshall <keithmarshall@users.sourceforge.net>
1549 Revert 2010-04-04 refactoring of tarproc.cpp and tarinst.cpp
1551 * src/tarinst.cpp: File removed; its content merged into...
1552 * src/tarproc.cpp: ...this; it cannot be cleanly separated out.
1554 * Makefile.in (tarinst.$OBJEXT): Remove reference.
1556 2010-04-29 Keith Marshall <keithmarshall@users.sourceforge.net>
1558 Handle "*" wildcard matches in package and subsystem version strings.
1560 * src/vercmp.h (pkgVersionInfo::version_string): New private member
1561 variable; it stores a pointer to a dynamically allocated local copy of
1562 the invariant `version' argument, to facilitate correct parsing.
1563 (pkgVersionInfo::build_string): Likewise; it provides similar handling
1564 for the invariant `build' argument.
1565 (pkgVersionInfo::Free): New private inline method; it provides a NULL
1566 pointer safe wrapper, calling the C library `free()' function, (since
1567 some implementations are believed to be unsafe); it is used by...
1568 (pkgVersionInfo::~pkgVersionInfo): ...this new inline destructor, to
1569 release the memory allocated by the constructor, for `version_string'
1572 * src/vercmp.cpp (pkgVersionInfo::pkgVersionInfo): Allocate memory for
1573 `version_string' and `build_string', as required; populate it.
1574 Explicitly handle "*" as a `match anything' wildcard...
1575 (pkgVersionInfo::Compare): ...matching it as `equal' to everything.
1577 2010-04-18 Keith Marshall <keithmarshall@users.sourceforge.net>
1579 Correct omission from configure script prerequisite checks.
1581 * aclocal.m4 (MINGW_AC_OUTPUT): New macro; it wraps AC_OUTPUT itself,
1582 adding a trap to force an abort if any preceding prerequisite check
1583 was handled by MINGW_AC_ASSERT_MISSING.
1585 * configure.ac: Qualify package component types, in prerequisite
1586 checks handled by MINGW_AC_ASSERT_MISSING; invoke MINGW_AC_OUTPUT
1587 in place of AC_OUTPUT.
1589 2010-04-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1591 Add configure script checks for prerequisite library headers.
1592 (Thanks to Cesar Strauss for proposing a rudimentary implementation).
1594 * aclocal.m4: New file; it does no more than include...
1595 * m4/missing.m4: ...this; new file incorporated from build-aux module.
1597 * configure.ac: Add AC_CHECK_HEADER assertions for...
1598 (zlib.h, bzlib.h, lzma.h): ...these; invoke MINGW_AC_ASSERT_MISSING in
1599 respect of each failing assertion.
1601 2010-04-17 Keith Marshall <keithmarshall@users.sourceforge.net>
1603 Case-insensitive subsystem name matching revisited.
1605 * src/pkgfind.cpp (pkgXmlDocument::FindPackageByName): Use...
1606 (subsystem_strcmp): ...this to match subsystem names, instead of...
1607 (match_if_explicit): ...this.
1609 2010-04-15 Keith Marshall <keithmarshall@users.sourceforge.net>
1611 Enable recursive processing of repository package lists.
1613 * src/pkgbase.h (pkgXmlDocument::SyncRepository): Make it public.
1615 * src/pkgbind.cpp (pkgRepository): New locally defined and implemented
1616 class; it facilitates recursive loading and parsing of package lists,
1617 replacing much of the original non-recursive functionality within...
1618 (pkgXmlDocument::BindRepositories): ...this; use it.
1620 2010-04-04 Keith Marshall <keithmarshall@users.sourceforge.net>
1622 Implement installer function; use per-package file manifests.
1624 * src/pkgproc.h (pkgManifest): New class; declare it.
1625 (pkgArchiveProcessor::origin): New protected member variable.
1626 (pkgArchiveProcessor::sysroot_len): New protected member variable.
1627 (pkgArchiveProcessor::installed): Type changed to `pkgManifest *'.
1628 (pkgTarArchiveInstaller::Process): Declare specialisation hook.
1629 (pkgTarArchiveInstaller::UpdateInstallationManifest): Disused member
1630 function; remove redundant declaration from class definition.
1631 (pkgInstall): New generalised installation function; declare it.
1632 (pkgRegister): New function; declare it.
1634 * src/pkginst.cpp: New file.
1635 (pkgManifest, pkgInstall, pkgRegister): Implement them.
1637 * src/pkgexec.cpp (pkgActionItem::Execute): Use `pkgInstall' in place
1638 of stub formerly provided here.
1640 * src/pkgkeys.h (manifest_key, reference_key): New keys; declare them.
1641 * src/pkgkeys.c (manifest_key, reference_key): Implement them.
1643 * src/tarproc.cpp: Code refactored.
1644 (pkgTarArchiveProcessor::sysroot_len): Initialise it.
1645 (pkgTarArchiveProcessor::origin): Initialise it.
1646 (pkgTarArchiveProcessor::installed): Initialise; associate it with a
1647 pkgManifest class entity, and populate this as appropriate.
1648 (pkgTarArchiveProcessor::~pkgTarArchiveProcessor): Add explicit clean
1649 up of linked `pkgManifest *' entity referenced by `installed'.
1650 (pkgTarArchiveProcessor::Process) [TAR_ENTITY_TYPE_DIRECTORY]: Add
1651 braces to demarcate localised inner scope of string scan for removal
1652 of trailing directory name separators; (thanks to Cesar Strauss for
1653 reporting invalid local pointer declaration error in GCC >= 4.4).
1654 (pkgTarArchiveInstaller::UpdateInstallationManifest): Deleted.
1655 (pkgTarArchiveInstaller::pkgTarArchiveInstaller): Factor out.
1656 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
1657 (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
1658 (commit_saved_entity): Likewise.
1660 * src/tarinst.cpp: New file; it implements...
1661 (pkgTarArchiveInstaller::Process): ...this new specialisation
1662 of the original pkgTarArchiveProcessor::Process method...
1663 (pkgTarArchiveInstaller::pkgTarArchiveInstaller): ...and this
1664 refactored code, abstracted from src/tarproc.cpp and modified to
1665 use the pkgManifest class for installation tracking.
1666 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
1667 (pkgTarArchiveInstaller::ProcessDataStream): Likewise.
1668 (commit_saved_entity): Relocated from src/tarproc.cpp.
1670 * Makefile.in (CORE_DLL_OBJECTS): Add...
1671 (pkginst.OBJEXT, tarinst.OBJEXT): ...these new object files.
1673 2010-03-31 Keith Marshall <keithmarshall@users.sourceforge.net>
1675 Guard against NULL pointer dereferences in tinyxml code.
1677 * src/pkgbase.h (pkgXmlNode::GetName): Verify `this' pointer is
1678 non-NULL, before invoking the underlying tinyxml method.
1679 (pkgXmlNode::GetParent, pkgXmlNode::GetChildren): Likewise.
1680 (pkgXmlNode::GetNext, pkgXmlNode::GetPropVal): Likewise.
1681 (pkgXmlNode::AddChild, pkgXmlNode::DeleteChild): Likewise.
1682 (pkgXmlNode::GetDocumentRoot): Likewise.
1683 (pkgXmlNode::IsElementOfType): Likewise.
1685 2010-03-28 Cesar Strauss <cestrauss@gmail.com>
1687 Avoid running InternetAttemptConnect in pkgInternetAgent
1688 constructor, since it is called during DLL initialisation.
1690 * src/pkginet.cpp (pkgInternetAgent::pkgInternetAgent): Move the
1691 InternetAttemptConnect call from constructor...
1692 (pkgInternetAgent::OpenURL): ...to here.
1694 2010-03-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1696 Automate object code dependency tracking.
1698 * Makefile.in (DEPFLAGS): New macro; define it.
1699 (%.OBJEXT: %.c, %.OBJEXT: %.cpp): Add dependency generator commands...
1700 (%.d): ...to create these dependency maps; `sinclude' them, and...
1701 (clean): ...remove them.
1703 * .cvsignore (*.d): Add wild card template to match them.
1705 2010-03-22 Keith Marshall <keithmarshall@users.sourceforge.net>
1707 Support case insensitive matching for file and subsystem names.
1709 * src/pkgbase.h (safe_strcmp): New inline function; it provides NULL
1710 argument safe comparison of strings, returning the boolean inverse of
1711 the `strcmp' result, using either case-sensitive or case-insensitive
1712 semantics; derive it from...
1713 (match_if_explicit): ...this; redefine as macro; invoke `safe_strcmp'
1714 using explicitly case-sensitive semantics.
1715 (subsystem_strcmp): New macro; it invokes `safe_strcmp' with either
1716 case-sensitive or case-insensitive semantics, depending on...
1717 (CASE_INSENSITIVE_SUBSYSTEMS): ...this new context selection macro; it
1718 fixes the choice between case-sensitive and case-insensitive matching
1719 semantics for any given implementation, at compile time.
1720 (pkg_strcmp): New macro; it invokes `safe_strcmp' with either
1721 case-sensitive or case-insensitive semantics, depending on...
1722 (CASE_INSENSITIVE_FILESYSTEM): ...this new context selection macro; it
1723 fixes the choice between case-sensitive and case-insensitive matching
1724 semantics for any given implementation, at compile time.
1726 * src/sysroot.cpp (pkgXmlNode::GetSysRoot): Use `subsystem_strcmp'.
1728 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1730 Add preliminary support for virtual packages.
1732 * src/pkgkeys.h (yes_value, no_value): Redefine as aliases...
1733 (value_yes, value_no): ...for these new global strings; declare them.
1734 (value_none, value_virtual): New global strings; declare them.
1736 * src/pkgkeys.c (yes_value, no_value): Rename...
1737 (value_yes, value_no): ...to implement these, respectively.
1738 (value_none, value_virtual): Implement them.
1740 * src/pkgname.cpp (pkgXmlNode::ArchiveName): Check containing package
1741 node for `class' attribute set to `value_virtual'; if present, always
1742 return the effective `tarname' property as `value_none'.
1744 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): For packages
1745 with an effective `tarname' of `value_none', do not download anything.
1747 * src/pkgexec.cpp (pkgActionItem::Execute): For packages with an
1748 effective `tarname' of `value_none', do not invoke any tar archive
1749 processing function.
1751 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1753 Don't write installation records for unavailable packages.
1755 * src/tarproc.cpp (pkgTarArchiveInstaller): In constructor, ensure
1756 archive is ready for processing, before initialising an installation
1759 2010-03-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1761 Rationalise path identification for XML file locations.
1763 * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Use `xmlfile()'
1764 function to locate `sysroot' map file; free memory when done.
1765 (pkgXmlDocument::UpdateSystemMap): Likewise.
1766 (sigpath): Static global variable disused; delete it.
1768 2010-03-01 Keith Marshall <keithmarshall@users.sourceforge.net>
1770 Extend package name search to include component packages.
1772 * src/pkgfind.cpp (pkgHasMatchingName): Remove; fold it into...
1773 (pkgXmlNode::FindPackageByName): ...this; augment to extend search
1774 within package definition elements, seeking a potential match on an
1775 included component package name or component class-implied name.
1777 * src/pkgkeys.h (class_key): New global string constant; declare it.
1778 * src/pkgkeys.c (class_key): Implement it.
1780 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1782 Bump version for next release cycle.
1784 * configure.ac (AC_INIT): Bump version suffix to alpha-2.
1786 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1788 mingw-get-0.1-mingw32-alpha-1 released.
1790 2010-02-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1792 Prepare initial package release.
1794 * README: New file; use it to source release notes.
1796 * Makefile.in (SRCDIST_FILES): Use ...
1797 (LICENCE_FILES): ...this new macro; define it.
1798 (licdist): New build goal; implement it.
1799 (bindist): Require it; add alternative `zip' format package.
1801 * xml/profile.xml (repository): Set default `package-index' name.
1802 (system-map): Normalise spelling for default `sysroot' path names.
1804 2010-02-10 Keith Marshall <keithmarshall@users.sourceforge.net>
1806 Add directory/file records in installation manifests.
1808 * src/pkgkeys.h (dirname_key, filename_key): New strings; declare...
1809 * src/pkgkeys.c (dirname_key, filename_key): ...and implement them.
1811 * src/pkgproc.h (pkgArchiveProcessor::installed): New class member
1812 variable; declare it.
1813 (pkgTarArchiveInstaller::UpdateInstallationManifest): New method;
1816 * src/tarproc.cpp: Miscellaneous comment updates.
1817 (pkgTarArchiveInstaller): In constructor...
1818 (pkgTarArchiveInstaller::installed): ...use new member variable...
1819 (pkgArchiveProcessor::installed): ...inherited from this.
1820 (pkgTarArchiveInstaller::UpdateInstallationManifest): Implement and...
1821 (pkgTarArchiveInstaller::ProcessDataStream): ...use it.
1822 (pkgTarArchiveInstaller::ProcessDirectory): Likewise.
1824 2010-02-06 Keith Marshall <keithmarshall@users.sourceforge.net>
1826 Work around a deficiency in Microsoft's stat() implementation.
1828 * src/tarproc.cpp (pkgTarArchiveProcessor::ProcessDirectory): Don't
1829 pass a `pathname' argument with trailing slashes; strip them off.
1831 2010-02-06 Keith Marshall <keithmarshall@users.sourceforge.net>
1833 Add machinery for installation and packaging for distribution.
1835 * install-sh: New file; source it from autoconf distribution.
1837 * configure.ac (AC_PREFIX_DEFAULT): Assign it as `C:/MinGW'.
1838 (AC_PROG_MKDIR_P, AC_PROG_INSTALL, AC_PROG_LN_S): Invoke these.
1839 (STRIP): New output variable; use AC_CHECK_TOOL to define it.
1841 * Makefile.in (abs_top_srcdir): Define to AC_SUBST value.
1842 (PACKAGE_TARNAME, PACKAGE_VERSION): Define to AC_SUBST values.
1843 (prefix, exec_prefix, bindir, libexecdir, localstatedir): Likewise.
1844 (INSTALL, INSTALL_PROGRAM, INSTALL_SCRIPT, INSTALL_DATA): Likewise.
1845 (STRIP): New macro; define it using AC_CHECK_TOOL substitution.
1846 (mkinstalldirs): New macro; define it as AC_PROG_MKDIR_P result.
1847 (LN_S): New macro; define it as AC_PROG_LN_S result.
1848 (dist, srcdist, bindist): New build objectives; implement them.
1849 (install, installdirs, install-strip, maintainer-clean): Likewise.
1850 (SRCDIST_FILES, SRCDIST_SUBDIRS): New macros; define them.
1851 (PACKAGE_DISTNAME, PACKAGE_DISTVERSION): Likewise.
1852 (PACKAGE_DISTROOT, PACKAGE_ROOTVERSION): Likewise.
1853 (PACKAGE_CONFIG_DIR): Likewise.
1855 2010-02-02 Keith Marshall <keithmarshall@users.sourceforge.net>
1857 Implement package installer for tar archives.
1859 * src/pkgexec.cpp (pkgXmlDocument::Execute): Replace existing
1860 stub implementation of installer, using methods provided by...
1861 * src/pkgproc.h, src/tarproc.cpp: ...these new files, with trap...
1862 * src/pkgdeps.cpp (pkgXmlDocument::Schedule) [installed]: Add entry...
1863 (pkgActionItem::Selection) [to_remove]: ...for this; use it to detect
1864 `install' requests for packages which are aleady installed.
1866 * Makefile.in (CORE_DLL_OBJECTS): Add tarproc.$(OBJEXT); specify
1867 dependencies as appropriate.
1869 * src/sysroot.cpp (pkgXmlDocument::LoadSystemMap): Don't commit
1870 newly created `sysroot' mapping records to disk; defer to...
1871 (pkgXmlDocument::UpdateSystemMap): ...this new method.
1872 (sigpath): Make it a global variable, with file (static) scope.
1874 * src/climain.cpp (pkgXmlDocument::UpdateSystemMap): Invoke it.
1876 * src/pkgkeys.h (download_key, modified_key, source_key): New global
1877 string variables; declare them, providing their implementations...
1878 * src/pkgkeys.c (download_key, modified_key, source_key): ...here.
1879 * src/pkgname.cpp (download_key, source_key): Use them.
1881 * src/pkginet.cpp (pkgActionItem::ArchivePath): Delete; replace...
1882 * src/mkpath.c (pkgArchivePath): ...with this free standing function.
1883 * src/mkpath.h (pkgArchivePath): Declare its prototype.
1885 * src/pkgbase.h (pkgActionItem::ArchivePath): Delete declaration.
1886 (pkgXmlDocument): Add a default constructor; implement as `inline'.
1887 (pkgXmlDocument::AddDeclaration): Use heap memory to allocate the new
1888 declaration object, instead of `auto' variable, to avoid scope error.
1889 (pkgXmlDocument::UpdateSystemMap): Declare it.
1891 2010-01-26 Keith Marshall <keithmarshall@users.sourceforge.net>
1893 Implement rudimentary dependency resolver.
1895 * src/pkgdeps.cpp: New file.
1897 * Makefile.in (CORE_DLL_OBJECTS): Add pkgdeps.$(OBJEXT) reference;
1898 establish header file dependencies.
1900 * src/pkgbase.h (to_remove, to_install, selection_types): New enum.
1901 (pkgActionItem::selection): Extend it to store as enumerated pair...
1902 (pkgActionItem::SelectPackage): New inline method; assign them.
1903 (pkgActionItem::Selection): New inline method; retrieve them.
1904 (pkgXmlNode::GetInstallationRecord): New method; declare it.
1906 * src/pkgexec.cpp (pkgActionItem): In constructor...
1907 (selection): ...initialise both references in enumerated pair.
1908 (pkgActionItem::GetReference): Use `Selection()' method.
1909 (pkgActionItem::SelectIfMostRecent): Ditto; also correct logic for
1910 making selection, and assign to `to_install' element.
1911 (pkgXmlDocument::Schedule): Don't update `request'.
1912 (pkgActionItem::Execute): Implement as stub.
1914 * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): Use new
1915 `Selection()' method.
1917 * src/pkgkeys.h (yes_value, no_value): Declare new string constants.
1918 * src/pkgkeys.c (yes_value, no_value): Implement them.
1920 * src/vercmp.cpp: Update copyright notice.
1921 (pkgVersionInfo::operator<=): Bug fix; must test for `<', but had `>'.
1923 2010-01-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1925 Avoid segmentation faults when processing invalid data streams.
1927 * src/pkgstrm.h: Update copyright notice.
1928 (pkgArchiveStream::IsReady): New pure virtual method.
1929 (pkgRawArchiveStream::IsReady): Provide inline implementation.
1930 (pkgGzipArchiveStream::IsReady): Likewise.
1931 (pkgBzipArchiveStream::IsReady): Likewise.
1932 (pkgLzmaArchiveStream::IsReady): Likewise.
1933 (pkgXzArchiveStream::IsReady): Likewise.
1935 * src/pkgstrm.cpp: Update copyright notice.
1936 (pkgLzmaArchiveStream, pkgXzArchiveStream) [fd == -1]: Decline to
1937 perform any form of read or decode processing.
1939 * src/pkginet.cpp (pkgInternetLzmaStreamingAgent): Use `fd = -2' as
1940 pseudo-descriptor for the pkgLzmaArchiveStream derived component of
1941 this internet data streaming class.
1943 2010-01-23 Keith Marshall <keithmarshall@users.sourceforge.net>
1945 Require liblzma >= liblzma-4.999.9beta_20091209-3-mingw32-dev
1947 * src/pkgstrm.h (LZMA_API_STATIC): Remove definition and associated
1948 comment; it was required to permit, (but not to enforce), linking to
1949 the static liblzma.a library, with earlier beta releases, but this
1950 anomaly has now been corrected.
1952 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
1954 Remove zlib sources from trunk.
1955 (Application builders should use free standing implementation of
1956 zlib, from MinGW's package distribution page on SourceForge).
1958 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
1960 Remove bzip2 sources from trunk.
1961 (Application builders should use free standing implementation of
1962 bzip2, from MinGW's package distribution page on SourceForge).
1964 2010-01-22 Keith Marshall <keithmarshall@users.sourceforge.net>
1966 Add subsystem specific sysroot mapping facility.
1968 * src/pkghash.c: New file; required by...
1969 * src/sysroot.cpp: New file; it implements...
1970 (pkgXmlDocument::LoadSystemMap, pkgXmlNode::GetSysRoot): New methods.
1972 * src/pkgbase.h: Update copyright notice.
1973 (pkgXmlDocument::LoadSystemMap): Declare it.
1974 (pkgXmlDocument::AddDeclaration): New inline method.
1975 (pkgXmlDocument::SetRoot, pkgXmlDocument::Save): Likewise.
1976 (pkgXmlNode::GetSysRoot): Declare it.
1977 (pkgXmlNode::GetDocumentRoot): New inline method.
1978 (pkgXmlNode::AddChild, pkgXmlNode::DeleteChild): Likewise.
1980 * src/climain.cpp: Update copyright notice.
1981 (climain): Invoke pkgXmlDocument::LoadSystemMap() as required.
1983 * Makefile.in (CORE_DLL_OBJECTS): Add ...
1984 (pkghash.$(OBJEXT), sysroot.$(OBJEXT)): ...these; upate dependencies.
1985 (DEBUGLEVEL): New macro; define it.
1988 2010-01-16 Keith Marshall <keithmarshall@users.sourceforge.net>
1990 Assign standardised keys for XML database lookup.
1992 * src/pkgkeys.h: New file; provide public key declarations.
1993 * src/pkgkeys.c: New file; implement them.
1995 * src/pkgbind.cpp: Use them; update copyright notice.
1996 * src/pkgexec.cpp, src/pkgfind.cpp, src/pkginet.cpp: Likewise.
1997 * src/pkgname.cpp, src/pkgspec.cpp: Likewise.
1999 * Makfile.in (CORE_DLL_OBJECTS): Add pkgkeys.$(OBJEXT); update all
2000 dependencies accordingly.
2002 2010-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
2004 Add CLI version reporting option.
2006 * configure.ac: Update copyright notice for new year.
2007 (COPYRIGHT_HOLDER): New AC_SUBST variable; define it.
2008 (YEARS_OF_ISSUE): New AC_SUBST variable; define it.
2009 (AC_CONFIG_FILES): Add `version.c'; source it from...
2011 * version.c.in: ...this new file.
2013 * Makefile.in: Update copyright notice for new year.
2014 (mingw-get$(EXEEXT)): Add dependency on `version.$(OBJEXT)'.
2015 (distclean): Add `version.c'.
2017 * configure: Regenerated.
2019 * src/clistub.c: Update copyright notice for new year.
2020 (options): New array of `struct option'; define and use it as the
2021 reference for `argv' parsing with `getopt_long_only()'.
2023 2009-12-17 Keith Marshall <keithmarshall@users.sourceforge.net>
2025 Add CLI support for "update" action.
2027 * src/pkgtask.h (ACTION_UPDATE): Define it, derived from...
2028 (action_update): ...this new entry in anonymous enumeration.
2030 * src/pkgexec.cpp (action_name): Add "update" keyword identification.
2032 * src/pkgbase.h: Typo in comment; s/xwXmlDocument/wxXmlDocument/.
2033 (pkgXmlDocument::BindRepositories): Add `force_update' parameter...
2034 * src/pkgbind.cpp (pkgXmlDocument::BindRepositories): Use it to...
2035 (pkgXmlDocument::SyncRepository): ...invoke this method when passed as
2036 a `true' flag, in addition to (as previously) first time reference.
2038 * src/climain.cpp (climain): Interpret "update" keyword for...
2039 [ACTION_UPDATE]: ...passing state as `force_update' parameter to...
2040 (pkgXmlDocument::BindRepositories): ...this method, then...
2041 [!ACTION_UPDATE]: Follow with normal action processing.
2043 2009-12-16 Keith Marshall <keithmarshall@users.sourceforge.net>
2045 Add status checking for Internet URL connections.
2047 * src/pkginet.cpp (pkgInternetAgent::QueryStatus): New method.
2048 (pkgInternetStreamingAgent::Get): Use it; set `dl_status' as return
2049 value, deferring failure diagnostics to callers, i.e. to...
2050 (pkgXmlDocument::SyncRepositories): ...this, and to...
2051 (pkgActionItem::DownloadArchiveFiles): ...this.
2053 2009-11-23 Keith Marshall <keithmarshall@users.sourceforge.net>
2055 Add package download and repository synchronisation machinery.
2057 * src/pkgstrm.h: New header file.
2059 * src/pkgbind.cpp, src/pkginet.cpp, src/pkgstrm.cpp,
2060 src/pkgfind.cpp, src/pkgname.cpp, src/keyword.c: New files.
2061 * Makefile.in (CORE_DLL_OBJECTS): Add build goals for them.
2063 * xml: New directory.
2065 * src/climain.cpp (climain): Establish repository bindings from...
2066 * xml/profile.xml: ...this new configuration file.
2068 2009-11-16 Keith Marshall <keithmarshall@users.sourceforge.net>
2070 Add XML database bindings and preliminary action executive for CLI.
2072 * src/pkgbase.h, src/pkgtask.h,
2073 src/mkpath.h, src/vercmp.h: New header files.
2075 * src/climain.cpp, src/pkgexec.cpp, src/pkgspec.cpp,
2076 src/mkpath.c, src/vercmp.cpp, src/xmlfile.c: New files.
2078 * Makefile.in (CORE_DLL_OBJECTS): Define initial set of files...
2079 (mingw-get-0.dll): ...build them into this new DLL target; add it...
2080 (all): ...as prerequisite for this primary build goal.
2082 2009-11-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2084 Avoid some potential GCC warnings.
2086 * src/clistub.c: Include process.h for `execv' prototype...
2087 (main): Cast `argv' to appropriately matched type when calling it.
2089 * src/pkginfo/driver.c: Include stdlib.h for `free' prototype.
2091 2009-11-11 Keith Marshall <keithmarshall@users.sourceforge.net>
2093 Create diagnostic message handler for CLI usage.
2095 * src/dmh.h: New header file; it defines the public interface.
2096 * src/dmh.cpp: New file; it implements the message handler.
2098 2009-11-05 Keith Marshall <keithmarshall@users.sourceforge.net>
2100 Correct some identified TinyXML issues.
2102 * tinyxml/tinyxml.h (IsWhiteSpace): Add FIXME annotation to flag
2103 probable redundancy of checks for '\n' and '\r'.
2104 * tinyxml/tinyxmlparser.cpp: Revert John E's 2008-08-09 change; remove
2105 all such redundancies in IsWhiteSpace() calls throughout.
2107 * tinyxml/tinyxml.cpp (TiXmlAttribute::SetDoubleValue): Correct format
2108 specification in sprintf()/snprintf() calls; "%lf" is invalid; replace
2111 2009-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2113 Add CLI loader stub.
2115 * src/clistub.c: New file.
2116 * Makefile.in: Add build rule for it; build as...
2117 (mingw-get.exe): ...this; also add to...
2118 (clean): ...this goal.
2120 2009-10-31 Keith Marshall <keithmarshall@users.sourceforge.net>
2122 Set up build mechanism.
2124 * configure.ac, Makefile.in: New files.
2125 * .cvsignore (configure, autom4te.cache): Add to ignored files.
2127 2009-10-30 Keith Marshall <keithmarshall@users.sourceforge.net>
2129 Add GPL-v3 licensing terms.
2131 * COPYING: New file, sourced from gnu.org.
2133 2009-10-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2135 Add pkginfo implementation.
2137 * src, src/pkginfo: New directories.
2138 * src/pkginfo/pkginfo.h, src/pkginfo/pkginfo.l: New files.
2139 * src/pkginfo/driver.c: New file.
2141 2009-10-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2145 * All files (tdm-branch): Assign new branch tag.
2146 * All top-level files: Remove from trunk.
2147 * ChangeLog: New file.