octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #58698] pkg install fails in current 6.0.1 oct


From: John Donoghue
Subject: [Octave-bug-tracker] [bug #58698] pkg install fails in current 6.0.1 octave
Date: Fri, 3 Jul 2020 15:49:09 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/18.17763

URL:
  <https://savannah.gnu.org/bugs/?58698>

                 Summary: pkg install fails in current 6.0.1 octave
                 Project: GNU Octave
            Submitted by: lostbard
            Submitted on: Fri 03 Jul 2020 07:49:07 PM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unexpected Error
                  Status: None
             Assigned to: None
         Originator Name: JohnD
        Originator Email: 
             Open/Closed: Open
                 Release: dev
         Discussion Lock: Any
        Operating System: Any

    _______________________________________________________

Details:

Not sure what commit broke it but on running an pkg install with a package
that contains a src folder with oct files but not .m or mex files, the install
fails.


error: Element 1 in argument list is not defined
error: called from
    install>copy_built_files at line 426 column 15
    install at line 197 column 7
    pkg at line 566 column 9


The code at that point:


    m = dir (fullfile (src, "*.m"))
    oct = dir (fullfile (src, "*.oct"))
    mex = dir (fullfile (src, "*.mex"))

    filenames = cellfun (@(x) fullfile (src, x),
                         {m.name, oct.name, mex.name},
                         "uniformoutput", false);


The issue is that m and mex (in my test package at least) are empty structs
and {m.name} now generates an error rather than returning a empty cell.

Simpler illustration:


m = dir("*.noextmatch");
{m.name}


In octave 6.0.1, the error will be "error: Element 1 in argument list is not
defined.". In octave 5.1 it returns an empty cell {}.











    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58698>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]