bugGNU Octave - Bugs: bug #41812, pkg uninstall asdf as root removes...

 
 

bug #41812: pkg uninstall asdf as root removes octave_packages

Submitter:  Clemens Buchacher <drizzd>
Submitted:  Sun 09 Mar 2014 05:02:57 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Duplicate Assigned to:  None
Originator Name:  Clemens Buchacher Open/Closed:  * Closed
Release:  * 3.8.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 09 Mar 2014 06:42:25 PM UTC, comment #1: 

Thanks for your bug report. This has been an issue in previous releases as well, and has been previously reported as bug #36453. Closing as duplicate.

Mike Miller <mtmiller>
Group Member
Sun 09 Mar 2014 05:02:57 PM UTC, original submission:  

Running pkg uninstall on a package that is not currently installed or that does not exist seems to end up removing /usr/share/octave/octave_packages, essentially removing all packages. Other installed package files remain, however.

The same does not happen for a regular user. The -global flag of pkg install makes no difference either.


$ sudo octave -q --eval 'pkg list'
Package Name   | Version | Installation directory
---------------+---------+-----------------------
      general  |   1.3.4 | /usr/share/octave/packages/general-1.3.4
miscellaneous  |   1.2.0 | /usr/share/octave/packages/miscellaneous-1.2.0
$ grep -A5 'name: name' /usr/share/octave/octave_packages
# name: name
# type: sq_string
# elements: 1
# length: 7
general

--
# name: name
# type: sq_string
# elements: 1
# length: 13
miscellaneous

$ sudo octave -q --eval 'pkg uninstall asdf'
warning: some of the packages you want to uninstall are not installed
$ sudo octave -q --eval 'pkg list'
no packages installed.
$ ls /usr/share/octave/octave_packages
ls: cannot access /usr/share/octave/octave_packages: No such file or directory


Clemens

Clemens Buchacher <drizzd>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by drizzd (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-03-09 mtmiller StatusNone Duplicate
        Open/ClosedOpen Closed
        Dependencies- Depends on bugs #36453

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code