From eedf4f0cf4f1335c315f81c90e284d698b8d07be Mon Sep 17 00:00:00 2001 From: Zach van Rijn Date: Fri, 10 Jun 2022 13:47:32 +0000 Subject: user/gobject-introspection: add patch for bad file move assumption. fixes #776. --- user/gobject-introspection/APKBUILD | 4 +++- .../gobject-introspection/support-cross-filesystem-move.patch | 11 +++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 user/gobject-introspection/support-cross-filesystem-move.patch (limited to 'user') diff --git a/user/gobject-introspection/APKBUILD b/user/gobject-introspection/APKBUILD index be3b42f54..0c1a6f5f2 100644 --- a/user/gobject-introspection/APKBUILD +++ b/user/gobject-introspection/APKBUILD @@ -15,6 +15,7 @@ subpackages="$pkgname-doc $pkgname-dev" replaces="libgirepository" source="https://download.gnome.org/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz musl-time64.patch + support-cross-filesystem-move.patch " build() { @@ -40,4 +41,5 @@ dev() { } sha512sums="b8fba2bd12e93776c55228acf3487bef36ee40b1abdc7f681b827780ac94a8bfa1f59b0c30d60fa5a1fea2f610de78b9e52029f411128067808f17eb6374cdc5 gobject-introspection-1.72.0.tar.xz -784acecd0e139685664ba1af6f1df69aeeb2da11a2b7ef9b42f46f42699e087aa90f0a2d95c1ff7aa1c04a3f2505d6006015b5a0f1ba1b125d6b1311474736c2 musl-time64.patch" +784acecd0e139685664ba1af6f1df69aeeb2da11a2b7ef9b42f46f42699e087aa90f0a2d95c1ff7aa1c04a3f2505d6006015b5a0f1ba1b125d6b1311474736c2 musl-time64.patch +ce07017598d55a7a0b2a0cad18664a004d4f0425b57c29fd7d6c1d0d340e82db83c2a876cd60f3fb0fbc9e79d83badea4fc7c547f854d44b51bb980df8afa95a support-cross-filesystem-move.patch" diff --git a/user/gobject-introspection/support-cross-filesystem-move.patch b/user/gobject-introspection/support-cross-filesystem-move.patch new file mode 100644 index 000000000..80fc80baa --- /dev/null +++ b/user/gobject-introspection/support-cross-filesystem-move.patch @@ -0,0 +1,11 @@ +--- a/misc/update-glib-annotations.py ++++ b/misc/update-glib-annotations.py +@@ -57,7 +57,7 @@ + extract_annotations(module_name, glib_src_dir, target) + if os.path.isfile(target_path): + os.unlink(target_path) +- os.rename(tmpname, target_path) ++ shutil.move(tmpname, target_path) + + print("Updated '%s'" % (target_path, )) + -- cgit v1.2.3-70-g09d2