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

Ambarella AI Envisioned

Junyan(Joe) CHEN

Software Engineer | SDK Team

Phone: +86-021-60880608-265

Email: jychena@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/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedorahosted.org/archives/list/koji-devel@lists.fedorahosted.org
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue