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

 
 

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

Submitted by:  None
Submitted on:  Tue 18 May 2010 02:33:16 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Installation Failure
Status: Need InfoAssigned to: None
Originator Name: Eugeniy MikhailovOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 3.2.4
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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>
Project 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Updated the item)
  • -unavailable- added by highegg (Posted a comment)
  •  

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

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 21 Jun 2010 03:16:22 AM UTCrik5Open/ClosedOpen=>Closed
    Tue 25 May 2010 01:58:31 AM UTCrik5StatusNone=>Need Info

    Back to the top


    Powered by Savane 3.1-cleanup1