[Mahara-contributors] [Bug 1622788] Re: Update the dependencies error for ssphp

2016-10-20 Thread Robert Lyon
** Changed in: mahara
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1622788

Title:
  Update the dependencies error for ssphp

Status in Mahara:
  Fix Released

Bug description:
  Here are some more things that need to be installed before 'make
  ssphp' will run.

  php5-gmp and php-sqlite

  so we need to update our error messages to suit

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1622788/+subscriptions

___
Mailing list: https://launchpad.net/~mahara-contributors
Post to : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp


[Mahara-contributors] [Bug 1622788] Re: Update the dependencies error for ssphp

2016-09-22 Thread Robert Lyon
** Changed in: mahara
   Status: In Progress => Fix Committed

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1622788

Title:
  Update the dependencies error for ssphp

Status in Mahara:
  Fix Committed

Bug description:
  Here are some more things that need to be installed before 'make
  ssphp' will run.

  php5-gmp and php-sqlite

  so we need to update our error messages to suit

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1622788/+subscriptions

___
Mailing list: https://launchpad.net/~mahara-contributors
Post to : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp


[Mahara-contributors] [Bug 1622788] Re: Update the dependencies error for ssphp

2016-09-19 Thread Kristina Hoeppner
** Changed in: mahara
   Status: New => In Progress

** Changed in: mahara
   Importance: Undecided => Medium

** Changed in: mahara
Milestone: None => 16.10.0

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1622788

Title:
  Update the dependencies error for ssphp

Status in Mahara:
  In Progress

Bug description:
  Here are some more things that need to be installed before 'make
  ssphp' will run.

  php5-gmp and php-sqlite

  so we need to update our error messages to suit

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1622788/+subscriptions

___
Mailing list: https://launchpad.net/~mahara-contributors
Post to : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp


[Mahara-contributors] [Bug 1622788] Re: Update the dependencies error for ssphp

2016-09-12 Thread Aaron Wells
On further research, since we are downloading the release tarball we do
*not* need to run "composer --update".

The .tar.gz file that we download is built using the bin/build-
release.sh script in the simplesamlphp git repo:
https://github.com/simplesamlphp/simplesamlphp/blob/f5ff7c4643b9b784957f5e1fbf86fc740cd6b78a/bin
/build-release.sh

The build script clones a new repo based on the tag for the release.
Then it runs "composer install" to get all the basic simplesamlphp
dependencies, *and* "composer require" to install a big list of optional
plugins. "composer require" does two things. It downloads the actual
packages and their dependency files to the specified location, and it
updates the composer.json file.

So that means that, indeed, the tarball actually does contain all its
PHP files already. So we can skip running "composer update" after
upgrading it.

The SimpleSAMLPHP OpenID plugins are the only ones that need GMP. So we
can change the listing for that to an optional depedency, only required
if you want to use SimpleSAMLPHP as an OpenID IdP consumer.

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1622788

Title:
  Update the dependencies error for ssphp

Status in Mahara:
  New

Bug description:
  Here are some more things that need to be installed before 'make
  ssphp' will run.

  php5-gmp and php-sqlite

  so we need to update our error messages to suit

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1622788/+subscriptions

___
Mailing list: https://launchpad.net/~mahara-contributors
Post to : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp


[Mahara-contributors] [Bug 1622788] Re: Update the dependencies error for ssphp

2016-09-12 Thread Robert Lyon
Ok, if we can't get the dependency list shrunk down then we need to add
the following to error message in Extensions -> Saml configuration page

sudo apt-get install php5-gmp
 sudo php5enmod gmp

sudo apt-get install php5-sqlite
 sudo php5enmod pdo_sqlite

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1622788

Title:
  Update the dependencies error for ssphp

Status in Mahara:
  New

Bug description:
  Here are some more things that need to be installed before 'make
  ssphp' will run.

  php5-gmp and php-sqlite

  so we need to update our error messages to suit

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1622788/+subscriptions

___
Mailing list: https://launchpad.net/~mahara-contributors
Post to : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp


[Mahara-contributors] [Bug 1622788] Re: Update the dependencies error for ssphp

2016-09-12 Thread Aaron Wells
Whoops, half-sentence in the above comment. The
htdocs/auth/saml/extlib/simplesamlphp/composer.json file comes from the
SimpleSamlPHP release tarball that we download.

We're sort of using a semi-composer method for managing SimpleSAMLPHP.
We're not managing it as a proper composer dependency (in which case
we'd just have "simplesamlphp" in our root-level composer.json file and
do "composer --install"). Instead we download a specific release
tarball, unzip it, and run composer --update against it.

Do we actually need to do that? I would have thought that the whole
point of downloading a release tarball, is that we don't need to run any
composer commands afterward?

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1622788

Title:
  Update the dependencies error for ssphp

Status in Mahara:
  New

Bug description:
  Here are some more things that need to be installed before 'make
  ssphp' will run.

  php5-gmp and php-sqlite

  so we need to update our error messages to suit

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1622788/+subscriptions

___
Mailing list: https://launchpad.net/~mahara-contributors
Post to : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp


[Mahara-contributors] [Bug 1622788] Re: Update the dependencies error for ssphp

2016-09-12 Thread Aaron Wells
Okay, it looks like these dependencies come from when we run composer
--update against the composer.json file at
htdocs/auth/saml/extlib/simplesamlphp/composer.json. This file, (I
think) comes from

One thing we can do is change the Makefile line to add "--no-dev". That
will remove the "development-only" dependencies including sqlite. Since
we're not doing development *on* SimpleSAMLPHP, we don't need the dev
dependencies.

The need for GMP comes from openid/php-openid. That's not present in the
composer.json from the SimpleSAMLPHP git repository, so it seems to be
added by their build process. There is a build script in their repo, so
maybe I'll check and see if I can figure out if it's fiddling with the
composer.json. May be it's flattening the dependencies list or
something, or aggregating multiple composer.json files in different
directories?

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1622788

Title:
  Update the dependencies error for ssphp

Status in Mahara:
  New

Bug description:
  Here are some more things that need to be installed before 'make
  ssphp' will run.

  php5-gmp and php-sqlite

  so we need to update our error messages to suit

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1622788/+subscriptions

___
Mailing list: https://launchpad.net/~mahara-contributors
Post to : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp


[Mahara-contributors] [Bug 1622788] Re: Update the dependencies error for ssphp

2016-09-12 Thread Robert Lyon
ah no I'm thinking of IDP discovery page - ignore my earlier message

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1622788

Title:
  Update the dependencies error for ssphp

Status in Mahara:
  New

Bug description:
  Here are some more things that need to be installed before 'make
  ssphp' will run.

  php5-gmp and php-sqlite

  so we need to update our error messages to suit

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1622788/+subscriptions

___
Mailing list: https://launchpad.net/~mahara-contributors
Post to : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp


[Mahara-contributors] [Bug 1622788] Re: Update the dependencies error for ssphp

2016-09-12 Thread Robert Lyon
The system is now being used as an IdP I thought - there is a screen
where one can pick the IdP one wants to use to login with

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1622788

Title:
  Update the dependencies error for ssphp

Status in Mahara:
  New

Bug description:
  Here are some more things that need to be installed before 'make
  ssphp' will run.

  php5-gmp and php-sqlite

  so we need to update our error messages to suit

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1622788/+subscriptions

___
Mailing list: https://launchpad.net/~mahara-contributors
Post to : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp


[Mahara-contributors] [Bug 1622788] Re: Update the dependencies error for ssphp

2016-09-12 Thread Aaron Wells
Here's the list of SimpleSAML php depedencies from their manual:
https://simplesamlphp.org/docs/stable/simplesamlphp-install#section_3

Some webserver capable of executing PHP scripts.
PHP version >= 5.3.0.
Support for the following PHP extensions:
Always required: date, dom, hash, libxml, openssl, pcre, SPL, zlib
When using encryption or digital signatures: mcrypt
When authenticating against LDAP server: ldap
When authenticating against RADIUS server: radius
When saving session information to memcache-server: memcache
When using database:
Always: PDO
Database driver: (mysql, pgsql, ...)

Because we're not using it as an identity provider, we don't need ldap
or radius. We're currently using memcache as the session provider, so
that's the "memcache" dependency. We're not using the database for
sessions or IdP, so we don't need any of the DB libraries (including
sqlite).

Although it might be a good idea to switch our simplesamlphp setup to
use the DB for sessions instead of memcache, in order to reduce the
number of dependencies? Or maybe to detect whether the Mahara site
itself is using standard PHP sessions, or memcache sessions. I think
Piers believed there was some kind of conflict with using PHP sessions,
but I'm not sure if that was only a problem if you were doing it in a
multi-hosted environment, or if it just didn't work at all...

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1622788

Title:
  Update the dependencies error for ssphp

Status in Mahara:
  New

Bug description:
  Here are some more things that need to be installed before 'make
  ssphp' will run.

  php5-gmp and php-sqlite

  so we need to update our error messages to suit

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1622788/+subscriptions

___
Mailing list: https://launchpad.net/~mahara-contributors
Post to : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp


[Mahara-contributors] [Bug 1622788] Re: Update the dependencies error for ssphp

2016-09-12 Thread Aaron Wells
That list may be incomplete, though, because it doesn't mention the GMP
(GNU Multiple Precision Arithmetic Library) at all. Then again, maybe
it's only used by one of the extensions?

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1622788

Title:
  Update the dependencies error for ssphp

Status in Mahara:
  New

Bug description:
  Here are some more things that need to be installed before 'make
  ssphp' will run.

  php5-gmp and php-sqlite

  so we need to update our error messages to suit

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1622788/+subscriptions

___
Mailing list: https://launchpad.net/~mahara-contributors
Post to : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp