Re: [taskjuggler-devel] Re: fix for tjx2gantt

From: Chris Schlaeger (cs_at_suse.de)
Date: Mon Jun 28 2004 - 09:40:50 CEST


From: Chris Schlaeger <cs@suse.de>
Date: Mon, 28 Jun 2004 09:40:50 +0200
Message-Id: <200406280941.06402.cs@suse.de>
Subject: Re: [taskjuggler-devel] Re: fix for tjx2gantt


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks Sean! This did indeed eliminate the problem. It's really unfortunate
that MethodMaker became incompatible with older version. Going forward 2.02
is probably the right syntax to use, but I already forsee lots of TJ users
complaining about this. Is there a way to make it work with both versions?

Chris

On Sunday 27 June 2004 21:46, Sean Dague wrote:
> On Sun, Jun 27, 2004 at 03:21:49PM -0400, Sean Dague wrote:
> > On Sun, Jun 27, 2004 at 07:57:14PM +0200, Chris Schlaeger wrote:
> > > -----BEGIN PGP SIGNED MESSAGE-----
> > > Hash: SHA1
> > >
> > > I have applied the fix, but I run into another problem. It looks like
> > > new version of Perl don't like the old syntax anymore.
> > >
> > > meta-method type struct not recognized as a V1 compatibility type
> > > (cannot mix v1 & v2 options)
> > > at ../../tjx2gantt/tjx2gantt line 28
> > > BEGIN failed--compilation aborted at ../../tjx2gantt/tjx2gantt line 41.
> > > make: *** [acso.eps] Error 255
> > >
> > > The author of tjx2gantt is no longer maintaining it. If we can't get it
> > > fixed, we will drop tjx2gantt with the next release.
> >
> > Can you let me know what version of Perl that is? I'm having no problems
> > running tjx2gannt under Mandrake 10 with perl 5.8.3. I would be willing
> > to look at fixing the issue if I can reproduce the bug.
>
> The issue seems to be Class::MethodMaker, which in going from 1.12 (version
> I have installed) to 2.02 did a non compatible change. The following patch
> will work with 2.02, however it will not work 1.x versions AFAIK.
>
> --- tjx2gantt.new 2004-06-25 15:51:04.000000000 -0400
> +++ tjx2gantt.mmfix 2004-06-27 15:40:24.169494775 -0400
> @@ -24,21 +24,23 @@
>
> use strict;
> use warnings;
> - use Class::MethodMaker
> - new_hash_init => 'new',
> - get_set => [ qw(Index ProjectID complete Priority Type Id
> Name ParentTask - startBuffer endBuffer
> - minStart maxStart
> - minEnd maxEnd
> - actualStart actualEnd
> - planStart planEnd
> - h_minStart h_minEnd
> - h_maxStart h_maxEnd
> - h_actualStart h_actualEnd
> - h_planStart h_planEnd
> - x1 y1 x2 y2
> - label label_x label_y ) ],
> - struct => [ qw(Followers Previous Allocations
> bookedResources) ]; + use Class::MethodMaker
> + [
> + new => 'new',
> + scalar => [ qw(Index ProjectID complete Priority Type Id Name
> ParentTask + startBuffer endBuffer
> + minStart maxStart
> + minEnd maxEnd
> + actualStart actualEnd
> + planStart planEnd
> + h_minStart h_minEnd
> + h_maxStart h_maxEnd
> + h_actualStart h_actualEnd
> + h_planStart h_planEnd
> + x1 y1 x2 y2
> + label label_x label_y ) ],
> + array => [ qw(Followers Previous Allocations bookedResources) ]
> + ];
>
> use XML::Parser;
> use PostScript::Simple;
>
>
> -Sean

- --
Chris Schlaeger, VP Research & Development, SUSE Linux - A Novell Company
GPG Key: 1024D/0500838B A5FE C051 2AFC 9A14 768A 5125 5829 5750 0500 838B
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFA38uRWClXUAUAg4sRAptCAKCYcWR20St8Do9N5nc9OJEZgA5/hgCffOvg
5pE/Nb/SqRaYsZ9GvV3GGyM=
=eCxi
-----END PGP SIGNATURE-----

-- 
To unsubscribe, email: taskjuggler-devel-unsubscribe@suse.com
For additional commands, email: taskjuggler-devel-help@suse.com


This archive was generated by hypermail 2.1.7 : Mon Jun 28 2004 - 09:47:46 CEST