sgallagh added a new comment to an issue you are following:
``
BuildArch: x86_64
ExclusiveArch: noarch
I just tried this with one of my packages:
```
BuildError: No valid arches were found. tag ['x86_64', 'ppc64',
'ppc64le', 'aarch64'], exclusive ['noarch'], exclude []
```
Reversing them:
```
Building target platforms: noarch
Building for target noarch
Wrote: /builddir/build/SRPMS/ReviewBoard-2.5.16-1.el7.src.rpm
Child return code was: 0
ENTER ['do'](['bash', '--login', '-c',
'/usr/bin/rpmbuild -bb --target noarch --nodeps
/builddir/build/SPECS/ReviewBoard.spec'],
chrootPath='/var/lib/mock/epel7-build-9870529-784595/root'env={'TERM':
'vt100', 'SHELL': '/bin/bash', 'HOME':
'/builddir', 'HOSTNAME': 'mock', 'PATH':
'/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf
"\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot>
\\s-\\v\\$ ', 'LANG':
'en_US.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at
0x7f1532304f98>timeout=172800uid=1000gid=425user='mockbuild'nspawn_args=[]printOutput=False)
Executing command: ['bash', '--login', '-c',
'/usr/bin/rpmbuild -bb --target noarch --nodeps
/builddir/build/SPECS/ReviewBoard.spec'] with env {'TERM': 'vt100',
'SHELL': '/bin/bash', 'HOME': '/builddir',
'HOSTNAME': 'mock', 'PATH':
'/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf
"\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot>
\\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False
error: Architecture is not included: noarch
Building target platforms: noarch
Building for target noarch
Child return code was: 1
EXCEPTION: [Error()]
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 89,
in trace
result = func(*args, **kw)
File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 582, in do
raise exception.Error("Command failed. See logs for output.\n # %s" %
(command,), child.returncode)
mockbuild.exception.Error: Command failed. See logs for output.
# bash --login -c /usr/bin/rpmbuild -bb --target noarch --nodeps
/builddir/build/SPECS/ReviewBoard.spec
```
Is there a syntax error above, or is this feature broken?
Also, the problem for modularity is making sure a package that is built on a different
architecture ends up in the resultant repo for this one.
Let me give a hypothetical example: I want to create a module that will contain MyApp,
which is a python noarch application. It has one dependency, SomeLib. SomeLib is also a
noarch python package, but building it requires a utility that exists only on x86_64
systems.
In traditional Koji, the way noarch works is that as long as the SRPM that produces
SomeLib will build on at least one arch, we can be guaranteed that SomeLib will be
available in the buildroot when I want to build MyApp. However, in a modular world, I
would need both of these packages in my module metadata file (with a buildorder value that
ensures that SomeLib is built first). I want MyApp to be available on x86_64, aarch64 and
ppc64le systems, so I set those for the arches of this module.
In this case, my understanding is that Module Build Service will attempt to build SomeLib
individually on each arch and fail on the non-x86_64 ones, thus failing the module build.
What I'm looking for here is a guarantee that MBS will behave like Koji does with
regards to noarch packages when building a module.
``
To reply, visit the link below or just reply to this email
https://pagure.io/releng/issue/7017