3
0
Fork 0
forked from mirrors/nixpkgs

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() {
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

View file

@ -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;