[Backport 26.05] linuxPackages.evdi: 1.14.15 -> 1.15.1 (#565617)

This commit is contained in:
Pol Dellaiera
2026-09-29 12:05:43 +00:00
committed by GitHub
2 changed files with 17 additions and 7 deletions

View File

@@ -7,7 +7,6 @@
libdrm,
python3,
}:
let
python3WithLibs = python3.withPackages (
ps: with ps; [
@@ -17,19 +16,20 @@ let
in
stdenv.mkDerivation (finalAttrs: {
pname = "evdi";
version = "1.14.15";
version = "1.15.1";
src = fetchFromGitHub {
owner = "DisplayLink";
repo = "evdi";
tag = "v${finalAttrs.version}";
hash = "sha256-tms+UNws+oBmwLvDFaDSIa/bUdSpK+CADodbsip3tRg=";
hash = "sha256-3g6OETXJSf6AScJ2K9F67mPlh3Wpi20Yq+f+xe78p9Y=";
};
prePatch = ''
substituteInPlace module/Makefile \
--replace-fail '/etc/os-release' '/dev/null'
'';
patches = [
# Fix feature probes on kernels with allocation profiling enabled.
# Upstream: https://github.com/DisplayLink/evdi/pull/592
./fix-conftest-probes.patch
];
env.CFLAGS = toString [
"-Wno-error"

View File

@@ -0,0 +1,10 @@
--- a/module/conftest.sh
+++ b/module/conftest.sh
@@ -32,6 +32,7 @@
done
}
CFLAGS=$(requote "$@")
+CFLAGS="$CFLAGS '-DKBUILD_MODNAME=\"conftest\"' '-DKBUILD_BASENAME=\"conftest\"'"
WORKDIR="$(mktemp -d)"
trap 'rm -rf "$WORKDIR"' EXIT