On Thu, Jul 4, 2024 at 5:42 AM Joe (Jun-Yan) Chen jychena@ambarella.com wrote:
Hi Michael & koji-devel team,
Thank you for your previous response. It was helpful, but I still have a specific requirement I'm trying to meet.
Is there a way we can customize/specify %optflags(i.e,$RPM_OPT_FLAGS) based on different tag in Koji? I wish to compile the same SRPM with different CPU acceleration on the same platform(Builder).
This value is determined by the content of the buildroot, so managing it is a matter of managing the build tag content.
RPM_OPT_FLAGS comes from the %{optflags} macro, so I think this is the relevant doc https://docs.pagure.org/koji/setting_rpm_macros/
Any guidance or suggestions would be appreciated.
Best Regards, Junyan CHEN
[image: Ambarella AI Envisioned] https://www.ambarella.com
*Junyan(Joe) CHEN*
Software Engineer | SDK Team
*Phone: *+86-021-60880608-265
*Email: *jychena@ambarella.com ypchang@ambarella.com
*From:* Michael McLean mikem@redhat.com *Sent:* Thursday, June 6, 2024 10:27 PM *To:* Koji development koji-devel@lists.fedorahosted.org *Cc:* Yu-Peng Chang ypchang@ambarella.com; Tomas Kopecek < tkopecek@redhat.com> *Subject:* [EXT] Re: Customizing '--target' Option for 'rpmbuild -bb' per Tag in Koji
Koji does not run rpmbuild directly. It runs mock.
Koji passes --target $arch to the mock command. The arch value is the arch that koji is currently building for. The list of arches to build for is primarily determined by the archlist for the build tag. E.g. `koji edit-tag --arches="arch1 arch2"`. Mock should be forwarding this target value through to rpmbuild.
On Thu, Jun 6, 2024 at 6:58 AM Joe (Jun-Yan) Chen jychena@ambarella.com wrote:
Hi koji-devel team,
I hope everything is going well with you.
Is there a way to customize the '--target' option for the 'rpmbuild -bb' command specifically per tag in Koji?
The 'mockbuild/backend.py' says 'rpmbuild_arch' is assigned to '--target'. I've tried tuning Mock's behavior per tag in Koji, but the available options seem insufficient. Also, I attempted to use "koji edit-tag cortex-a53 -x mock.forcearch='cortexa53'", but it affects multiple values, which is not desired.
Do you have any recommendations on how to achieve this more precisely?
Best Regards, Junyan CHEN
[image: Ambarella AI Envisioned] https://www.ambarella.com
*Junyan(Joe) CHEN*
Software Engineer | SDK Team
*Phone: *+86-021-60880608-265
*Email: *jychena@ambarella.com ypchang@ambarella.com
This email and attachments contain Ambarella Proprietary and/or Confidential Information and is intended solely for the use of the individual(s) to whom it is addressed. Any unauthorized review, use, disclosure, distribute, copy, or print is prohibited. If you are not an intended recipient, please contact the sender by reply email and destroy all copies of the original message. Thank you. -- _______________________________________________ koji-devel mailing list -- koji-devel@lists.fedorahosted.org To unsubscribe send an email to koji-devel-leave@lists.fedorahosted.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ https://urldefense.com/v3/__https://docs.fedoraproject.org/en-US/project/code-of-conduct/__;!!PeEy7nZLVv0!n2p2p00aa6sJ2Lh48rVqBvdSbbc-WmYbvqgGJKuWpFUIfO7IosqYc5SM7oZ1PALnQfavEwRS6yb13g$ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines https://urldefense.com/v3/__https://fedoraproject.org/wiki/Mailing_list_guidelines__;!!PeEy7nZLVv0!n2p2p00aa6sJ2Lh48rVqBvdSbbc-WmYbvqgGJKuWpFUIfO7IosqYc5SM7oZ1PALnQfavEwQeZSgwKA$ List Archives: https://lists.fedorahosted.org/archives/list/koji-devel@lists.fedorahosted.o... https://urldefense.com/v3/__https://lists.fedorahosted.org/archives/list/koji-devel@lists.fedorahosted.org__;!!PeEy7nZLVv0!n2p2p00aa6sJ2Lh48rVqBvdSbbc-WmYbvqgGJKuWpFUIfO7IosqYc5SM7oZ1PALnQfavEwTdN77KIw$ Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue https://urldefense.com/v3/__https://pagure.io/fedora-infrastructure/new_issue__;!!PeEy7nZLVv0!n2p2p00aa6sJ2Lh48rVqBvdSbbc-WmYbvqgGJKuWpFUIfO7IosqYc5SM7oZ1PALnQfavEwSl85d1Mw$
This EXTERNAL email has been scanned by Proofpoint Email Protect service.
koji-devel mailing list -- koji-devel@lists.fedorahosted.org To unsubscribe send an email to koji-devel-leave@lists.fedorahosted.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.fedorahosted.org/archives/list/koji-devel@lists.fedorahosted.o... Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue