Gentoo Archives: gentoo-commits

From: "Jauhien Piatlicki (jauhien)" <jauhien@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/rust/files: rust-0.12.0-no-ldconfig.patch
Date: Thu, 31 Jul 2014 14:29:17
Message-Id: 20140731142911.8B85220035@flycatcher.gentoo.org
1 jauhien 14/07/31 14:29:09
2
3 Added: rust-0.12.0-no-ldconfig.patch
4 Log:
5 add live version, thanks to Heather Cynede for patch
6
7 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0xB2EFA1D4)
8
9 Revision Changes Path
10 1.1 dev-lang/rust/files/rust-0.12.0-no-ldconfig.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust/files/rust-0.12.0-no-ldconfig.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust/files/rust-0.12.0-no-ldconfig.patch?rev=1.1&content-type=text/plain
14
15 Index: rust-0.12.0-no-ldconfig.patch
16 ===================================================================
17 Remove ldconfig(1) execution to prevent the installation script from accessing
18 outside of a sandbox.
19
20 Author: Heather Cynede
21
22 diff --git a/src/etc/install.sh b/src/etc/install.sh
23 index c949743..7c3daa5 100644
24 --- a/src/etc/install.sh
25 +++ b/src/etc/install.sh
26 @@ -466,17 +466,6 @@ while read p; do
27 # The manifest lists all files to install
28 done < "${CFG_SRC_DIR}/${CFG_LIBDIR_RELATIVE}/rustlib/manifest.in"
29
30 -# Run ldconfig to make dynamic libraries available to the linker
31 -if [ "$CFG_OSTYPE" = "Linux" ]
32 - then
33 - ldconfig
34 - if [ $? -ne 0 ]
35 - then
36 - warn "failed to run ldconfig."
37 - warn "this may happen when not installing as root and may be fine"
38 - fi
39 -fi
40 -
41 # Sanity check: can we run the installed binaries?
42 #
43 # As with the verification above, make sure the right LD_LIBRARY_PATH-equivalent