[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #45059] no lookfor cache for binary functions
From: |
Olaf Till |
Subject: |
[Octave-bug-tracker] [bug #45059] no lookfor cache for binary functions if packages are installed as root |
Date: |
Fri, 08 May 2015 19:52:20 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.5.0 |
URL:
<http://savannah.gnu.org/bugs/?45059>
Summary: no lookfor cache for binary functions if packages
are installed as root
Project: GNU Octave
Submitted by: i7tiol
Submitted on: Fri 08 May 2015 07:52:19 PM GMT
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.0.0-rc1
Operating System: GNU/Linux
_______________________________________________________
Details:
In package installation, a lookfor cache is generated for binary functions
only if the package is installed by a non-root user, not if it's installed
system-wide by root.
The reason is that pkg/private/generate_loofor_cache.m generates caches only
under directory 'desc.dir', which in the install-as-root case does not contain
the directory with the binary functions.
(You can verify the bug by checking that 'doc-cache' is lacking in the
directories of binary function of system-wide installed packages.)
Fix:
in pkg/private/generate_loofor_cache.m, after the line:
dirs = strtrim (ostrsplit (genpath (desc.dir), pathsep ()));
, insert the following:
if (! strcmp (desc.dir, desc.archprefix))
adir = fullfile (desc.archprefix, getarch ());
dirs2 = strtrim (ostrsplit (genpath (adir), pathsep ()));
dirs = cat (2, dirs, dirs2);
endif
I don't think that I need to make an own changeset for such a bit, feel free
to apply it.
Olaf
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?45059>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #45059] no lookfor cache for binary functions if packages are installed as root,
Olaf Till <=