OSDN Git Service

Correct sequence of installation/removal progress reporting.
[mingw/mingw-get.git] / ChangeLog
index 9c5824e..a0b94cc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,299 @@
+2012-04-30  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
+       Correct sequence of installation/removal progress reporting.
+
+       * src/pkgunst.cpp (pkgRemove): Delay output of "removing package ..."
+       message, until after pre-remove hooks have run; this ensures that any
+       output from the pre-remove hook scripts appears in correct sequence.
+
+       * src/pkginst.cpp (pkgInstall): Likewise, for "installing package ..."
+       message, in relation to pre-install hooks.
+
+2012-04-26  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
+       mingw-get-0.5-beta-20120426-1 released.
+
+       * configure.ac (AC_INIT): Version number updated.
+       * srcdist-doc/NEWS.in: Updated; bug-fix notifications added.
+       * All files (r0-5-beta-20120426-1): Tag assigned.
+
+2012-04-25  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
+       Interim work-around for MinGW-Bug #3520864.
+
+       * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
+       [DEBUG_TRACE_DEPENDENCIES]: Add request flags to messages reporting
+       the scheduling of installation activities.
+
+       * src/pkgexec.cpp (pkgXmlDocument::Schedule): Add temporary diagnostic
+       hooks to confirm request flags; bracket them with #if 0 ... #endif.
+       [ACTION_PRIMARY && pre-scheduled request]: Don't trash request flags
+       when updating the pre-existing action item data.
+
+2012-04-23  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
+       Fix MinGW-Bug #3520488
+
+       * src/pkgexec.cpp (action_code): Check for, and reject NULL pointer
+       passed as action request string; also reject ambiguous abbreviations.
+
+       * src/climain.cpp (climain): Discriminate between NULL pointer and
+       other forms of invalid action keyword matching failures.
+
+2012-04-16  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
+       mingw-get-0.5-beta-20120416-1 released.
+
+       * configure.ac (AC_INIT): Version number updated.
+       (YEARS_OF_ISSUE): 2012 added.
+
+       * srcdist-doc/NEWS.in: Updated; release notes added.
+       * All files (r0-5-beta-20120416-1): Tag assigned.
+
+2012-04-16  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
+       Assign icon to temporary GUI executable file.
+
+       * icons/pkgicon.ico: New file, shamelessly copied from synaptic.
+
+       * configure.ac: Add identification for windres; propagate it to...
+       * Makefile.in: ...here; use it to compile object from icon files...
+       (srcdir/icons) [%.ico]: ...from this new vpath location.
+       (gui.exe): Link to compiled icon's object file.
+       (SRCDIST_SUBDIRS): Add icons directory.
+
+2012-04-15  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
+       Ensure that package removal requests are correctly scheduled.
+
+       * src/pkgdeps.cpp (pkgXmlDocument::Schedule) [ACTION_REMOVE]: Schedule
+       as a distinct case, when the installed version is not the most recent
+       available release; consideration of this distinct case was previously
+       erroneously overlooked.
+
+2012-04-15  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
+       Correct scheduling of new prerequisites when upgrading.
+
+       * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
+       [ACTION_UPGRADE && ACTION_PRIMARY]: Don't exclude scheduling for this
+       case of a prerequisite with no previously installed version; it may be
+       a delegated primary requirement of a meta-package.
+
+2012-04-15  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
+       Don't require subsystem within user specified version bounds.
+
+       * src/pkgdeps.cpp (pkgActionItem::ApplyBounds): Automatically consider
+       "*" wild-card matches for subsystem, if user doesn't specify it.
+
+2012-04-09  Charles Wilson  <mingw@cwilson.fastmail.fm>
+
+       Fix missing include.
+
+       * src/pkgdeps.cpp (pkgopts.h): Include unconditionally; do not rely...
+       (debug.h) [DEBUG_TRACE_DYNAMIC]: ...on this, for indirect inclusion.
+
+2012-04-07  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
+       Correct a srcdist package construction defect.
+
+       * Makefile.in (srcdist) [for SRCDIST_SUBDIRS]: Use...
+       (mkinstalldirs): ...this, to create package image directories.
+
+2012-04-06  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
+       Add scripting hooks to support creation of MS-Windows shortcuts.
+
+       * src/clistub.c (progname): New static variable with file scope; it
+       replaces former automatic variable, of same name, in main() function.
+       (set_script_hook): New static function; implement it, and call it...
+       (main) [--desktop, --start-menu]: ...from here, to interpret these new
+       command line options; they are propagated to scripts via...
+       (MINGW_GET_DESKTOP_HOOK, MINGW_GET_START_MENU_HOOK): ...these new
+       internally assigned environment variables.
+       (help_text): Document --desktop and --start-menu.
+
+       * scripts/libexec/setup.lua scripts/libexec/wsh.lua: New lua module
+       files; they implement a lua scripting API; they delegate requests to
+       the Windows Scripting Host, via either of this pair of...
+       * scripts/libexec/shlink.js: ...new script to create shortcuts, or...
+       * scripts/libexec/unlink.js: ...its complement, to remove them.
+       * Makefile.in (SRCDIST_SUBDIRS): Integrate them; enumerate them in...
+       (scripts_srcdir, LIBEXEC_SCRIPTS): ...these new macros; use to...
+       (install): ...install them.
+
+2012-04-06  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
+       Initialise $LUA_PATH to locate mingw-get specific scripts.
+
+       * src/pkgexec.cpp (lua_path_init): New static inline function.
+       (pkgXmlNode::DispatchScript): Call it on first time invocation, per...
+       [lua_path_setup == false]: ...this static function local variable.
+
+2012-04-01  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
+       Support installation of releases other than latest available.
+
+       * src/pkgbase.h (pkgActionItem::ApplyBounds): New method; declare it.
+
+       * src/pkgdeps.cpp (pkgActionItem::ApplyBounds): Implement it.
+       (pkgXmlDocument::Schedule): Use it to interpret user specified version
+       bounds, and apply them to scheduled action items.  Having used...
+       (get_version_bounds): ...this new static inline function...
+       ...to acquire any user specified version bounds, check that they can
+       be honoured, before scheduling any action; delegate diagnostics to...
+       (dmh_notify_no_match): ...this new local helper function, to report
+       when they can't, and to indicate viable alternatives.
+
+2012-03-26  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
+       Rework previously inadequate solution for MinGW-Bug #3424406
+
+       * src/pkgtask.h: Update copyright notice for current year.
+       (ACTION_MAY_SELECT): New manifest constant for use as flag; define it.
+       * src/pkgexec.cpp (pkgActionItem::SelectIfMostRecentFit): Assign it.
+
+       * src/pkgdeps.cpp (STATIC_INLINE): New macro; define it.
+       (ACTION_RECURSIVE_REINSTALL, ACTION_RECURSIVE_UPGRADE):
+       (ACTION_RECURSIVE_REPLACE): New action code constants; define them.
+       (with_flags): Original macro deleted; replace it with...
+       (with_request_flags): ...this new static inline function.
+       (if_noref, if_match, if_alias, with_download, promote): New static
+       inline functions; they replace original macros of the same names.
+       (is_recursive_action): Function no longer used; delete it.
+       (action_class): New static inline function; implement and use it...
+       (pkgXmlDocument::ResolveDependencies): ...here, to identify scheduling
+       requirements for packages which are already installed; depends on...
+       (request_mode): ...this new automatic variable; it augments and...
+       (recursive_mode): ...replaces this one; rename it accordingly.
+       (viable): Automatic variable no longer used; delete it.
+       [DEBUG_REQUEST & DEBUG_TRACE_DEPENDENCIES]: Emit notification for
+       scheduled installation.
+       (pkgXmlDocument::Schedule): Add an implied...
+       (ACTION_REMOVE): ...when scheduling a reinstallation.
+
+2012-03-13  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
+       Address reinstallation issues per MinGW-Bugs #3416013 and #3424406
+
+       * src/pkgexec.cpp (reinstall_action_scheduled): New inline function.
+       (pkgActionItem::Execute): Use it to identify cases where...
+       [--reinstall]: ...implicit package removal is required, and also to
+       facilitate improved progress reporting in such cases.
+
+       * src/pkgdeps.cpp (is_recursive_action): New inline function.
+       (pkgXmlDocument::ResolveDependencies): Use it in tandem with...
+       (recursive_mode): ...this new automatic variable, so as to handle...
+       [meta-package dependency]: ...implicit recursion, to extend the scope
+       of the current action to the first level of non-meta dependency.
+       [install --reinstall]: ...reinstall original version of nominated
+       package, ignoring any available upgrade; extend scope of operation...
+       [install --reinstall --recursive]: ...to all prerequisite packages.
+       [upgrade --reinstall]: ...upgrade nominated package if possible; if no
+       upgrade available, reinstall current version; extend scope...
+       [upgrade --reinstall --recursive]: ...to all prerequisites.
+       (pkgXmlDocument::Schedule): Partially revert 2012-03-05 change;
+       reimplement selectively; never promote...
+       [install, install --reinstall]: ...these operations to become...
+       [upgrade]: ...this, even if available; issue diagnostic instead.
+
+2012-03-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
+       Rationalise implementation and usage of --all-related option.
+
+       * src/pkgopts.h: Update copyright notice; add year 2012.
+       (OPTION_RECURSIVE, OPTION_ALL_RELATED): New constants; define them.
+       (pkgOpts::SetFlags): New method; declare and implement it inline.
+
+       * src/clistub.c: Update copyright notice; add year 2012.
+       (options) [recursive, all-related]: Redefine in terms of...
+       (OPTION_RECURSIVE, OPTION_ALL_RELATED): ...these.
+       (help_text): Update appropriately.
+
+       * src/climain.cpp: Update copyright notice; add year 2012.
+       (climain) [all-related]: Associate its use exclusively with...
+       (source, licence): ...these package processing operations; use...
+       (pkgOptions::SetFlags): ...this, to propagate its effect.
+
+2012-03-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
+       Don't report failed downloads in respect of virtual packages.
+
+       * src/pkginet.cpp (pkgActionItem::DownloadArchiveFiles): Clear...
+       [ACTION_DOWNLOAD]: ...this status flag for any package identified as
+       a meta-package; this corrects a further regression introduced with the
+       2011-11-09 update, whereby pending download requests for such virtual
+       packages were not cancelled, resulting in failure to install due to
+       failed downloads, when no download is actually required.
+
+2012-03-05  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
+       Don't suppress implied downloads for top-level actions.
+
+       * src/pkgdeps.cpp: Update copyright notice for new year.
+       (pkgXmlDocument::Schedule) [!OPTION_PRINT_URIS]: Ensure that...
+       [ACTION_DOWNLOAD]: ...this is enabled, when scheduling an install or
+       an upgrade action for a package specified as a command line argument;
+       this corrects a regression introduced on 2011-11-09, which resulted in
+       ACTION_DOWNLOAD being enabled only for second tier dependent actions.
+
+2012-02-20  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
+       Copyright notice updates.
+
+       * Makefile.in: Add 2012 as year of republication.
+       * src/pkgbase.h src/sysroot.cpp src/pkgexec.cpp: Likewise.
+       * src/rites.c src/pkginst.cpp src/pkgunst.cpp: Likewise.
+
+2012-02-20  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
+       Fix ill-advised optimisation in $APPROOT environment lookup.
+
+       * src/rites.c (approot_path): Don't save result of getenv() lookup
+       across calls; the environment may have been moved in the interim,
+       making the original result invalid on any subsequent call.  Also,
+       prefer MS-Windows style (with backslashes) for default.
+       (pkgLastRites): Report full path name for lastrites.exe, on execl()
+       failure, rather than only the path relative to $APPROOT.
+
+2012-02-20  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
+       Propagate sysroot path settings to scripts via the environment.
+
+       * src/pkgbase.h (PKG_PUTENV_FLAGS_MASK): New constant; it maps...
+       (PKG_PUTENV_DIRSEP_MSW, PKG_PUTENV_DIRSEP_POSIX): ...these flags...
+       (PKG_PUTENV_SCAN_VARNAME, PKG_PUTENV_NAME_TOUPPER): ...and these;
+       they are used to specify optional behavioural choices for...
+       (pkgPutEnv): ...this new function; declare it.
+
+       * src/sysroot.cpp (pkgPutEnv): Implement it.
+       (pkgXmlDocument::LoadSystemMap): Use it to add $SUBSYSTEM_SYSROOT path
+       specifications to the environment, for each named subsystem associated
+       with the active system map.
+
+       * src/pkgexec.cpp (pkgActionItem::Execute): Invoke pkgPutEnv() prior
+       to processing of each package install, upgrade, or remove action, so
+       as to update environment variable $SYSROOT to represent the sysroot
+       path for each package processed, during execution of script hooks.
+
+2012-02-17  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
+       Implement hooks to support lua scripting interface.
+
+       * Makefile.in (LIBS): Add -llua.
+
+       * src/pkgbase.h (pkgXmlNode::InvokeScript): New method; declare it
+       as private, and provide overloaded public inline API implementation.
+       (pkgXmlNode::DispatchScript): New private method; declare it.
+
+       * src/pkgexec.cpp (pkgXmlNode::InvokeScript): Implement it.
+       (pkgXmlNode::DispatchScript): Likewise; it directs InvokeScript to...
+       (pkgInvokeScript): ...this new static function; implement it.
+
+       * src/pkginst.cpp (pkgInstall): Call InvokeScript as appropriate.
+       * src/pkgunst.cpp (pkgRemove): Likewise.
+
 2011-11-24  Keith Marshall  <keithmarshall@users.sourceforge.net>
 
        Avoid implicit cast warnings; reported by Robert Hartmann.