bugGNU Octave - Bugs: bug #36515, pkg unload does not consider...


bug #36515: pkg unload does not consider dependencies

Submitted by:  Carnë Draug <carandraug>
Submitted on:  Mon 21 May 2012 11:39:09 AM UTC  
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: ConfirmedAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating System: Any

Add a New Comment(Rich Markup)

You are not logged in

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


Thu 24 Nov 2016 12:49:47 AM UTC, comment #3:

It's actually this that I think this bug is originally about:

This does still affect Octave 4.2 and 4.3-dev.

The reverse would be nice, but would involve keeping track of which packages were explicitly loaded by the user and which were loaded indirectly (as Carnë describes in comment #1).

Mike Miller <mtmiller>
Project Administrator
Thu 24 Nov 2016 12:39:55 AM UTC, comment #2:

Problem is still present in 4.3.0+
Testing with singal package that loads control

Juan Pablo Carbajal <juanpi>
Project Member
Tue 12 Apr 2016 12:00:36 PM UTC, comment #1:

A better solution might be to keep track of why packages were loaded (directly or as dependency), and unload them when there's no reason left to keep them.

Carnë Draug <carandraug>
Project Member
Mon 21 May 2012 11:39:09 AM UTC, original submission:


when a package that is a dependency of others is unloaded, no warning is given and the other packages stay loaded which can lead to problems with them.

I'd imagine the following possible behaviors:

1) do not unload the package and issue a warning about the reason why
2) unload the package together with all packages that depend on it and issue a warning about it
3) unload only the selected package (current behaviour) but I think this should be the behaviour if selecting unload with the -nodeps flag

What should be the best way to handle this? I have attached two empty packages that simply depend on each other to test this things.


Carnë Draug <carandraug>
Project Member


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

Attach File(s):

Attached Files
file #25897:  ori1-1.0.0.tar.gz added by carandraug (370B - application/x-gzip)
file #25898:  ori2-1.0.0.tar.gz added by carandraug (370B - application/x-gzip)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by juanpi (Posted a comment)
  • -unavailable- added by mtmiller (Updated the item)
  • -unavailable- added by carandraug (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):



    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 28 Oct 2013 03:18:34 AM UTCmtmillerCategoryNone=>Octave Function
      Item GroupNone=>Incorrect Result
    Mon 21 May 2012 11:39:09 AM UTCcarandraugAttached File-=>Added ori1-1.0.0.tar.gz, #25897
      Attached File-=>Added ori2-1.0.0.tar.gz, #25898

    Back to the top

    Powered by Savane 3.1-cleanup1