[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #45903] pkg rebuild -global fails if package d
From: |
Clemens Buchacher |
Subject: |
[Octave-bug-tracker] [bug #45903] pkg rebuild -global fails if package directory does not exist |
Date: |
Wed, 09 Sep 2015 11:36:21 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.155 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?45903>
Summary: pkg rebuild -global fails if package directory does
not exist
Project: GNU Octave
Submitted by: drizzd
Submitted on: Wed 09 Sep 2015 11:36:20 AM GMT
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.0.0
Operating System: GNU/Linux
_______________________________________________________
Details:
In the absence of any octave forge packages, /usr/share/octave/packages does
not exist (maybe because it is empty it is not created by makepkg or pacman).
In this situation, the following command fails:
> pkg rebuild -global
error: couldn't read directory /usr/share/octave/packages: No such file or
directory
error: called from
rebuild at line 29 column 7
pkg at line 505 column 25
I use pkg rebuild to update the package database after installing or removing
packages. When all octave forge packages are removed, this error appears for
the last package, since at that point /usr/share/octave/packages will also be
removed. It is not possible to update the package database unless one manually
re-creates /usr/share/octave/packages.
A similar bug was reported and fixed in octave here:
bug #36830: Create pkg prefix directory, if it does not exist
I am attaching a patch which checks that the directory exists and if not, it
will update the package database to an empty list (as appropriate). The patch
applies to Octave 4.0.0.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?45903>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #45903] pkg rebuild -global fails if package directory does not exist,
Clemens Buchacher <=