diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-18 05:39:07 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-18 05:39:07 +0000 |
commit | c3aed8de4c3eaeaa5341b0811b8052d316c789f8 (patch) | |
tree | cd182dcb96819dfc9328b7f724ebaaf10de56c58 /debian/patches/fix-tests-permission-denied.patch | |
parent | Adding upstream version 0.26.0. (diff) | |
download | rust-cbindgen-debian.tar.xz rust-cbindgen-debian.zip |
Adding debian version 0.26.0-3.debian/0.26.0-3debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/fix-tests-permission-denied.patch')
-rw-r--r-- | debian/patches/fix-tests-permission-denied.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/patches/fix-tests-permission-denied.patch b/debian/patches/fix-tests-permission-denied.patch new file mode 100644 index 0000000..4eb44d4 --- /dev/null +++ b/debian/patches/fix-tests-permission-denied.patch @@ -0,0 +1,12 @@ +--- rust-cbindgen-0.26.0.orig/tests/tests.rs ++++ rust-cbindgen-0.26.0/tests/tests.rs +@@ -204,6 +204,9 @@ fn run_compile_test( + let crate_dir = env::var("CARGO_MANIFEST_DIR").unwrap(); + let tests_path = Path::new(&crate_dir).join("tests"); + let mut generated_file = tests_path.join("expectations"); ++ if let Some(cargo_target_tmpdir) = option_env!("CARGO_TARGET_TMPDIR") { ++ generated_file = Path::new(cargo_target_tmpdir).join("expectations"); ++ } + fs::create_dir_all(&generated_file).unwrap(); + + let style_ext = style |