Skip to content

Commit 8074dbd

Browse files
author
Evan Lezar
committed
Merge branch 'set-ld-cache-path' into 'main'
Fix bug when running host ldconfig using glibc compiled with a non-standard prefix See merge request nvidia/container-toolkit/libnvidia-container!165
2 parents b859cbc + f1de053 commit 8074dbd

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

pkg/deb/changelog

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
libnvidia-container (1.10.0~rc.2-1) experimental; urgency=medium
22

33
* Bump libtirpc to 1.3.2
4+
* Fix bug when running host ldconfig using glibc compiled with a non-standard prefix
45

5-
-- NVIDIA CORPORATION <[email protected]> Tue, 10 May 2022 16:04:54 +0200
6+
-- NVIDIA CORPORATION <[email protected]> Wed, 11 May 2022 07:21:08 +0200
67

78
libnvidia-container (1.10.0~rc.1-1) experimental; urgency=medium
89

pkg/rpm/SPECS/libnvidia-container.spec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,9 @@ This package contains command-line tools that facilitate using the library.
9999
%{_bindir}/*
100100

101101
%changelog
102-
* Tue May 10 2022 NVIDIA CORPORATION <[email protected]> 1.10.0-0.1.rc.2
102+
* Wed May 11 2022 NVIDIA CORPORATION <[email protected]> 1.10.0-0.1.rc.2
103103
- Bump libtirpc to 1.3.2
104+
- Fix bug when running host ldconfig using glibc compiled with a non-standard prefix
104105

105106
* Thu Mar 24 2022 NVIDIA CORPORATION <[email protected]> 1.10.0-0.1.rc.1
106107
- [WSL2] Fix segmentation fault on WSL2s system with no adpaters present (e.g. /dev/dxg missing)

src/nvc_ldcache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ nvc_ldcache_update(struct nvc_context *ctx, const struct nvc_container *cnt)
359359
if (validate_args(ctx, cnt != NULL) < 0)
360360
return (-1);
361361

362-
argv = (char * []){cnt->cfg.ldconfig, cnt->cfg.libs_dir, cnt->cfg.libs32_dir, NULL};
362+
argv = (char * []){cnt->cfg.ldconfig, "-f", "/etc/ld.so.conf", "-C", "/etc/ld.so.cache", cnt->cfg.libs_dir, cnt->cfg.libs32_dir, NULL};
363363
if (*argv[0] == '@') {
364364
/*
365365
* We treat this path specially to be relative to the host filesystem.

0 commit comments

Comments
 (0)