Package Details: rd-git 0.0.0.1728.gf11ec8e-1

Git Clone URL: https://aur.archlinux.org/rd-git.git (read-only, click to copy)
Package Base: rd-git
Description: a record/replay debugger written in rust
Upstream URL: https://github.com/sidkshatriya/rd
Licenses: custom
Conflicts: rd
Provides: rd
Submitter: quininer
Maintainer: None
Last Packager: quininer
Votes: 0
Popularity: 0.000000
First Submitted: 2021-05-16 07:47 (UTC)
Last Updated: 2021-05-16 07:56 (UTC)

Dependencies (8)

Required by (0)

Sources (1)

Latest Comments

uttarayan21 commented on 2021-06-03 08:52 (UTC) (edited on 2021-06-03 08:55 (UTC) by uttarayan21)

rd binary is hardcoded to target/release/rd. This fails the packaging if CARGO_TARGET_DIR is set.

Patch to fix

@@ -25,6 +25,6 @@ build(){

 package() {
        cd $_pkgname
-
-       install -D -m755 "target/release/rd" "$pkgdir/usr/bin/rd"
+       targetdir=${CARGO_TARGET_DIR:-target}
+       install -D -m755 "$targetdir/release/rd" "$pkgdir/usr/bin/rd"
 }

Edit: Or use

        cargo build --release --locked --target-dir=target