AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only
  • 1.  Creating an RPM build environment

    Posted Mon July 03, 2006 05:22 PM

    Originally posted by: KentPerrier


    I am attempting to create some opensource packages with RPM. I have everything working until it tries to make the actual RPM. The problems appear when the process attempts to do the install to the buildroot, defined as BuildRoot: %{_builddir}/%{name}-root in my spec file. This variable is, for some reason, undefined.

    I am attempting to follow the instructions at http://www-128.ibm.com/developerworks/library/l-rpm1/ but that is not working well. Does anyone know of another tutorial/walk through on creating an RPM build environment in AIX 5.2 or greater, using rpm 3.0.5 that comes with AIX?

    To get this out of the way, I am not using the freeware available as a lot of it is older versions with know problems.

    Kent
    #AIX-Forum


  • 2.  Re: Creating an RPM build environment

    Posted Tue July 04, 2006 03:54 AM

    Originally posted by: SystemAdmin



    I have created rpms on aix 5.2. I am not using the _buildroot var. Excerpt from my specfile:

    Name: yourapp
    Buildroot: /var/tmp/%{name}-root

    J. Gann
    #AIX-Forum


  • 3.  Re: Creating an RPM build environment

    Posted Tue July 04, 2006 03:55 AM

    Originally posted by: SystemAdmin


    ... shoud read "_builddir var"
    #AIX-Forum


  • 4.  Re: Creating an RPM build environment

    Posted Wed July 05, 2006 08:48 AM

    Originally posted by: KentPerrier


    Thanks. It appears the my problems are bigger than just this. Then the build process is trying to install the packages to create the archive of the install it is ignoring the builddir all together and it is trying to install in the final location.

    Thanks for the pointers.
    #AIX-Forum