Hi,
recently I took thunderbird-enigmail to fix some CVEs + unbreak the package. With the help of two Fedora users I updated the package + improved the spec file (I hope :-).
Now I wanted to push out an update but taskotron complains:
dist.rpmdeplint FAILED for thunderbird-enigmail-2.1.3-4.fc29
results:
- arch: armhfp checkname: dist.rpmdeplint item: thunderbird-enigmail-2.1.3-4.fc29 outcome: FAILED scenario: armhfp type: koji_build
conflicting requests: nothing provides thunderbird >= 68.0 needed by
thunderbird-enigmail-2.1.3-4.fc29.noarch
While thunderbird-enigmail is a noarch package it requires thunderbird which is not available on all platforms.
Thunderbird excludes the following architectures:
# Disabled arm due to rhbz#1658940 ExcludeArch: armv7hl
# Disabled due to https://pagure.io/fedora-infrastructure/issue/7581 ExcludeArch: s390x
So my idea was just to mirror that in the thunderbird-enigmail spec file but that leads to the taskotron error above. (I did not find anything in enigmail's spec file which explains how to deal with that situation or why it was no issue previously.)
How can I resolve this issue? Can I ignore the error?
thank you Felix
On Tue, Nov 12, 2019 at 10:48 AM Felix Schwarz fschwarz@fedoraproject.org wrote:
Hi,
recently I took thunderbird-enigmail to fix some CVEs + unbreak the package. With the help of two Fedora users I updated the package + improved the spec file (I hope :-).
Now I wanted to push out an update but taskotron complains:
dist.rpmdeplint FAILED for thunderbird-enigmail-2.1.3-4.fc29
results:
- arch: armhfp checkname: dist.rpmdeplint item: thunderbird-enigmail-2.1.3-4.fc29 outcome: FAILED scenario: armhfp type: koji_build
conflicting requests: nothing provides thunderbird >= 68.0 needed by
thunderbird-enigmail-2.1.3-4.fc29.noarch
While thunderbird-enigmail is a noarch package it requires thunderbird which is not available on all platforms.
Thunderbird excludes the following architectures:
# Disabled arm due to rhbz#1658940 ExcludeArch: armv7hl
# Disabled due to https://pagure.io/fedora-infrastructure/issue/7581 ExcludeArch: s390x
So my idea was just to mirror that in the thunderbird-enigmail spec file but that leads to the taskotron error above. (I did not find anything in enigmail's spec file which explains how to deal with that situation or why it was no issue previously.)
How can I resolve this issue? Can I ignore the error?
There's a specific section about this issue in the Packaging Guidelines: https://docs.fedoraproject.org/en-US/packaging-guidelines/#_noarch_with_unpo...
So, in your case, I think you'd have to use something like this: BuildArch: noarch ExclusiveArch: x86_64 %{ix86} aarch64 ppc64le noarch
Fabio
thank you Felix _______________________________________________ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Hi Fabio,
Am 12.11.19 um 13:37 schrieb Fabio Valentini:
There's a specific section about this issue in the Packaging Guidelines: https://docs.fedoraproject.org/en-US/packaging-guidelines/#_noarch_with_unpo...
So, in your case, I think you'd have to use something like this: BuildArch: noarch ExclusiveArch: x86_64 %{ix86} aarch64 ppc64le noarch
I read this paragraph but it also says: "You can limit both the architectures used to build a noarch package, and the repositories to which the built noarch package will be added, by using either the ExcludeArch: or ExclusiveArch: tags:"
English is not my first language but I understood this as if I could use also "ExcludeArch" (which I did as it matches Thunderbird better).
Felix
On Tue, Nov 12, 2019 at 1:44 PM Felix Schwarz fschwarz@fedoraproject.org wrote:
Hi Fabio,
Am 12.11.19 um 13:37 schrieb Fabio Valentini:
There's a specific section about this issue in the Packaging Guidelines: https://docs.fedoraproject.org/en-US/packaging-guidelines/#_noarch_with_unpo...
So, in your case, I think you'd have to use something like this: BuildArch: noarch ExclusiveArch: x86_64 %{ix86} aarch64 ppc64le noarch
I read this paragraph but it also says: "You can limit both the architectures used to build a noarch package, and the repositories to which the built noarch package will be added, by using either the ExcludeArch: or ExclusiveArch: tags:"
English is not my first language but I understood this as if I could use also "ExcludeArch" (which I did as it matches Thunderbird better).
It's not my first language either ;)
I used ExclusiveArch in my example though, because you don't want to *exclude* noarch, but *include* it.
Though I think there are some bugs in how koji currently handles these things ...
Felix _______________________________________________ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Am 12.11.19 um 14:49 schrieb Fabio Valentini:
On Tue, Nov 12, 2019 at 1:44 PM Felix Schwarz wrote:
Am 12.11.19 um 13:37 schrieb Fabio Valentini:
There's a specific section about this issue in the Packaging Guidelines: https://docs.fedoraproject.org/en-US/packaging-guidelines/#_noarch_with_unpo...
So, in your case, I think you'd have to use something like this: BuildArch: noarch ExclusiveArch: x86_64 %{ix86} aarch64 ppc64le noarch
I read this paragraph but it also says: "You can limit both the architectures used to build a noarch package, and the repositories to which the built noarch package will be added, by using either the ExcludeArch: or ExclusiveArch: tags:"
English is not my first language but I understood this as if I could use also "ExcludeArch" (which I did as it matches Thunderbird better).
It's not my first language either ;)
I used ExclusiveArch in my example though, because you don't want to *exclude* noarch, but *include* it.
I'm sorry but I still don't get it.
Currently I have these lines in thunderbird-enigmail's .spec file: ,--------------------------------- BuildArch: noarch # Thunderbird is not available on all supported platforms ExcludeArch: armv7hl ExcludeArch: s390x `---------------------------------
To me that means: Package can be built with "noarch" but should not be available on "armv7hl"/"s390x".
1) How do I exclude "noarch" here? 2) How is "ExclusiveArch" better? Do I really have to list all "other" Fedora architectures (as "ExclusiveArch" requires)?
Especially given the text in the packaging guidelines I'd expect that both approaches should work.
Felix
Felix Schwarz wrote:
Currently I have these lines in thunderbird-enigmail's .spec file: ,--------------------------------- BuildArch: noarch # Thunderbird is not available on all supported platforms ExcludeArch: armv7hl ExcludeArch: s390x `---------------------------------
That should be good.
But the thing is, ExcludeArch on top of BuildArch: noarch is a bit of a hack, it is not really processed by RPM, but only by the tooling on top of it (e.g., Koji will not use those architectures to build the RPM, and the tools that compose the repositories will not include the RPM on the excluded architectures). It looks like Taskotron does not know about this, so this needs to be fixed in Taskotron. (Taskotron needs to also do this ExcludeArch processing. This has to be done in Taskotron, RPM cannot do more than propagate the information from the specfile into the noarch package.)
Kevin Kofler
Am 13.11.19 um 00:52 schrieb Kevin Kofler:
Felix Schwarz wrote:
Currently I have these lines in thunderbird-enigmail's .spec file: ,--------------------------------- BuildArch: noarch # Thunderbird is not available on all supported platforms ExcludeArch: armv7hl ExcludeArch: s390x `---------------------------------
That should be good.
Thank you for your help :-)
Not sure where I should file the bug - interestingly it seems as if only taskotron for F29 complains about this... So maybe this is just a F29 setup thing (and could be ignored as F29 will be EOL'd pretty soon).
Felix