[packages/vim] generate wayland sources only once
atler
atler at pld-linux.org
Sun Feb 15 21:01:57 CET 2026
commit e411d884dbef318b9fe027e619d876f1d710dc65
Author: Jan Palus <atler at pld-linux.org>
Date: Sun Feb 15 20:59:24 2026 +0100
generate wayland sources only once
otherwise generation runs independently for each protocol overwriting
files of other parallel instances randomly leading to inconsistent
results
parallel-wayland-gen.patch | 16 ++++++++++++++++
vim.spec | 4 ++--
2 files changed, 18 insertions(+), 2 deletions(-)
---
diff --git a/vim.spec b/vim.spec
index 883f1fa..2765995 100644
--- a/vim.spec
+++ b/vim.spec
@@ -73,7 +73,7 @@ Source32: oceandeep.vim
# http://www.vim.org/scripts/script.php?script_id=1464 (2.6.5)
Source33: moria.vim
Patch0: %{name}-sysconfdir.patch
-
+Patch1: parallel-wayland-gen.patch
Patch2: %{name}-paths.patch
Patch5: %{name}-awk.patch
@@ -774,7 +774,7 @@ cp -p runtime/gvim.desktop gvim-gtk.desktop
cp -p runtime/gvim.desktop gvim-motif.desktop
%patch -P0 -p1
-
+%patch -P1 -p1
%patch -P2 -p1
%patch -P5 -p1
diff --git a/parallel-wayland-gen.patch b/parallel-wayland-gen.patch
new file mode 100644
index 0000000..35f6ef4
--- /dev/null
+++ b/parallel-wayland-gen.patch
@@ -0,0 +1,16 @@
+--- vim-9.2.0/src/Makefile.orig 2026-02-15 20:52:38.188899899 +0100
++++ vim-9.2.0/src/Makefile 2026-02-15 20:56:26.392881918 +0100
+@@ -1610,8 +1610,11 @@
+ gui_beval.c netbeans.c job.c channel.c \
+ $(GRESOURCE_SRC)
+
+-$(WAYLAND_SRC):
+- cd auto/wayland; $(MAKE)
++$(WAYLAND_SRC): gen-wayland-srcs
++
++.PHONY: gen-wayland-srcs
++gen-wayland-srcs:
++ $(MAKE) -C auto/wayland
+
+ # Needed for parallel jobs to work
+ auto/wayland/ext-data-control-v1.h: auto/wayland/ext-data-control-v1.c
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/vim.git/commitdiff/e411d884dbef318b9fe027e619d876f1d710dc65
More information about the pld-cvs-commit
mailing list