directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pierre-Arnaud Marcelot (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DIRSERVER-1454) Solaris Packing broken
Date Mon, 04 Jan 2010 12:01:57 GMT

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

Pierre-Arnaud Marcelot updated DIRSERVER-1454:
----------------------------------------------

          Component/s: installer-plugin
    Affects Version/s: 1.5.5
             Assignee: Pierre-Arnaud Marcelot

> 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
>
> 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.


Mime
View raw message