Merge pull request #201032 from K900/apitrace-11.1

This commit is contained in:
Martin Weinelt 2022-11-13 15:28:35 +01:00 committed by GitHub
commit fd5b994b70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 27 deletions

View File

@ -1,27 +1,37 @@
{ lib, stdenv, fetchFromGitHub, cmake, libX11, procps, python2, libdwarf, qtbase, qtwebkit, wrapQtAppsHook, libglvnd }:
{
lib,
stdenv,
fetchFromGitHub,
cmake,
pkg-config,
libX11,
procps,
python3,
libdwarf,
qtbase,
wrapQtAppsHook,
libglvnd,
gtest,
brotli,
}:
stdenv.mkDerivation rec {
pname = "apitrace";
version = "7.1-572-g${builtins.substring 0 8 src.rev}";
version = "11.1";
src = fetchFromGitHub {
sha256 = "11bwb0l8cr1bf9bj1s6cbmi77d5fy4qrphj9cgmcd8jpa862anp5";
rev = "26966134f15d28f6b4a9a0a560017b3ba36d60bf";
repo = "apitrace";
owner = "apitrace";
repo = "apitrace";
rev = version;
hash = "sha256-rvC6iVWNNxH11hzQvRTo+SQi9jEUCPWGSdJmKJe9SQ0=";
fetchSubmodules = true;
};
patches = [
# glibc 2.34 compat
# derived from https://github.com/apitrace/apitrace/commit/d28a980802ad48568c87da02d630c8babfe163bb
./glibc-2.34-compat.patch
];
# LD_PRELOAD wrappers need to be statically linked to work against all kinds
# of games -- so it's fine to use e.g. bundled snappy.
buildInputs = [ libX11 procps python2 libdwarf qtbase qtwebkit ];
buildInputs = [ libX11 procps python3 libdwarf qtbase gtest brotli ];
nativeBuildInputs = [ cmake wrapQtAppsHook ];
nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook ];
# Don't automatically wrap all binaries, I prefer to explicitly only wrap
# `qapitrace`.

View File

@ -1,13 +0,0 @@
diff --git a/wrappers/dlsym.cpp b/wrappers/dlsym.cpp
index 2eda082..0c0c8ee 100644
--- a/wrappers/dlsym.cpp
+++ b/wrappers/dlsym.cpp
@@ -34,7 +34,7 @@
#include "os.hpp"
-#ifdef __GLIBC__
+#if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ < 34
#include <dlfcn.h>

View File

@ -2130,7 +2130,7 @@ with pkgs;
apio = python3Packages.callPackage ../development/embedded/fpga/apio { };
apitrace = libsForQt514.callPackage ../applications/graphics/apitrace {};
apitrace = libsForQt5.callPackage ../applications/graphics/apitrace {};
argagg = callPackage ../development/libraries/argagg { };