[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: libexec for packages
From: |
Orion Poplawski |
Subject: |
Re: libexec for packages |
Date: |
Fri, 18 Mar 2011 11:08:04 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Lightning/1.0b3pre Thunderbird/3.1.9 |
Also need to modify pkg.m. canonical_host_type would also no longer be needed.
I've filed a bug here:
https://savannah.gnu.org/bugs/index.php?32840
diff -r c2e8c9d9e284 scripts/pkg/pkg.m
--- a/scripts/pkg/pkg.m Thu Mar 17 23:11:47 2011 -0700
+++ b/scripts/pkg/pkg.m Fri Mar 18 11:04:18 2011 -0600
@@ -248,7 +248,7 @@
if (prefix == -1)
if (global_install)
prefix = fullfile (OCTAVE_HOME (), "share", "octave", "packages");
- archprefix = fullfile (octave_config_info ("libexecdir"),
+ archprefix = fullfile (octave_config_info ("libdir"),
"octave", "packages");
else
prefix = fullfile ("~", "octave");
@@ -293,7 +293,7 @@
global_install = true;
if (! user_prefix)
prefix = fullfile (OCTAVE_HOME (), "share", "octave", "packages");
- archprefix = fullfile (octave_config_info ("libexecdir"),
+ archprefix = fullfile (octave_config_info ("libdir"),
"octave", "packages");
endif
case available_actions
@@ -2212,14 +2212,13 @@
endfunction
function arch = getarch ()
- persistent _arch = cstrcat (octave_config_info("canonical_host_type"), ...
- "-", octave_config_info("api_version"));
+ persistent _arch = octave_config_info("api_version");
arch = _arch;
endfunction
function archprefix = getarchprefix (desc, global_install)
if ((nargin == 2 && global_install) || (nargin < 2 && issuperuser ()))
- archprefix = fullfile (octave_config_info ("libexecdir"), "octave",
+ archprefix = fullfile (octave_config_info ("libdir"), "octave",
"packages", cstrcat(desc.name, "-", desc.version));
else
archprefix = desc.dir;
--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA/CoRA Division FAX: 303-415-9702
3380 Mitchell Lane address@hidden
Boulder, CO 80301 http://www.cora.nwra.com