bugGNU Octave - Bugs: bug #51684, Request for Windows Portable zip...

 
 

bug #51684: Request for Windows Portable zip version without absolute paths & system hooks

Submitted by:  Nicholas Jankowski <nrjank>
Submitted on:  Tue 08 Aug 2017 01:56:29 AM UTC  
 
Category: NoneSeverity: 1 - Wish
Priority: 3 - LowItem Group: Feature Request
Status: NoneAssigned to: None
Originator Name: Nicholas JankowskiOpen/Closed: Open
Release: otherOperating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Tue 08 Aug 2017 08:59:44 PM UTC, comment #2:

I dug up this old thread from almost 3 years ago:

https://lists.gnu.org/archive/html/octave-maintainers/2014-11/msg00018.html

It looks to me like there may have been a consensus to just eliminate the possibility of configuring the pkg global prefix, and always have it depend on OCTAVE_HOME, or possibly to use one of the other compiled-in paths that already change with OCTAVE_HOME like "localverfcnfiledir" and "localveroctfiledir". But no work was done and no bugs were filed to do anything about it.

AFAICT the main blocker to major improvements to the pkg system has been that a lot of work was done on a fork/rewrite/redesign some years ago, and it has not been merged back in. And now I feel that some (myself included) are wary about changing the pkg that we have because this other rewritten pkg exists out there.

Mike Miller <mtmiller>
Project Administrator
Tue 08 Aug 2017 08:43:46 PM UTC, comment #1:

From a high-level view, in order to actually address this, it would help to itemize what the little things are that would make this work, and then address them in individual bug reports. For some there are already open bug reports, so please try to find those and add them as dependencies of this bug.

For example there are already open bug reports about making the user configuration depend on the USERPROFILE setting in Windows, and on the Freedesktop configuration setting on unixy systems. If startup scripts, config files, history, etc could be read from another directory based on well-known environment variables like USERPROFILE and XDG_CONFIG_HOME, that would take care of a small piece of this.

The Octave interpreter already has a facility to load startup commands from package global, site global, and user-specific locations. I suspect that Qt has a facility for loading its settings files this way also, so the GUI settings could live with the software rather than in the user's home/profile directory.

Another change might be to make the default global and local pkg paths depend on OCTAVE_HOME and USERPROFILE or XDG_DATA_HOME by default if that's not already the case (e.g. I set up my environment to install packages in ~/.local/lib/octave and ~/.local/share/octave). The global pkg prefix and cache are the relevant ones for Windows users by default.

And then of course you want the contents of the pkg cache that contain OCTAVE_HOME in their path name to also use the value of OCTAVE_HOME, so when the whole thing moves to a different location you don't have to rebuild the cache.

And you probably want all of this to work when OCTAVE_HOME is a path name with spaces or non-ASCII characters in it.

Mike Miller <mtmiller>
Project Administrator
Tue 08 Aug 2017 01:56:29 AM UTC, original submission:

This has come up a few times recently in discussion of the Windows zip installer [1,2] and whether it could be portable version. It is currently not for a few reasons: it makes changes to the logged in user's home folder and a number of components (at least the pkg system) use absolute folder paths that aren't tied to the OCTAVE_HOME path variable.

Creating this as a lower priority wish list place to discuss what changes would enable a portable version and possibly collect patches to do so.

[1] bug #51632

[2] http://octave.1599824.n4.nabble.com/Octave-for-Windows-OpenBLAS-and-Portable-Mode-tp4681854.html

Nicholas Jankowski <nrjank>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by nrjank (Submitted the item)
  • -unavailable- added by nrjank
  • -unavailable- added by nrjank
  • -unavailable- added by nrjank
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 08 Aug 2017 08:48:50 PM UTCmtmillerDependencies-=>Depends on bugs #36477
    Tue 08 Aug 2017 08:45:41 PM UTCmtmillerDependencies-=>Depends on bugs #40444
    Tue 08 Aug 2017 08:44:45 PM UTCmtmillerDependencies-=>Depends on bugs #51632
    Tue 08 Aug 2017 08:44:01 PM UTCmtmillerSeverity3 - Normal=>1 - Wish
      Priority5 - Normal=>3 - Low
    Tue 08 Aug 2017 01:56:29 AM UTCnrjankCarbon-Copy-=>Added -unavailable-
      Carbon-Copy-=>Added -unavailable-
      Carbon-Copy-=>Added tpapastylianou

    Back to the top


    Powered by Savane 3.1-cleanup1