OSDN Git Service

* aclocal.m4: Change path m4/missing.m4 to build-aux/m4/missing.m4.
[mingw/mingw-get.git] / ChangeLog
index c3826b5..314fc88 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,305 @@
+2012-08-02  Earnie Boyd  <earnie@users.sourceforge.net>
+
+       Find missing.m4 in build-aux/m4 directory.
+
+       * aclocal.m4: Change path  m4/missing.m4 to build-aux/m4/missing.m4.
+
+2012-07-31  Earnie Boyd  <earnie@users.sourceforge.net>
+
+       Move .cvsignore to .gitignore.
+
+       * .cvsignore: Remove.
+       * .gitignore: New file.
+
+2012-07-13  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
+       Disable globbing of command line arguments.
+
+       * src/clistub.c (_CRT_glob): Define and initialise to zero; we don't
+       need globbing, and it may cause case transliteration of case-sensitive
+       action keywords, when a file system entity with a case-insensitively
+       matching name exists.
+
+2012-06-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
+       Refactor API to facilitate implementation of GUI ListView hooks.
+
+       * src/pkgkeys.h (title_key, description_key): Declare them.
+       * src/pkgkeys.c (title_key, description_key): Define them; relocate...
+       * src/pkgshow.cpp (pkgDirectoryViewer::EmitDescription): ...from here.
+       (pkgXmlDocument::CalalogueAllPackages): New public method; factor...
+       (pkgXmlDocument::DisplayPackageInfo): ...from here, whence use it.
+       (pkgDirectoryViewerEngine::EnumerateComponents): New private method;
+       implement as a concrete method of this abstract base class; factor...
+       (pkgDirectoryViewer::Dispatch): ...from original inline implementation
+       within this method of the concrete derived class, whence use it.
+       (pkgDirectoryViewerEngine, pkgDirectory): Factor class declarations...
+       * src/pkglist.h: ...into this new header file; include it.
+
+       * src/pkgbase.h (pkgDirectory): Add forward class declaration.
+       (pkgXmlDocument::CatalogueAllPackages): Declare it.
+
+2012-05-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
+       Update help text to document package version selection capability.
+
+       * src/clistub.c (help_text): Add description of command line syntax
+       which may be used to specify an alternative to the default package
+       version selection, for install and upgrade actions.
+
+2012-05-01  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
+       Support options set by preferences assigned within profile.xml
+
+       * xml/profile.xml (preferences): New element; add defaults.
+
+       * src/pkgopts.h (OPTION_ASSIGNED_FLAGS, OPTION_DESKTOP_ARGS):
+       (OPTION_START_MENU_ARGS): New enumerated constants; define them.
+       (OPTION_DESKTOP, OPTION_START_MENU): New manifest constants.
+       (OPTION_ASSIGNED, mark_option_as_set): New macros; define them.
+       (pkgOpts::GetValue, pkgOpts::GetString): Restrict look-up index to
+       least significant 12-bits of full-range index value.
+       (pkgOpts::IsSet): New inline method; implement it.
+
+       * src/clistub.c (main): Reimplement --desktop and --start-menu
+       options; each now becomes an OPTION_GENERIC optarg string store.
+       (set_script_hook): Function no longer used; delete it; delegate to...
+       * src/pkgbase.h (pkgXmlDocument::EstablishPreferences): ...this new
+       method; declare it, providing its implementation in...
+       * src/pkgopts.cpp: ...this new file; invoke it...
+       * src/climain.cpp (climain): ...here.
+
+       * Makefile.in (CORE_DLL_OBJECTS): Add pkgopts.$OBJEXT
+
+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.