Menu

#1 Support for AIX

closed
None
5
2011-04-20
2010-09-16
Anonymous
No

AIX uses RPM v.3 so this utility is very helpfull.
To support v.3 line BUILDCMD=rpmbuild in rpmbuild.sh has to be changed to BUILDCMD="rpm -ba".

AIX command syntax is not 100% compatible with Linux, so all mkdir --parent has to be changed to mkdir -p.
Since mkdir -p is supported on Linux as well, I suggest that to use thus short syntax in future releases.

Other than that, scripts are working on AIX without any problem!

Discussion

  • eric gerbier

    eric gerbier - 2010-09-17

    is there any way to know (by script) if rpmrebuild is running on AIX ?

     
  • eric gerbier

    eric gerbier - 2010-09-17
    • assigned_to: nobody --> gerbier
    • milestone: --> Next_Release_(example)
     
  • Nobody/Anonymous

    I 've found solution for BUILDCMD that should work on any OS:

    if [ "$(rpm -q --queryformat "%{VERSION}" rpm)" \< "4.1" ]; then
    local BUILDCMD="rpm -bb"
    else
    local BUILDCMD=rpmbuild
    fi

     
  • eric gerbier

    eric gerbier - 2011-04-20
    • status: open --> closed
     
  • eric gerbier

    eric gerbier - 2011-04-20

    rpmrebuild 2.5 can now work without any changes on AIX.

    you will have to build a package with on AIX with : rpm -tb rpmrebuild-2.5.tar.gz
    and then install it with rpm -Uvh rpmrebuild-2.5-1.noarch.rpm

     

Anonymous
Anonymous

Add attachments
Cancel