diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/afterburn/afterburn-5.2.0.ebuild b/sdk_container/src/third_party/coreos-overlay/coreos-base/afterburn/afterburn-5.2.0-r1.ebuild similarity index 100% rename from sdk_container/src/third_party/coreos-overlay/coreos-base/afterburn/afterburn-5.2.0.ebuild rename to sdk_container/src/third_party/coreos-overlay/coreos-base/afterburn/afterburn-5.2.0-r1.ebuild diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/afterburn/afterburn-9999.ebuild b/sdk_container/src/third_party/coreos-overlay/coreos-base/afterburn/afterburn-9999.ebuild index e15fffc360..4c31c678a5 100644 --- a/sdk_container/src/third_party/coreos-overlay/coreos-base/afterburn/afterburn-9999.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/coreos-base/afterburn/afterburn-9999.ebuild @@ -224,6 +224,7 @@ PATCHES=( "${FILESDIR}"/0001-Revert-remove-cl-legacy-feature.patch "${FILESDIR}"/0002-util-cmdline-Handle-the-cmdline-flags-as-list-of-sup.patch "${FILESDIR}"/0003-encode-information-for-systemd-networkd-wait-online.patch + "${FILESDIR}"/0004-lto-thin.patch ) src_unpack() { diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/afterburn/files/0004-lto-thin.patch b/sdk_container/src/third_party/coreos-overlay/coreos-base/afterburn/files/0004-lto-thin.patch new file mode 100644 index 0000000000..723d7abda9 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/coreos-base/afterburn/files/0004-lto-thin.patch @@ -0,0 +1,29 @@ +From 28a17874ace612fa1c93f6cfb46b9f5982027833 Mon Sep 17 00:00:00 2001 +Message-Id: <28a17874ace612fa1c93f6cfb46b9f5982027833.1686823250.git.dpark@linux.microsoft.com> +From: Dongsu Park +Date: Thu, 15 Jun 2023 12:00:33 +0200 +Subject: [PATCH] Cargo: set LTO to false + +Set LTO to false (a.k.a. "thin-local") to avoid build failures +related to LLVM, especially with Rust 1.70.0+. + +--- + Cargo.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Cargo.toml b/Cargo.toml +index e5b3dc30..46bbda69 100644 +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -22,7 +22,7 @@ name = "afterburn" + path = "src/main.rs" + + [profile.release] +-lto = true ++lto = false + # We assume we're being delivered via e.g. RPM which supports split debuginfo + debug = true + +-- +2.34.1 +