biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / tools / misc / elfutils / debug-info-from-env.patch
blob409f1311c315b19cf8210d55ee96f7d51c0484ac
1 Look up .build-id files relative to the directories in the
2 colon-separated environment variable NIX_DEBUG_INFO_DIRS, unless
3 overriden by --debuginfo-path.
5 diff -ru elfutils-0.169-orig/libdwfl/argp-std.c elfutils-0.169/libdwfl/argp-std.c
6 --- elfutils-0.169-orig/libdwfl/argp-std.c 2017-05-02 23:05:52.000000000 +0200
7 +++ elfutils-0.169/libdwfl/argp-std.c 2017-07-28 16:08:06.739558106 +0200
8 @@ -376,5 +376,7 @@
9 const struct argp *
10 dwfl_standard_argp (void)
12 + debuginfo_path = getenv("NIX_DEBUG_INFO_DIRS");
14 return &libdwfl_argp;
16 diff -ru elfutils-0.169-orig/src/stack.c elfutils-0.169/src/stack.c
17 --- elfutils-0.169-orig/src/stack.c 2017-02-24 11:55:28.000000000 +0100
18 +++ elfutils-0.169/src/stack.c 2017-07-28 15:50:06.743196696 +0200
19 @@ -631,6 +631,8 @@
20 /* Set locale. */
21 (void) setlocale (LC_ALL, "");
23 + debuginfo_path = getenv("NIX_DEBUG_INFO_DIRS");
25 const struct argp_option options[] =
27 { NULL, 0, NULL, 0, N_("Input selection options:"), 0 },