Cees Hek wrote:
> On 6/26/07, Jim Spath <jspath pangeamedia.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
templates template-toolkit.org
http://lists.template-toolkit.org/mailman/listinfo/t
emplates
|