cross is now running Foswiki 2.1.3 Beta 1. Please open a task for any issues.
You are here: Foswiki>Tasks Web>Item12855 (05 Jul 2015, GeorgeClark)Edit Attach

Item12855: Audit core DEPENDENCIES

Priority: Urgent
Current State: Closed
Released In: 2.0.0
Target Release: major
Applies To: Engine
Branches: master
Reported By: CrawfordCurrie
Waiting For:
Last Change By: GeorgeClark
There are dependencies in lib/Foswiki/contrib/core/DEPENDENCIES that are not. Audit to make sure all dependencies really are. Marked as Urgent to ensure this gets done before release.

  1. Win32::Console - was (may still be?) a requirements for generating language files on Windows. Should not be a core dependency.

-- CrawfordCurrie - 12 Apr 2014

It's conditionally "required" as a dependency of Locale::Maketext::Lexicon::encoding(). I've no idea how it's actually used.

-- GeorgeClark - 12 Apr 2014

Found a couple of errors in our SystemRequirement document: CPAN packages File::Copy::Recursive and JSON are not listed.

-- GeorgeClark - 30 Nov 2014

There's some question about which dependencies we should include. The attached script, when run from the lib directory, does a scan for explicit dependencies. This list may not be complete, but I suspect it's a lot better than the one we're using. Yes, I tried scandeps, and it was awful.

-- CrawfordCurrie - 15 Jan 2015

I see two reasons for inclusion in DEPENDENCIES
  1. Make sure the module is installed .. The obvious one.
  2. Report the version installed, and where it was found in lib path in the PERLDEPENDENCYREPORT

To me the latter is in some ways more important, even for plugins that include their own dep's in lib/CPAN/lib. When something is not working, it can be pretty valuable to be able to report which versions of perl modules are installed, and where they were found, from the context of the web server or fcgi process. So there is some value to even listing core modules in DEPENDENCIES.

-- GeorgeClark - 16 Jan 2015

We also need to remove the dependencies on the PatchItem12225Contrib for any extensions that have converted to decimal version strings.

-- GeorgeClark - 01 Mar 2015

I think that this can be closed. The note about reporting versions of loaded modules was addressed in another task. FoswikiServerInformation has a list of all loaded modules with their versions and file locations.

-- GeorgeClark - 05 May 2015
Topic revision: r16 - 05 Jul 2015, GeorgeClark - This page was cached on 23 Jan 2017 - 22:30.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License