Uploaded image for project: 'Directory ApacheDS'
  1. Directory ApacheDS
  2. DIRSERVER-1454

Solaris Packing broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.5
    • 2.0.0-M1
    • installer-plugin
    • None
    • Solaris 10

    Description

      First off, both the x86 and the sparc package advertise themselves as x86 – which isn't too bad, since Solaris' packaging couldn't care less, but might be confusing to the careful admin who installs the package.

      Next, the pre-install script is broken on Solaris 10, since Solaris 10's ``id'' doesn't know either of the ``-u'' or ``-n'' switches. One could evade this by using /usr/bin/xpg4/id – but who guarantees that's installed?

      ``getent'' is always installed. Unless you managed to break the libc/Sun-Core installation. It should also work on all (Unix) platforms, so here's the patch:

      — preinstall 2009-12-23 04:51:32.000000000 +0100
      +++ preinstall0 2010-01-04 12:41:03.780839048 +0100
      @@ -20,7 +20,7 @@
      set -e

      1. Creating the apacheds user (only if needed)
        -USER=`eval "id -u -n apacheds 2>/dev/null || :"`
        +USER=`getent passwd apacheds | cut -d: -f1`
        if [ ! "Xapacheds" = "X$USER" ]
        then
        /usr/sbin/groupadd apacheds >/dev/null 2>&1 || :

      Attachments

        Activity

          People

            pamarcelot Pierre-Arnaud Marcelot
            i.galic Igor Galić
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: