Unable to perform osc build Error: build ('/usr/bin/build') command not found

Hello all , i am pretty new to osc. I am trying to create package for s390x distro. s390x is based on SLES 12.

When i perform osc build <project here> . i get following errors

Error: build ('/usr/bin/build') command not found
Install the build package from http://download.opensuse.org/repositories/openSUSE:/Tools/

I did visited the link above : http://download.opensuse.org/repositories/openSUSE:/Tools/SLE_12_SP3/s390x/

and downloaded all the RPMs in that directory. installed them still same error.

I am not really sure how to set it up. I also have OpenSUSE LEAP 42.3 on which there is no problem .

Hi and welcome to the Forum :slight_smile:
Is the SLE SDK repository enabled on your system, this is where the package ‘build’ resides;


Information for package build:
------------------------------
Repository     : SLE-SDK12-SP3-Updates            
Name           : build                            
Version        : 20171128-9.3.2                   
Arch           : noarch                           
Vendor         : SUSE LLC <https://www.suse.com/> 
Support Level  : unknown                          
Installed Size : 1.3 MiB                          
Installed      : No                               
Status         : not installed                    
Source package : build-20171128-9.3.2.src         
Summary        : A Script to Build SUSE Linux RPMs
Description    :                                  
    This package provides a script for building RPMs for SUSE Linux in a
    chroot environment.

You also need to ensure you run visudo and add your user to allow /usr/bin/build to run and also configure in your ~/.oscrc.


username ALL = NOPASSWD: /usr/bin/build

Hey i fixed it :).
i was looking at the wrong dir :frowning: : http://download.opensuse.org/repositories/openSUSE:/Tools/SLE_12_SP3/s390x/

it was supposed to be in : http://download.opensuse.org/repositories/openSUSE:/Tools/SLE_12_SP3/noarch/

now there is this error “s390x is not a valid arch for the repository openSUSE_Tumbleweed, use one of: i586, x86_64”

i guess i have to define build targets not sure . I don’t know how to define them

Hi
Via the WEB Ui -> Project -> Repositories and edit to add the build target.

Hi , these are the current build settings yet i am getting same error ( see the image below)

Link : https://s9.postimg.cc/c4v58h8dr/build.png

Hi
So what is your build host, I’m guessing your using osc locally? What command are you running?

i have 2 systems.

  1. opensuse LEAP : where it is working ( local system )
  2. IBM LinuxOne s390x : where i want it to work too ( remote server) . connected to it via ssh .

On Fri 18 May 2018 06:56:03 PM CDT, jayssj11 wrote:

malcolmlewis;2865547 Wrote:
> Hi
> So what is your build host, I’m guessing your using osc locally? What
> command are you running?

i have 2 systems.

  1. opensuse LEAP : where it is working ( local system )
  2. IBM LinuxOne s390x : where i want it to work too ( remote server) .
    connected to it via ssh .

Hi
So you trying to build on the openSUSE Leap system, if so you will need
to look at qemu/kvm, else is the s390 system have internet access? If
so, then install osc and configure oscrc as required.


Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
SLES 15 RC4 | GNOME Shell 3.26.2 | 4.12.14-18-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!