diff options
author | Cédric Krier <cedk@gentoo.org> | 2023-01-28 21:03:34 +0100 |
---|---|---|
committer | Cédric Krier <cedk@gentoo.org> | 2023-01-28 21:04:24 +0100 |
commit | 344daed170af3fae72cc031684585281efca896a (patch) | |
tree | 7bd8797566d8444f3e1673b5185404fe83993098 /dev-vcs/mercurial/files | |
parent | sys-devel/libtool: Stabilize 2.4.7-r1 arm, #892187 (diff) | |
download | gentoo-344daed170af3fae72cc031684585281efca896a.tar.gz gentoo-344daed170af3fae72cc031684585281efca896a.tar.bz2 gentoo-344daed170af3fae72cc031684585281efca896a.zip |
dev-vcs/mercurial: add 6.3.2
Signed-off-by: Cédric Krier <cedk@gentoo.org>
Diffstat (limited to 'dev-vcs/mercurial/files')
-rw-r--r-- | dev-vcs/mercurial/files/mercurial-6.3.2-setup-rust-makedirs.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/dev-vcs/mercurial/files/mercurial-6.3.2-setup-rust-makedirs.patch b/dev-vcs/mercurial/files/mercurial-6.3.2-setup-rust-makedirs.patch new file mode 100644 index 000000000000..d2082ec6cd24 --- /dev/null +++ b/dev-vcs/mercurial/files/mercurial-6.3.2-setup-rust-makedirs.patch @@ -0,0 +1,30 @@ +# HG changeset patch +# User Cédric Krier <ced@b2ck.com> +# Date 1674932937 -3600 +# Sat Jan 28 20:08:57 2023 +0100 +# Node ID 65a97b8b1268169fecc21749b7472fd155bfb399 +# Parent a1123772333204cbeb766b17de8089a1d13d4a68 +# EXP-Topic setup-rust-build-makedirs-target +Ensure target directory exists with building rust extension + +When the rust extension is the first to be build, the target directory may not +exist so the copy fails. + +diff --git a/setup.py b/setup.py +--- a/setup.py ++++ b/setup.py +@@ -1454,11 +1454,13 @@ class RustStandaloneExtension(RustExtens + target = [target_dir] + target.extend(self.name.split('.')) + target[-1] += DYLIB_SUFFIX ++ target = os.path.join(*target) ++ os.makedirs(os.path.dirname(target), exist_ok=True) + shutil.copy2( + os.path.join( + self.rusttargetdir, self.dylibname + self.rustdylibsuffix() + ), +- os.path.join(*target), ++ target, + ) + + |