Issue Details (XML | Word | Printable)

Key: CORE-2919
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Alexander Peshkov
Reporter: Alexander Peshkov
Votes: 0
Watchers: 0
Operations

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

Installation script ignores non-standard ports

Created: 11/Mar/10 02:36 PM   Updated: 04/Feb/11 11:59 AM
Component/s: Build Issues / Porting, Installation
Affects Version/s: 2.0.0, 1.5.4, 2.0.1, 2.0.2, 2.0.3, 1.5.5, 2.1.0, 2.0.4, 2.5 Alpha 1, 2.1.1, 2.0.5, 2.1.2, 2.5 Beta 1, 2.5 Beta 2, 2.1.3, 1.5.6, 2.5 RC1, 2.5 RC2
Fix Version/s: 2.0.6, 2.5 RC3, 2.1.4, 3.0 Alpha 1

Time Tracking:
Not Specified

Environment: linux (some other posix platforms too)

Planning Status: Unspecified


 Description  « Hide
Bug was reported initially by Kuznetsov Eugene in fbdevel.
---------------------------
In firebird2/builds/install/arch-specific/linux/misc/postinstall.sh.in
there are lines:

  # Update /etc/services
  newLine="gds_db 3050/tcp # Firebird SQL Database Remote Protocol"
  replaceLineInFile /etc/services "$newLine" "^gds_db"

In our case with configuration command
  ./autogen.sh --prefix=/usr/local/fb214_0308 --with-service-name=gds_db02 --with-service-port=3052
in /etc/inetd.conf we see
   gds_db02 stream tcp nowait.30000 firebird /usr/local/fb214_0308/bin/fb_inet_server fb_inet_s
but there is no string for gds_db02 in /etc/services.

Thus, --with-service-name/--with-service-port configure params are processed
incorrectly - non-standard service name isn't added in /etc/services
and non-standard port is ignored.

HPUX script for Classic
(firebird2/builds/install/arch-specific/hpux/classic/postInstall.sh.in)
is more correct:

    FileName=/etc/services
    newLine="@FB_SERVICE_NAME@ @FB_SERVICE_PORT@/tcp # Firebird SQL Database Remote Protocol"
        replaceLineInFile "$FileName" "$newLine" "^@FB_SERVICE_NAME@"


P.S.

Scripts for AIX (firebird2/builds/install/arch-specific/aix/misc/postinstall.sh.in),
FreeBSD (firebird2/builds/install/arch-specific/freebsd/install.sh.in),
HPUX SS (firebird2/builds/install/arch-specific/hpux/super/postInstall.sh.in),
NetBSD (firebird2/builds/install/arch-specific/netbsd/install.sh.in),
Solaris (firebird2/builds/install/arch-specific/solaris/CS/postinstall.in
       & firebird2/builds/install/arch-specific/solaris/SS/postinstall.in)
are also undergone.

FB 2.1 (B2_1_Release) is also concerned.
Maybe, FB 2.0 as well, but I didn't check.


 All   Comments   Work Log   Change History   Version Control   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Alexander Peshkov added a comment - 11/Mar/10 02:39 PM
For some platforms fixing is almost unreal - install files not always pass through autoconf-generated scripts, therefore replacing defaults to configured values is problematic.

Alexander Peshkov added a comment - 12/Mar/10 11:00 AM
Fixed for linux and some other platforms. Others require access to that paltforms to make sure it works. FreeBSD will be fixed at the same time with fixing install on it.