Merge pull request #47444 from dtzWill/fix/patchelf-chrome-virtualbox-and-treewide

google-chrome, treewide: fix patchelf usages to not crash constantly, patchelf as native
This commit is contained in:
Will Dietz 2018-09-28 14:25:05 -05:00 committed by GitHub
commit 3f0ae25538
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
21 changed files with 27 additions and 23 deletions

View File

@ -26,7 +26,7 @@ with stdenv; lib.makeOverridable mkDerivation rec {
''; '';
}; };
buildInputs = [ makeWrapper patchelf p7zip unzip ]; nativeBuildInputs = [ makeWrapper patchelf p7zip unzip ];
patchPhase = '' patchPhase = ''
get_file_size() { get_file_size() {

View File

@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
sha256 = "1wp22wm7smlsb25x0cck4p660cycfczxj381930crd1qrf68mw4h"; sha256 = "1wp22wm7smlsb25x0cck4p660cycfczxj381930crd1qrf68mw4h";
}; };
buildInputs = [ patchelf makeWrapper ]; nativeBuildInputs = [ patchelf makeWrapper ];
buildPhase = with xorg; '' buildPhase = with xorg; ''
patchelf --set-rpath "${stdenv.lib.makeLibraryPath [ libX11 libXext libXrender libXtst libXi ]}" ./jre/lib/amd64/xawt/libmawt.so patchelf --set-rpath "${stdenv.lib.makeLibraryPath [ libX11 libXext libXrender libXtst libXi ]}" ./jre/lib/amd64/xawt/libmawt.so

View File

@ -71,9 +71,8 @@ in stdenv.mkDerivation rec {
src = chromium.upstream-info.binary; src = chromium.upstream-info.binary;
nativeBuildInputs = [ patchelf makeWrapper ];
buildInputs = [ buildInputs = [
patchelf makeWrapper
# needed for GSETTINGS_SCHEMAS_PATH # needed for GSETTINGS_SCHEMAS_PATH
gsettings-desktop-schemas glib gtk gsettings-desktop-schemas glib gtk

View File

@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
sha256 = "0sbv742pzqd2cxn3kq10lfi16jah486i9kyrmi8l1rpb9fhyw2m1"; sha256 = "0sbv742pzqd2cxn3kq10lfi16jah486i9kyrmi8l1rpb9fhyw2m1";
}; };
buildInputs = [ patchelf rpmextract ]; nativeBuildInputs = [ patchelf rpmextract ];
libPath = libPath =
stdenv.lib.makeLibraryPath stdenv.lib.makeLibraryPath

View File

@ -22,7 +22,8 @@ stdenv.mkDerivation rec {
unpackPhase = '' unpackPhase = ''
ar p $src data.tar.xz | tar xJ ar p $src data.tar.xz | tar xJ
''; '';
buildInputs = [ binutils patchelf makeWrapper ]; nativeBuildInputs = [ patchelf makeWrapper ];
buildInputs = [ binutils ];
preFixup = with stdenv.lib; let preFixup = with stdenv.lib; let
lpath = makeLibraryPath [ lpath = makeLibraryPath [

View File

@ -57,7 +57,7 @@ in stdenv.mkDerivation {
sed -i 's/^Exec=.*/Exec=spideroak/' $out/share/applications/SpiderOakONE.desktop sed -i 's/^Exec=.*/Exec=spideroak/' $out/share/applications/SpiderOakONE.desktop
''; '';
buildInputs = [ patchelf makeWrapper ]; nativeBuildInputs = [ patchelf makeWrapper ];
meta = { meta = {
homepage = https://spideroak.com; homepage = https://spideroak.com;

View File

@ -12,7 +12,8 @@ stdenv.mkDerivation rec {
sha256 = "0slqbqv4y43wz6wnh72s4n540ssapah0d12mndi0c7xr04kf2v2d"; sha256 = "0slqbqv4y43wz6wnh72s4n540ssapah0d12mndi0c7xr04kf2v2d";
}; };
buildInputs = [ tcsh yap perl patchelf ]; nativeBuildInputs = [ patchelf ];
buildInputs = [ tcsh yap perl ];
installPhase = '' installPhase = ''
sharedir=$out/share/tptp sharedir=$out/share/tptp

View File

@ -32,12 +32,12 @@ in stdenv.mkDerivation {
outputs = [ "out" "modsrc" ]; outputs = [ "out" "modsrc" ];
nativeBuildInputs = [ pkgconfig which docbook_xsl docbook_xml_dtd_43 ]; nativeBuildInputs = [ pkgconfig which docbook_xsl docbook_xml_dtd_43 patchelfUnstable ];
buildInputs = buildInputs =
[ iasl dev86 libxslt libxml2 xproto libX11 libXext libXcursor libIDL [ iasl dev86 libxslt libxml2 xproto libX11 libXext libXcursor libIDL
libcap glib lvm2 alsaLib curl libvpx pam xorriso makeself perl libcap glib lvm2 alsaLib curl libvpx pam xorriso makeself perl
libXmu libpng patchelfUnstable python ] libXmu libpng python ]
++ optional javaBindings jdk ++ optional javaBindings jdk
++ optional pythonBindings python # Python is needed even when not building bindings ++ optional pythonBindings python # Python is needed even when not building bindings
++ optional pulseSupport libpulseaudio ++ optional pulseSupport libpulseaudio

View File

@ -36,7 +36,8 @@ stdenv.mkDerivation {
NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types -Wno-error=implicit-function-declaration"; NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types -Wno-error=implicit-function-declaration";
buildInputs = [ patchelf cdrkit makeWrapper dbus ] ++ kernel.moduleBuildDependencies; nativeBuildInputs = [ patchelf makeWrapper ];
buildInputs = [ cdrkit dbus ] ++ kernel.moduleBuildDependencies;
installPhase = '' installPhase = ''
mkdir -p $out mkdir -p $out

View File

@ -21,7 +21,7 @@ stdenv.mkDerivation {
sha256 = sha256; sha256 = sha256;
}; };
buildInputs = [ bzip2 patchelf ]; nativeBuildInputs = [ bzip2 patchelf ];
dontPatchELF = true; dontPatchELF = true;

View File

@ -10,7 +10,7 @@ let
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
inherit name src; inherit name src;
buildInputs = [ patchelf ]; nativeBuildInputs = [ patchelf ];
buildCommand = '' buildCommand = ''
# Unpack tarball # Unpack tarball

View File

@ -38,7 +38,8 @@ stdenv.mkDerivation rec {
sourceRoot = name; sourceRoot = name;
buildInputs = [ gmp ] ++ stdenv.lib.optional stdenv.isLinux patchelf; buildInputs = [ gmp ];
nativeBuildInputs = stdenv.lib.optional stdenv.isLinux patchelf;
makeFlags = [ "all-no-docs" ]; makeFlags = [ "all-no-docs" ];

View File

@ -15,7 +15,7 @@ stdenv.mkDerivation {
} }
else throw "platform ${stdenv.hostPlatform.system} not supported."; else throw "platform ${stdenv.hostPlatform.system} not supported.";
buildInputs = [ patchelf boehmgc gnused makeWrapper ]; nativeBuildInputs = [ patchelf boehmgc gnused makeWrapper ];
buildCommand = '' buildCommand = ''
mkdir -p "$out" mkdir -p "$out"

View File

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
}) })
else throw "Architecture not supported"; else throw "Architecture not supported";
buildInputs = [ patchelf ]; nativeBuildInputs = [ patchelf ];
installPhase = '' installPhase = ''
RPATH=${libusb.out}/lib:${stdenv.cc.libc.out}/lib RPATH=${libusb.out}/lib:${stdenv.cc.libc.out}/lib

View File

@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
sha256 = "0jmc1cmdz1rcvqc9ilzib1kilpwap6v0d331l6q53wsibdzsz3ss"; sha256 = "0jmc1cmdz1rcvqc9ilzib1kilpwap6v0d331l6q53wsibdzsz3ss";
}; };
buildInputs = [ pkgs.unzip patchelf makeWrapper]; nativeBuildInputs = [ pkgs.unzip patchelf makeWrapper];
installPhase = let installPhase = let
gameDir = "$out/openarena-$version"; gameDir = "$out/openarena-$version";

View File

@ -22,7 +22,7 @@ stdenv.mkDerivation {
inherit (config.planetary_annihilation) url sha256; inherit (config.planetary_annihilation) url sha256;
}; };
buildInputs = [ patchelf makeWrapper ]; nativeBuildInputs = [ patchelf makeWrapper ];
installPhase = '' installPhase = ''
mkdir -p $out/{bin,lib} mkdir -p $out/{bin,lib}

View File

@ -5,7 +5,7 @@ let
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
inherit name src; inherit name src;
buildInputs = [ unzip patchelf ]; nativeBuildInputs = [ unzip patchelf ];
rtdeps = stdenv.lib.makeLibraryPath rtdeps = stdenv.lib.makeLibraryPath
[ xorg.libXxf86vm xorg.libXext openal ] [ xorg.libXxf86vm xorg.libXext openal ]

View File

@ -26,7 +26,8 @@ in stdenv.mkDerivation rec {
sha256 = "144b4xggbzjfq7ga5nza7nra2cf6qn63z5ls7ba1jybkx1vm369k"; sha256 = "144b4xggbzjfq7ga5nza7nra2cf6qn63z5ls7ba1jybkx1vm369k";
}; };
buildInputs = [ cups' gcc ghostscript glibc patchelf ]; nativeBuildInputs = [ patchelf ];
buildInputs = [ cups' gcc ghostscript glibc ];
inherit gcc ghostscript glibc; inherit gcc ghostscript glibc;
cups = cups'; cups = cups';

View File

@ -30,7 +30,7 @@ let plugins = {
version = "1.0.1"; version = "1.0.1";
pluginVersion = "2.1.2-1"; pluginVersion = "2.1.2-1";
buildInputs = [ patchelf rpm ]; nativeBuildInputs = [ patchelf rpm ];
src = fetchurl { src = fetchurl {
url = "https://download2.ebz.epson.net/iscan/plugin/gt-x770/rpm/x64/iscan-gt-x770-bundle-${version}.x64.rpm.tar.gz"; url = "https://download2.ebz.epson.net/iscan/plugin/gt-x770/rpm/x64/iscan-gt-x770-bundle-${version}.x64.rpm.tar.gz";
sha256 = "0m9c60rszzdvq1pqfzygzzrjycm1giy465lj29108j7hsnfcv56r"; sha256 = "0m9c60rszzdvq1pqfzygzzrjycm1giy465lj29108j7hsnfcv56r";

View File

@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
sha256 = "19ir6x4c01825hpx2wbbcxkk70ymwbw4j03v8b2xc13ayylwzx0r"; sha256 = "19ir6x4c01825hpx2wbbcxkk70ymwbw4j03v8b2xc13ayylwzx0r";
}; };
buildInputs = [ patchelf makeWrapper ]; nativeBuildInputs = [ patchelf makeWrapper ];
phases = [ "unpackPhase" "installPhase" ]; phases = [ "unpackPhase" "installPhase" ];
unpackCmd = '' unpackCmd = ''

View File

@ -16865,7 +16865,7 @@ with pkgs;
googleearth = callPackage ../applications/misc/googleearth { }; googleearth = callPackage ../applications/misc/googleearth { };
google-chrome = callPackage ../applications/networking/browsers/google-chrome { gconf = gnome2.GConf; }; google-chrome = callPackage ../applications/networking/browsers/google-chrome { gconf = gnome2.GConf; patchelf = patchelfUnstable; };
google-chrome-beta = google-chrome.override { chromium = chromiumBeta; channel = "beta"; }; google-chrome-beta = google-chrome.override { chromium = chromiumBeta; channel = "beta"; };