Thread: pgadmin3 on OSX ... ALMOST out-of-the-box build; still need fixes --> perms on complete-bundle.sh & autostrip

hi all,

building w/ wxwidgets-255, now w/ DEBUG = OFF, but still w/ the Csomo patch, a
'standard' build of pgadmin-cvs HEAD as:

    cd /usr/ports/pgadmin3-cvs

    unsetenv CFLAGS CPPFLAGS CXX CXXFLAGS LDFLAGS LDDLFLAGS LD_PREBIND LC_ALL
    LANG LINGUAS
    setenv CPPFLAGS "-I/usr/local/ssl/include"
    setenv LDFLAGS "-L/usr/local/ssl/lib -lssl -lcrypto -L/usr/local/lib
    -lexpat -lintl -lgettextlib -lpng -ljpeg -ltiff -lz"

    sh bootstrap

    ./configure \
    --enable-appbundle \
    --enable-static \
    --disable-debug \
    --with-wx=/usr/local/wxWidgets-255 \
    --with-wx-config=wx-config \
    --with-pgsql=/usr/local/pgsql \
    --with-pgsql-include=/usr/local/pgsql/include

completes ok.

% make all

is fine too.

% sudo make install

however, fails ...

the problem is in pkg/mac/Makefile.in:

    @314
        @APPBUNDLE_TRUE@    ./complete-bundle.sh "$(bundledir)"

this will only execute if the perms on complete-bundle.sh are set to EXECUTE.

unfortunately, they're not:

% ls -al pkg/mac/complete-bundle.sh
    -rw-r--r--  1 devuser admin 1306 Apr 14 12:50
../pgadmin3-cvsORIG/pkg/mac/complete-bundle.sh

to fix either:
(a) change the perms of the file
        % chmod a+x complete-bundle.sh
        % ls -al pkg/mac/complete-bundle.sh
            -rwxr-xr-x  1 devuser admin 1306 Apr 12 00:36
pkg/mac/complete-bundle.sh
or,
(b) mod the Makefile
    ---        @APPBUNDLE_TRUE@    ./complete-bundle.sh "$(bundledir)"
    +++        @APPBUNDLE_TRUE@    /bin/sh ./complete-bundle.sh "$(bundledir)"

after making change (a), 'make install' runs/completes fine

% ls -al /usr/ports/pgadmin3-cvs/pgAdmin3.app/Contents/MacOS/pgAdmin3
    -rwxr-xr-x  1 devuser admin 108638440 Apr 14 16:07
/usr/ports/pgadmin3-cvs/pgAdmin3.app/Contents/MacOS/pgAdmin3

but, given the executable size, autostrip still doesn't look right

after,

% strip /usr/ports/pgadmin3-cvs/pgAdmin3.app/Contents/MacOS/pgAdmin3

it's better

% ls -al /usr/ports/pgadmin3-cvs/pgAdmin3.app/Contents/MacOS/pgAdmin3
    -rwxr-xr-x  1 devuser admin 9630924 Apr 13 22:14
/usr/ports/pgadmin3-cvs/pgAdmin3.app/Contents/MacOS/pgAdmin3

and the .app launches w/o error, and no crashes so far in operation ....


richard