Results 1 to 5 of 5

Thread: How to build rpm binary from source rpm under HPC

Threaded View

  1. #4

    Re: How to build rpm binary from source rpm under HPC

    Quote Originally Posted by malcolmlewis View Post
    Use rpmbuild -b not the build command. You should also look at building
    as your user not root use. It will create a ~/rpmbuild directory with
    sources, spec file etc. Better yet, just download the complete src rpm
    (zypper with download only option) and copy this from the zypper cache
    diretory to your home directory.

    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SLES 15 | GNOME Shell 3.26.2 | 4.12.14-25.22-default
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!
    Yes, firstly, I use the rpmbuild to build the openblas lib with source code from SLES 15 HPC,
    But I got

    error: line 115: Unknown tag: %{hpc_init -c gnu }

    $ grep hpc_init *
    openblas.spec:%{hpc_init -c %{compiler_family} %{?c_f_ver:-v %{c_f_ver}} %{?ext:-e %{ext}}}

    So it is not feasible to build it with regular rpmbuild command,

    Then wen I grep the hpc_init in whole iso,

    found it was defined in the "build" script.

    So what's the steps to build hpc binary rpm ?

    Last edited by etzhao; 19-Oct-2018 at 02:31.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts