You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the minimum installed Debian GNU/Linux there is no directory /usr/lib/systemd/system and installer fails during execution function installSystemdCtrlFiles from the scripts/postinstall.sh. I suppose, it will fail in any other environment with systemd and without that particular directory. This can be improved by changing the first line of mentioned function into something like
if systemdPresent && `mkdir -p $SYSTEMD_DIR`
Installer also will fail on a systems without installed libtommath package. This is more tricky, of course. However I suppose, it might be possible to write a function checkForRequiredPackages using something similar to commented checkForRPMInstall in the end of the scripts/preinstall.sh. Combining it with that "very beautiful but unused"(c)AP 2005 :) detectDistro, we can write something like that:
checkForRequiredPackages()
{
if [ detectDistro == 'Debian' ]
then
checkForDebInstall libtommath0
elif [ detectDistro == 'RH' ]
checkForRPMInstall libtommath
then
elif [ detectDistro == 'SuSE' ]
then
checkForYastInstall libtommath
fi
}
In the case maintainer will find this approach usefulness at least some kind of warning about this non-standard (because it does not installed in the typical linux environment) package would be helpful.
Debian GNU/Linux there is using /lib/systemd/system instead missing on it /usr/lib/systemd/system.
/lib/systemd/system support is already present in firebird
If none of this 2 directories is present it should better be treated as broken systemd install
Submitted by: Mykhaylo Masyk (miwa)
In the minimum installed Debian GNU/Linux there is no directory /usr/lib/systemd/system and installer fails during execution function installSystemdCtrlFiles from the scripts/postinstall.sh. I suppose, it will fail in any other environment with systemd and without that particular directory. This can be improved by changing the first line of mentioned function into something like
if systemdPresent && `mkdir -p $SYSTEMD_DIR`
Installer also will fail on a systems without installed libtommath package. This is more tricky, of course. However I suppose, it might be possible to write a function checkForRequiredPackages using something similar to commented checkForRPMInstall in the end of the scripts/preinstall.sh. Combining it with that "very beautiful but unused"(c)AP 2005 :) detectDistro, we can write something like that:
checkForRequiredPackages()
{
if [ detectDistro == 'Debian' ]
then
checkForDebInstall libtommath0
elif [ detectDistro == 'RH' ]
checkForRPMInstall libtommath
then
elif [ detectDistro == 'SuSE' ]
then
checkForYastInstall libtommath
fi
}
In the case maintainer will find this approach usefulness at least some kind of warning about this non-standard (because it does not installed in the typical linux environment) package would be helpful.
Commits: 100d7f5 FirebirdSQL/fbt-repository@720a613
The text was updated successfully, but these errors were encountered: