bugGNU Octave - Bugs: bug #53578, pkg: uninstall fails if tar/zip...


bug #53578: pkg: uninstall fails if tar/zip contents are read-only (make distcheck fails in pkg.tst)

Submitted by:  Mike Miller <mtmiller>
Submitted on:  Fri 06 Apr 2018 10:45:37 PM UTC  
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  dev Operating System:  GNU/Linux

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Fri 06 Apr 2018 10:45:37 PM UTC, original submission:

If a package tar or zip contains files or directories that are marked read-only when the package distribution is created, maybe only directories, then 'pkg uninstall foo' fails with an error

In particular, when running 'make distcheck', the test suite is run from a read-only copy of the Octave source. This leads to 4 out of 10 test failures in pkg.tst.

IMHO, if pkg install works, then pkg uninstall must be able to undo whatever pkg install did. That means if the contents of the package were made restrictive in some way, either

1. pkg install must change permissions as necessary when unpacking/creating/copying, or
2. pkg uninstall must be able to delete things regardless of file permissions.

Also a test for this specific error should be added to pkg.tst. For example, create a copy of one of the minimal package directories in test/pkg, recursively chmod files and directories, and do an install/uninstall test.

Mike Miller <mtmiller>
Project Administrator


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

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    No changes have been made to this item

    Back to the top

    Powered by Savane 3.3