diff --git a/pkgs/applications/networking/browsers/opera/builder.sh b/pkgs/applications/networking/browsers/opera/builder.sh index 1de82fdfa724..7b83f425557b 100644 --- a/pkgs/applications/networking/browsers/opera/builder.sh +++ b/pkgs/applications/networking/browsers/opera/builder.sh @@ -7,7 +7,9 @@ buildPhase() { 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 # want to install icons in some system-wide directories. echo no | ./install.sh --prefix=$out @@ -23,12 +25,16 @@ installPhase() { gcc=$(cat $NIX_GCC/nix-support/orig-gcc) 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 \ --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ --set-rpath "$rpath" \ "$i" 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 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d8da0ad10211..b223ee057d97 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6598,8 +6598,8 @@ let }; opera = import ../applications/networking/browsers/opera { - inherit fetchurl zlib glibc; - stdenv = overrideGCC stdenv gcc40; + inherit fetchurl zlib glibc stdenv; +# stdenv = overrideGCC stdenv gcc40; inherit (xlibs) libX11 libSM libICE libXt libXext; qt = qt3; #33motif = lesstif;