Re: Koji build failure: noarch vs. arch?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 14 Feb 2015 00:45:50 +0900
Mamoru TASAKA <mtasaka@xxxxxxxxxxxxxxxxx> wrote:

> Note that this fails on "buildSRPMFromSCM", i.e. when creating srpm,
> and not on "buildArch" (armv7hl, i686, x86_64), where rpmbuild the
> newly created srpm is executed.
> 
> So when using mock, usually srpm is already there on your local disc.
> But on koji, first koji tries to "create srpm" from SCM (git
> repository), and when creating srpm, koji uses:
> 
> /usr/bin/rpmbuild -bs --target noarch --nodeps foo.spec
> 
> i.e. creating srpm is always done as noarch. Then after creating srpm,
> arch-dependent (sometimes independent) rpmbuild foo.src.rpm is
> executed.

This is not the case. Please see the earlier posts in this thread. ;) 

I think this might be a mock bug.

http://koji.fedoraproject.org/koji/taskinfo?taskID=8921617

% koji mock-config --task 8921617 | grep target
config_opts['target_arch'] = 'x86_64'

but yet: 

ENTER do(['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/csdp.spec'], chrootPath='/var/lib/mock/f23-build-2951435-454610/root'shell=FalseprintOutput=Falseenv={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\x1b]0;<mock-chroot>\x07<mock-chroot>"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'}gid=425user='mockbuild'timeout=86400logger=<mockbuild.trace_decorator.getLog object at 0x7fdce02535d0>uid=1000)
Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/csdp.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\x1b]0;<mock-chroot>\x07<mock-chroot>"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'} and shell False

Can you file a bug against mock and we can see if the mock maintainers
can track it down?

kevin

Attachment: pgp98Zu34XIJw.pgp
Description: OpenPGP digital signature

-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux