Re: RFC: make fedora-release archful and add some provides

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

 



On Friday, December 14, 2018 2:33:36 PM EST Igor Gnatenko wrote:
> Hello folks,
> 
> for long time we have problem if you have some arch-specific
> BuildRequires, you still get one src.rpm from one of arches (not sure
> how koji chooses that one) which might not work for your architecture.
> 
> For example if you have following in spec:
> %ifarch %{ldc_arches}
> BuildRequires: ldc
> %endif
> 
> And the src.rpm is taken by koji from x86_64 (included in
> %{ldc_arches}), then you won't be able to run `dnf builddep foo`,
> because it will complain that ldc package is missing.
> 
> PROPOSAL:
> 1. make fedora-release archful
> 2. add Provides: system-architecture($arch) to fedora-release, where
> $arch is architecture name
> 3. use Requires: (foo if (system-architecture(x86_64) or
> system-architecture(i686))) in packages
> 
> What do you think? Any suggestions are welcome!
> 
> --
> -Igor Gnatenko

Really, I don't think that making what is a legitimate noarch package, such as 
fedora-release or generic-release (keep in mind this would affect both, and 
would be an extreme change affecting Remixes) is the way to go here. We can 
already test against architectures using `%ifarch`, and sure that's not clean 
when you're testing against a *range* of architectures, but it's definitely 
better than adding additional complexity to a noarch package.

If anything, perhaps a virtual package, as suggested by others in this thread, 
would be the way to go.

-- 
John M. Harris, Jr. <johnmh@xxxxxxxxxxxxx>
Splentity
https://splentity.com/

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [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