Bug 227771 - www/dokuwiki: Update to 2018-04-22a and add hash and json extension to USE_PHP
Summary: www/dokuwiki: Update to 2018-04-22a and add hash and json extension to USE_PHP
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Xin LI
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-25 14:25 UTC by Yasuhiro Kimura
Modified: 2018-05-06 06:07 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (delphij)


Attachments
patch file (567 bytes, patch)
2018-04-25 14:25 UTC, Yasuhiro Kimura
no flags Details | Diff
Dokuwiki patch for adding two extensions (374 bytes, patch)
2018-05-01 08:57 UTC, Horst Kapfenberger
no flags Details | Diff
updated patch file (572 bytes, patch)
2018-05-03 08:02 UTC, Yasuhiro Kimura
no flags Details | Diff
updated patch file (1.00 KB, patch)
2018-05-04 16:56 UTC, Yasuhiro Kimura
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yasuhiro Kimura freebsd_committer freebsd_triage 2018-04-25 14:25:58 UTC
Created attachment 192808 [details]
patch file

* Add hash extension to USE_PHP. Without it following runtime error happens when you login the wiki.
    
  Fatal error: Uncaught Error: Call to undefined function hash_equals() in /usr/local/www/dokuwiki/inc/PassHash.class.php:94 Stack trace: #0 /usr/local/www/dokuwiki/inc/auth.php(1215): PassHash->verify_hash('XXXXXXXX', 'XXXXXXXX') #1 /usr/local/www/dokuwiki/lib/plugins/authplain/auth.php(69): auth_verifyPassword('XXXXXXXX', 'XXXXXXXX') #2 /usr/local/www/dokuwiki/inc/auth.php(225): auth_plugin_authplain->checkPass('XXXXXXXX', 'XXXXXXXX') #3 /usr/local/www/dokuwiki/inc/auth.php(177): auth_login('XXXXXXXX', 'XXXXXXXX', false, false) #4 /usr/local/www/dokuwiki/inc/events.php(111): auth_login_wrapper(Array) #5 /usr/loc
al/www/dokuwiki/inc/events.php(256): Doku_Event->trigger('auth_login_wrap...', true) #6 /usr/local/www/dokuwiki/inc/auth.php(109): trigger_event('AUTH_LOGIN_CHEC...', Array, 'auth_login_wrap...') #7 /usr/local/www/dokuwiki/inc/init.php(215): auth_setup() #8 /usr/local/www/dokuwiki/doku.php(34): require_once('/usr/local/www/...') #9 {main} thrown in /usr/local/www/dokuwiki/inc/PassHash.class.php on line 94
    
* Bump PORTREVISION because of dependecy change.
Comment 1 Horst Kapfenberger 2018-05-01 08:55:57 UTC
I had to add two PHP extensions: 'json' and 'hash'
Comment 2 Horst Kapfenberger 2018-05-01 08:57:08 UTC
Created attachment 192956 [details]
Dokuwiki patch for adding two extensions

Added hash and json extensions
Comment 3 Yasuhiro Kimura freebsd_committer freebsd_triage 2018-05-03 08:02:12 UTC
Created attachment 193017 [details]
updated patch file

(In reply to Horst Kapfenberger from comment #1)

Hello Horst,

Thank you for feedback. I updated your patch so entries in USE_PHP are sorted.
Comment 4 Yasuhiro Kimura freebsd_committer freebsd_triage 2018-05-04 16:56:29 UTC
Created attachment 193046 [details]
updated patch file

Update patch because new version 2018-04-22a is released.
So please commit attached patch instead of previous ones.
Comment 5 commit-hook freebsd_committer freebsd_triage 2018-05-06 04:28:08 UTC
A commit references this bug:

Author: delphij
Date: Sun May  6 04:27:08 UTC 2018
New revision: 469173
URL: https://svnweb.freebsd.org/changeset/ports/469173

Log:
   - Update to 2018-04-22a
   - Add hash and json to dependencies

  PR:		227771
  Submitted by:	Yasuhiro KIMURA <yasu utahime org>
  MFH:		2018Q2

Changes:
  head/www/dokuwiki/Makefile
  head/www/dokuwiki/distinfo
Comment 6 commit-hook freebsd_committer freebsd_triage 2018-05-06 04:28:12 UTC
A commit references this bug:

Author: delphij
Date: Sun May  6 04:27:56 UTC 2018
New revision: 469174
URL: https://svnweb.freebsd.org/changeset/ports/469174

Log:
  MFH: r469173

   - Update to 2018-04-22a
   - Add hash and json to dependencies

  PR:		227771
  Submitted by:	Yasuhiro KIMURA <yasu utahime org>
  Approved by:	ports-secteam

Changes:
_U  branches/2018Q2/
  branches/2018Q2/www/dokuwiki/Makefile
  branches/2018Q2/www/dokuwiki/distinfo
Comment 7 Xin LI freebsd_committer freebsd_triage 2018-05-06 06:07:54 UTC
Committed, thanks!