bugGNU Octave - Bugs: bug #66917, `pkg list -forge` is missing some...

 
 

bug #66917: `pkg list -forge` is missing some 50 entries

Submitter:  Arun Giridhar <arungiridhar>
Submitted:  Sat 15 Mar 2025 04:55:12 PM UTC
   
 
Category:  Octave Package Severity:  2 - Minor
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Release: 
Operating System:  * Any Fixed Release:  11.1.0 (current default)
Planned Release:  11.1.0 (current default)
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Tue 25 Mar 2025 09:51:08 AM UTC, comment #7: 

Closing as fixed.

Arun Giridhar <arungiridhar>
Group Member
Sun 23 Mar 2025 04:54:56 PM UTC, comment #6: 

Pushed to the default branch at: http://hg.savannah.gnu.org/hgweb/octave/rev/27c6cfcc8138

Marking as ready for test.

Arun Giridhar <arungiridhar>
Group Member
Sun 23 Mar 2025 04:09:18 PM UTC, comment #5: 

Updated patch (v4) attached with checks before `eval`.

(file #57056)

Arun Giridhar <arungiridhar>
Group Member
Sun 16 Mar 2025 11:01:54 PM UTC, comment #4: 

Thanks @mmuetzel. Updated patch attached with that change.

With this version, for nargout == 0 (screen display) it now gives:

...
dynare 6.3 (download and install manually)
...
sqlp-sedumi 1.3.5 (download and install manually)
...

and if nargout > 0, then it removes those two packages from the results and returns a list of 119 packages with version numbers.


(file #57030)

Arun Giridhar <arungiridhar>
Group Member
Sun 16 Mar 2025 09:07:01 PM UTC, comment #3: 

Maybe for consideration: Not all packages that are listed on https://gnu-octave.github.io/packages/ can be installed with `pkg install -forge ...`. Only those that depend on the (virtual) package `pkg` can.

It might make sense to only list the installable packages for the `pkg list -forge` command to avoid confusion.

Markus Mützel <mmuetzel>
Group administrator
Sat 15 Mar 2025 05:59:29 PM UTC, comment #2: 

Updated patch attached to mimic older use case more closely.



(file #57024)

Arun Giridhar <arungiridhar>
Group Member
Sat 15 Mar 2025 05:51:36 PM UTC, comment #1: 

I've attached a patch that returns the full current list of 121 packages.

It takes less than 2 seconds, which is probably acceptable.

Feedback solicited: Pls note the FIXME in the patch regarding eval().

(file #57023)

Arun Giridhar <arungiridhar>
Group Member
Sat 15 Mar 2025 04:55:12 PM UTC, original submission:  

Typing `pkg list -forge` looks up https://sourceforge.net/projects/octave/files/Octave%20Forge%20Packages/Individual%20Package%20Releases and parses the output to return a list of 71 packages with their version numbers.

The same list of 71 (without version numbers) is returned by the command `foo = pkg ("list", "-forge")`, though this looks up a different URL instead (https://packages.octave.org/list_packages.php, which redirects to https://octave.sourceforge.io/list_packages.php).

But the current https://packages.octave.org (which redirects to https://gnu-octave.github.io/packages/) says at the bottom of the screen: "Showing 1 to 7 of 121 entries", so some 50 packages are missing from `pkg list -forge`, which show up only on github.io and not on sourceforge.io.

I'll see if I can parse the new URL instead.

Arun Giridhar <arungiridhar>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #57056:  pkglist4.diff added by arungiridhar (6KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by arungiridhar
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by arungiridhar (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 13 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2025-03-25 arungiridhar StatusReady For Test Fixed
        Open/ClosedOpen Closed
        Fixed ReleaseNone 11.1.0 (current default)
    2025-03-23 arungiridhar StatusPatch Submitted Ready For Test
        Carbon-Copy- Added siko1056
    2025-03-23 arungiridhar Attached File- Added pkglist4.diff, #57056
    2025-03-23 arungiridhar Attached File#57030 Removed
    2025-03-16 arungiridhar Attached File- Added pkglist3.patch, #57030
    2025-03-16 arungiridhar Attached File#57024 Removed
    2025-03-15 arungiridhar Attached File- Added pkglist2.patch, #57024
    2025-03-15 arungiridhar Attached File#57023 Removed
    2025-03-15 arungiridhar Attached File- Added pkglist.patch, #57023
        StatusNone Patch Submitted

    Back to the top

    Powered by Savane 3.14-962f.
    Corresponding source code