opera: fix build

This commit is contained in:
Nikolay Amiantov 2015-10-10 14:24:05 +03:00
parent 4c7ef76862
commit 70bb555368

View File

@ -50,8 +50,9 @@ stdenv.mkDerivation rec {
preFixup = preFixup =
'' ''
rm $out/bin/uninstall-opera
find $out/lib/opera -type f | while read f; do find $out/lib/opera -type f | while read f; do
type=$(readelf -h "$f" 2>/dev/null | grep 'Type:' | sed -e 's/ *Type: *\([A-Z]*\) (.*/\1/') type=$(readelf -h "$f" 2>/dev/null | sed -n 's/ *Type: *\([A-Z]*\).*/\1/p' || true)
if [ -z "$type" ]; then if [ -z "$type" ]; then
: :
elif [ $type == "EXEC" ]; then elif [ $type == "EXEC" ]; then