[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #36830] Create pkg prefix directory, if it doe
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #36830] Create pkg prefix directory, if it does not exist |
Date: |
Thu, 12 Jul 2012 04:48:38 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux i686) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.43 Safari/536.11 |
URL:
<http://savannah.gnu.org/bugs/?36830>
Summary: Create pkg prefix directory, if it does not exist
Project: GNU Octave
Submitted by: None
Submitted on: Thu 12 Jul 2012 04:48:37 AM UTC
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name: Rafael Laboissiere
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
The pkg.m script is smart enough to create the archprefix directory when it is
not present in the system (the examples below are run in a Debian GNU/Linux
system with Octave 3.6.2 installed):
$ sudo rmdir /usr/lib/i386-linux-gnu/octave/packages/
$ sudo octave --silent --no-history --no-init-file --no-window-system --eval
"pkg ('rebuild');"
warning: creating the directory /usr/lib/i386-linux-gnu/octave/packages/
This is not the case for the prefix directory:
$ sudo rmdir /usr/share/octave/packages
$ sudo octave --silent --no-history --no-init-file --no-window-system --eval
"pkg ('rebuild');"
error: could not find the file or path /usr/share/octave/packages
error: called from:
error: /usr/share/octave/3.6.2/m/pkg/pkg.m at line 1234, column 5
error: /usr/share/octave/3.6.2/m/pkg/pkg.m at line 418, column 16
error: /usr/share/octave/3.6.2/m/startup/octaverc at line 26, column 1
The trivial patch attached to this bug report fixes this issue.
Note that this problem has been reported as Bug##681064
<http://bugs.debian.org/681064> against the Debian package octave. In the
discussion around that bug report in Debian, Jordi GutiƩrrez suggested that
the code has to be improved anyway ("What if creating the directory fails? Or
do we know at that point that this is a writable location?"). I think I agree
with him, but the changes need to be done to both the prefix- and the
archprefix-related code in pkg.m
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Thu 12 Jul 2012 04:48:37 AM UTC Name: create-pkg-prefix-dir.diff Size:
897B By: None
Patch
<http://savannah.gnu.org/bugs/download.php?file_id=26182>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?36830>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #36830] Create pkg prefix directory, if it does not exist,
anonymous <=