1833776 Members
2071 Online
110063 Solutions
New Discussion

Packaging Patch Software

 
sixto
Advisor

Packaging Patch Software

Hi Gurus

when i am trying to create a depot file using
swpackage as normal user i am getting this error

ERROR: Cannot create the target depot
"/home/sixto/sixtowork/seem.depot": permission denied. You
are not authorized to create a new target depot on the local
host. (An authorized user must grant you authorization by
using the swacl command.)


rgds
Dsilva
11 REPLIES 11
Uday_S_Ankolekar
Honored Contributor

Re: Packaging Patch Software

Try /usr/sbin/swagentd -r to restart the swagent daemon

-USA..
Good Luck..
Pete Randall
Outstanding Contributor

Re: Packaging Patch Software

Dsilva,

When you say you're packaging patch software, do you mean that you're trying to accumulate several HP patches together? If so, the command you want is swcopy not swpackage. If not, disregard.


Pete

Pete
Steven E. Protter
Exalted Contributor

Re: Packaging Patch Software

attaching a good depot creation script.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
sixto
Advisor

Re: Packaging Patch Software

Hi Pete
Thanks for mail.

I am trying to create a depot file using swpackage.
but the problem is when i login as root it will create the depot, but as a normal user it will give the above error

Yes i want also to know a packaging of patch software is done in hp-ux using swpackage
if known put let me know the detail explaination or any example where i can get idea.

I have gone through manual also

cheers
dsilva
sixto
Advisor

Re: Packaging Patch Software

HI STeve

can be more specific

for i in PH*
do
sh $i
done

for i in PH*.depot
do
swcopy -s ${PWD}/$i \* @ ${1}
done

I could not follow the above script
I am very new to this packaging area

regards
dsilva

sixto
Advisor

Re: Packaging Patch Software

Hi uday

I tried to restart the daemon, but the same problem exists


regards
Jacko_3
Advisor

Re: Packaging Patch Software

Hi Dsilva,

Below are the step by step procedure to create a depot patch and/or using swpackage, i've been usign thsi method all along

1) First you need to un-shar the patch, for thsi exmaple I put my patch under "/lv_cut_patch/jacko" directory:

For example:
# cd /lv_cut_patch/jacko
# sh PHCO_28346
# sh PHCO_29043

the above will produce two sets of:
PHXX_#####.depot and
PHXX_#####.text

2) Next would be to swcopy them, for the above two patches i need to run these swcopy twice, you could use the script above for this mentioned above, but this is just an outline of the steps required:

swcopy -x distribution_target_directory=/lv_cut_patch/jacko/depot -x enforce_dependencies=false -s /lv_cut_patch/jacko/PHCO_28346.depot \*

swcopy -x distribution_target_directory=/lv_cut_patch/jacko/depot -x enforce_dependencies=false -s /lv_cut_patch/jacko/PHCO_29043.depot \*

The above will take the two patch PHCO_28346
and PHCO_29043, and put them in a depot under "/lv_cut_patch/jacko/depot"
you could simply change the above directory to the one in yoru system.

and you could omit
"-x enforce_dependencies=false" if you require the dependencies to be checked

3) And finally to package the patch into a tape you could use this command for example:

# swpackage -s /lv_cut_patch/jacko/depot -d /dev/rmt/0m -x target_type=tape

4) To install from the patch from tape, for example you codul use this command:

# swinstall -s /dev/rmt/0m

5) proceed with normal installation

May you find it useful.


cheers...

Elmar P. Kolkman
Honored Contributor

Re: Packaging Patch Software

Seems to me you need to give permissions to your user with swacl...
Every problem has at least one solution. Only some solutions are harder to find.

Re: Packaging Patch Software

Elmar has the correct solution. By default, SD-UX will only allow root to operate on the local host, even for creating depots in your home directory.
Use swacl to modify the ACL for the host level. This should allow you to create depots.

Hope this helps,

Bruce
Kevin Wright
Honored Contributor

Re: Packaging Patch Software

swacl -l root/host/depot and check permissions for any_other.
Denver Osborn
Honored Contributor

Re: Packaging Patch Software

If you don't have root access for this box... try adding this to your swcopy syntax.

swcopy -x run_as_superuser=false

This will do it as your user and the permisions will be based on your user and user's umask.

I'm not sure if it works the same w/ swpakage... would have to try it out.


# man 5 sd -> search for "run_as_superuser" for details

hope this helps,
-denver