Issue 44015 - Different path to PackageMaker
Summary: Different path to PackageMaker
Status: CLOSED FIXED
Alias: None
Product: Installation
Classification: Application
Component: code (show other issues)
Version: current
Hardware: All Mac OS X, all
: P4 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: pavel
QA Contact: issues@installation
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-03 19:23 UTC by pavel
Modified: 2005-03-31 19:06 UTC (History)
2 users (show)

See Also:
Issue Type: PATCH
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description pavel 2005-03-03 19:23:14 UTC
Hi,

PackageMaker is in /Developer/Applications/Utilities/ instead of
/Developer/Applications/

diff -ur epm-3.7.orig/osx.c epm-3.7/osx.c
--- epm-3.7.orig/osx.c	2005-02-11 22:18:57.000000000 +0100
+++ epm-3.7/osx.c	2005-02-11 22:19:15.000000000 +0100
@@ -373,7 +373,7 @@
   else
     snprintf(filename, sizeof(filename), "%s/%s", current, directory);
 
-  run_command(NULL, "/Developer/Applications/PackageMaker.app/"
+  run_command(NULL, "/Developer/Applications/Utilities/PackageMaker.app/"
                     "Contents/MacOS/PackageMaker -build "
 		    "-p %s/%s.pkg -f %s/Package -r %s/Resources -d %s/%s-desc.plist -i
%s/%s-info.plist",
 	      filename, prodname, filename, filename, filename, prodname, filename,
prodname);
Comment 1 pavel 2005-03-03 19:33:03 UTC
.
Comment 2 pavel 2005-03-06 13:59:15 UTC
On older systems, it is in the old path but as we do not compile on these old
systems anyway (because of gcc/XCode requirements), we will use this patch.

New versions of epm already check for PackageMaker in both locations:

static const char * const pm_paths[] =	/* Paths to PackageMaker program */
		{
		  "/Developer/Applications/PackageMaker.app",
		  "/Developer/Applications/Utilities/PackageMaker.app",
		  NULL
		};

but this would make epm patch unnecessary complicated. I'll leave this to
volunteers ;-)

Patch applied in pj22.
Comment 3 pavel 2005-03-07 19:47:03 UTC
Verified in my local build.
Comment 4 pavel 2005-03-31 19:06:43 UTC
.