List Info

Thread: Debian 2.19 TT package requires perl 5.8.8?




Debian 2.19 TT package requires perl 5.8.8?
country flaguser name
United States
2007-06-26 08:46:26
Hi all,

I was attempting to upgrade Template Toolkit on Debian to
2.19 to take 
advantage of the fix for iterating over tied hashes in
Template::Stash::XS

http://packages.debian.org/testing/perl/libtemplate-perl


I found it strange that this package requires perl 5.8.8 but
Template 
Toolkit itself does not.

This is a slight problem for me as our platform here is
standardized on 
Perl 5.8.7 currently, and we much prefer to install from
Debian packages 
rather than building from source ourselves.

Is there a way around this seemingly unnecessary dependency
that doesn't 
involve building from source or upgrading to perl 5.8.8?

Thanks!
- Jim

_______________________________________________
templates mailing list
templatestemplate-toolkit.org
http://lists.template-toolkit.org/mailman/listinfo/t
emplates

Re: Debian 2.19 TT package requires perl 5.8.8?
user name
2007-06-26 10:08:42
On 6/26/07, Jim Spath <jspathpangeamedia.com> wrote:
> I was attempting to upgrade Template Toolkit on Debian
to 2.19 to take
> advantage of the fix for iterating over tied hashes in
Template::Stash::XS
>
> http://packages.debian.org/testing/perl/libtemplate-perl

>
> I found it strange that this package requires perl
5.8.8 but Template
> Toolkit itself does not.

Debian bases it's dependancies on the version of debian you
are
running.  The latest libtemplate-perl is available in
'testing' and
the verison of perl in 'testing' is perl 5.8.8.

You can sometimes find packages on backports.org that
rebuild the
package for older debian distributions, but it is unlikely
that
libtemplate-perl will be on there.

The simple solution is to just build your own debian package
of
libtemplate-perl.  It is really quite easy since debian
provides a
tool called 'dh-make-perl' which does it all for you.

I wrote my own wrapper around dh-make-perl that also builds
all of the
dependancies of the module you ask for that can not already
be found
in the debian repository, and then automatically uploads the
new
debian files to our inhouse debian repository.

Cheers,

Cees

_______________________________________________
templates mailing list
templatestemplate-toolkit.org
http://lists.template-toolkit.org/mailman/listinfo/t
emplates

Re: Debian 2.19 TT package requires perl 5.8.8?
country flaguser name
United States
2007-06-26 10:50:04
Cees Hek wrote:
> On 6/26/07, Jim Spath <jspathpangeamedia.com> wrote:
>> I was attempting to upgrade Template Toolkit on
Debian to 2.19 to take
>> advantage of the fix for iterating over tied hashes
in 
>> Template::Stash::XS
>>
>> http://packages.debian.org/testing/perl/libtemplate-perl

>>
>> I found it strange that this package requires perl
5.8.8 but Template
>> Toolkit itself does not.
> 
> Debian bases it's dependancies on the version of debian
you are
> running.  The latest libtemplate-perl is available in
'testing' and
> the verison of perl in 'testing' is perl 5.8.8.
> 
> You can sometimes find packages on backports.org that
rebuild the
> package for older debian distributions, but it is
unlikely that
> libtemplate-perl will be on there.
> 
> The simple solution is to just build your own debian
package of
> libtemplate-perl.  It is really quite easy since debian
provides a
> tool called 'dh-make-perl' which does it all for you.
> 
> I wrote my own wrapper around dh-make-perl that also
builds all of the
> dependancies of the module you ask for that can not
already be found
> in the debian repository, and then automatically
uploads the new
> debian files to our inhouse debian repository.
> 
> Cheers,
> 
> Cees

I wasn't aware that the version of perl in testing was
5.8.8... I guess 
not all perl packages in the testing repository adhere to
that rule?  Or 
at least their authors don't make 5.8.8 a dependancy. 
Anyways, thank 
you Cees for the information about that.

About dh-make-perl... we do use dh-make-perl, but frequently
run into 
issues with it.  When we attempted to build TT 2.19 with
dh-make-perl, 
we ran into a problem where DESTDIR isn't respected properly
for 
tt2inst.  So, when building the package, it would attempt to
install to 
an actual /usr/local directory, as opposed to
$DESTDIR/usr/local.

  Error message from package build:
  mkdir /usr/local/tt2: Permission denied at bin/tt2inst
line 55
  make[1]: *** [tt2_install] Error 2

We ended up hacking the install a bit to force it to install
to the 
correct directory, but its exactly these types of things
that we like to 
avoid if possible.

- Jim

_______________________________________________
templates mailing list
templatestemplate-toolkit.org
http://lists.template-toolkit.org/mailman/listinfo/t
emplates

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )