From a2f23245d9a8c03cfcd0be1754fd94db922a3db0 Mon Sep 17 00:00:00 2001 From: Yureka Date: Mon, 12 Jan 2026 01:38:30 +0100 Subject: [PATCH] Revert "onnxruntime,python3.pkgs.onnxruntime: fix runtime w/ glibc-2.42" The proper fix is included in 1.23.1, which will land in master with https://github.com/NixOS/nixpkgs/pull/450587, causing conflicts unless this is reverted. This reverts commit b706c583d0fb3e6fc86e37d49db06d09488cf55e. --- pkgs/by-name/on/onnxruntime/package.nix | 5 +---- pkgs/development/python-modules/onnxruntime/default.nix | 4 ---- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/pkgs/by-name/on/onnxruntime/package.nix b/pkgs/by-name/on/onnxruntime/package.nix index fc0ed95f7865..f376bd903847 100644 --- a/pkgs/by-name/on/onnxruntime/package.nix +++ b/pkgs/by-name/on/onnxruntime/package.nix @@ -264,10 +264,7 @@ effectiveStdenv.mkDerivation rec { (lib.cmakeBool "onnxruntime_USE_COMPOSABLE_KERNEL_CK_TILE" false) ]; - env = { - NIX_LDFLAGS = "-z,noexecstack"; - } - // lib.optionalAttrs rocmSupport { + env = lib.optionalAttrs rocmSupport { MIOPEN_PATH = rocmPackages.miopen; # HIP steps fail to find ROCm libs when not in HIPFLAGS, causing # fatal error: 'rocrand/rocrand.h' file not found diff --git a/pkgs/development/python-modules/onnxruntime/default.nix b/pkgs/development/python-modules/onnxruntime/default.nix index 9647657c0077..4d2ed826d456 100644 --- a/pkgs/development/python-modules/onnxruntime/default.nix +++ b/pkgs/development/python-modules/onnxruntime/default.nix @@ -38,10 +38,6 @@ buildPythonPackage { chmod +w dist ''; - env = { - NIX_LDFLAGS = "-z,noexecstack"; - }; - nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ autoPatchelfHook ]; # This project requires fairly large dependencies such as sympy which we really don't always need.