aboutsummaryrefslogtreecommitdiffstats
path: root/main/elfutils/musl-canonicalize_file_name.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-02-13 18:57:00 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-02-14 18:50:07 +0000
commite8fa24936ac303abe0978950898625fca30b17ec (patch)
tree192ac8fcc535b189065ca35fce455c67519d4a1e /main/elfutils/musl-canonicalize_file_name.patch
parent69a9add8425a3ac8a4ce5294354a543c63d35e39 (diff)
downloadaports-e8fa24936ac303abe0978950898625fca30b17ec.tar.bz2
aports-e8fa24936ac303abe0978950898625fca30b17ec.tar.xz
main/elfutils: move from testing
Diffstat (limited to 'main/elfutils/musl-canonicalize_file_name.patch')
-rw-r--r--main/elfutils/musl-canonicalize_file_name.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/main/elfutils/musl-canonicalize_file_name.patch b/main/elfutils/musl-canonicalize_file_name.patch
new file mode 100644
index 0000000000..60e22bb5bb
--- /dev/null
+++ b/main/elfutils/musl-canonicalize_file_name.patch
@@ -0,0 +1,22 @@
+--- a/libdwfl/dwfl_build_id_find_elf.c 2015-10-12 12:22:58.000000000 +0200
++++ b/libdwfl/dwfl_build_id_find_elf.c 2015-11-20 05:13:10.972994172 +0100
+@@ -94,7 +94,7 @@
+ {
+ if (*file_name != NULL)
+ free (*file_name);
+- *file_name = canonicalize_file_name (name);
++ *file_name = realpath (name, NULL);
+ if (*file_name == NULL)
+ {
+ *file_name = name;
+--- a/libdwfl/find-debuginfo.c 2015-10-12 12:22:58.000000000 +0200
++++ b/libdwfl/find-debuginfo.c 2015-11-20 05:18:56.990967176 +0100
+@@ -372,7 +372,7 @@
+ /* If FILE_NAME is a symlink, the debug file might be associated
+ with the symlink target name instead. */
+
+- char *canon = canonicalize_file_name (file_name);
++ char *canon = realpath (file_name, NULL);
+ if (canon != NULL && strcmp (file_name, canon))
+ fd = find_debuginfo_in_path (mod, canon,
+ debuglink_file, debuglink_crc,