summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/multipath-tools/files/0014-libdmmp-Makefile-Add-target-docs-man-dmmp_strerror.3.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/multipath-tools/files/0014-libdmmp-Makefile-Add-target-docs-man-dmmp_strerror.3.patch')
-rw-r--r--meta-oe/recipes-support/multipath-tools/files/0014-libdmmp-Makefile-Add-target-docs-man-dmmp_strerror.3.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/multipath-tools/files/0014-libdmmp-Makefile-Add-target-docs-man-dmmp_strerror.3.patch b/meta-oe/recipes-support/multipath-tools/files/0014-libdmmp-Makefile-Add-target-docs-man-dmmp_strerror.3.patch
new file mode 100644
index 0000000000..aad46c229b
--- /dev/null
+++ b/meta-oe/recipes-support/multipath-tools/files/0014-libdmmp-Makefile-Add-target-docs-man-dmmp_strerror.3.patch
@@ -0,0 +1,41 @@
1From 6e231d887c20b2139db75e6dc6c20107273aaacd Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?K=C3=A9l=C3=A9fa=20San=C3=A9?= <kelefa.sane@smile.fr>
3Date: Thu, 3 Apr 2025 10:25:30 +0200
4Subject: [PATCH] libdmmp/Makefile: Add target docs/man/dmmp_strerror.3 to
5 .PHONY list
6
7When cloning git repos, depending on the order of written to the disk, target
8docs/man/dmmp_strerror.3 is more recent that the prerequisite
9libdmmp/libdmmp.h this leads to a non reproducible behavior:
10Sometimes, the timestamps are updated in the man pages, sometimes not.
11
12Upstream-Status: Denied
13
14https://lore.kernel.org/dm-devel/72355f1d0984647e91f8c50f1c2295071af49e33.camel@suse.com/
15The patch has been rejected by upstream, who will update the timestamps of the
16manpages with a new commit.
17In order to be reproducible without having a random result, forcing the target
18rebuild by adding it to .PHONY is the more acceptable solution, the alternative
19would have been to use the make -B option which consider all target has
20obsolete and rebuild them all, which is less efficient.
21
22Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
23Signed-off-by: Sofiane HAMAM <sofiane.hamam@smile.fr>
24Signed-off-by: Kelefa Sane <kelefa.sane@smile.fr>
25---
26 libdmmp/Makefile | 2 +-
27 1 file changed, 1 insertion(+), 1 deletion(-)
28
29diff --git a/libdmmp/Makefile b/libdmmp/Makefile
30index 7e0e2509..187bcb8c 100644
31--- a/libdmmp/Makefile
32+++ b/libdmmp/Makefile
33@@ -20,7 +20,7 @@ CFLAGS += $(LIB_CFLAGS) -fvisibility=hidden
34 LIBDEPS += $(shell $(PKG_CONFIG) --libs json-c) -L$(mpathcmddir) -lmpathcmd -lpthread
35
36 all: $(LIBS) doc
37-.PHONY: doc clean install uninstall check speed_test dep_clean
38+.PHONY: doc clean install uninstall check speed_test dep_clean docs/man/dmmp_strerror.3
39
40 $(LIBS): $(OBJS)
41 $(Q)$(CC) $(LDFLAGS) $(SHARED_FLAGS) -Wl,-soname=$@ -o $@ $(OBJS) $(LIBDEPS)