Skip to content

Commit 2ad0b20

Browse files
committed
Add patch to fix nvidia-ctk
Backport of NVIDIA/nvidia-container-toolkit#732
1 parent d63b87e commit 2ad0b20

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

easybuild/easyconfigs/p/Podman/Podman-4.9.5.eb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ components = [
3434
('nvidia-container-toolkit', '1.15.0', {
3535
'sources': [{'source_urls': ['https://github.com/NVIDIA/nvidia-container-toolkit/archive/refs/tags/'],
3636
'download_filename': 'v%(version)s.tar.gz', 'filename': SOURCE_TAR_GZ}],
37-
'checksums': ['9ecf53ffce76404de6717745a55b82d40d3217b43c1ab27acc7d8b15238b6edc'],
37+
'patches': ['nvidia-container-toolkit-1.15.0_fix-ldflags.patch'],
38+
'checksums': ['9ecf53ffce76404de6717745a55b82d40d3217b43c1ab27acc7d8b15238b6edc',
39+
'709d8f6d72bf55a6feba9ca29bec95c43aa9e4be23d99a220b268b54b16724e6'],
3840
'buildopts': 'REVISION=release binaries',
3941
'install_cmd': 'cp -p nvidia-* %(installdir)s/bin',
4042
}),
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
From e2fe5915356a4b31c711874d18f5938502807c47 Mon Sep 17 00:00:00 2001
2+
From: Evan Lezar <[email protected]>
3+
Date: Thu, 10 Oct 2024 10:56:33 +0200
4+
Subject: [PATCH] Add -z,lazy to LDFLAGS
5+
6+
This fixes undefined symbol errors on platforms where -z,lazy may
7+
not be the default.
8+
9+
Signed-off-by: Evan Lezar <[email protected]>
10+
---
11+
Makefile | 2 +-
12+
1 file changed, 1 insertion(+), 1 deletion(-)
13+
14+
diff --git a/Makefile b/Makefile
15+
index 31a06d6f8..be9da4bc9 100644
16+
--- a/Makefile
17+
+++ b/Makefile
18+
@@ -60,7 +60,7 @@ endif
19+
cmds: $(CMD_TARGETS)
20+
21+
ifneq ($(shell uname),Darwin)
22+
-EXTLDFLAGS = -Wl,--export-dynamic -Wl,--unresolved-symbols=ignore-in-object-files
23+
+EXTLDFLAGS = -Wl,--export-dynamic -Wl,--unresolved-symbols=ignore-in-object-files -Wl,-z,lazy
24+
else
25+
EXTLDFLAGS = -Wl,-undefined,dynamic_lookup
26+
endif

0 commit comments

Comments
 (0)