bug-texinfo
[Top][All Lists]
Advanced

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

Re: Directory names hard-coded in Texinfo Perl scripts


From: Nikolay Kudryavtsev
Subject: Re: Directory names hard-coded in Texinfo Perl scripts
Date: Sun, 19 Dec 2021 05:17:09 +0300
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0

Yes "Can't locate Texinfo/ModulePath.pm" is the error message.

Sorry, maybe I should have joined in and corrected immediately, but the latest working version is actually 6.5, not 6.6, I do not have a 6.6 binary in my collection, so I had no knowledge if this problem exists there.

As to how 6.5 works, it has this rather confusing looking piece of code at makeinfo:85:

    # try to make package relocatable, will only work if
    # standard relative paths are used
    if (! -f File::Spec->catfile($lib_dir, 'Texinfo', 'Parser.pm')
        and -f File::Spec->catfile($command_directory, $updir, 'share',
                                   'texinfo', 'Texinfo', 'Parser.pm')) {
      $lib_dir = File::Spec->catdir($command_directory, $updir,
                                          'share', 'texinfo');
    }

So it checks if Parser.pm exists using the absolute path and if not, but it does using the relative path, it uses that one instead.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]