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?
That means the rpmbuild command is not available in the chroot that Koji
is creating for the build. You should run:
koji add-group-pkg dist-ncs-build build rpm-build
which causes the rpm-build package to be included as part of the "build"
comps group for the dist-ncs-build tag. The "build" comps group is what
is used to populate the chroots used to perform builds.
Thanks,
Radha.
*From:*buildsys-bounces@lists.fedoraproject.org
[mailto:buildsys-bounces@lists.fedoraproject.org] *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.
On Fri, Sep 6, 2013 at 4:33 PM, Radha Venkatesh (radvenka)
<radvenka(a)cisco.com <mailto:radvenka@cisco.com>> wrote:
Any inputs?
*From:*buildsys-bounces@lists.fedoraproject.org
<mailto:buildsys-bounces@lists.fedoraproject.org>
[mailto:buildsys-bounces@lists.fedoraproject.org
<mailto:buildsys-bounces@lists.fedoraproject.org>] *On Behalf Of *Radha
Venkatesh (radvenka)
*Sent:* Friday, September 06, 2013 10:49 AM
*To:* Discussion of Fedora build system
*Subject:* RE: ERROR: Could not find useradd in chroot, maybe the
install failed? in mock_output.log
I have done that already. For libk5crypto.so, I have imported
[kojiadmin@vos-cm20 root]$ koji import
/auto/tps/centos/6/x86_64/Packages/krb5-devel-1.10.3-10.el6.x86_
64.rpm
uploading
/auto/tps/centos/6/x86_64/Packages/krb5-devel-1.10.3-10.el6.x86_64.rpm... done
importing
/auto/tps/centos/6/x86_64/Packages/krb5-devel-1.10.3-10.el6.x86_64.rpm... done
[kojiadmin@vos-cm20 root]$ koji import
/auto/tps/centos/6/x86_64/Packages/krb5-libs-1.10.3-10.el6.x86_64.rpm
RPM already imported:
/auto/tps/centos/6/x86_64/Packages/krb5-libs-1.10.3-10.el6.x86_64.rpm
Skipping import
But the error still persists.
*From:*buildsys-bounces@lists.fedoraproject.org
<mailto:buildsys-bounces@lists.fedoraproject.org>
[mailto:buildsys-bounces@lists.fedoraproject.org
<mailto:buildsys-bounces@lists.fedoraproject.org>] *On Behalf Of *Vijay
N. Majagaonkar
*Sent:* Friday, September 06, 2013 10:24 AM
*To:* Discussion of Fedora build system
*Subject:* Re: ERROR: Could not find useradd in chroot, maybe the
install failed? in mock_output.log
DEBUG util.py:264: Error: Package: libcurl-7.19.7-35.el6.x86_64 (build)
DEBUG util.py:264: Requires: libk5crypto.so.3()(64bit)
yum provides '*/libk5crypto.so'
DEBUG util.py:264: Error: Package: openssl-1.0.0-27.el6.x86_64 (build)
DEBUG util.py:264: Requires: libk5crypto.so.3()(64bit)
DEBUG util.py:264: Error: Package: sed-4.2.1-10.el6.x86_64 (build)
DEBUG util.py:264: Requires: /sbin/install-info
yum provides '*/install-info'
Yum provides gives you package name and import that package into koji,
that should fix problem of missing package.
--
buildsys mailing list
buildsys(a)lists.fedoraproject.org <mailto:buildsys@lists.fedoraproject.org>
https://admin.fedoraproject.org/mailman/listinfo/buildsys
--
buildsys mailing list
buildsys(a)lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys