Re: I cannot use %ifarch on a noarch package?

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

 



Hi!

On Thursday, 11 March 2021 at 11:15, Miro Hrončok wrote:
> Hello.
> 
> I wanted to ship the following snippet in python-hypothesis:
> 
> --------------------------------------------------
> %check
> %pytest -v -n auto \
>   -k "not test_registered_from_entrypoint" \
>   --ignore tests/codemods \
>   --ignore tests/dpcontracts \
>   --ignore tests/redis \
> %ifarch s390x
>   -k "not test_data_frames_with_timestamp_columns"
> %endif
> --------------------------------------------------
> 
> However, for some reason, the s390x part was not present on s390x. I've been
> banging my head on the desk for some time trying to figure out why it
> doesn't wok and apparently, it is because the package is noarch.
> 
> I've got around the problem by using:
> 
> %if "%{_arch}" == "s390x"
>   -k "not test_data_frames_with_timestamp_columns"
> %endif
> 
> Is that how it is supposed to work?

I think the solution is to make the main package archful and the python3
subpackage(s) noarch. That way you'll build (and run tests) on all arches.

Regards,
Dominik
-- 
Fedora   https://getfedora.org  |  RPM Fusion  http://rpmfusion.org
There should be a science of discontent. People need hard times and
oppression to develop psychic muscles.
        -- from "Collected Sayings of Muad'Dib" by the Princess Irulan
_______________________________________________
packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx
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/packaging@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux