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).

Any guidance or suggestions would be appreciated.


Best Regards,
Junyan CHEN

Ambarella AI Envisioned

Junyan(Joe) CHEN

Software Engineer | SDK Team

Phone: +86-021-60880608-265

Email: jychena@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

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

This EXTERNAL email has been scanned by Proofpoint Email Protect service.