You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Pierre-Arnaud Marcelot (JIRA)" <ji...@apache.org> on 2010/01/04 18:31:56 UTC

[jira] Resolved: (DIRSERVER-1454) Solaris Packing broken

     [ https://issues.apache.org/jira/browse/DIRSERVER-1454?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pierre-Arnaud Marcelot resolved DIRSERVER-1454.
-----------------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0-RC1

It should be fixed now.

Thanks for the patch.

> Solaris Packing broken
> ----------------------
>
>                 Key: DIRSERVER-1454
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1454
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: installer-plugin
>    Affects Versions: 1.5.5
>         Environment: Solaris 10
>            Reporter: Igor Galić
>            Assignee: Pierre-Arnaud Marcelot
>             Fix For: 2.0.0-RC1
>
>
> 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
>  # 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 || :

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.