Installation script ignores non-standard ports [CORE2919] #3302
Labels
affect-version: 1.5.4
affect-version: 1.5.5
affect-version: 1.5.6
affect-version: 2.0.0
affect-version: 2.0.1
affect-version: 2.0.2
affect-version: 2.0.3
affect-version: 2.0.4
affect-version: 2.0.5
affect-version: 2.1.0
affect-version: 2.1.1
affect-version: 2.1.2
affect-version: 2.1.3
affect-version: 2.5 Alpha 1
affect-version: 2.5 Beta 1
affect-version: 2.5 Beta 2
affect-version: 2.5 RC1
affect-version: 2.5 RC2
component: build issues / porting
component: installation
fix-version: 2.0.6
fix-version: 2.1.4
fix-version: 2.5 RC3
fix-version: 3.0 Alpha 1
priority: major
qa: cannot be tested
type: bug
Submitted by: @AlexPeshkoff
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:
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.
Commits: 717872d a558667 d73e847 c2f82be
The text was updated successfully, but these errors were encountered: