Issue Details (XML | Word | Printable)

Key: CORE-5204
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Alexander Peshkov
Reporter: Adriano dos Santos Fernandes
Votes: 0
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
Firebird Core

Build the Linux code with --enable-binreloc and create an option in the installer to install in different locations than /opt/firebird

Created: 22/Apr/16 12:30 AM   Updated: 21/Nov/16 03:28 PM
Component/s: Installation
Affects Version/s: None
Fix Version/s: 3.0.2, 4.0 Alpha 1

QA Status: Cannot be tested


 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Alexander Peshkov added a comment - 22/Apr/16 08:45 AM
Adriano, want to make sure - do you plan to make changes in installer yourself or want me to do it?

Adriano dos Santos Fernandes added a comment - 22/Apr/16 10:22 AM
I was not planing to do it myself, at least not right now.

Adriano dos Santos Fernandes added a comment - 10/May/16 10:40 AM
Alex, it would be good to have options to:

- Set an instance name to put in init scripts

- Install just the embedded, without init scritps

Alexander Peshkov added a comment - 10/May/16 12:45 PM
Multi-instance support is probably good and useful thing, but I do not think it should be done this way, i.e. reinstalling with parameters or dialog options.
We must not forget about silent install that is used by most of distro-specific packages (if not all).
I.e. to support multiple instances I prefer a separate script controlling instances: create & drop support.

What about embedded install - well, why not.

Adriano dos Santos Fernandes added a comment - 10/May/16 12:54 PM
"create an option in the installer to install in different locations than /opt/firebird" with non-embedded installation will destroy previous installations (in other directories) init scripts...

Alexander Peshkov added a comment - 15/Sep/16 01:20 PM
Implemented -path option in installer script.

Install into non-default path is always treated as 'secondary' install with following limitations:
 - links to .h files in /usr/include and libraries in /usr/lib are not created in order not to overwrite primary firebird installation
 - init.d or xinetd startup files are created with a name posfixed with installation path (if one uses -path /usr/local/fb4 startup file is named firebird.usr_local_fb4)
 - services are disabled by default (i.e. user must start /etc/init.d service manually or enable xinetd service manually)

Adriano dos Santos Fernandes added a comment - 15/Sep/16 02:14 PM
Shouldn't --enable-binreloc be used by default?

Otherwise the install directory will be detected as FB_PREFIX (/opt/firebird).

Alexander Peshkov added a comment - 15/Sep/16 04:57 PM
By default - no, this can break distro specific builds when utilities go to /usr/bin, server - to /usr/sbin, etc.
But you are right - presence of binreloc should be detected and in absense of it switch -path should be disabled.

BTW, I've added this switch to snapshot build.

Alexander Peshkov added a comment - 21/Nov/16 03:28 PM
Added to install.sh switch -path to specify non-default install path