fix building of opera, it is still killed

svn path=/nixpkgs/trunk/; revision=12928
This commit is contained in:
Marc Weber 2008-09-27 00:45:55 +00:00
parent 4f0a7f0d40
commit c4906848f4
2 changed files with 10 additions and 4 deletions

View File

@ -7,7 +7,9 @@ buildPhase() {
installPhase=installPhase installPhase=installPhase
installPhase() { installPhase() {
sed -i 's=/bin/pwd=pwd=' opera install.sh set -x
sed -i 's=/bin/pwd=pwd=' install.sh
# Note: the "no" is because the install scripts asks whether we # Note: the "no" is because the install scripts asks whether we
# want to install icons in some system-wide directories. # want to install icons in some system-wide directories.
echo no | ./install.sh --prefix=$out echo no | ./install.sh --prefix=$out
@ -23,12 +25,16 @@ installPhase() {
gcc=$(cat $NIX_GCC/nix-support/orig-gcc) gcc=$(cat $NIX_GCC/nix-support/orig-gcc)
rpath="$rpath:$libstdcpp5/lib$suf" rpath="$rpath:$libstdcpp5/lib$suf"
for i in $out/lib/opera/*/opera $out/lib/opera/*/operaplugin{wrapper,cleaner}; do for i in $out/lib/opera/*/opera $out/lib/opera/*/operaplugincleaner; do
[ -h "$i" ] && i=$(readline "$i")
echo "$i <<<<<<<<<<<<"
patchelf \ patchelf \
--set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \
--set-rpath "$rpath" \ --set-rpath "$rpath" \
"$i" "$i"
done done
# substitute pwd as late as possible so that the md5 checkusm check of opera passes
sed -i 's=/bin/pwd=pwd=' $out/bin/opera
} }
genericBuild genericBuild

View File

@ -6598,8 +6598,8 @@ let
}; };
opera = import ../applications/networking/browsers/opera { opera = import ../applications/networking/browsers/opera {
inherit fetchurl zlib glibc; inherit fetchurl zlib glibc stdenv;
stdenv = overrideGCC stdenv gcc40; # stdenv = overrideGCC stdenv gcc40;
inherit (xlibs) libX11 libSM libICE libXt libXext; inherit (xlibs) libX11 libSM libICE libXt libXext;
qt = qt3; qt = qt3;
#33motif = lesstif; #33motif = lesstif;