pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/rt3 Mason API has changed after version 1.28. A...
details: https://anonhg.NetBSD.org/pkgsrc/rev/8468f202f231
branches: trunk
changeset: 499385:8468f202f231
user: cube <cube%pkgsrc.org@localhost>
date: Wed Sep 21 21:23:46 2005 +0000
description:
Mason API has changed after version 1.28. Add a patch to catch up with the
change (it breaks for callbacks).
Inspired from the commit to solve the same issue on the 3.4 branch of RT.
Bump PKGREVISION and Mason version requirement.
diffstat:
devel/rt3/Makefile | 6 +++---
devel/rt3/distinfo | 3 ++-
devel/rt3/patches/patch-ab | 34 ++++++++++++++++++++++++++++++++++
3 files changed, 39 insertions(+), 4 deletions(-)
diffs (72 lines):
diff -r 8f88607eb603 -r 8468f202f231 devel/rt3/Makefile
--- a/devel/rt3/Makefile Wed Sep 21 20:37:01 2005 +0000
+++ b/devel/rt3/Makefile Wed Sep 21 21:23:46 2005 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.10 2005/09/09 10:54:15 cube Exp $
+# $NetBSD: Makefile,v 1.11 2005/09/21 21:23:46 cube Exp $
DISTNAME= rt-3.2.3
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= devel
MASTER_SITES= http://download.bestpractical.com/pub/rt/release/
@@ -39,7 +39,7 @@
DEPENDS+= p5-Params-Validate>=0.02:../../devel/p5-Params-Validate
DEPENDS+= p5-Cache-Cache>=1.02:../../devel/p5-Cache-Cache
DEPENDS+= p5-Exception-Class>=1.14:../../devel/p5-Exception-Class
-DEPENDS+= p5-HTML-Mason>=1.23:../../www/p5-HTML-Mason
+DEPENDS+= p5-HTML-Mason>=1.31:../../www/p5-HTML-Mason
DEPENDS+= p5-MLDBM>=2.01:../../databases/p5-MLDBM
DEPENDS+= p5-FreezeThaw>=0.43:../../devel/p5-FreezeThaw
DEPENDS+= p5-Storable>=2.08:../../devel/p5-Storable
diff -r 8f88607eb603 -r 8468f202f231 devel/rt3/distinfo
--- a/devel/rt3/distinfo Wed Sep 21 20:37:01 2005 +0000
+++ b/devel/rt3/distinfo Wed Sep 21 21:23:46 2005 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.4 2005/03/24 17:04:12 cube Exp $
+$NetBSD: distinfo,v 1.5 2005/09/21 21:23:46 cube Exp $
SHA1 (rt-3.2.3.tar.gz) = 100cb67f5ef716c0d32421f7d153c3b7a7d86c7f
RMD160 (rt-3.2.3.tar.gz) = 538bbe07bcff5fcc19fa0e435c304f716158d69b
Size (rt-3.2.3.tar.gz) = 1272638 bytes
SHA1 (patch-aa) = 4d29c290658144dcd7aa08d87649681dd2549b43
+SHA1 (patch-ab) = 7cb3cb06444f29b4a1a0fcc47abb250336acf0ab
diff -r 8f88607eb603 -r 8468f202f231 devel/rt3/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/rt3/patches/patch-ab Wed Sep 21 21:23:46 2005 +0000
@@ -0,0 +1,34 @@
+$NetBSD: patch-ab,v 1.1 2005/09/21 21:23:46 cube Exp $
+
+--- html/Elements/Callback.orig 2004-07-29 02:08:11.000000000 +0200
++++ html/Elements/Callback
+@@ -49,7 +49,7 @@ my (%cache, $check);
+ <%init>
+ # checks for inode change time for each callback directory
+ my $new_check = join(
+- $;, map { $_->[1] => (stat("$_->[1]/Callbacks"))[10] } $m->interp->resolver->comp_root_array
++ $;, map { $_->[1] => (stat("$_->[1]/Callbacks"))[10] } $m->interp->comp_root_array
+ ) or return;
+
+ $Page = $m->callers(1)->path unless ($Page);
+@@ -64,8 +64,18 @@ else {
+
+ if (!$callbacks) {
+ my $path = "/Callbacks/*$Page/$_CallbackName";
+- $callbacks = [ $m->interp->resolver->glob_path($path) ];
+- @$callbacks = grep !/^\.|~$/, @$callbacks; #skip backup files
++
++ my @roots = map { $_->[1] } $m->interp->comp_root_array;
++ my %seen;
++
++ for my $root (@roots) {
++ push @$callbacks,
++ # Skip backup files, files without a leading package name,
++ # and files we've already seen
++ grep { !/^\.|~$/
++ and not $seen{$_}++ }
++ $m->interp->resolver->glob_path($path, $root);
++ }
+
+ #skip files without a package
+ my $invalid_base = "/Callbacks/$Page/$_CallbackName";
Home |
Main Index |
Thread Index |
Old Index