updatecenter2
  1. updatecenter2
  2. UPDATECENTER2-2184

pkg wrapper script may need to set LIBPATH for AIX

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: B52
    • Fix Version/s: B55
    • Component/s: other
    • Labels:
      None

      Description

      The pkg script sets LD_LIBRARY_PATH for non-mac unix. We may need to use other variables for other platforms:

      AIX: LIBPATH
      HPUX: SHLIB_PATH (http://docs.hp.com/en/B2355-90654/ch04s07.html#s2-where-to-put)

        Activity

        Hide
        Joe Di Pol added a comment -

        The pkg wrapper sets LD_LIBRARY_PATH and that seems to be sufficient on AIX 6.1. I verified this by not setting LD_LIBRARY_PATH in the pkg wrapper which caused it to fail, yet everything works when it is set.

        Show
        Joe Di Pol added a comment - The pkg wrapper sets LD_LIBRARY_PATH and that seems to be sufficient on AIX 6.1. I verified this by not setting LD_LIBRARY_PATH in the pkg wrapper which caused it to fail, yet everything works when it is set.
        Hide
        Joe Di Pol added a comment -

        It appears as though things work fine using LD_LIBRARY_PATH, so there does not appear to be a need to set LIBPATH on AIX. Closing.

        Show
        Joe Di Pol added a comment - It appears as though things work fine using LD_LIBRARY_PATH, so there does not appear to be a need to set LIBPATH on AIX. Closing.
        Hide
        Joe Di Pol added a comment -

        OK, if you have LIBPATH set in your environment to anything, then pkg fails because it can find the .so's we need. If you unset LIBPATH, it works. So the script needs to either unset LIBPATH, or set it to match LD_LIBRARY_PATH.

        Show
        Joe Di Pol added a comment - OK, if you have LIBPATH set in your environment to anything, then pkg fails because it can find the .so's we need. If you unset LIBPATH, it works. So the script needs to either unset LIBPATH, or set it to match LD_LIBRARY_PATH.
        Hide
        Joe Di Pol added a comment -

        Fix for AIX in 3.1.5

        Project:    updatecenter2
        Repository: svn
        Revision:   2842
        Author:     jfdipol
        Date:       2011-10-13 23:21:27 UTC
        Link:       
        
        Log Message:
        ------------
        Fix 2184 pkg wrapper script may need to set LIBPATH for AIX
        
        On AIX set LIBPATH to match LD_LIBRARY_PATH. This fixes the case where
        users could have failures if they had LIBPATH set to something else.
        
        
        
        
        Revisions:
        ----------
        2842
        
        
        Modified Paths:
        ---------------
        branches/2.3sustaining/scripts/pkg.sh
        branches/2.3sustaining/scripts/updatetool.sh
        
        
        Diffs:
        ------
        Index: branches/2.3sustaining/scripts/updatetool.sh
        ===================================================================
        --- branches/2.3sustaining/scripts/updatetool.sh	(revision 2841)
        +++ branches/2.3sustaining/scripts/updatetool.sh	(revision 2842)
        @@ -257,6 +257,11 @@
             unset LD_LIBRARY_PATH_64
             LD_LIBRARY_PATH=$my_python/lib
             export LD_LIBRARY_PATH
        +    if [ $os_name = "AIX" ]; then
        +        # Set LIBPATH on AIX (bug UPDATECENTER2-2184)
        +        LIBPATH=$LD_LIBRARY_PATH
        +        export LIBPATH
        +    fi
         
             # Issue 1195
             # Disable GTK IIIM Switcher Menu on Solaris/Linux since we don't handle it
        Index: branches/2.3sustaining/scripts/pkg.sh
        ===================================================================
        --- branches/2.3sustaining/scripts/pkg.sh	(revision 2841)
        +++ branches/2.3sustaining/scripts/pkg.sh	(revision 2842)
        @@ -217,6 +217,12 @@
             unset LD_LIBRARY_PATH_64
             LD_LIBRARY_PATH=$my_python/lib
             export LD_LIBRARY_PATH
        +
        +    if [ $os_name = "AIX" ]; then
        +        # Set LIBPATH on AIX (bug UPDATECENTER2-2184)
        +        LIBPATH=$LD_LIBRARY_PATH
        +        export LIBPATH
        +    fi
         fi
         
         "$my_python/bin/python" "$my_home/client.py" "$@"
        
        
        
        
        Show
        Joe Di Pol added a comment - Fix for AIX in 3.1.5 Project: updatecenter2 Repository: svn Revision: 2842 Author: jfdipol Date: 2011-10-13 23:21:27 UTC Link: Log Message: ------------ Fix 2184 pkg wrapper script may need to set LIBPATH for AIX On AIX set LIBPATH to match LD_LIBRARY_PATH. This fixes the case where users could have failures if they had LIBPATH set to something else. Revisions: ---------- 2842 Modified Paths: --------------- branches/2.3sustaining/scripts/pkg.sh branches/2.3sustaining/scripts/updatetool.sh Diffs: ------ Index: branches/2.3sustaining/scripts/updatetool.sh =================================================================== --- branches/2.3sustaining/scripts/updatetool.sh (revision 2841) +++ branches/2.3sustaining/scripts/updatetool.sh (revision 2842) @@ -257,6 +257,11 @@ unset LD_LIBRARY_PATH_64 LD_LIBRARY_PATH=$my_python/lib export LD_LIBRARY_PATH + if [ $os_name = "AIX" ]; then + # Set LIBPATH on AIX (bug UPDATECENTER2-2184) + LIBPATH=$LD_LIBRARY_PATH + export LIBPATH + fi # Issue 1195 # Disable GTK IIIM Switcher Menu on Solaris/Linux since we don't handle it Index: branches/2.3sustaining/scripts/pkg.sh =================================================================== --- branches/2.3sustaining/scripts/pkg.sh (revision 2841) +++ branches/2.3sustaining/scripts/pkg.sh (revision 2842) @@ -217,6 +217,12 @@ unset LD_LIBRARY_PATH_64 LD_LIBRARY_PATH=$my_python/lib export LD_LIBRARY_PATH + + if [ $os_name = "AIX" ]; then + # Set LIBPATH on AIX (bug UPDATECENTER2-2184) + LIBPATH=$LD_LIBRARY_PATH + export LIBPATH + fi fi "$my_python/bin/python" "$my_home/client.py" "$@"

          People

          • Assignee:
            Joe Di Pol
            Reporter:
            Joe Di Pol
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: