Bug 1988128

Summary: Enable LTO build of skopeo for RHEL 9
Product: Red Hat Enterprise Linux 9 Reporter: Marek Polacek <mpolacek>
Component: skopeoAssignee: Jindrich Novy <jnovy>
Status: CLOSED ERRATA QA Contact: Yuhui Jiang <yujiang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: ddarrah, dmalcolm, jnovy, lsm5, pthomas, tsweeney, umohnani, ypu
Target Milestone: betaKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: skopeo-1.8.0-2.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-15 09:51:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Marek Polacek 2021-07-29 20:03:59 UTC
This package opts out of LTO:
 
    %global _lto_cflags %{nil}

But it doesn't say why.  It would be nice to investigate it and track the status of it, and potentially re-enable LTO if/when possible.  To that effect, I'm opening this BZ.  If you decide that LTO is not worth the effort for this package, feel free to close as WONTFIX.

Thanks!

See also:
  https://issues.redhat.com/browse/RHELPLAN-54371
  https://issues.redhat.com/browse/RHELBU-522

Comment 2 Lokesh Mandvekar 2021-07-30 16:05:18 UTC
Thanks Marek, let me give that a try. When I tried `-flto=auto` in Fedora sometime back, it refused to build (same for podman and buildah). And I never tried this in RHEL so far. I'll report back on this soon.

Comment 3 Jindrich Novy 2021-07-30 16:18:08 UTC
Marek, this is the context of why we can't enable LTO in RHEL9: https://bugzilla.redhat.com/show_bug.cgi?id=1904567 - feel free to escalate or comment there directly.

Comment 4 Dave Malcolm 2021-07-30 19:01:31 UTC
*** Bug 1988538 has been marked as a duplicate of this bug. ***

Comment 5 Jindrich Novy 2022-05-09 12:10:06 UTC
Seems it is fixed now - scratch build here: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=45162547

Comment 10 errata-xmlrpc 2022-11-15 09:51:13 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: skopeo security and bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:7955