Installer script fails in some linux environments
-------------------------------------------------

                 Key: CORE-4842
                 URL: http://tracker.firebirdsql.org/browse/CORE-4842
             Project: Firebird Core
          Issue Type: Improvement
          Components: Installation
         Environment: debian stable
            Reporter: Mykhaylo Masyk


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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to