Mantis - pkgutil
|
Viewing Issue Advanced Details |
|
ID:
|
Category:
|
Severity:
|
Reproducibility:
|
Date Submitted:
|
Last Update:
|
5102 |
regular use |
feature |
always |
2013-08-16 17:13 |
2013-11-16 15:59 |
|
Reporter:
|
yann |
Platform:
|
|
|
Assigned To:
|
bonivart |
OS:
|
|
|
Priority:
|
normal |
OS Version:
|
|
|
Status:
|
closed |
Product Version:
|
|
|
Product Build:
|
|
Resolution:
|
fixed |
|
Projection:
|
none |
|
|
|
ETA:
|
none |
Fixed in Version:
|
|
|
|
Summary:
|
0005102: Remove hardcoded paths to SVR4 package tools |
Description:
|
Hi Peter,
Might be strange but I am trying to use pkgutil on a SmartOS server where pkgadd, pkgrm.. are not available.
I can get them and put them in a different location but most path are to these tools are hardcoded in pkgutil so this doesn't work out of the box.
So my feature request is: is this possible to modify pkgutil so path to SVR4 package tools are not hardcoded ?
Thanks in advance for your answer,
Yann |
Steps To Reproduce:
|
|
Additional Information:
|
|
Relationships | |
Attached Files:
|
no_hardcoded_paths.patch [^] (4,304 bytes) 2013-08-16 17:15
no_hardcoded_paths_v2.patch [^] (4,703 bytes) 2013-08-29 23:43 |
|
Issue History |
Date Modified |
Username |
Field |
Change |
2013-08-16 17:13 |
yann |
New Issue |
|
2013-08-16 17:15 |
yann |
File Added: no_hardcoded_paths.patch |
|
2013-08-16 17:15 |
yann |
Note Added: 0010535 |
|
2013-08-19 13:52 |
bonivart |
Status |
new => assigned |
2013-08-19 13:52 |
bonivart |
Assigned To |
=> bonivart |
2013-08-19 13:54 |
bonivart |
Note Added: 0010536 |
|
2013-08-27 16:54 |
bonivart |
Note Added: 0010560 |
|
2013-08-27 21:27 |
yann |
Note Added: 0010561 |
|
2013-08-29 23:43 |
yann |
File Added: no_hardcoded_paths_v2.patch |
|
2013-08-29 23:44 |
yann |
Note Added: 0010563 |
|
2013-09-02 13:46 |
bonivart |
Note Added: 0010567 |
|
2013-10-06 12:08 |
yann |
Note Added: 0010600 |
|
2013-11-09 19:00 |
yann |
Note Added: 0010636 |
|
2013-11-13 10:35 |
bonivart |
Note Added: 0010639 |
|
2013-11-16 15:59 |
bonivart |
Status |
assigned => closed |
2013-11-16 15:59 |
bonivart |
Resolution |
open => fixed |
Notes |
|
(0010535)
|
yann
|
2013-08-16 17:15
|
|
|
|
(0010536)
|
bonivart
|
2013-08-19 13:54
|
|
So you're basically adding another path to PATH and then removing all hardcoded paths? Looks very straightforward.
I can do a minor update with that. |
|
|
(0010560)
|
bonivart
|
2013-08-27 16:54
|
|
Did you test your patch on a normal Solaris system? I ran it on Solaris 10 and pkgadd/pkgrm are not found. You only added /opt/csw/bin to the path but some pkg tools are found in /usr/sbin.
Couldn't you accomplish the same thing by placing your pkg tools in the normal Solaris paths? |
|
|
(0010561)
|
yann
|
2013-08-27 21:27
|
|
You're right. I saw the standard /usr/bin:/bin paths and assumed that this was sufficient to have pkgutil find the native tools if they were present but I went too fast.
So I think the path modification should rather be:
-$ENV{'PATH'} = '/bin:/usr/bin';
+$ENV{'PATH'} = '/usr/sbin:/bin:/usr/bin:/opt/csw/bin';
To answer your question: no I can't, smartos /usr partition is readonly and I am using a cloud environment where I don't have control on the OS. |
|
|
(0010563)
|
yann
|
2013-08-29 23:44
|
|
|
|
(0010567)
|
bonivart
|
2013-09-02 13:46
|
|
|
|
(0010600)
|
yann
|
2013-10-06 12:08
|
|
For me no problem so far since I installed this version (I installed a few days after your last message). |
|
|
(0010636)
|
yann
|
2013-11-09 19:00
|
|
Hi Peter,
Still no problem with this version, do you think you will release it shortly ?
Yann |
|
|
(0010639)
|
bonivart
|
2013-11-13 10:35
|
|
I forgot all about it, sorry. It has now been released. |
|