bugGNU Octave - Bugs: bug #29902, pkg.m does not honor -local switch

 
 

bug #29902: pkg.m does not honor -local switch

Submitter:  None
Submitted:  Tue 18 May 2010 02:33:16 AM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Installation Failure
Status:  Need Info Assigned to:  None
Originator Name:  Eugeniy Mikhailov Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.2.4
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 21 Jun 2010 03:16:22 AM UTC, comment #2: 

Closing after 1 month with no response to request for additional info.

Rik <rik5>
Group administrator
Tue 18 May 2010 01:02:10 PM UTC, comment #1: 

Do you have a pkg prefix command somewhere in your octaverc?

Jaroslav Hajek <highegg>
Tue 18 May 2010 02:33:16 AM UTC, original submission:  

Hi,

I am trying to install general package as local user (I think it is for any package not just general).

I unpacked source tree, and compile everything in the relevant sub-directories, I also run to the same mistakes if I ask for 'pkg install general-1.2.1.tar.gz'. But for now I discuss the case of unpacked tree.

If I run package installation request as non super user I see that pkg.m tries to install everything into the system wide directories. If I run pkg with -local switch I see the same attempt. See the output below.
=============================================
octave:1> pkg -local -verbose install  general
make: Entering directory `/tmp/general/src'
make: Nothing to be done for `all'.
make: Leaving directory `/tmp/general/src'
copyfile /tmp/general/src/SHA1.oct /tmp/general/src/__exit__.oct /tmp/general/src/fload.oct /tmp/general/src/fsave.oct /tmp/general/src/mark_for_deletion.oct /tmp/general/src/packfields.oct /tmp/general/src/unpackfields.oct /tmp/general/inst/i486-pc-linux-gnu-api-v37
couldn't create installation directory /mnt/beam_archive/usr/share/octave/packages/3.2/general-1.2.1 : Permission denied
error: called from `pkg>copy_files' in file /usr/share/octave/3.2.4/m/pkg/pkg.m near line 1431, column 7
error: called from:
error:   /usr/share/octave/3.2.4/m/pkg/pkg.m at line 756, column 5
error:   /usr/share/octave/3.2.4/m/pkg/pkg.m at line 287, column 7
===============================================

This buggy behavior magically resolves, if I copy pkg.m from the system directory to the current one, and rerun the command.

Also notice that pkg resolves symlinks: /usr -> /mnt/beam_archive/usr. Is it intended?

Anonymous

 

(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 rik5 (Updated the item)
  • -email is unavailable- added by highegg (Posted a comment)
  •  

    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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-06-21 rik5 Open/ClosedOpen Closed
    2010-05-25 rik5 StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code