Bug 178196 - /usr/ports/www/trac-mercurial broken
Summary: /usr/ports/www/trac-mercurial broken
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: Ruslan Makhmatkhanov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-27 11:10 UTC by Gabor HALASZ
Modified: 2014-02-09 22:00 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 Gabor HALASZ 2013-04-27 11:10:00 UTC
The TracMercurial plugin v0.12 is outdated and not works with mercurial-2.3.1 and above (http://trac.edgewall.org/ticket/10851).

Fix: 

Upgrade the package, the 1.0 branch of the plugin (installed from source) works well on my environment with the mercurial-2.5.1.
How-To-Repeat: Install the plugin from ports.
Comment 1 moto kawasaki 2013-06-25 10:36:05 UTC
Dear Madams and Sirs,

I also hit ports/178196 problem, and made a dirty quick hack.
Please find patches below.
I hope this might help someone.

Note:
You may need to fetch by hand (i.e. using hg command from command
line, rename directory, and tar it, put the tar ball into
distfiles/trac/, blah blah)
Also, you may need to fix SHA256 and SIZE entries in distinfo.

Thank you very much.


Sincerely



-- 
moto kawasaki <moto@kawasaki3.org>

============================================================

# diff -u www/trac-mercurial/Makefile.orig www/trac-mercurial/Makefile      
--- www/trac-mercurial/Makefile.orig	2013-03-01 02:06:36.000000000 +0900
+++ www/trac-mercurial/Makefile	2013-06-25 18:29:03.000000000 +0900
@@ -1,7 +1,7 @@
 # $FreeBSD: www/trac-mercurial/Makefile 313115 2013-02-28 17:06:36Z brooks $
 
 PORTNAME=	${PYDISTUTILS_PKGNAME:S;^Trac;;:L}
-PORTVERSION=	0.12.0.1
+PORTVERSION=	1.0
 PORTREVISION=	1
 CATEGORIES=	www devel python
 MASTER_SITES=	LOCAL/pgollucci
@@ -18,13 +18,13 @@
 USE_PYTHON=	-2.7
 USE_PYDISTUTILS=	easy_install
 PYDISTUTILS_PKGNAME=	TracMercurial
-PYDISTUTILS_PKGVERSION=	0.12.0.23dev
+PYDISTUTILS_PKGVERSION=	1.0.0.3dev
 PLIST_FILES=		%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
 
 .if defined(BOOTSTRAP)
 do-fetch:
 	${MKDIR} ${WRKDIR}
-	svn export http://svn.edgewall.org/repos/trac/plugins/0.12/mercurial-plugin ${WRKSRC}
+	hg clone http://hg.edgewall.org/trac/mercurial-plugin#1.0 ${WRKSRC}
 	${MKDIR} ${_DISTDIR}
 	cd ${WRKDIR} && \
 	    tar cfvz ${_DISTDIR}/${DISTNAME}.tar.gz ${DISTNAME}
# diff -u www/trac-mercurial/distinfo.orig www/trac-mercurial/distinfo
--- www/trac-mercurial/distinfo.orig	2012-07-14 23:29:18.000000000 +0900
+++ www/trac-mercurial/distinfo	2013-06-25 18:29:08.000000000 +0900
@@ -1,2 +1,2 @@
-SHA256 (trac/mercurialplugin-0.12.0.1.tar.gz) = 56d1663196b34d5664e45eeed2b3530b7ce4728ba284aa9af4b11d07d6e652d0
-SIZE (trac/mercurialplugin-0.12.0.1.tar.gz) = 20990
+SHA256 (trac/mercurialplugin-1.0.tar.gz) = 4b18f13b4c7bb87f497760f6a8b7cfc9f75ea4cca187779c18d6541b8b65fa6f
+SIZE (trac/mercurialplugin-1.0.tar.gz) = 79481
#
Comment 2 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2014-02-09 09:20:10 UTC
Responsible Changed
From-To: freebsd-ports-bugs->rm

I will take it.
Comment 3 dfilter service freebsd_committer freebsd_triage 2014-02-09 21:56:05 UTC
Author: rm
Date: Sun Feb  9 21:55:52 2014
New Revision: 343546
URL: http://svnweb.freebsd.org/changeset/ports/343546
QAT: https://qat.redports.org/buildarchive/r343546/

Log:
  - update to 1.0.0.3 to fix support for mercurial >= 2.3.1 [1]
  - add LICENSE (GPLv2)
  - do not use easy_install and convert to auto-generated packing list
  
  PR:		178196
  Reported by:    Gabor HALASZ <halasz.g@freemail.hu> [1]
  Submitted by:	moto kawasaki <moto@kawasaki3.org> (based on)

Modified:
  head/www/trac-mercurial/Makefile
  head/www/trac-mercurial/distinfo

Modified: head/www/trac-mercurial/Makefile
==============================================================================
--- head/www/trac-mercurial/Makefile	Sun Feb  9 21:55:51 2014	(r343545)
+++ head/www/trac-mercurial/Makefile	Sun Feb  9 21:55:52 2014	(r343546)
@@ -1,10 +1,9 @@
 # $FreeBSD$
 
-PORTNAME=	${PYDISTUTILS_PKGNAME:S;^Trac;;:L}
-PORTVERSION=	0.12.0.1
-PORTREVISION=	1
+PORTNAME=	mercurial
+PORTVERSION=	1.0.0.3
 CATEGORIES=	www devel python
-MASTER_SITES=	LOCAL/pgollucci
+MASTER_SITES=	LOCAL/rm
 PKGNAMEPREFIX=	trac-
 DISTNAME=	${PORTNAME}plugin-${PORTVERSION}
 DIST_SUBDIR=	trac
@@ -12,22 +11,13 @@ DIST_SUBDIR=	trac
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Plugin to use Mercurial instead of Subversion in Trac
 
-RUN_DEPENDS+=	hg:${PORTSDIR}/devel/mercurial \
+LICENSE=	GPLv2
+
+RUN_DEPENDS=	hg:${PORTSDIR}/devel/mercurial \
 		tracd:${PORTSDIR}/www/trac
 
-USE_PYTHON=	2
-USE_PYDISTUTILS=	easy_install
-PYDISTUTILS_PKGNAME=	TracMercurial
-PYDISTUTILS_PKGVERSION=	0.12.0.23dev
-PLIST_FILES=		%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
-
-.if defined(BOOTSTRAP)
-do-fetch:
-	${MKDIR} ${WRKDIR}
-	svn export http://svn.edgewall.org/repos/trac/plugins/0.12/mercurial-plugin ${WRKSRC}
-	${MKDIR} ${_DISTDIR}
-	cd ${WRKDIR} && \
-	    tar cfvz ${_DISTDIR}/${DISTNAME}.tar.gz ${DISTNAME}
-.endif
+USE_PYTHON=		2
+USE_PYDISTUTILS=	yes
+PYDISTUTILS_AUTOPLIST=	yes
 
 .include <bsd.port.mk>

Modified: head/www/trac-mercurial/distinfo
==============================================================================
--- head/www/trac-mercurial/distinfo	Sun Feb  9 21:55:51 2014	(r343545)
+++ head/www/trac-mercurial/distinfo	Sun Feb  9 21:55:52 2014	(r343546)
@@ -1,2 +1,2 @@
-SHA256 (trac/mercurialplugin-0.12.0.1.tar.gz) = 56d1663196b34d5664e45eeed2b3530b7ce4728ba284aa9af4b11d07d6e652d0
-SIZE (trac/mercurialplugin-0.12.0.1.tar.gz) = 20990
+SHA256 (trac/mercurialplugin-1.0.0.3.tar.gz) = 733f0e30c5b3e9521f72b755f471b8b8f9ae27f5643ab7ffb01d6ca4bcda2bc9
+SIZE (trac/mercurialplugin-1.0.0.3.tar.gz) = 26597
_______________________________________________
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 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2014-02-09 21:56:18 UTC
State Changed
From-To: open->closed

Committed, thank you!