[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: latex.info missing



Hi Frank!

On Don, 05 Apr 2007, Frank Küster wrote:
> I found the reason, it's a line in tpm2deb.cfg which I do not
> understand:
> 
> # MAPPINGS AND SPECIALS
> #
> mapping;.*/[^/]*\.info;;
> special;.*/([^/]*\.info);install-info;

This is correct. The idea is that tpm2deb-bin not *directly* install the
info files, but creates $package.info files in debian/ listing the
original position of the info files and calls dh_installinfo. This is
done by the special:...

> mapping;.*/([^/]*\.info);remap;$rundest/info/

No, because then we would have it installed from dh_installinfo *and*
tpm2deb-bin.pl.

But, there was a problem after the restructuring of tpm2deb-bin.pl
script regarding the shared variables etc. Namely there was a warning:
	@SpecialActions will not stay shared in ....
I always ignored it, something which you shouldn't shouldn't shouldn't
do!!!!

The fix is trivial:
--- tpm2deb-bin.pl      (revision 2631)
+++ tpm2deb-bin.pl      (working copy)
@@ -331,9 +331,10 @@
        #
        # Do special actions as specified in the config file, like install info
        # etc
-       my @SpecialActions = ();
+       our @SpecialActions = ();
        sub do_special {
                my ($origfn, $finalfn) = @_;
+               our @SpecialActions;
                SPECIALS: foreach my $special (@{$TeXLive{'all'}{'special_actions_config'}}) {
                        my ($pat, $act) = ($special =~ m/(.*):(.*)/);
                        if ($origfn =~ m|$pat$|) {

Best wishes

Norbert

-------------------------------------------------------------------------------
Dr. Norbert Preining <preining@logic.at>                    Università di Siena
Debian Developer <preining@debian.org>                         Debian TeX Group
gpg DSA: 0x09C5B094      fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
There are of course many problems connected with life, of
which some of the most popular are `Why are people born?'
Why do they spend so much of the
intervening time wearing digital watches?'
                 --- The Book.
                 --- Douglas Adams, The Hitchhikers Guide to the Galaxy



Reply to: