Red Hat Bugzilla – Bug 471602
try to build on ppc when ExcludeArch ppc
Last modified: 2013-01-09 23:55:38 EST
i try to build gstreamer-java for F-10. the spec file contains the lines:
# for ExcludeArch see bug: 468831
ExcludeArch: ppc, ppc64
but koji still try to build for ppc:
and of course this build fails.
why try to build on ppc?
and if i do a second "make build" the of course build without error:-(
your specfile also includes BuildArch: noarch, so koji made it a noarch build. noarch builds can be handled by any host.
If your noarch package cannot build an all the arches in the distro, then perhaps it isn't really noarch.
no it's not that easy. the question is:
what the noarch means?
- it should have to be run on any arch?
- it should have to be run _AND_ build on any arch?
this package is a pure java package which is noarch the the result gstreamer-java-1.0-1.fc10.noarch.rpm can be run on any arch,
BUT as there is a bug in #468831 in
java-1.6.0-openjdk on ppc it can't be compiled on ppc.
so if eg. there is a bug in python compiler or in the python interpreter on ppc then the python packages no longer noarch packages?
noarch means that it will build on any arc and the resulting build will function as intended on any arch.
you need to have patience and wait for the jdk bug to be fixed. Excluding an Arch makes you package no longer noarch as it doesnt function on some arches.
koji will build noarch packages on a random arch in the list for the build tag in Fedoras case one of ppc, ppc64, i386, or x86_64 the nature of noarch package means that it should build on any arch. A large portion of java packages are Arch specifc as they get aot-compiles into native objects.
If there was a bugin python that caused failure on one arch those python packages would need to wait for python to be fixed. you need to wait for java-1.6.0-openjdk to be fixed.
koji is working in the intended fashion.
i'm not agree with you, the only thing what can i do to try to change this rules on fedora-devel:-)
according to your definition:
- a noarch package can't contain ExcludeArch in it's spec file.
- if a package can build on i386, x86_64 then (even if it's not an arch dependent package) should have to be i386, x86_64 packages. or otherwise we've to wait may be years to be fixed the compiler or the runtime on ppc.
- and then an i386 package can be repackage as noarch!?
what will happened if more archs from secondary architectures (arm, ia64, s390, sparc) will be added to fedora's primary arch? then we've to wait for all bug in all arch independent language for a noarch packages?
imho: the definition of noarch should have to be:
- can be build and run on all arch except on the ExcludeArch's arch.
imho: the koji should have to work as:
all package should have to be build on it own arch and if it's noarch then it can be build on any buildhost if it's arch not among the ExcludeArch's arch.