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 FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Unexpected Error
Status: ConfirmedAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1