Bug 182710 - Port www/mediawiki120 Fatal error: Call to undefined function hash() [patch]
Summary: Port www/mediawiki120 Fatal error: Call to undefined function hash() [patch]
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: William Grzybowski
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-05 19:30 UTC by Horia Racoviceanu
Modified: 2013-11-02 23:00 UTC (History)
0 users

See Also:


Attachments
file.diff (431 bytes, patch)
2013-10-05 19:30 UTC, Horia Racoviceanu
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Horia Racoviceanu 2013-10-05 19:30:00 UTC
Fatal error: Call to undefined function hash() in /usr/local/www/mediawiki/includes/CryptRand.php on line 259

Fix: Makefile
- Add USE_PHP=hash


Build log
https://redports.org/buildarchive/20131005171700-37607/

Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-10-05 19:30:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->wen

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 William Grzybowski freebsd_committer freebsd_triage 2013-11-02 22:55:56 UTC
Responsible Changed
From-To: wen->wg

I'll take it.
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-11-02 22:55:59 UTC
Author: wg
Date: Sat Nov  2 22:55:52 2013
New Revision: 332549
URL: http://svnweb.freebsd.org/changeset/ports/332549

Log:
  www/mediawiki120: add missing php hash dependency
  
  - Add missing php hash run dependency [1]
  - Allow staging
  
  PR:		ports/182710 [1]
  Submitted by:	Horia Racoviceanu <horia racoviceanu.com> [1]
  Approved by:	maintainer (timeout)

Added:
  head/www/mediawiki120/files/
  head/www/mediawiki120/files/pkg-message.in
     - copied unchanged from r332548, head/www/mediawiki120/pkg-message
Deleted:
  head/www/mediawiki120/pkg-message
Modified:
  head/www/mediawiki120/Makefile

Modified: head/www/mediawiki120/Makefile
==============================================================================
--- head/www/mediawiki120/Makefile	Sat Nov  2 22:37:52 2013	(r332548)
+++ head/www/mediawiki120/Makefile	Sat Nov  2 22:55:52 2013	(r332549)
@@ -15,9 +15,11 @@ CONFLICTS=	mediawiki-1.1[0-9].* mediawik
 
 FETCH_ARGS=	-pr
 NO_LATEST_LINK=	yes
-USE_PHP=	ctype iconv mbstring pcre session xml zlib readline dom
+USE_PHP=	ctype hash iconv mbstring pcre session xml zlib readline dom
 WANT_PHP_WEB=	yes
 MEDIAWIKIDIR?=	www/mediawiki
+SUB_FILES=	pkg-message
+SUB_LIST+=	MEDIAWIKIDIR="${PREFIX}/${MEDIAWIKIDIR}"
 
 NO_BUILD=	yes
 
@@ -30,7 +32,6 @@ EACCEL_DESC=	use eAccelerator (instead o
 XCACHE_DESC=	use xCache (instead of pecl-APC)
 IMAGICK_DESC=	use ImageMagick
 
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MMYSQL}
@@ -67,15 +68,13 @@ RUN_DEPENDS+=	${LOCALBASE}/lib/php/${PHP
 .endif
 
 do-install:
-	@${MKDIR} ${PREFIX}/${MEDIAWIKIDIR}
-	${CP} -r ${WRKSRC}/ ${PREFIX}/${MEDIAWIKIDIR}
-	${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${MEDIAWIKIDIR}
+	@${MKDIR} ${STAGEDIR}${PREFIX}/${MEDIAWIKIDIR}
+	${CP} -r ${WRKSRC}/ ${STAGEDIR}${PREFIX}/${MEDIAWIKIDIR}
+	${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${PREFIX}/${MEDIAWIKIDIR}
 
-post-install:
 	@${FIND} ${WRKSRC}/${file} -not -type d \
 		| ${SED} -ne 's,^${WRKSRC},${MEDIAWIKIDIR},p' >> ${TMPPLIST}
 	@${FIND} -d ${WRKSRC}/${file} -type d \
 		| ${SED} -ne 's,^${WRKSRC},@dirrm ${MEDIAWIKIDIR},p' >> ${TMPPLIST}
-	@${SED} -e 's|%%MEDIAWIKIDIR%%|${PREFIX}/${MEDIAWIKIDIR}|' ${PKGMESSAGE}
 
 .include <bsd.port.mk>

Copied: head/www/mediawiki120/files/pkg-message.in (from r332548, head/www/mediawiki120/pkg-message)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/mediawiki120/files/pkg-message.in	Sat Nov  2 22:55:52 2013	(r332549, copy of r332548, head/www/mediawiki120/pkg-message)
@@ -0,0 +1,11 @@
+
+	**** NOTE ****
+Remember to check
+
+%%MEDIAWIKIDIR%%/INSTALL
+
+and
+
+%%MEDIAWIKIDIR%%/UPGRADE
+
+for details
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 4 William Grzybowski freebsd_committer freebsd_triage 2013-11-02 22:56:03 UTC
State Changed
From-To: open->closed

Committed. Thanks!