]> git.proxmox.com Git - cargo.git/commitdiff
cargo wrapper: add TODO about debug symbols for this package
authorXimin Luo <infinity0@debian.org>
Sat, 18 May 2019 19:05:54 +0000 (12:05 -0700)
committerXimin Luo <infinity0@debian.org>
Sat, 18 May 2019 19:05:54 +0000 (12:05 -0700)
debian/bin/cargo

index c13fa994909083d1faed9941e2a8854e38e79f3f..2099f2239ce0158309e3767119d6e0efe6548527 100755 (executable)
@@ -96,6 +96,10 @@ def prepare_debian(cargo_home, registry, cratespec, host_gnu_type, ldflags, link
     rustflags.extend(["-C", "linker=%s-gcc" % host_gnu_type])
     for f in ldflags:
         rustflags.extend(["-C", "link-arg=%s" % f])
+    ## TODO: Right now, we incorrectly point to SYSTEM_REGISTRY in the debug
+    # symbols for this Debian cargo package itself. This is because we use
+    # SYSTEM_REGISTRY below, but instead we should rather point to /usr/src
+    # (and add a cargo-src package that uses this path).
     rustflags.extend(["--remap-path-prefix",
         "%s=%s/%s" % (sourcepath(), SYSTEM_REGISTRY, cratespec.replace("_", "-"))])