git.iko.soy/typeable/nixpkgs
on master help sign in
fhs-env: symlink /usr/lib to libs for the main architecture
commit1b69894d744f855857df9ff1589d95da3af573db authorNikolay Amiantov <ab@fmap.me> dateTue 10 Nov 2015, 23:59 (11 years ago) parentd8c5f4d
2 files changed+7−6
pkgs/build-support/build-fhs-chrootenv/env.nix+6−3 pkgs/games/steam/chrootenv.nix+1−3
pkgs/build-support/build-fhs-chrootenv/env.nix+6−3
@@ -54,8 +54,8 @@ let
5454
5555 etcProfile = nixpkgs.writeText "profile" ''
5656 export PS1='${name}-chrootenv:\u@\h:\w\$ '
57− export LOCALE_ARCHIVE='/usr/lib${if isMultiBuild then "64" else ""}/locale/locale-archive'
58− export LD_LIBRARY_PATH=/run/opengl-driver/lib:/run/opengl-driver-32/lib:/lib:/lib64
57+ export LOCALE_ARCHIVE='/usr/lib/locale/locale-archive'
58+ export LD_LIBRARY_PATH='/run/opengl-driver/lib:/run/opengl-driver-32/lib:/usr/lib:/usr/lib32'
5959 export PATH='/usr/bin:/usr/sbin'
6060 ${profile}
6161 '';
@@ -129,7 +129,7 @@ let
129129 setupLibDirs_multi = ''
130130 mkdir -m0755 lib32
131131 mkdir -m0755 lib64
132− ln -s lib32 lib
132+ ln -s lib64 lib
133133
134134 # copy glibc stuff
135135 cp -rsHf ${staticUsrProfileTarget}/lib/32/* lib32/ && chmod u+w -R lib32/
@@ -149,6 +149,9 @@ let
149149 # copy gcc libs
150150 cp -rsHf ${chosenGcc.cc}/lib/* lib32/
151151 cp -rsHf ${chosenGcc.cc}/lib64/* lib64/
152+
153+ # symlink 32-bit ld-linux.so
154+ ln -s ${staticUsrProfileTarget}/lib/32/ld-linux.so.2 lib/
152155 '';
153156
154157 setupLibDirs = if isTargetBuild then setupLibDirs_target
pkgs/games/steam/chrootenv.nix+1−3
@@ -40,12 +40,10 @@ buildFHSUserEnv {
4040 ];
4141
4242 extraBuildCommands = ''
43− [ -d lib64 ] && mv lib64/steam lib
44−
4543 mkdir -p steamrt
4644
4745 ln -s ../lib64/steam-runtime steamrt/amd64
48− ln -s ../lib/steam-runtime steamrt/i386
46+ ln -s ../lib32/steam-runtime steamrt/i386
4947 '';
5048
5149 profile = ''