Subject Re: [firebird-support] firebird 1.5 + darwin/osx
Author John Bellardo

On Mar 21, 2004, at 10:52 AM, Julien TOUCHE wrote:

> i'm (also) testing compile on darwin (and make a port for darwinports)
> but have a few hurddles
> - install as non-root seems not possible:

As the installer stands right now, this is correct. It places files in
/Library/Frameworks and hence needs write permission there. It also
creates the firebird user and appropriate (for CS vs. SS) startup

> a way to differentiate server
> with his user, and client part, which (theoritically) could be
> installed
> with any user.

The framework itself can already be installed anywhere. It just needs
to be locatable by the dynamic linker and have the appropriate
permissions for some of its sub folders. The OS X documentation should
explain the framework search policy and tell you where the best place
to put it is. This should work with both CS and SS. If you want to
install a server you will still need root.

> - install as unix app instead of pkg
> => don't make a pkg, and have a "normal" make install, and i will take
> care of firebird user.

This is splitting hairs. It was my understanding that "installer" is
included with pure darwin distributions as well as with OS X. The .pkg
installer is first priority, as >90% of the people will use that.
Making a non .pkg installer is rather trivial using the existing
scripts. All it would have to do is:

0. call pre-install/pre-upgrade script with correct parameters
1. untar/unpax files to destination
2. untar resources directory to a temporary folder
3. call post-install/port-upgrade script with correct parameters

> - when installing
> installer -verbose -dumplog -pkg \
> `pwd`/../gen/firebird/Firebird-SS-1.5.pkg -target /
> installer[10027]: Installer Language: English
> installer: Error the package path specified was invalid:
> '/Users/touche/tmp/my-dports/firebird/work/firebird-
> gen/firebird/Firebird-SS-1.5.pkg'.
> make[2]: *** [install_classic] Error 1
> make[1]: *** [install] Error 2
> and
> $ ll
> /Users/touche/tmp/my-dports/firebird/work/firebird-
> gen/firebird/
> |grep pkg
> drwx------ 3 touche touche 102 Mar 20 23:58 Firebird-CS-1.5.pkg/
> what's the problem

That is a bug (copy/paste error) in the makefile that needs the
following patch (committed to HEAD, but not 1.5 yet):

--- 2 Dec 2003 21:57:59 -0000
+++ 16 Mar 2004 18:01:36 -0000
@@ -160,7 +160,7 @@

install_embedded install_classic:
installer -verbose -dumplog -pkg \
- `pwd`/$(ROOT)/gen/firebird/Firebird-SS-$(FB_INST_VERS).pkg -target /
+ `pwd`/$(ROOT)/gen/firebird/Firebird-CS-$(FB_INST_VERS).pkg -target /

darwin_installer_common: force