about summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorVladimír Čunát <v@cunat.cz>2022-03-23 21:43:15 +0100
committerVladimír Čunát <v@cunat.cz>2022-03-23 21:43:15 +0100
commita7ccddeb54d9783cce95299132dd3d36ab2e3615 (patch)
tree883bff7de0cedc0dae0c76591b9bc292ec960c07 /pkgs/development
parent2102efd88baf99a89f9a6602c899535f28e646fa (diff)
Revert "Merge #160259: separateDebugInfo: Use --strip-unneeded"
This reverts commit 848091a52b734f2fb30c0e185befc31a2f3733de, reversing
changes made to ab0e692ac7d4284455410d542b560ae3600242f3.

It caused issues with elfutils tests,
probably through over-stripping of glibc parts.
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/libraries/libpsl/default.nix2
-rw-r--r--pkgs/development/tools/analysis/valgrind/debug-info-from-env.patch31
-rw-r--r--pkgs/development/tools/analysis/valgrind/default.nix6
3 files changed, 0 insertions, 39 deletions
diff --git a/pkgs/development/libraries/libpsl/default.nix b/pkgs/development/libraries/libpsl/default.nix
index e505651ab406e..0a710d648fbfc 100644
--- a/pkgs/development/libraries/libpsl/default.nix
+++ b/pkgs/development/libraries/libpsl/default.nix
@@ -3,7 +3,6 @@
 , autoreconfHook
 , docbook_xsl
 , docbook_xml_dtd_43
-, glibc
 , gtk-doc
 , lzip
 , libidn2
@@ -39,7 +38,6 @@ in stdenv.mkDerivation rec {
     python3
     libxslt
   ] ++ lib.optionals enableValgrindTests [
-    glibc.debug
     valgrind
   ];
 
diff --git a/pkgs/development/tools/analysis/valgrind/debug-info-from-env.patch b/pkgs/development/tools/analysis/valgrind/debug-info-from-env.patch
deleted file mode 100644
index a237bc87d072f..0000000000000
--- a/pkgs/development/tools/analysis/valgrind/debug-info-from-env.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-diff --git a/coregrind/m_debuginfo/readelf.c b/coregrind/m_debuginfo/readelf.c
-index c586e3f33..e3bb1717f 100644
---- a/coregrind/m_debuginfo/readelf.c
-+++ b/coregrind/m_debuginfo/readelf.c
-@@ -1508,13 +1508,25 @@ DiImage* find_debug_file( struct _DebugInfo* di,
-    HChar*   debugpath = NULL; /* where we found it */
- 
-    if (buildid != NULL) {
-+      const HChar *dir = VG_(getenv)("NIX_DEBUG_INFO_DIRS");
-       debugpath = ML_(dinfo_zalloc)("di.fdf.1",
--                                    VG_(strlen)(buildid) + 33);
-+                                    VG_(strlen)(buildid) + 33 +
-+                                    (dir ? VG_(strlen)(dir) : 0));
- 
-       VG_(sprintf)(debugpath, "/usr/lib/debug/.build-id/%c%c/%s.debug",
-                    buildid[0], buildid[1], buildid + 2);
- 
-       dimg = open_debug_file(debugpath, buildid, 0, rel_ok, NULL);
-+
-+      while (!dimg && dir) {
-+         const HChar *sep = VG_(strchr)(dir, ':');
-+         Int size = sep ? sep - dir : VG_(strlen)(dir);
-+         VG_(sprintf)(debugpath, "%.*s/.build-id/%c%c/%s.debug",
-+                      size, dir, buildid[0], buildid[1], buildid + 2);
-+         dimg = open_debug_file(debugpath, buildid, 0, rel_ok, NULL);
-+         dir = sep ? sep + 1 : NULL;
-+      }
-+
-       if (!dimg) {
-          ML_(dinfo_free)(debugpath);
-          debugpath = NULL;
diff --git a/pkgs/development/tools/analysis/valgrind/default.nix b/pkgs/development/tools/analysis/valgrind/default.nix
index 7aef87a2f0ef6..6e736df235f06 100644
--- a/pkgs/development/tools/analysis/valgrind/default.nix
+++ b/pkgs/development/tools/analysis/valgrind/default.nix
@@ -1,7 +1,6 @@
 { lib, stdenv, fetchurl, fetchpatch
 , autoreconfHook, perl
 , gdb, cctools, xnu, bootstrap_cmds
-, setupDebugInfoDirs
 }:
 
 stdenv.mkDerivation rec {
@@ -20,7 +19,6 @@ stdenv.mkDerivation rec {
       url = "https://bugsfiles.kde.org/attachment.cgi?id=143535";
       sha256 = "036zyk30rixjvpylw3c7n171n4gpn6zcp7h6ya2dz4h5r478l9i6";
     })
-    ./debug-info-from-env.patch
   ];
 
   outputs = [ "out" "dev" "man" "doc" ];
@@ -34,10 +32,6 @@ stdenv.mkDerivation rec {
   # Perl is also a native build input.
   nativeBuildInputs = [ autoreconfHook perl ];
 
-  # Not propagatedNativeBuildInputs because of
-  # https://github.com/NixOS/nixpkgs/issues/64992.
-  propagatedBuildInputs = [ setupDebugInfoDirs ];
-
   enableParallelBuilding = true;
   separateDebugInfo = stdenv.isLinux;