Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

[PATCH] Bugfix for for pkg/mac/complete-bundle.sh



Hi

The hardcoded "todo=../src/pgadmin3" in complete-bundle.sh is wrong. complete-bundle.sh adjusts the library path _inside_ the binary besides copying the lib into the bundle. If ../src/pgadmin3, instead of Contents/MacOS/pgAdmin3 is fixed up by complete-bundle.sh, the resulting bundle will not start on because it can't find the dynamically linked libs.

Please apply the following patch - it's already used for the nighty builds, and produces working
bundles.

Index: pkg/mac/complete-bundle.sh
===================================================================
--- pkg/mac/complete-bundle.sh  (revision 4597)
+++ pkg/mac/complete-bundle.sh  (working copy)
@@ -12,10 +12,10 @@
 cd "$bundle"
 fw_basepath=$(dirname $(pwd))
 todo=$(find ./ | \
-       xargs file | \
-       sed -n 's/^\([^:][^:]*\):[[:space:]]*Mach-O executable ppc$/\1/p' \
+       xargs --replace=line file 'line' | \
+ sed -n 's/^\([^:][^:]*\):[[:space:]]*Mach-O executable ppc$/\1/p' | \
+       xargs echo -n \
 )
-todo=../src/pgadmin3

 echo "Found executables: $todo"
 while test "$todo" != ""; do







Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group