I have already done that

[root@vos-cm20 result]# rpm -qa | grep rpm
deltarpm-3.5-0.5.20090913git.el6.x86_64
rpm-4.8.0-32.el6.x86_64
rpm-python-4.8.0-32.el6.x86_64
redhat-rpm-config-9.0.3-42.el6.noarch
rpmdevtools-7.5-2.el6.noarch
rpm-build-4.8.0-32.el6.x86_64
python-deltarpm-3.5-0.5.20090913git.el6.x86_64
rpmlint-0.94-2.el6.noarch
eclipse-rpm-editor-0.5.0-2.el6.x86_64
rpm-libs-4.8.0-32.el6.x86_64

From: [email protected] 
[mailto:[email protected]] On Behalf Of Vijay N. 
Majagaonkar
Sent: Tuesday, September 10, 2013 12:43 PM
To: Discussion of Fedora build system
Subject: Re: FAILED: BuildError: error building package (arch x86_64), mock 
exited with status 127

>>bash: rpmbuild: command not found
rpmbuild binary is not available, install rpm-build package on your build 
machine


;),
im.viji

Every living being has a potential to become God.

On Tue, Sep 10, 2013 at 3:31 PM, Radha Venkatesh (radvenka) 
<[email protected]<mailto:[email protected]>> wrote:

Thank you. I resolved the below issue by using add-pkg and add-group-pkg.

Still peeling the onion. Finally I have got to the stage where this error 
occurs:

koji build --scratch dist-ncs 
packages/bzip2/1.0.5/7.el6_0/src/bzip2-1.0.5-7.el6_0.src.rpm
Uploading srpm: packages/bzip2/1.0.5/7.el6_0/src/bzip2-1.0.5-7.el6_0.src.rpm
[====================================] 100% 00:00:00 835.37 KiB   4.70 MiB/sec
Created task: 711
Task info: http://vos-cm20/koji/taskinfo?taskID=711
Watching tasks (this may be safely interrupted)...
711 build (dist-ncs, bzip2-1.0.5-7.el6_0.src.rpm): free
711 build (dist-ncs, bzip2-1.0.5-7.el6_0.src.rpm): free -> open (kojid-1)
  712 buildArch (bzip2-1.0.5-7.el6_0.src.rpm, x86_64): free
  712 buildArch (bzip2-1.0.5-7.el6_0.src.rpm, x86_64): free -> open (kojid-1)
  712 buildArch (bzip2-1.0.5-7.el6_0.src.rpm, x86_64): open (kojid-1) -> 
FAILED: BuildError: error building package (arch x86_64), mock exited with 
status 127; see root.log for more information
  0 free  1 open  0 done  1 failed
711 build (dist-ncs, bzip2-1.0.5-7.el6_0.src.rpm): open (kojid-1) -> FAILED: 
BuildError: error building package (arch x86_64), mock exited with status 127; 
see root.log for more information
  0 free  0 open  0 done  2 failed

711 build (dist-ncs, bzip2-1.0.5-7.el6_0.src.rpm) failed

mock_output looks like this

ERROR: 
Exception(/tmp/koji/tasks/712/712/local/work/cli-build/1378840333.7562611.yaBkQoIY/bzip2-1.0.5-7.el6_0.src.rpm)
 Config(dist-ncs-build-41-141) 0 minutes 1 seconds
INFO: Results and/or logs in: /var/lib/mock/dist-ncs-build-41-141/result
ERROR: Command failed. See logs for output.
# ['bash', '--login', '-c', 'rpmbuild -bs --target x86_64 --nodeps 
builddir/build/SPECS/bzip2.spec']

​​
Build.log looks as follows

Executing command: ['bash', '--login', '-c', 'rpmbuild -bs --target x86_64 
--nodeps builddir/build/SPECS/bzip2.spec'] with env {'LANG': 'en_US.UTF-8', 
'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 
'echo -n "<mock-chroot>"', 'HOME': '/builddir', 'PATH': 
'/usr/bin:/bin:/usr/sbin:/sbin'}
bash: rpmbuild: command not found
Child return code was: 127
EXCEPTION: Command failed. See logs for output.
# ['bash', '--login', '-c', 'rpmbuild -bs --target x86_64 --nodeps 
builddir/build/SPECS/bzip2.spec']
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/mockbuild/trace_decorator.py", line 
70, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.6/site-packages/mockbuild/util.py", line 359, in do
    raise mockbuild.exception.Error, ("Command failed. See logs for output.\n # 
%s" % (command,), child.returncode)
Error: Command failed. See logs for output.
# ['bash', '--login', '-c', 'rpmbuild -bs --target x86_64 --nodeps 
builddir/build/SPECS/bzip2.spec']
LEAVE do --> EXCEPTION RAISED

I have performed all the steps need to execute rpmbuild as a non-root user. 
Still nothing works.

Any suggestions?

Thanks,
Radha.



From: 
[email protected]<mailto:[email protected]>
 
[mailto:[email protected]<mailto:[email protected]>]
 On Behalf Of Vijay N. Majagaonkar
Sent: Friday, September 06, 2013 4:54 PM
To: Discussion of Fedora build system
Subject: Re: ERROR: Could not find useradd in chroot, maybe the install failed? 
in mock_output.log

Check where those package available for download, you can see under repo, 
pkglist file should contain those package.




--
buildsys mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/buildsys

Reply via email to