bugGNU Octave - Bugs: bug #59050, [octave forge] (ocs) package...

 
 

bug #59050: [octave forge] (ocs) package incorrectly loads on Windows

Submitted by:  Markus Mützel <mmuetzel>
Submitted on:  Tue 01 Sep 2020 02:00:41 PM UTC  
 
Category:  Octave Forge Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Patch Submitted Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  6.0.90 Operating System:  Microsoft Windows

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

Sun 13 Sep 2020 02:48:19 PM UTC, comment #3: 

Thanks. The ocs package loads successfully for me with these changes.

CC'ing the package maintainer.
John's patches in MXE Octave that could probably also be applied directly:
https://hg.octave.org/mxe-octave/file/372ea4c0afb2/src/of-ocs-3-break-fixes.patch
https://hg.octave.org/mxe-octave/file/372ea4c0afb2/src/of-ocs-4-pkgadd-fixes.patch

The shadowed function warnings I get when loading the package seem to actually stem from odepkg.

There don't seem to be any BISTs for the ocs package. So I don't know if it actually works in Octave 6. But it definitely looks better now.

Markus Mützel <mmuetzel>
Project Member
Sun 13 Sep 2020 12:17:32 PM UTC, comment #2: 

Moving the PKG_ADD/DEL from the root to the inst directory and changing the path add to not go back a directory seems to work for me.

Im adding to mxe, but needs to be changed in ocs.

John Donoghue <lostbard>
Project Member
Sun 13 Sep 2020 11:57:58 AM UTC, comment #1: 

It does work in windows if installed as a local package.

But then get a number of warnings about showed functions.

John Donoghue <lostbard>
Project Member
Tue 01 Sep 2020 02:00:41 PM UTC, original submission:  

When trying to load the ocs package on Windows with Octave 6.0.90a, the following warnings are shown:

>> pkg load ocs
warning: addpath: C:\Program Files\GNU Octave\Octave-6.0.90\mingw64\lib\octave\packages\ocs-0.1.5\x86_64-w64-mingw32-api-v55\..\utl: No such file or directory
warning: called from
    C:\Program Files\GNU Octave\Octave-6.0.90\mingw64\lib\octave\packages\ocs-0.1.5\x86_64-w64-mingw32-api-v55\PKG_ADD at line 7 column 5
    load_packages_and_dependencies at line 56 column 5
    load_packages at line 53 column 3
    pkg at line 586 column 7

warning: addpath: C:\Program Files\GNU Octave\Octave-6.0.90\mingw64\lib\octave\packages\ocs-0.1.5\x86_64-w64-mingw32-api-v55\..\asm: No such file or directory
warning: called from
    C:\Program Files\GNU Octave\Octave-6.0.90\mingw64\lib\octave\packages\ocs-0.1.5\x86_64-w64-mingw32-api-v55\PKG_ADD at line 7 column 5
    load_packages_and_dependencies at line 56 column 5
    load_packages at line 53 column 3
    pkg at line 586 column 7

warning: addpath: C:\Program Files\GNU Octave\Octave-6.0.90\mingw64\lib\octave\packages\ocs-0.1.5\x86_64-w64-mingw32-api-v55\..\tst: No such file or directory
warning: called from
    C:\Program Files\GNU Octave\Octave-6.0.90\mingw64\lib\octave\packages\ocs-0.1.5\x86_64-w64-mingw32-api-v55\PKG_ADD at line 7 column 5
    load_packages_and_dependencies at line 56 column 5
    load_packages at line 53 column 3
    pkg at line 586 column 7

warning: addpath: C:\Program Files\GNU Octave\Octave-6.0.90\mingw64\lib\octave\packages\ocs-0.1.5\x86_64-w64-mingw32-api-v55\..\nls: No such file or directory
warning: called from
    C:\Program Files\GNU Octave\Octave-6.0.90\mingw64\lib\octave\packages\ocs-0.1.5\x86_64-w64-mingw32-api-v55\PKG_ADD at line 7 column 5
    load_packages_and_dependencies at line 56 column 5
    load_packages at line 53 column 3
    pkg at line 586 column 7

warning: addpath: C:\Program Files\GNU Octave\Octave-6.0.90\mingw64\lib\octave\packages\ocs-0.1.5\x86_64-w64-mingw32-api-v55\..\prs: No such file or directory
warning: called from
    C:\Program Files\GNU Octave\Octave-6.0.90\mingw64\lib\octave\packages\ocs-0.1.5\x86_64-w64-mingw32-api-v55\PKG_ADD at line 7 column 5
    load_packages_and_dependencies at line 56 column 5
    load_packages at line 53 column 3
    pkg at line 586 column 7

warning: addpath: C:\Program Files\GNU Octave\Octave-6.0.90\mingw64\lib\octave\packages\ocs-0.1.5\x86_64-w64-mingw32-api-v55\..\sbn: No such file or directory
warning: called from
    C:\Program Files\GNU Octave\Octave-6.0.90\mingw64\lib\octave\packages\ocs-0.1.5\x86_64-w64-mingw32-api-v55\PKG_ADD at line 7 column 5
    load_packages_and_dependencies at line 56 column 5
    load_packages at line 53 column 3
    pkg at line 586 column 7

The .m files of Octave Forge packages are not stored inside the "lib" folder but inside the "share" folder. Consequently, the package does not work.

I haven't tried on Linux or with other Octave versions.

Markus Mützel <mmuetzel>
Project Member

 

(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 mmuetzel
  • -email is unavailable- added by lostbard (Posted a comment)
  • -email is unavailable- added by mmuetzel (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.

     

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-09-13 mmuetzel StatusNone => Patch Submitted
    2020-09-13 mmuetzel Carbon-Copy- => Added cdf

    Back to the top


    Powered by Savane 3.5