From 948dd76841dccde29e115ba92fd345fc23f0c635 Mon Sep 17 00:00:00 2001 From: aszlig Date: Wed, 31 Jan 2018 06:49:08 +0100 Subject: pkgs/santander: Update for Wine 3.0 The wine-no-unixfs.patch doesn't apply anymore, so we need to get a newer version of the patch now from http://achurch.org/patch-pile/, which is a bit different in that it adds --disable-unixfs as a flag to configure. We don't have autoreconfHook in nativeBuildInputs, so that flag will simply be ignored but unixfs will be disabled regardless because the flag in config.h.in is ENABLE_UNIXFS and it's not defined by default. The reason why I still added it to configureFlags is to prevent enabling it by accident if autoreconfHook should be part of the wine derivation in upstream . In addition to that I've made disabling getuid a bit more clear and with a comment about why we need to disable it. Signed-off-by: aszlig --- pkgs/aszlig/santander/default.nix | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'pkgs/aszlig/santander/default.nix') diff --git a/pkgs/aszlig/santander/default.nix b/pkgs/aszlig/santander/default.nix index a62bd39c..e529cf27 100644 --- a/pkgs/aszlig/santander/default.nix +++ b/pkgs/aszlig/santander/default.nix @@ -1,4 +1,6 @@ -{ stdenv, fetchurl, fetchgit, runCommand, p7zip, jq, wineMinimal, pcsclite }: +{ stdenv, fetchurl, fetchgit, fetchpatch, runCommand, p7zip, jq, wineMinimal +, pcsclite +}: let patchedWine = let @@ -19,12 +21,20 @@ let dlls/winscard/winscard.c ''; - patches = (drv.patches or []) ++ [ ./winscard.patch ]; + patches = (drv.patches or []) ++ [ + ./winscard.patch + (fetchpatch { + url = "http://achurch.org/patch-pile/wine/3.0/disable-unixfs.diff"; + sha256 = "1yj3walwalya9g9aajcp4iygh348npp9dmks66r9dvwbd3fa8wcb"; + }) + ]; - postPatch = (drv.postPatch or "") + '' - sed -i -e '/not owned by you/d' libs/wine/config.c - # Modified patch from https://bugs.winehq.org/show_bug.cgi?id=22450 - patch -p1 < "${./wine-no-unixfs.patch}" + configureFlags = (drv.configureFlags or []) ++ [ "--disable-unixfs" ]; + + postConfigure = (drv.postConfigure or "") + '' + # The wineprefix is within the Nix store, so let's ensure wine doesn't + # check the owner of the files: + sed -i -e '/HAVE_GETUID/d' include/config.h ''; }); -- cgit 1.4.1