bugGNU Octave - Bugs: bug #59029, Failed pkg installations are still...

 
 

bug #59029: Failed pkg installations are still listed by "ver"

Submitted by:  Stephan Gebauer <stephan_ii>
Submitted on:  Fri 28 Aug 2020 08:25:54 AM UTC  
 
Category:  Interpreter Severity:  1 - Wish
Priority:  3 - Low Item Group:  Feature Request
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  6.0.90 Operating System:  Any

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

( Jump to the original submission)

Mon 31 Aug 2020 05:49:47 PM UTC, comment #8: 

Using the 6.0.90a installer, I looked at the list of packages and sockets appeared with the correct path in the list.  So I think the missing path on your sytsem was due to the failed install from the forge package.  Since the intent is to include packages in the installer, I don't think there is anything more to fix here, so I'm closing this report as fixed.

John W. Eaton <jwe>
Project Administrator
Mon 31 Aug 2020 05:40:51 PM UTC, comment #7: 

Hi,

after uninstall the previous octave 6.0.90 and then install
the new 6.0.90a, all packages are there and listet correct
with pkg list.

The socket pkg diplayed still without installation path.

after performing the pkg rebuild, the socket pkg is
displayed complete with  installation path, and can be loaded.

So, all seems correct for me now...

Thank you!

Stephan Gebauer <stephan_ii>
Mon 31 Aug 2020 07:53:13 AM UTC, comment #6: 

I can no longer reproduce the original error. "ver" no longer lists the failed package installation.
I'm not sure what has changed since last time I checked. I uninstalled and reinstalled Octave a bunch of times (in directories with and without spaces on NTFS partitions with and without support for short file names). But currently it is installed at the default location (in %PROGRAMFILES%).
This is still with version 6.0.90 of the installer that doesn't include the binary Octave Forge packages.

Markus Mützel <mmuetzel>
Project Member
Sun 30 Aug 2020 09:18:29 PM UTC, comment #5: 

Did
"pkg rebuild"
help to get rid of the entry for the crippled sockets package installation?

Philip Nienhuis <philipnienhuis>
Project Member
Fri 28 Aug 2020 10:07:00 AM UTC, comment #4: 

Thanks for the feedback.
I can confirm that all packages are missing from the installer for Octave 6.0.90. That is probably a packaging error.
I'll ask about this on the mailing list.

Markus Mützel <mmuetzel>
Project Member
Fri 28 Aug 2020 09:51:31 AM UTC, comment #3: 

Hi,

thank you for your response!

i used the installer .exe to install octave 6.0.90!

But the pkg list displayed "No packages are installed",
then i tried the pgk rebuild, but no change.

With the fresch installation there was no pkg available,
so i installed all the packages from octave forge.

only the socket pkg failed, for the reason you mentioned in
comment #1.

How i can make the preinstalled pkg available in a fresh
installation of octave 6.0.90?

Best regards

Stephan Gebauer <stephan_ii>
Fri 28 Aug 2020 09:27:56 AM UTC, comment #2: 

The latest released version of the sockets package is no longer compatible with Octave 6, see bug #57415.

Having said that, Octave for Windows already contains some pre-compiled Octave Forge packages. Those include a modified version of the sockets package. The modifications are specifically to allow it to compile with newer Octave versions.

To get a working version of that package, install Octave again and just load the pre-compiled package with "pkg load sockets" instead of trying to install the last released version.
If you didn't use the installer, make sure to run the "post-install.bat" located in the folder where you extracted Octave.

It would probably be better to not list packages if their installation failed.

Markus Mützel <mmuetzel>
Project Member
Fri 28 Aug 2020 09:25:23 AM UTC, comment #1: 

The latest released version of the sockets package is no longer compatible with Octave 6, see bug #57415.

Having said that, Octave for Windows already contains some pre-compiled Octave Forge packages. Those include a modified version of the sockets package. The modifications are specifically to allow it to compile with newer Octave versions.

To get a working version of that package, install Octave again and just load the pre-compiled package with "pkg load sockets" instead of trying to install the last released version.
If you didn't use the installer, make sure to run the "post-install.bat" located in the folder where you extracted Octave.

It would probably be better if packages wouldn't be listed if their installation failed.

Markus Mützel <mmuetzel>
Project Member
Fri 28 Aug 2020 08:25:54 AM UTC, original submission:  

Hello,

on win10 when i perform in 0ctave 6.0.90 following:

>>pkg install -forge sockets


then i get the error:

socket.cc:22:10: fatal error: octave/toplev.h: No such file or directory
   22 | #include <octave/toplev.h>
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:23: socket.oct] Error 1
make: Entering directory '/tmp/oct-zu6HX0/octave-sockets-1.2.0/src'
C:/usr/OCTAVE~2/mingw64/bin/mkoctfile-6.0.90.exe socket.cc -lws2_32
make: Leaving directory '/tmp/oct-zu6HX0/octave-sockets-1.2.0/src'

error: pkg: error running 'make' for the sockets package.
error: called from
    configure_make at line 110 column 9
    install at line 196 column 7
    pkg at line 566 column 9

nevertheless, the socket pkg is shown in the package list, and get an error when try to load it.
ok, there is no Installation directory displayed...

>> ver

----------------------------------------------------------------------
GNU Octave Version: 6.0.90 (hg id: 844b3b9bab7a)
GNU Octave License: GNU General Public License
Operating System: MINGW32_NT-6.2 Windows 6.2  x86_64
----------------------------------------------------------------------
Package Name        | Version | Installation directory
--------------------+---------+-----------------------
    communications *|   1.2.2 | C:\Users\gebauer\octave\communications-1.2.2
           control *|   3.2.0 | C:\Users\gebauer\octave\control-3.2.0
           general *|   2.1.1 | C:\Users\gebauer\octave\general-2.1.1
          geometry  |   4.0.0 | C:\Users\gebauer\octave\geometry-4.0.0
             image *|  2.12.0 | C:\Users\gebauer\octave\image-2.12.0
instrument-control *|   0.5.0 | C:\Users\gebauer\octave\instrument-control-0.5.0
                io *|   2.6.1 | C:\Users\gebauer\octave\io-2.6.1
           mapping  |   1.4.0 | C:\Users\gebauer\octave\mapping-1.4.0
           matgeom  |   1.2.2 | C:\Users\gebauer\octave\matgeom-1.2.2
             optim *|   1.6.0 | C:\Users\gebauer\octave\optim-1.6.0
            signal *|   1.4.1 | C:\Users\gebauer\octave\signal-1.4.1
           sockets  |   1.2.0 |
        statistics *|   1.4.2 | C:\Users\gebauer\octave\statistics-1.4.2
            struct *|  1.0.16 | C:\Users\gebauer\octave\struct-1.0.16
             video  |   2.0.0 | C:\Users\gebauer\octave\video-2.0.0
           windows *|   1.5.0 | C:\Users\gebauer\octave\windows-1.5.0

Stephan Gebauer <stephan_ii>

 

(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 jwe (Posted a comment)
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by stephan_ii (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 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-08-31 jwe StatusNone => Fixed
        Open/ClosedOpen => Closed
    2020-08-28 mmuetzel CategoryNone => Interpreter
        Severity3 - Normal => 1 - Wish
        Priority5 - Normal => 3 - Low
        Item GroupUnexpected Error or Warning => Feature Request
    2020-08-28 mmuetzel Operating SystemMicrosoft Windows => Any
        Summarypkg install sockets => Failed pkg installations are still listed by "ver"

    Back to the top


    Powered by Savane 3.6