Topic
2 replies Latest Post - ‏2009-08-03T22:07:01Z by SystemAdmin
SystemAdmin
SystemAdmin
706 Posts
ACCEPTED ANSWER

Pinned topic How to build ppc32 rpm on system i520?

‏2009-07-29T14:31:29Z |
I am using the RHAS 4.7 on Power System i520. When I want to build glibc rpm for ppc32, the rpmbuild command always use rpmmacros in /usr/lib/rpm/ppc64-linux/macros even if I run "ppc32 rpmuild". The macro %_lib is always lib64, so I fail to build glibc rpm for ppc32. Therefore, who can tell me how to build ppc32 rpm? Thank you very much.
Updated on 2009-08-03T22:07:01Z at 2009-08-03T22:07:01Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    706 Posts
    ACCEPTED ANSWER

    Re: How to build ppc32 rpm on system i520?

    ‏2009-08-03T22:01:46Z  in response to SystemAdmin
    Hello, there are a few things that might work for you.

    You can create an rpmmacros file which will tell rpm which %_target and %_libs to use

    vim ~/.rpmmacros
    %_target_cpu ppc
    %_libs lib

    Or you can pass them inline during the rpmbuild invocation:

    rpmbuild --define='_target_cpu ppc' --define='%_libs lib' <other arguments and directives>
    • SystemAdmin
      SystemAdmin
      706 Posts
      ACCEPTED ANSWER

      Re: How to build ppc32 rpm on system i520?

      ‏2009-08-03T22:07:01Z  in response to SystemAdmin
      The rpmbuild invocation should be the following:
      rpmbuild --define='%_target_cpu ppc' --define='%_libs lib' <other arguments and directives>