Re: Automating PackageMaker CLI with Preserve Resource Forks option
Re: Automating PackageMaker CLI with Preserve Resource Forks option
- Subject: Re: Automating PackageMaker CLI with Preserve Resource Forks option
- From: Asterio Rodrÿffffedguez <email@hidden>
- Date: Fri, 17 Feb 2006 00:48:03 -0600 (CST)
Hi Robert,
Have you tried to do it login as Root user ?.
Robert Simutis <email@hidden> escribió:
Hi all,
I'm attempting to add PackageMaker in our automated build system. As long as the package being built doesn't need to have resource forks preserved (without the -s option), then a simple call to "/Developer/Tools/packagemaker" will work as expected.
However, for packages that contain legacy components with resource forks, I need to specify the -s option. However, this complains by asserting:
"The package could not be created because of the following errors:
You do not have permissions to archive the following files in your root."
When running with the UI, PackageMaker gives a slightly more elaborate explanation:
"You do not have permissions to preserve resource forks.
Would you like to authorize as an administrator and continue the creation process?"
If I run the PackageMaker CLI using "sudo" in front of the command, it works, but prompts for a password. This is unusable for automated builds, and developers who build installers aren't going to want their builds to stop waiting for their password. Also, the users under which we all run all have admin access, so I'm not sure why PackageMaker fails unless I do a "sudo". I also get this message regardless of what my -f and -b roots are.
I've attempted to adjust the setuid bits set so that the PackageMaker binary executes as root/admin, but this doesn't seem to help, either. Are there any workarounds for this that people have found that don't include calling sudo -S (since this would require embedding passwords inside of shared scripts)?
(Incidentally, it's not clear why I can build packages with data forks and it doesn't need admin access, but to preserve resource forks, I need this access. Can anyone clear this up while we're at
it?)
Thanks!
-Rob Simutis
__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
Regístrate ya - http://correo.espanol.yahoo.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden