bugGNU Octave - Bugs: bug #40623, octcdf: 'pkg unload octcdf' does...

 
 

bug #40623: octcdf: 'pkg unload octcdf' does not refresh symbol table

Submitter:  Muhali <muhali>
Submitted:  Mon 18 Nov 2013 02:26:17 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 10 Jun 2015 03:01:54 PM UTC, comment #5: 

This is corrected here:

https://sourceforge.net/p/octave/code/HEAD/tree/trunk/octave-forge/main/octcdf/PKG_DEL

For you for reporting and the fix.

Alexander Barth <abarth>
Fri 14 Feb 2014 05:55:42 PM UTC, comment #4: 

Thanks for that example, I plan to add the same feature to the communications package.

Mike Miller <mtmiller>
Group Member
Fri 14 Feb 2014 05:29:17 PM UTC, comment #3: 

I'm adding the maintainer of the octcdf package to the package.

If backwards compatibility is of interest here, the same approach as the one being taken by the sockets package may be useful, i.e., PKG_ADD and PKG_DEL is done the following way:



// PKG_ADD: autoload ("SOCK_STREAM", which ("socket"));
// PKG_DEL: try; autoload ("SOCK_STREAM", which ("socket"), "remove"); catch; end;


Carnë Draug <carandraug>
Group Member
Fri 14 Feb 2014 04:23:29 AM UTC, comment #2: 

The 3-argument form of autoload is now released with Octave 3.8.0, so octcdf can provide a PKG_DEL script that does the inverse autoload function for unloading the package.

Mike Miller <mtmiller>
Group Member
Thu 21 Nov 2013 12:03:12 AM UTC, comment #1: 

That's because those functions are added with autoload which did not had a reverse function. See http://octave.1599824.n4.nabble.com/reverse-of-autoload-td1635126.html

This inverse is autoload with a 3rd argument "remove" which was has already been implemented

https://savannah.gnu.org/patch/?7888

But not yet released.

Carnë Draug <carandraug>
Group Member
Mon 18 Nov 2013 02:26:17 PM UTC, original submission:  

When doing


pkg load octcdf
pkg unload octcdf
which ncdim


octave still knows about 'ncdim', although octcdf has actually been removed from the path.

Muhali <muhali>

 

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

Attach Files:
   
   
Comment:
   

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 abarth (Posted a comment)
  • -email is unavailable- added by carandraug (Alexander Barth, maintainer and author of the octcdf package)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by muhali (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-06-10 mtmiller StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2014-02-14 mtmiller StatusNone Confirmed
    2014-02-14 carandraug Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code