summaryrefslogtreecommitdiffstats
path: root/recipes-containers/runc
diff options
context:
space:
mode:
authorDeepak Rathore <deeratho@cisco.com>2025-08-22 23:24:00 +0530
committerBruce Ashfield <bruce.ashfield@gmail.com>2025-09-03 21:11:36 -0400
commit8a9f976cf752585962fad0c7eb9508860bc8ca10 (patch)
tree6453bbb63f217f74d45f98d65dc588b9acda3f64 /recipes-containers/runc
parentb6f66722c1dba0ae48a5bc1be55b2db813fc75c3 (diff)
downloadmeta-virtualization-8a9f976cf752585962fad0c7eb9508860bc8ca10.tar.gz
runc-opencontainer: Fix typo in Makefile for static-pie option
runc-opencontainer build is failing with clang toolchain due to typo error for --static-pie option. Build Error Logs: | running x86_64-oe-linux-clang failed: exit status 1 | x86_64-oe-linux-clang: error: unknown argument '--static-pie'; did you mean '-static-pie'? | | make: *** [Makefile:69: static] Error 1 | ERROR: oe_runmake failed Fixed it by replacing --static-pie with -static-pie in LDFLAGS_STATIC. Signed-off-by: Deepak Rathore <deeratho@cisco.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-containers/runc')
-rw-r--r--recipes-containers/runc/files/0001-Makefile-fix-typo-in-LDFLAGS_STATIC.patch30
-rw-r--r--recipes-containers/runc/runc-opencontainers_git.bb1
2 files changed, 31 insertions, 0 deletions
diff --git a/recipes-containers/runc/files/0001-Makefile-fix-typo-in-LDFLAGS_STATIC.patch b/recipes-containers/runc/files/0001-Makefile-fix-typo-in-LDFLAGS_STATIC.patch
new file mode 100644
index 00000000..bfcfd533
--- /dev/null
+++ b/recipes-containers/runc/files/0001-Makefile-fix-typo-in-LDFLAGS_STATIC.patch
@@ -0,0 +1,30 @@
1From 6f20df5de2c6eb2343202c55e4a8b3d9a4feff10 Mon Sep 17 00:00:00 2001
2From: CrazyMax <crazy-max@users.noreply.github.com>
3Date: Tue, 14 Feb 2023 21:27:26 +0100
4Subject: [PATCH] Makefile: fix typo in LDFLAGS_STATIC
5
6Upstream-Status: Backport [https://github.com/opencontainers/runc/commit/2e44a2028077]
7
8Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
9(cherry picked from commit 2e44a2028077685cde67d7988f95ce66110be5ae)
10Signed-off-by: Deepak Rathore <deeratho@cisco.com>
11---
12 Makefile | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15Index: git/src/import/Makefile
16===================================================================
17--- git.orig/src/import/Makefile
18+++ git/src/import/Makefile
19@@ -36,7 +36,7 @@ LDFLAGS_STATIC := -extldflags -static
20 ifneq (,$(filter $(GOARCH),arm64 amd64))
21 ifeq (,$(findstring -race,$(EXTRA_FLAGS)))
22 GO_BUILDMODE_STATIC := -buildmode=pie
23- LDFLAGS_STATIC := -linkmode external -extldflags --static-pie
24+ LDFLAGS_STATIC := -linkmode external -extldflags -static-pie
25 endif
26 endif
27 # Enable static PIE binaries on supported platforms.
28--
292.42.0
30
diff --git a/recipes-containers/runc/runc-opencontainers_git.bb b/recipes-containers/runc/runc-opencontainers_git.bb
index 6eef2c8f..4c831502 100644
--- a/recipes-containers/runc/runc-opencontainers_git.bb
+++ b/recipes-containers/runc/runc-opencontainers_git.bb
@@ -4,6 +4,7 @@ SRCREV = "2c9f5602f0ba3d9da1c2596322dfc4e156844890"
4SRC_URI = " \ 4SRC_URI = " \
5 git://github.com/opencontainers/runc;branch=release-1.1;protocol=https \ 5 git://github.com/opencontainers/runc;branch=release-1.1;protocol=https \
6 file://0001-Makefile-respect-GOBUILDFLAGS-for-runc-and-remove-re.patch \ 6 file://0001-Makefile-respect-GOBUILDFLAGS-for-runc-and-remove-re.patch \
7 file://0001-Makefile-fix-typo-in-LDFLAGS_STATIC.patch \
7 " 8 "
8RUNC_VERSION = "1.1.14" 9RUNC_VERSION = "1.1.14"
9 10