Bug 146630 - www/piwik requirements missing
Summary: www/piwik requirements missing
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Wen Heping
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-16 12:10 UTC by Leo Vandewoestijne
Modified: 2010-05-17 02:10 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leo Vandewoestijne 2010-05-16 12:10:01 UTC
Out of two fresh installs I've observed the Piwik port didn't work without the PHP cli option enabled.
The Piwik port did not check wether the cli version of PHP is installed.
If you use the crontab method to generate the output (in large environments prefered over at-visit-generated), then you certainly would need it.

Further php5-session is also required, when it's missing you'll end up with a fatal error, even before any authentication is setup.

And 3th: php5-json is needed to come to the full result.

Fix: 

It's easy to fix manually if you're aware of the issue.
However, I think it's strange to have halfworking ports while they can be better.

I don't know how ports are made.
But it should somehow do a check to see if PHP works in the shell.


For the other two problems, -I asume- in the Makefile, the line:

USE_PHP=	mysql gd pdo pdo_mysql zlib iconv dom

should be

USE_PHP=	mysql gd pdo pdo_mysql zlib iconv dom session json
How-To-Repeat: on a system without any PHP yet,
install PHP with CLI disabled,
then install the Piwik port.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2010-05-16 19:56:22 UTC
Responsible Changed
From-To: freebsd-ports-bugs->wen

Fix synopsis and assign.
Comment 2 dfilter service freebsd_committer freebsd_triage 2010-05-17 02:03:50 UTC
wen         2010-05-17 01:03:37 UTC

  FreeBSD ports repository

  Modified files:
    www/piwik            Makefile 
  Log:
  - Add missing dependence
  - Add a judge of php CLI enabled
  
  PR:             ports/146630
  Submitted by:   Leo Vandewoestijne <freebsd@unicycle.net>
  
  Revision  Changes    Path
  1.22      +11 -2     ports/www/piwik/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Wen Heping freebsd_committer freebsd_triage 2010-05-17 02:05:29 UTC
State Changed
From-To: open->closed

Committed. Thanks!