Am Sonntag, 24. März 2019, 19:48:05 CET schrieb Jürgen Spitzmüller:
> Am Sonntag, den 24.03.2019, 18:41 +0100 schrieb Kornel Benko:
> > It is supposed. All tests depend on it. How else can we test without
> > installing?
> 
> See BufferParams.cpp 748ff.:
> 
> string const sysdirprefix = "/systemlyxdir/";
> if (prefixIs(origin, sysdirprefix)) {
>       string docsys;
>       if (inSystemDir(filepath, docsys))
>               origin.replace(0, sysdirprefix.length() - 1, docsys);
>       else
>               origin.replace(0, sysdirprefix.length() - 1,
>                       package().system_support().absFileName());
>               }
> 
> At least the else condition expands to package().system_support(), not
> package().build_support(), so this points to the system dir, not the
> build dir.

This is the wrong place. Look at support/Package.cpp126
        in_build_dir_ = inBuildDir(abs_binary, build_support_dir_, 
system_support_dir_);

        if (!in_build_dir_) {
                system_support_dir_ =
                        get_system_support_dir(abs_binary,
                                               command_line_system_support_dir);
        }

AND
support/Package.cpp:328 (inside inBuildDir() method)

   FileName binary = abs_binary;
        while (true) {
                // Try and find "lyxrc.defaults".
                if( isBuildDir(binary, "../", build_support_dir) ||
            isBuildDir(binary, "../../", build_support_dir))
        {
                        // Try and find "chkconfig.ltx".
                        system_support_dir =
                                
FileName(addPath(Package::top_srcdir().absFileName(), 
"lib"));

                        if (!fileSearch(system_support_dir.absFileName(), 
"chkconfig.ltx").empty()) {
                                LYXERR(Debug::INIT, check_text << " yes");
                                return true;
                        }
                }

        Kornel
 

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to