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

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: 28/Jul/15 07:20 PM
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

Environment: linux (some other posix platforms too)

QA Status: Cannot be tested

 Description  « Hide
Bug was reported initially by Kuznetsov Eugene in fbdevel.
In firebird2/builds/install/arch-specific/linux/misc/
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
  ./ --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
is more correct:

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


Scripts for AIX (firebird2/builds/install/arch-specific/aix/misc/,
FreeBSD (firebird2/builds/install/arch-specific/freebsd/,
HPUX SS (firebird2/builds/install/arch-specific/hpux/super/,
NetBSD (firebird2/builds/install/arch-specific/netbsd/,
Solaris (firebird2/builds/install/arch-specific/solaris/CS/
       & firebird2/builds/install/arch-specific/solaris/SS/
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   Change History   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.